:root {
  --aura-primary: #F29BC2;
  --aura-primary-hover: #E780AF;
  --aura-primary-soft: #FFF0F7;
  --aura-blue: #7CCBFF;
  --aura-lilac: #C9A2FF;
  --aura-gold: #D9A441;
  --aura-sidebar: #2B2532;
  --aura-background: #FFF9FC;
  --aura-surface: #FFFFFF;
  --aura-text: #2B2730;
  --aura-muted: #7D7482;
  --aura-border: #EFE4EC;
}

html[data-brand="aura"] body {
  background: var(--aura-background);
}

html[data-brand="aura"] ::selection {
  background: var(--aura-primary-soft);
  color: var(--aura-text);
}

.aura-brand-footer {
  color: var(--aura-muted);
  font-size: 12px;
  text-align: center;
}

/* AURA_RIGHT_PANEL_START */

/* Main conversation right sidebar */
.aura-conversation-sidebar {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(201, 162, 255, 0.16),
      transparent 34%
    ),
    radial-gradient(
      circle at 10% 18%,
      rgba(242, 155, 194, 0.12),
      transparent 30%
    ),
    #fffafc !important;

  border-color: rgba(242, 155, 194, 0.25) !important;
}

/* Complete panel */
.aura-contact-panel {
  min-height: 100%;
  background: transparent;
}

/* Top header */
.aura-contact-panel__header {
  background: rgba(255, 255, 255, 0.74);
  border-bottom: 1px solid rgba(242, 155, 194, 0.18);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

/* Contact summary */
.aura-contact-panel__contact {
  margin: 10px 10px 12px;
  border: 1px solid rgba(201, 162, 255, 0.24);
  border-radius: 18px;
  background:
    linear-gradient(
      135deg,
      rgba(255, 255, 255, 0.95),
      rgba(255, 240, 247, 0.82)
    );
  box-shadow:
    0 8px 24px rgba(43, 37, 50, 0.04),
    0 1px 2px rgba(242, 155, 194, 0.08);
  overflow: hidden;
}

/* Accordion/card container spacing */
.aura-contact-panel__sections {
  gap: 10px !important;
  padding-left: 10px !important;
  padding-right: 10px !important;
}

/* Each sidebar section becomes a soft Aura card */
.aura-contact-panel__sections > * {
  display: block;
  overflow: hidden;
  border: 1px solid rgba(201, 162, 255, 0.20);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow:
    0 5px 18px rgba(43, 37, 50, 0.035);
  transition:
    border-color 160ms ease,
    box-shadow 160ms ease,
    transform 160ms ease,
    background-color 160ms ease;
}

.aura-contact-panel__sections > *:hover {
  border-color: rgba(242, 155, 194, 0.38);
  box-shadow:
    0 8px 24px rgba(43, 37, 50, 0.055);
}

/* Inputs/selects inside panel */
.aura-contact-panel input,
.aura-contact-panel button,
.aura-contact-panel [role="combobox"] {
  transition:
    border-color 150ms ease,
    box-shadow 150ms ease,
    background-color 150ms ease;
}

/* Dark mode */
.dark .aura-conversation-sidebar {
  background:
    radial-gradient(
      circle at 90% 0%,
      rgba(201, 162, 255, 0.10),
      transparent 34%
    ),
    radial-gradient(
      circle at 10% 18%,
      rgba(242, 155, 194, 0.07),
      transparent 30%
    ),
    #211d25 !important;

  border-color: rgba(201, 162, 255, 0.16) !important;
}

.dark .aura-contact-panel__header {
  background: rgba(33, 29, 37, 0.82);
  border-bottom-color: rgba(201, 162, 255, 0.14);
}

.dark .aura-contact-panel__contact {
  background:
    linear-gradient(
      135deg,
      rgba(43, 37, 50, 0.94),
      rgba(50, 40, 54, 0.90)
    );
  border-color: rgba(201, 162, 255, 0.18);
  box-shadow: none;
}

.dark .aura-contact-panel__sections > * {
  background: rgba(43, 37, 50, 0.78);
  border-color: rgba(201, 162, 255, 0.14);
  box-shadow: none;
}

.dark .aura-contact-panel__sections > *:hover {
  border-color: rgba(242, 155, 194, 0.28);
}

/* AURA_RIGHT_PANEL_END */

/* AURA_PREMIUM_THEME_START */

:root {
  --aura-bg: #FBF9F5;
  --aura-bg-soft: #F7F2EC;
  --aura-surface: #FFFFFF;

  --aura-text: #4F4540;
  --aura-muted: #81756D;

  --aura-gold: #B9923F;
  --aura-gold-dark: #98732D;
  --aura-gold-soft: #E6D5AE;

  --aura-blush: #E7C5CA;
  --aura-blush-soft: #F6E9E8;

  --aura-sky: #CEDFEB;
  --aura-sky-soft: #EDF4F8;

  --aura-lilac: #DDD4EA;

  --aura-border: #E9E0D6;
  --aura-border-soft: rgba(185, 146, 63, 0.15);

  --aura-shadow:
    0 10px 34px rgba(79, 69, 64, 0.045);
}


/* ================================
   APP
   ================================ */

html,
body,
#app {
  background: var(--aura-bg) !important;
  color: var(--aura-text);
}

body {
  background-image:
    radial-gradient(
      circle at 7% 6%,
      rgba(231, 197, 202, 0.24),
      transparent 23%
    ),
    radial-gradient(
      circle at 92% 8%,
      rgba(206, 223, 235, 0.26),
      transparent 25%
    ),
    radial-gradient(
      circle at 75% 95%,
      rgba(221, 212, 234, 0.16),
      transparent 26%
    ) !important;
}


/* Very subtle Aura arc */
body::before {
  content: "";
  position: fixed;
  pointer-events: none;

  width: 680px;
  height: 680px;

  top: -470px;
  left: 16%;

  border-radius: 50%;
  border:
    1px solid rgba(185, 146, 63, 0.13);

  z-index: 0;
}


/* ================================
   MAIN SIDEBAR
   ================================ */

.aura-main-sidebar {
  background:
    linear-gradient(
      180deg,
      rgba(255,255,255,0.96),
      rgba(250,247,242,0.97)
    ) !important;

  border-color:
    rgba(185,146,63,0.13) !important;

  box-shadow:
    5px 0 26px rgba(79,69,64,0.025);
}

html[dir="rtl"] .aura-main-sidebar {
  box-shadow:
    -5px 0 26px rgba(79,69,64,0.025);
}


/* Sidebar items (dropdown menus rendered inside the sidebar are excluded) */
.aura-main-sidebar a:not(.n-dropdown-body *),
.aura-main-sidebar button:not(.n-dropdown-body *) {
  border-radius: 10px !important;

  transition:
    background-color 150ms ease,
    border-color 150ms ease,
    color 150ms ease;
}


/* Active sidebar item */
.aura-main-sidebar a.router-link-active:not(.n-dropdown-body *),
.aura-main-sidebar a[aria-current="page"]:not(.n-dropdown-body *),
.aura-main-sidebar .bg-n-alpha-2:not(.n-dropdown-body *) {
  position: relative;

  background:
    linear-gradient(
      100deg,
      rgba(246,233,232,0.98),
      rgba(250,245,239,0.98)
    ) !important;

  border:
    1px solid rgba(185,146,63,0.16) !important;

  color: var(--aura-text) !important;
}


/* Gold indicator like approved mockup */
.aura-main-sidebar a.router-link-active:not(.n-dropdown-body *)::before,
.aura-main-sidebar a[aria-current="page"]:not(.n-dropdown-body *)::before {
  content: "";

  position: absolute;

  inset-inline-start: -1px;
  top: 20%;
  bottom: 20%;

  width: 3px;

  border-radius: 999px;

  background:
    linear-gradient(
      180deg,
      #D5B260,
      #A77D2C
    );
}


/* ================================
   GENERAL SURFACES
   ================================ */

.bg-n-surface-1,
.bg-n-surface-2 {
  background:
    rgba(255,255,255,0.82) !important;
}

.border-n-weak,
.border-n-slate-3 {
  border-color:
    var(--aura-border) !important;
}


/* ================================
   CONVERSATION LIST
   ================================ */

[class*="conversation-list"],
[class*="conversationList"],
[class*="chat-list"],
[class*="chatList"] {
  background:
    rgba(255,255,255,0.78) !important;

  border-color:
    var(--aura-border) !important;
}

.dark [class*="conversation-list"],
.dark [class*="conversationList"],
.dark [class*="chat-list"],
.dark [class*="chatList"] {
  background:
    rgba(41,35,31,0.92) !important;

  border-color:
    var(--aura-border) !important;
}


/* Conversation rows */
[class*="conversation-list"] > *,
[class*="conversationList"] > * {
  border-color:
    rgba(233,224,214,0.72) !important;
}


/* Selected / hover */
[class*="conversation-list"] > *:hover,
[class*="conversationList"] > *:hover {
  background:
    linear-gradient(
      90deg,
      rgba(246,233,232,0.55),
      rgba(255,255,255,0.84)
    ) !important;
}


/* ================================
   TABS
   ================================ */

[role="tablist"] {
  border-color:
    var(--aura-border) !important;
}

[role="tab"] {
  color:
    var(--aura-muted) !important;
}

[role="tab"][aria-selected="true"] {
  color:
    var(--aura-text) !important;

  border-color:
    var(--aura-gold) !important;
}


/* Chatwoot utility overrides */
.text-n-brand,
.text-n-blue-9 {
  color:
    var(--aura-gold-dark) !important;
}

.border-n-brand,
.border-n-blue-9 {
  border-color:
    var(--aura-gold) !important;
}


/* ================================
   BUTTONS
   ================================ */

button.bg-n-brand {
  background:
    linear-gradient(
      135deg,
      #C9A34B,
      #A77D2C
    ) !important;

  color: #FFFFFF !important;

  border:
    1px solid rgba(129,91,22,0.22) !important;

  box-shadow:
    0 6px 18px rgba(185,146,63,0.17) !important;
}

button.bg-n-brand:hover {
  background:
    linear-gradient(
      135deg,
      #B99038,
      #936B24
    ) !important;
}


/* Secondary buttons */
button:not(.bg-n-brand) {
  border-color:
    rgba(185,146,63,0.13);
}


/* ================================
   INPUTS
   ================================ */

input,
textarea,
[role="combobox"] {
  border-color:
    var(--aura-border) !important;

  border-radius:
    11px !important;
}

input:focus,
textarea:focus,
[role="combobox"]:focus {
  border-color:
    rgba(185,146,63,0.55) !important;

  box-shadow:
    0 0 0 3px rgba(185,146,63,0.08) !important;
}


/* ================================
   MAIN CHAT AREA
   ================================ */

textarea,
[contenteditable="true"] {
  background:
    rgba(255,255,255,0.92) !important;
}

[class*="composer"],
[class*="Composer"] {
  background:
    rgba(255,255,255,0.86) !important;

  border-color:
    var(--aura-border) !important;

  border-radius:
    15px !important;

  box-shadow:
    0 7px 25px rgba(79,69,64,0.035);
}


/* ================================
   RIGHT SIDEBAR
   ================================ */

.aura-conversation-sidebar {
  background:
    linear-gradient(
      180deg,
      rgba(253,251,247,0.98),
      rgba(250,247,242,0.96)
    ) !important;

  border-color:
    rgba(185,146,63,0.16) !important;
}


/* Contact card */
.aura-contact-panel__contact {
  border:
    1px solid rgba(185,146,63,0.20) !important;

  border-radius:
    18px !important;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,0.97),
      rgba(251,247,241,0.95)
    ) !important;

  box-shadow:
    var(--aura-shadow) !important;
}


/* Subtle blush glow, not children's stationery */
.aura-contact-panel__contact::before {
  content: "";

  position: absolute;

  width: 180px;
  height: 180px;

  top: -110px;
  right: -100px;

  border-radius: 50%;

  background:
    rgba(231,197,202,0.17);

  pointer-events: none;
}


/* Right panel cards */
.aura-contact-panel__sections > * {
  background:
    rgba(255,255,255,0.88) !important;

  border:
    1px solid rgba(185,146,63,0.16) !important;

  border-radius:
    14px !important;

  box-shadow:
    0 5px 18px rgba(79,69,64,0.025) !important;
}

.aura-contact-panel__sections > *:hover {
  border-color:
    rgba(185,146,63,0.30) !important;

  background:
    linear-gradient(
      100deg,
      #FFFFFF,
      rgba(246,233,232,0.27)
    ) !important;
}


/* Remove old decorative star */
.aura-contact-panel::after {
  display: none !important;
}


/* ================================
   LABELS / BADGES
   ================================ */

[class*="badge"],
[class*="Badge"] {
  border-radius:
    999px !important;
}


/* ================================
   SCROLLBAR
   ================================ */

::-webkit-scrollbar {
  width: 6px;
  height: 6px;
}

::-webkit-scrollbar-track {
  background: transparent;
}

::-webkit-scrollbar-thumb {
  background:
    #D8C6AE;

  border-radius:
    999px;
}

::-webkit-scrollbar-thumb:hover {
  background:
    #BFA67F;
}


/* ================================
   TYPOGRAPHY
   ================================ */

body {
  color:
    var(--aura-text);
}


/* AURA_PREMIUM_THEME_END */

/* AURA_CHAT_POLISH_START */

/* =========================================================
   AURA DIGITAL — Conversation Workspace
   Light + Dark
   ========================================================= */

:root {
  --aura-bg: #FBF9F5;
  --aura-surface: #FFFFFF;
  --aura-cream: #F5F0E9;
  --aura-text: #4F4540;
  --aura-muted: #81756D;
  --aura-gold: #B9923F;
  --aura-gold-soft: #D7C08A;
  --aura-blush: #E7C5CA;
  --aura-blush-soft: #F6EDEE;
  --aura-sky: #CEDFEB;
  --aura-lilac: #DDD4EA;
  --aura-border: #E9E0D6;
  --aura-shadow: 0 8px 28px rgba(79, 69, 64, 0.06);
}

/* Conversation list */

.aura-conversation-card {
  background: rgba(255,255,255,0.72) !important;
  border-color: var(--aura-border) !important;
  transition:
    background-color .18s ease,
    border-color .18s ease,
    box-shadow .18s ease,
    transform .18s ease;
}

.aura-conversation-card:hover {
  background: #FCF7F3 !important;
}

.aura-conversation-card.active {
  background: var(--aura-blush-soft) !important;
  border-inline-start: 3px solid var(--aura-gold) !important;
  box-shadow: inset 0 0 0 1px rgba(185,146,63,.10);
}

.aura-conversation-card.selected {
  background: #F7F1EC !important;
}

.aura-conversation-card .conversation--user {
  color: var(--aura-text) !important;
}

/* Chat header */

.aura-conversation-header {
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--aura-border);
  box-shadow: 0 3px 16px rgba(79,69,64,.035);
  backdrop-filter: blur(12px);
}

.aura-conversation-header button {
  border-radius: 10px;
  transition: background-color .18s ease, color .18s ease;
}

.aura-conversation-header button:hover {
  background: var(--aura-cream);
}

/* Message bubbles */

.aura-message-bubble {
  box-shadow: 0 2px 8px rgba(79,69,64,.04);
}

/* Agent / outgoing */
.aura-message-bubble.bg-n-solid-blue {
  background: #F2E8D8 !important;
  color: var(--aura-text) !important;
  border: 1px solid #E6D7BE;
}

/* Customer / incoming */
.aura-message-bubble.bg-n-slate-4 {
  background: #FFFFFF !important;
  color: var(--aura-text) !important;
  border: 1px solid var(--aura-border);
}

/* Bot / automation */
.aura-message-bubble.bg-n-solid-iris {
  background: #F1EDF6 !important;
  color: var(--aura-text) !important;
  border: 1px solid #E1D9EA;
}

/* Private note */
.aura-message-bubble.bg-n-solid-amber {
  background: #FBF1D9 !important;
  color: #655329 !important;
  border: 1px solid #E7CF91;
}

/* Reply composer */

.aura-reply-box {
  background: rgba(255,255,255,.96) !important;
  border: 1px solid var(--aura-border) !important;
  border-radius: 16px !important;
  box-shadow: var(--aura-shadow);
  overflow: hidden;
}

.aura-reply-box:focus-within {
  border-color: var(--aura-gold-soft) !important;
  box-shadow:
    0 0 0 3px rgba(185,146,63,.08),
    var(--aura-shadow);
}

.aura-reply-box .input,
.aura-reply-box .ProseMirror {
  color: var(--aura-text) !important;
}

.aura-reply-box .send-button,
.aura-reply-box button.bg-n-brand {
  background: var(--aura-gold) !important;
  border-color: var(--aura-gold) !important;
  color: #fff !important;
}

.aura-reply-box .send-button:hover,
.aura-reply-box button.bg-n-brand:hover {
  background: #A78336 !important;
}

/* Existing Aura right panel */

.aura-contact-panel {
  background: var(--aura-bg) !important;
}

.aura-contact-panel__header,
.aura-contact-panel__contact,
.aura-contact-panel__sections > * {
  border-color: var(--aura-border) !important;
}

.aura-contact-panel__contact,
.aura-contact-panel__sections > * {
  background: rgba(255,255,255,.84);
}

/* Existing Aura sidebar */

.aura-main-sidebar {
  border-color: var(--aura-border) !important;
}

/* =========================================================
   DARK MODE
   ========================================================= */

.dark {
  --aura-bg: #1F1B19;
  --aura-surface: #29231F;
  --aura-cream: #332B26;
  --aura-text: #F2EAE3;
  --aura-muted: #B8ABA1;
  --aura-gold: #C9A657;
  --aura-gold-soft: #8B7340;
  --aura-blush: #684B50;
  --aura-blush-soft: #392C2E;
  --aura-sky: #35434D;
  --aura-lilac: #453C50;
  --aura-border: #40362F;
  --aura-shadow: 0 10px 30px rgba(0,0,0,.24);
}

.dark body,
.dark #app {
  background: #1F1B19 !important;
}

.dark .aura-main-sidebar {
  background: #241F1C !important;
  border-color: #40362F !important;
}

.dark .aura-conversation-card {
  background: #29231F !important;
  border-color: #3A322C !important;
}

.dark .aura-conversation-card:hover {
  background: #312925 !important;
}

.dark .aura-conversation-card.active {
  background: #392C2E !important;
  border-inline-start-color: var(--aura-gold) !important;
}

.dark .aura-conversation-card.selected {
  background: #332B26 !important;
}

.dark .aura-conversation-card .conversation--user {
  color: var(--aura-text) !important;
}

.dark .aura-conversation-header {
  background: rgba(41,35,31,.94);
  border-color: #40362F;
  box-shadow: 0 3px 18px rgba(0,0,0,.18);
}

.dark .aura-conversation-header button:hover {
  background: #382F2A;
}

/* Agent / outgoing */
.dark .aura-message-bubble.bg-n-solid-blue {
  background: #4A3D2C !important;
  color: #F4EADF !important;
  border-color: #685537 !important;
}

/* Customer / incoming */
.dark .aura-message-bubble.bg-n-slate-4 {
  background: #312A26 !important;
  color: #F1E9E2 !important;
  border-color: #463B34 !important;
}

/* Bot */
.dark .aura-message-bubble.bg-n-solid-iris {
  background: #3D3446 !important;
  color: #F0E9F4 !important;
  border-color: #52465D !important;
}

/* Private note */
.dark .aura-message-bubble.bg-n-solid-amber {
  background: #4A3E24 !important;
  color: #F3E4B8 !important;
  border-color: #665630 !important;
}

.dark .aura-reply-box {
  background: #29231F !important;
  border-color: #443930 !important;
  box-shadow: var(--aura-shadow);
}

.dark .aura-reply-box:focus-within {
  border-color: var(--aura-gold-soft) !important;
  box-shadow:
    0 0 0 3px rgba(201,166,87,.10),
    var(--aura-shadow);
}

.dark .aura-reply-box .input,
.dark .aura-reply-box .ProseMirror {
  color: #F2EAE3 !important;
}

.dark .aura-contact-panel {
  background: #211C19 !important;
}

.dark .aura-contact-panel__contact,
.dark .aura-contact-panel__sections > * {
  background: #29231F !important;
  border-color: #40362F !important;
}

/* Softer scrollbars */

.aura-main-sidebar,
.aura-contact-panel {
  scrollbar-color: #D8CABB transparent;
}

.dark .aura-main-sidebar,
.dark .aura-contact-panel {
  scrollbar-color: #5A4B42 transparent;
}

/* AURA_CHAT_POLISH_END */

/* AURA_DARK_REPAIR_START */

/* ==========================================
   AURA DIGITAL DARK MODE — unified surfaces
   ========================================== */

.dark,
html.dark {
  color-scheme: dark;
  --aura-dark-bg: #191614;
  --aura-dark-sidebar: #201C19;
  --aura-dark-surface: #27221F;
  --aura-dark-surface-2: #302925;
  --aura-dark-hover: #382F2A;
  --aura-dark-border: #453A33;
  --aura-dark-text: #F4EDE7;
  --aura-dark-muted: #B9ACA3;
  --aura-dark-gold: #C8A75D;
  --aura-dark-gold-soft: #8B7345;
  --aura-dark-blush: #443033;
}

/* Main application */

html.dark,
html.dark body,
.dark body,
.dark #app {
  background: var(--aura-dark-bg) !important;
  color: var(--aura-dark-text) !important;
}

/* Chatwoot generic surfaces */

.dark .bg-n-background {
  background-color: var(--aura-dark-bg) !important;
}

.dark .bg-n-solid-1,
.dark .bg-n-surface-1 {
  background-color: var(--aura-dark-surface) !important;
}

.dark .bg-n-solid-2,
.dark .bg-n-surface-2 {
  background-color: var(--aura-dark-surface-2) !important;
}

.dark .bg-n-slate-1,
.dark .bg-n-slate-2,
.dark .bg-n-slate-3,
.dark .bg-n-alpha-1 {
  background-color: var(--aura-dark-surface-2) !important;
}

/* Text contrast */

.dark .text-n-slate-12 {
  color: var(--aura-dark-text) !important;
}

.dark .text-n-slate-11 {
  color: #D5CAC2 !important;
}

.dark .text-n-slate-10,
.dark .text-n-slate-9 {
  color: var(--aura-dark-muted) !important;
}

/* Borders */

.dark .border-n-weak,
.dark .border-n-slate-3,
.dark .border-n-surface-1,
.dark .border-n-surface-2 {
  border-color: var(--aura-dark-border) !important;
}

/* LEFT SIDEBAR */

.dark .aura-main-sidebar {
  background: var(--aura-dark-sidebar) !important;
  color: var(--aura-dark-text) !important;
  border-color: var(--aura-dark-border) !important;
}

.dark .aura-main-sidebar a:not(.n-dropdown-body *),
.dark .aura-main-sidebar button:not(.n-dropdown-body *),
.dark .aura-main-sidebar span:not(.n-dropdown-body *) {
  color: #D8CEC7;
}

.dark .aura-main-sidebar a:not(.n-dropdown-body *):hover,
.dark .aura-main-sidebar button:not(.n-dropdown-body *):hover {
  background: var(--aura-dark-hover) !important;
}

.dark .aura-main-sidebar .router-link-active:not(.n-dropdown-body *),
.dark .aura-main-sidebar [aria-current="page"]:not(.n-dropdown-body *) {
  background: var(--aura-dark-blush) !important;
  color: #F8F1EB !important;
}

/* CONVERSATION LIST */

.dark .aura-conversation-card {
  background: var(--aura-dark-surface) !important;
  border-color: var(--aura-dark-border) !important;
}

.dark .aura-conversation-card:hover {
  background: var(--aura-dark-hover) !important;
}

.dark .aura-conversation-card.active {
  background: #3A2D2D !important;
  border-inline-start: 3px solid var(--aura-dark-gold) !important;
  box-shadow: inset 0 0 0 1px rgba(200,167,93,.10);
}

.dark .aura-conversation-card.selected {
  background: #332A26 !important;
}

.dark .aura-conversation-card .conversation--user {
  color: var(--aura-dark-text) !important;
}

/* CHAT HEADER */

.dark .aura-conversation-header {
  background: var(--aura-dark-surface) !important;
  border-bottom: 1px solid var(--aura-dark-border) !important;
  color: var(--aura-dark-text) !important;
  box-shadow: 0 6px 20px rgba(0,0,0,.18);
}

.dark .aura-conversation-header button {
  color: var(--aura-dark-text) !important;
}

.dark .aura-conversation-header button:hover {
  background: var(--aura-dark-hover) !important;
}

/* MESSAGE AREA */

.dark .message-bubble-container {
  color: var(--aura-dark-text);
}

/* Agent outgoing */

.dark .aura-message-bubble.bg-n-solid-blue {
  background: #59482F !important;
  border: 1px solid #755F3C !important;
  color: #FFF8EE !important;
}

/* Customer incoming */

.dark .aura-message-bubble.bg-n-slate-4 {
  background: #302A26 !important;
  border: 1px solid #493E37 !important;
  color: #F4ECE6 !important;
}

/* Bots / Templates */

.dark .aura-message-bubble.bg-n-solid-iris {
  background: #403648 !important;
  border: 1px solid #574961 !important;
  color: #F5EDF8 !important;
}

/* Private notes */

.dark .aura-message-bubble.bg-n-solid-amber {
  background: #514426 !important;
  border: 1px solid #6C5B32 !important;
  color: #F8E8BA !important;
}

/* Activity system bubbles */

.dark .aura-message-bubble.bg-n-alpha-1 {
  background: #3B3531 !important;
  color: #C9BDB5 !important;
  box-shadow: none !important;
}

/* COMPOSER */

.dark .aura-reply-box {
  background: #26211E !important;
  border: 1px solid var(--aura-dark-border) !important;
  color: var(--aura-dark-text) !important;
  box-shadow: 0 10px 28px rgba(0,0,0,.22);
}

.dark .aura-reply-box:focus-within {
  border-color: var(--aura-dark-gold-soft) !important;
  box-shadow:
    0 0 0 3px rgba(200,167,93,.08),
    0 10px 28px rgba(0,0,0,.22);
}

.dark .aura-reply-box .input,
.dark .aura-reply-box .ProseMirror,
.dark .aura-reply-box textarea {
  background: transparent !important;
  color: var(--aura-dark-text) !important;
}

.dark .aura-reply-box .ProseMirror p {
  color: var(--aura-dark-text) !important;
}

.dark .aura-reply-box button {
  color: #D6CBC4;
}

.dark .aura-reply-box button:hover {
  background: var(--aura-dark-hover);
}

.dark .aura-reply-box .send-button,
.dark .aura-reply-box button.bg-n-brand {
  background: var(--aura-dark-gold) !important;
  border-color: var(--aura-dark-gold) !important;
  color: #211B16 !important;
}

/* RIGHT CONTACT PANEL */

.dark .aura-contact-panel {
  background: var(--aura-dark-bg) !important;
  color: var(--aura-dark-text) !important;
}

.dark .aura-contact-panel__header {
  background: var(--aura-dark-surface) !important;
  border-color: var(--aura-dark-border) !important;
}

.dark .aura-contact-panel__contact,
.dark .aura-contact-panel__sections > * {
  background: var(--aura-dark-surface) !important;
  border-color: var(--aura-dark-border) !important;
  color: var(--aura-dark-text) !important;
}

.dark .aura-contact-panel input,
.dark .aura-contact-panel select,
.dark .aura-contact-panel textarea {
  background: var(--aura-dark-surface-2) !important;
  color: var(--aura-dark-text) !important;
  border-color: var(--aura-dark-border) !important;
}

/* Dropdown-like controls */

.dark [role="combobox"] {
  background: var(--aura-dark-surface-2) !important;
  color: var(--aura-dark-text) !important;
  border-color: var(--aura-dark-border) !important;
}

/* Scrollbars */

.dark * {
  scrollbar-color: #5C4D44 transparent;
}

/* AURA_DARK_REPAIR_END */



/* AURA_WORKSPACE_RAIL_START */

#aura-workspace-rail {
  position: fixed;
  inset-block: 0;
  inset-inline-start: 0;
  width: 76px;
  z-index: 80;

  display: flex;
  flex-direction: column;
  align-items: center;

  padding: 14px 10px 12px;

  background: rgba(251, 249, 245, 0.97);
  border-inline-end: 1px solid #E9E0D6;

  box-shadow: 8px 0 24px rgba(79,69,64,.035);
  backdrop-filter: blur(18px);
}

html[dir="rtl"] #aura-workspace-rail {
  box-shadow: -8px 0 24px rgba(79,69,64,.035);
}

/* AURA_RESPONSIVE_OVERRIDES_START
   This block (and its closing twin "AURA_RESPONSIVE_OVERRIDES_END"
   further down) is placed early in the file deliberately, not as the
   last block. Several base rules later in the file (.aura-rail-item,
   .aura-rail-item svg, .aura-context-header, and a pre-existing
   "#aura-workspace-rail { width: 76px !important }" identity lock) set
   the same properties this needs to override below 768px without being
   scoped to a breakpoint themselves - with equal specificity, the
   LATER-declared rule normally wins regardless of media query, which is
   why every property this touches also carries !important: that alone
   is what makes these win against those later rules, independent of
   position. Position was moved here (instead of staying the literal
   last block, which is otherwise the simplest way to guarantee winning
   a plain same-specificity tie) after live testing surfaced that the
   test tooling's own browser engine silently drops exactly one CSS rule
   whenever a single stylesheet reaches 367 total rules - reproduced
   with trivial, unrelated dummy rules at that same position, so it is
   not specific to this content. Keeping these safety-critical mobile
   rules well before that position, rather than past it, costs nothing
   and removes the risk entirely if any real device has a similar limit. */

/* Mobile navigation (<768px)
   The desktop rail+context-panel pattern (a permanent 76px strip plus
   a permanently docked 264px panel) has nowhere to go on a 375-430px
   phone. Below this breakpoint the rail shrinks to a compact icon-only
   strip instead of permanently occupying 76px, and the context panel
   (Teams/Channels/Labels/Contacts/Settings - the same sidebar Chatwoot
   already renders, just not forced open) becomes an on-demand overlay
   that brand-ui.js opens/closes itself, with a scrim behind it and a
   visible close button - not a permanent fixture competing with the
   conversation list for space. Everything here uses inset-inline-*/
   logical values so it mirrors correctly for Arabic (rtl) without a
   separate rule set. */
@media (max-width: 767px) {
  #aura-workspace-rail {
    width: 52px !important;
    padding: 10px 6px 8px;
    z-index: 30;
  }

  #aura-workspace-rail .aura-rail-brand {
    width: 36px !important;
    height: 36px !important;
  }

  #aura-workspace-rail .aura-rail-brand img {
    width: 100%;
    height: 100%;
  }

  .aura-rail-item {
    width: 40px !important;
    height: 40px !important;
    min-height: 0 !important;
    padding: 0 !important;
  }

  .aura-rail-item svg {
    width: 20px !important;
    height: 20px !important;
  }

  /* Icon-only on a 52px strip - title/aria-label still carry the name
     for assistive tech and the long-press/hover tooltip. */
  .aura-rail-item span {
    display: none;
  }

  #aura-mobile-nav-close {
    display: grid;
    place-items: center;

    width: 32px;
    height: 32px;
    flex: 0 0 auto;

    border: 0;
    border-radius: 9px;

    background: rgba(79,69,64,.08);
    color: inherit;

    font-size: 22px;
    line-height: 1;
    cursor: pointer;
  }

  .dark #aura-mobile-nav-close {
    background: rgba(255,255,255,.08);
  }

  .aura-context-header {
    align-items: flex-start !important;
    gap: 10px;
  }

  /* Hidden by default; Chatwoot's own sidebar classes already keep
     .aura-main-sidebar off-canvas below 768px (ltr:-translate-x-full /
     rtl:translate-x-full) now that the desktop-only width/margin
     override later in this file no longer fights it at this
     breakpoint. This only needs to handle the OPEN state, which this
     script's own aura-mobile-nav-open class controls independently of
     Chatwoot's internal toggle. translateX(0) is direction-neutral, so
     one rule covers both ltr and rtl. */
  html.aura-mobile-nav-open .aura-workspace-layout .aura-main-sidebar {
    transform: translateX(0) !important;
    z-index: 70 !important;

    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
  }

  #aura-mobile-nav-scrim {
    display: none;

    position: fixed;
    inset: 0;
    z-index: 65;

    background: rgba(20,16,12,.38);
  }

  html.aura-mobile-nav-open #aura-mobile-nav-scrim {
    display: block;
  }
}

@media (min-width: 768px) {
  #aura-mobile-nav-close,
  #aura-mobile-nav-scrim {
    display: none !important;
  }
}

/* AURA_RESPONSIVE_OVERRIDES_END */

/* Below 768px Chatwoot's own sidebar becomes a fixed, off-canvas drawer
   (Tailwind w-[200px] + translate-x utilities) that is NOT part of
   normal document flow, so pushing it over with a margin here is not
   needed and only fights its native mobile width/position. Confirmed
   live: <main> is always full viewport width regardless of sidebar
   state, so this offset is purely a desktop (in-flow sidebar) concern. */
@media (min-width: 768px) {
  .aura-workspace-layout .aura-main-sidebar {
    margin-inline-start: 76px !important;
  }
}

/* Mobile navigation rules were moved to the very end of this file -
   see AURA_RESPONSIVE_OVERRIDES near the bottom. Several base rules
   below (.aura-rail-item, .aura-rail-item svg, .aura-context-header)
   set the same properties without !important and appear later in this
   file than a media-query block placed here would, so - equal
   specificity, later source order wins - they silently overrode a
   same-specificity mobile override placed at this position (confirmed
   live at a 512px viewport: rail stayed 76px, rail-item 56px). Keeping
   all responsive overrides in one trailing block guarantees they are
   always the last-declared rule for every property they touch. */

.aura-rail-brand {
  width: 56px;
  height: 56px;

  display: grid;
  place-items: center;

  margin-bottom: 20px;

  border-radius: 18px;

  background:
    linear-gradient(
      145deg,
      rgba(255,255,255,.98),
      rgba(245,240,233,.92)
    );

  border: 1px solid #E5D9C9;

  box-shadow:
    0 8px 20px rgba(79,69,64,.07);
}

.aura-rail-brand img {
  width: 46px;
  height: 46px;
  object-fit: contain;
}

.aura-rail-nav {
  width: 100%;

  display: flex;
  flex-direction: column;

  gap: 8px;
}

.aura-rail-item {
  width: 56px;
  min-height: 56px;

  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;

  gap: 3px;

  padding: 7px 4px;

  border: 0;
  border-radius: 16px;

  background: transparent;

  color: #81756D;

  cursor: pointer;

  transition:
    transform .16s ease,
    background-color .16s ease,
    color .16s ease,
    box-shadow .16s ease;
}

.aura-rail-item svg {
  width: 22px;
  height: 22px;
}

.aura-rail-item span {
  font-size: 9px;
  line-height: 1;
  font-weight: 600;
}

.aura-rail-item:hover {
  transform: translateY(-1px);

  background: #F5F0E9;

  color: #594C45;
}

.aura-rail-item.is-active {
  background:
    linear-gradient(
      145deg,
      #F3E4E6,
      #F8F2EC
    );

  color: #9A7731;

  box-shadow:
    inset 0 0 0 1px rgba(185,146,63,.15),
    0 5px 14px rgba(79,69,64,.05);
}

.aura-rail-spacer {
  flex: 1;
}

.aura-rail-footer {
  width: 44px;
  height: 44px;

  display: grid;
  place-items: center;
}

.aura-rail-dot {
  width: 8px;
  height: 8px;

  border-radius: 999px;

  background: #B9923F;

  box-shadow:
    0 0 0 5px rgba(185,146,63,.12);
}

/* DARK */

.dark #aura-workspace-rail {
  background: rgba(25,22,20,.97);

  border-color: #40362F;

  box-shadow:
    8px 0 28px rgba(0,0,0,.18);
}

/* `dark` is added to <body>, not <html> (confirmed live: body class is
   "text-slate-600 dark"), so it can never be a compound/ancestor match
   against html[dir]. html[dir="rtl"] is an ancestor of body.dark, which
   is an ancestor of the rail - a plain descendant chain is correct. */
html[dir="rtl"] .dark #aura-workspace-rail {
  box-shadow:
    -8px 0 28px rgba(0,0,0,.18);
}

.dark .aura-rail-brand {
  background:
    linear-gradient(
      145deg,
      #302925,
      #211D1A
    );

  border-color: #493E36;

  box-shadow:
    0 8px 20px rgba(0,0,0,.20);
}

.dark .aura-rail-item {
  color: #B9ACA3;
}

.dark .aura-rail-item:hover {
  background: #302925;

  color: #F4EDE7;
}

.dark .aura-rail-item.is-active {
  background:
    linear-gradient(
      145deg,
      #443033,
      #352B27
    );

  color: #D0AD61;

  box-shadow:
    inset 0 0 0 1px rgba(200,167,93,.16),
    0 6px 16px rgba(0,0,0,.18);
}

/* AURA_MOBILE_SUPERVISION_AND_ACCOUNT_V3_10_CSS: account control added
   to the (previously empty) rail footer - desktop/tablet only, since
   #aura-workspace-rail itself is retired below 768px by AURA_MOBILE_V4
   (see the matching #aura-mobile-v4-account rules further down). */
#aura-rail-account {
  position: relative;
}

#aura-rail-account-trigger {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: none;
  padding: 0;
  display: grid;
  place-items: center;
  cursor: pointer;
  background: linear-gradient(145deg, #F3E4E6, #F8F2EC);
  color: #9A7731;
  font-size: 13px;
  font-weight: 700;
}

#aura-rail-account-trigger:hover {
  filter: brightness(0.97);
}

#aura-rail-account-menu {
  position: absolute;
  bottom: calc(100% + 8px);
  inset-inline-start: 0;
  width: 220px;
  background: #fffdfa;
  border: 1px solid #ece2d5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.14);
  padding: 10px;
  z-index: 90;
}

#aura-rail-account-identity {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 4px 6px 8px;
  border-bottom: 1px solid #ece2d5;
  margin-bottom: 6px;
  text-align: start;
}

#aura-rail-account-identity strong {
  font-size: 13px;
  color: #4f4540;
}

#aura-rail-account-identity span {
  font-size: 11px;
  color: #998676;
  word-break: break-all;
}

#aura-rail-account-logout {
  width: 100%;
  text-align: start;
  padding: 8px 6px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #9A7731;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

#aura-rail-account-logout:hover {
  background: #F5F0E9;
}

.dark #aura-rail-account-trigger {
  background: linear-gradient(145deg, #443033, #352B27);
  color: #D0AD61;
}

.dark #aura-rail-account-menu {
  background: #332b26;
  border-color: #51443b;
  box-shadow: 0 10px 30px rgba(0,0,0,.3);
}

.dark #aura-rail-account-identity {
  border-color: #51443b;
}

.dark #aura-rail-account-identity strong {
  color: #f3ebe5;
}

.dark #aura-rail-account-identity span {
  color: #b9aca3;
}

.dark #aura-rail-account-logout {
  color: #D0AD61;
}

.dark #aura-rail-account-logout:hover {
  background: #302925;
}

/* AURA_WORKSPACE_RAIL_END */

/* AURA_CONTEXT_PANEL_START */

/* Hide Chatwoot's duplicated brand/account row */
.aura-workspace-layout
.aura-main-sidebar
> section:first-of-type
> div:first-child {
  display: none !important;
}

/* tighten top tools */
.aura-workspace-layout
.aura-main-sidebar
> section:first-of-type {
  margin-top: 12px !important;
  margin-bottom: 12px !important;
  gap: 8px !important;
}

/* Context sidebar */
.aura-workspace-layout .aura-main-sidebar {
  background: #FBF9F5 !important;
}

/* Fixed 264px desktop width only - see the rail-width note above for
   why this is intentionally NOT applied below 768px. */
@media (min-width: 768px) {
  .aura-workspace-layout .aura-main-sidebar {
    width: 264px !important;
    min-width: 264px !important;
    max-width: 264px !important;

    margin-inline-start: 76px !important;
  }
}

/* original Chatwoot menu is retained but hidden.
   Structural selector too: Vue rewrites the nav's class
   attribute on re-render, dropping the injected class. */
.aura-original-sidebar-nav,
.aura-workspace-layout .aura-main-sidebar > nav {
  display: none !important;
}

#aura-context-panel {
  flex: 1;
  min-height: 0;

  display: flex;
  flex-direction: column;

  padding: 4px 12px 14px;

  overflow: hidden;
}

.aura-context-header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding: 8px 4px 14px;
}

.aura-context-eyebrow {
  margin-bottom: 3px;

  font-size: 10px;
  font-weight: 700;
  letter-spacing: .1em;
  text-transform: uppercase;

  color: #A18F82;
}

#aura-context-title {
  margin: 0;

  font-size: 20px;
  line-height: 1.2;
  font-weight: 700;

  color: #4F4540;
}

.aura-context-content {
  flex: 1;
  min-height: 0;

  overflow-y: auto;

  padding-inline-end: 2px;

  scrollbar-width: thin;
}

.aura-context-section {
  margin-bottom: 20px;
}

.aura-context-heading {
  padding: 0 8px;
  margin-bottom: 7px;

  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: .035em;
  text-transform: uppercase;

  color: #9A8D84;
}

.aura-context-list {
  display: flex;
  flex-direction: column;

  gap: 3px;
}

.aura-context-item {
  width: 100%;
  min-height: 38px;

  display: flex;
  align-items: center;

  gap: 10px;

  padding: 8px 10px;

  border: 1px solid transparent;
  border-radius: 11px;

  background: transparent;

  color: #625650;

  text-align: start;

  cursor: pointer;

  transition:
    background-color .16s ease,
    border-color .16s ease,
    color .16s ease,
    transform .16s ease;
}

.aura-context-item:hover {
  background: #F4EEE8;

  color: #4F4540;

  transform: translateX(1px);
}

.aura-context-item.is-active {
  background:
    linear-gradient(
      90deg,
      #F5E8EA,
      #F7F1EB
    );

  border-color: rgba(185,146,63,.16);

  color: #5B4B3D;
}

.aura-context-item-dot {
  flex: 0 0 auto;

  width: 7px;
  height: 7px;

  border-radius: 999px;

  background: #D3C5B9;
}

.aura-context-item.is-active
.aura-context-item-dot {
  background: #B9923F;

  box-shadow:
    0 0 0 4px rgba(185,146,63,.10);
}

.aura-context-item-label {
  overflow: hidden;

  font-size: 13px;
  font-weight: 550;

  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Rail remains the visual product identity (desktop only - this
   !important rule was overriding the mobile compact-rail width below
   768px regardless of source order; confirmed live: rail still
   rendered at 76px/brand at 58px at a 512px viewport before this was
   scoped). */
@media (min-width: 768px) {
  #aura-workspace-rail {
    width: 76px !important;
  }

  .aura-rail-brand {
    width: 58px !important;
    height: 58px !important;
  }
}

.aura-rail-brand img {
  width: 48px !important;
  height: 48px !important;
}

/* Dark context panel
   `dark` lives on <body>, `aura-workspace-layout` on <html> (html is
   body's ANCESTOR, never its descendant), so both variants of this
   selector were structurally impossible to match - the real bug behind
   the sidebar staying light-background-with-light-text in dark mode.
   .aura-main-sidebar only ever exists alongside our own layout, so the
   workspace-layout qualifier was never actually needed here. */
.dark .aura-main-sidebar {
  background: #201C19 !important;
}

.dark #aura-context-title {
  color: #F4EDE7;
}

.dark .aura-context-eyebrow,
.dark .aura-context-heading {
  color: #9F9086;
}

.dark .aura-context-item {
  color: #C9BEB6;
}

.dark .aura-context-item:hover {
  background: #302925;

  color: #F4EDE7;
}

.dark .aura-context-item.is-active {
  background:
    linear-gradient(
      90deg,
      #443033,
      #352C27
    );

  border-color: rgba(200,167,93,.17);

  color: #F4EDE7;
}

.dark .aura-context-item-dot {
  background: #655A52;
}

.dark
.aura-context-item.is-active
.aura-context-item-dot {
  background: #C8A75D;
}

/* AURA_CONTEXT_PANEL_END */

/* AURA_FINAL_UI_FIX_START */

.aura-context-item-dot {
  width: 9px !important;
  height: 9px !important;
  flex: 0 0 9px !important;
  border-radius: 999px !important;
  box-shadow: none !important;
  border: none !important;
}

html[data-aura-section="inbox"]
#aura-context-content {
  padding-top: 2px;
}

html[data-aura-section="labels"]
.aura-context-item {
  min-height: 46px;
}

/* AURA_FINAL_UI_FIX_END */

/* AURA_CONVERSATION_CARDS_START */

/* =========================================
   AURA CONVERSATION LIST
   ========================================= */

.aura-conversation-card {
  position: relative !important;

  width: calc(100% - 16px) !important;
  max-width: calc(100% - 16px) !important;

  margin: 5px 8px !important;

  border: 1px solid #E9E0D6 !important;
  border-radius: 15px !important;

  background: rgba(255,255,255,.88) !important;

  box-shadow:
    0 2px 8px rgba(79,69,64,.025) !important;

  overflow: hidden;

  transition:
    background-color .16s ease,
    border-color .16s ease,
    box-shadow .16s ease,
    transform .16s ease !important;
}

/* remove old Chatwoot divider behavior */
.aura-conversation-card::before {
  display: none !important;
}

.aura-conversation-card:hover {
  background: #FCF8F4 !important;

  border-color: #DDD0C2 !important;

  box-shadow:
    0 7px 20px rgba(79,69,64,.055) !important;

  transform: translateY(-1px);
}

/* selected conversation */

.aura-conversation-card.active {
  background:
    linear-gradient(
      110deg,
      #F5E9EA 0%,
      #FBF6F1 72%
    ) !important;

  border-color:
    rgba(185,146,63,.34) !important;

  box-shadow:
    inset 3px 0 0 #B9923F,
    0 8px 22px rgba(79,69,64,.055) !important;
}

.aura-conversation-card.selected {
  background: #F7F1EC !important;
  border-color: #DED1C5 !important;
}

/* inner content */

.aura-conversation-card > div:last-child {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
}

/* Avatar spacing */

.aura-conversation-card > div:first-child {
  margin-inline-start: 4px;
}

/* Name */

.aura-conversation-card .conversation--user {
  margin-inline: 10px !important;

  font-size: 14px !important;
  line-height: 1.35 !important;

  color: #4F4540 !important;
}

/* Message preview */

.aura-conversation-card .conversation--user + * {
  margin-top: 2px;
}

/* Labels */

.aura-conversation-card [class*="label"] {
  border-radius: 7px !important;
}

/* Time / metadata */

.aura-conversation-card .text-xxs {
  color: #95887F !important;
}

/* Unread cards slightly stronger */

.aura-conversation-card:has(
  [class*="unread"]
) {
  border-color: #D9C8B8 !important;
}

/* Make cards breathe inside the column */

.aura-conversation-card:first-of-type {
  margin-top: 8px !important;
}

.aura-conversation-card:last-of-type {
  margin-bottom: 12px !important;
}

/* =========================================
   DARK
   ========================================= */

.dark .aura-conversation-card {
  background: #28231F !important;

  border-color: #40362F !important;

  box-shadow:
    0 3px 9px rgba(0,0,0,.12) !important;
}

.dark .aura-conversation-card:hover {
  background: #302925 !important;

  border-color: #57483E !important;

  box-shadow:
    0 8px 22px rgba(0,0,0,.22) !important;
}

.dark .aura-conversation-card.active {
  background:
    linear-gradient(
      110deg,
      #3C2E30 0%,
      #302824 72%
    ) !important;

  border-color:
    rgba(200,167,93,.30) !important;

  box-shadow:
    inset 3px 0 0 #C8A75D,
    0 8px 24px rgba(0,0,0,.20) !important;
}

.dark .aura-conversation-card.selected {
  background: #342C27 !important;
}

.dark .aura-conversation-card .conversation--user {
  color: #F3ECE6 !important;
}

.dark .aura-conversation-card .text-xxs {
  color: #AFA198 !important;
}

/* AURA_CONVERSATION_CARDS_END */










/* AURA_NETWORK_TOAST_START */

/*
  Chatwoot network/reconnect notification.
  Move it away from the sidebar and turn it into a compact toast.
*/

.aura-network-toast {
  position: fixed !important;

  top: auto !important;
  right: auto !important;

  left: 50% !important;
  bottom: 22px !important;

  transform: translateX(-50%) !important;

  width: auto !important;
  min-width: 220px !important;
  max-width: 360px !important;

  min-height: 44px !important;
  height: auto !important;

  padding: 10px 14px !important;

  border-radius: 13px !important;

  display: flex !important;
  align-items: center !important;

  gap: 9px !important;

  color: #4F4540 !important;

  font-size: 12px !important;
  font-weight: 600 !important;

  box-shadow:
    0 12px 34px rgba(55,45,39,.16) !important;

  backdrop-filter: blur(16px) !important;

  z-index: 99999 !important;
}

/* Connected */
.aura-network-toast[data-aura-network-state="connected"] {
  background: rgba(234,251,245,.96) !important;

  border:
    1px solid #B8E8DA !important;
}

/* Reconnecting */
.aura-network-toast[data-aura-network-state="reconnecting"] {
  background: rgba(255,247,222,.97) !important;

  border:
    1px solid #E9D277 !important;
}

/* Offline */
.aura-network-toast[data-aura-network-state="offline"] {
  background: rgba(252,235,235,.97) !important;

  border:
    1px solid #E8C5C5 !important;
}

/* Keep close button compact */
.aura-network-toast button {
  width: 28px !important;
  height: 28px !important;

  min-width: 28px !important;

  margin-inline-start: auto !important;

  border-radius: 8px !important;

  background: transparent !important;
}

/* Dark */

.dark .aura-network-toast {
  color: #F4EDE7 !important;

  box-shadow:
    0 14px 38px rgba(0,0,0,.32) !important;
}

.dark
.aura-network-toast[data-aura-network-state="connected"] {
  background: rgba(38,59,53,.96) !important;
  border-color: #3E665A !important;
}

.dark
.aura-network-toast[data-aura-network-state="reconnecting"] {
  background: rgba(69,59,34,.96) !important;
  border-color: #705E31 !important;
}

.dark
.aura-network-toast[data-aura-network-state="offline"] {
  background: rgba(69,39,39,.96) !important;
  border-color: #744646 !important;
}

/* AURA_NETWORK_TOAST_END */



/* AURA_FILES_DRAWER_START */

#aura-files-panel {
  position: fixed;
  z-index: 800;
  top: 0;
  bottom: 0;
  inset-inline-start: 82px;

  width: 320px;
  padding: 20px 14px;

  overflow-y: auto;

  box-sizing: border-box;

  background: #fbf9f5;
  color: #4f4540;

  border-inline-end:
    1px solid #e9e0d6;

  box-shadow:
    8px 0 24px
    rgba(70,55,40,.05);
}

html[dir="rtl"] #aura-files-panel {
  box-shadow:
    -8px 0 24px
    rgba(70,55,40,.05);
}

#aura-files-panel[hidden] {
  display: none !important;
}

.aura-files-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;

  margin-bottom: 14px;
}

.aura-files-head h2 {
  margin: 3px 0 0;
  font-size: 25px;
}

.aura-files-kicker {
  color: #9a8b80;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: .11em;
}

.aura-files-close {
  width: 32px;
  height: 32px;

  border: 0;
  border-radius: 9px;

  background: transparent;
  color: inherit;

  font-size: 23px;
  cursor: pointer;

  transition: background-color .15s ease;
}

.aura-files-close:hover {
  background: rgba(79,69,64,.08);
}

.dark .aura-files-close:hover {
  background: rgba(255,255,255,.08);
}

.aura-files-tools {
  display: grid;
  grid-template-columns:
    repeat(3, 1fr);

  gap: 6px;
  margin-bottom: 10px;
}

.aura-files-tools button {
  padding: 8px 5px;

  border:
    1px solid #e5d9cb;

  border-radius: 9px;

  background: #fff;
  color: #4f4540;

  font-size: 12px;
  cursor: pointer;

  transition: background-color .15s ease, border-color .15s ease;
}

.aura-files-tools button:hover {
  background: #f4eee8;
  border-color: #d8c6b8;
}

.aura-files-tools .aura-upload {
  background: #9b8038;
  border-color: #9b8038;
  color: #fff;
}

.aura-files-tools .aura-upload:hover {
  background: #8a7132;
  border-color: #8a7132;
}

.aura-files-status {
  margin-bottom: 10px;
  padding: 9px 10px;

  border-radius: 9px;

  background: #edf5ea;
  color: #536746;

  font-size: 12px;
}

.aura-files-status.is-error {
  background: #fff0f0;
  color: #a34343;
}

.aura-files-folders {
  display: flex;
  gap: 6px;

  overflow-x: auto;

  padding-bottom: 10px;
}

.aura-folder {
  flex: 0 0 auto;

  padding: 7px 10px;

  border:
    1px solid #e5d9cb;

  border-radius: 999px;

  background: #fff;
  color: #6b6059;

  font-size: 12px;
  cursor: pointer;

  transition: background-color .15s ease, border-color .15s ease;
}

.aura-folder:hover {
  background: #f8f3ee;
  border-color: #d8c6b8;
}

.aura-folder.is-active {
  background: #f2e9e6;
  border-color: #d8c6b8;
}

.aura-files-tabs {
  display: grid;
  grid-template-columns: 1fr 1fr;

  gap: 5px;

  margin-bottom: 10px;
  padding: 3px;

  border:
    1px solid #e8ded3;

  border-radius: 10px;

  background: #f4f0eb;
}

.aura-files-tabs button {
  padding: 7px;

  border: 0;
  border-radius: 7px;

  background: transparent;
  color: #81756d;

  cursor: pointer;

  transition: background-color .15s ease, color .15s ease;
}

.aura-files-tabs button:hover:not(.is-active) {
  background: rgba(79,69,64,.06);
  color: #4f4540;
}

.aura-files-tabs button.is-active {
  background: #fff;
  color: #4f4540;

  box-shadow:
    0 1px 4px
    rgba(62,50,40,.08);
}

.aura-files-content {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.aura-file-card {
  display: grid;

  grid-template-columns:
    42px
    minmax(0,1fr)
    auto;

  align-items: center;

  gap: 9px;
  padding: 9px;

  border:
    1px solid #e9e0d6;

  border-radius: 11px;

  background: #fff;

  cursor: grab;
}

.aura-file-icon {
  width: 42px;
  height: 42px;

  display: grid;
  place-items: center;

  border-radius: 9px;

  background: #f4edeb;
}

.aura-file-name {
  min-width: 0;
}

.aura-file-name strong {
  display: block;

  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;

  font-size: 12px;
}

.aura-file-card button,
.aura-text-actions button {
  padding: 7px 9px;

  border:
    1px solid #d9cdbf;

  border-radius: 8px;

  background: #fff;
  color: #8c7131;

  cursor: pointer;

  transition: background-color .15s ease, border-color .15s ease;
}

.aura-file-card button:hover,
.aura-text-actions button:hover {
  background: #f8f1e6;
  border-color: #c9ab61;
}

.aura-text-card {
  padding: 11px;

  border:
    1px solid #e9e0d6;

  border-radius: 11px;

  background: #fff;

  transition: border-color .15s ease, box-shadow .15s ease;
}

.aura-text-card:hover {
  border-color: #d9cdbf;

  box-shadow:
    0 1px 6px
    rgba(70,55,40,.06);
}

.dark .aura-text-card:hover {
  border-color: #6b5c51;
}

.aura-text-card strong {
  display: block;
  margin-bottom: 6px;
}

.aura-text-card p {
  max-height: 90px;
  overflow: hidden;

  margin: 0 0 10px;

  color: #756a62;

  font-size: 12px;
  line-height: 1.5;

  white-space: pre-wrap;
}

.aura-text-actions {
  display: flex;
  gap: 6px;
}

.aura-empty {
  padding: 28px 10px;

  color: #91857c;

  text-align: center;
  font-size: 12px;
}

#aura-text-modal {
  position: fixed;
  z-index: 100001;

  inset: 0;

  display: grid;
  place-items: center;

  padding: 20px;

  background:
    rgba(55,47,42,.26);

  backdrop-filter: blur(3px);
}

.aura-text-modal {
  width: min(
    480px,
    calc(100vw - 40px)
  );

  padding: 18px;

  box-sizing: border-box;

  border:
    1px solid #e7ddd2;

  border-radius: 14px;

  background: #fff;

  box-shadow:
    0 18px 60px
    rgba(54,43,35,.18);
}

.aura-modal-head {
  display: flex;
  justify-content: space-between;

  margin-bottom: 14px;
}

.aura-modal-head button {
  border: 0;
  background: transparent;

  font-size: 22px;
  cursor: pointer;
}

.aura-text-modal label {
  display: flex;
  flex-direction: column;

  gap: 6px;
  margin-bottom: 12px;

  color: #756a62;

  font-size: 12px;
}

.aura-text-modal input,
.aura-text-modal textarea {
  width: 100%;
  padding: 10px;

  box-sizing: border-box;

  border:
    1px solid #ddd2c7;

  border-radius: 9px;

  font: inherit;
}

.aura-save-text {
  width: 100%;
  padding: 10px;

  border: 0;
  border-radius: 9px;

  background: #9b8038;
  color: #fff;

  cursor: pointer;

  transition: background-color .15s ease;
}

.aura-save-text:hover {
  background: #8a7132;
}

#aura-files-drop-zone {
  position: fixed;
  z-index: 99999;

  top: 18px;
  inset-inline-end: 18px;
  bottom: 18px;
  inset-inline-start: 415px;

  display: grid;
  place-items: center;

  border:
    2px dashed #b9923f;

  border-radius: 18px;

  background:
    rgba(251,249,245,.92);
}

#aura-files-drop-zone > div {
  padding: 22px 34px;

  border-radius: 13px;

  background: #fff;

  text-align: center;
}

#aura-files-drop-zone strong,
#aura-files-drop-zone span {
  display: block;
}

#aura-files-drop-zone strong {
  color: #8f742f;
  font-size: 19px;
}

/* DARK */

.dark #aura-files-panel {
  background: #302b28;
  border-color: #50463f;
  color: #eee7df;
}

.dark .aura-file-card,
.dark .aura-text-card,
.dark .aura-folder,
.dark .aura-files-tools button,
.dark .aura-text-actions button {
  background: #3b342f;
  border-color: #554b43;
  color: #eee7df;
}

.dark .aura-folder:hover,
.dark .aura-files-tools button:hover,
.dark .aura-file-card button:hover,
.dark .aura-text-actions button:hover,
.dark .aura-files-tabs button:hover:not(.is-active) {
  background: #473f38;
  border-color: #6b5c51;
}

.dark .aura-files-tools .aura-upload:hover {
  background: #8a7132;
  border-color: #8a7132;
}

.dark .aura-save-text:hover {
  background: #8a7132;
}

.dark .aura-send-selected:hover:not(:disabled) {
  background: #8f7a3a;
}

.dark .aura-delete-actions button[data-cancel]:hover {
  background: rgba(255,255,255,.08);
}

.dark .aura-text-modal {
  background: #38322e;
  color: #eee7df;
}

.dark .aura-text-modal input,
.dark .aura-text-modal textarea {
  background: #302b28;
  border-color: #554b43;
  color: #eee7df;
}

/* Mobile: the panel's desktop math (inset-inline-start: 82px, 320px
   wide) assumes room beside the rail that a 375-430px phone doesn't
   have (82+320 already exceeds a 390px viewport). Make it a full-width
   drawer instead - it already sits above the rail/sidebar (z-index 800
   beats both), so covering them while open is expected, not a bug. */
@media (max-width: 767px) {
  #aura-files-panel {
    inset-inline-start: 0;
    width: 100%;
    max-width: 100%;

    padding: 16px 14px;
  }

  #aura-files-drop-zone {
    inset-inline-start: 16px;
    inset-inline-end: 16px;
  }
}

/* AURA_FILES_DRAWER_END */

/* AURA_FILE_MULTI_SELECT_START */

.aura-file-selection-bar {
  display: grid;
  grid-template-columns:
    auto
    1fr
    auto;

  align-items: center;

  gap: 8px;

  margin-bottom: 10px;

  padding: 8px 9px;

  border:
    1px solid #e9e0d6;

  border-radius: 10px;

  background: #f8f4ef;
}

.aura-select-all {
  display: flex;
  align-items: center;

  gap: 6px;

  color: #675b53;

  font-size: 11px;

  cursor: pointer;
}

.aura-select-all input,
.aura-file-check input {
  width: 16px;
  height: 16px;

  accent-color: #a48c44;

  cursor: pointer;
}

.aura-selected-count {
  color: #97887c;

  font-size: 10px;
}

.aura-send-selected {
  padding: 7px 9px;

  border: 0;

  border-radius: 8px;

  background: #a48c44;

  color: #fff;

  font-size: 11px;
  font-weight: 700;

  cursor: pointer;

  transition: background-color .15s ease;
}

.aura-send-selected:hover:not(:disabled) {
  background: #8f7a3a;
}

.aura-send-selected:disabled {
  opacity: .38;

  cursor: default;
}

.aura-file-list {
  display: flex;
  flex-direction: column;

  gap: 8px;
}

.aura-file-card {
  grid-template-columns:
    20px
    42px
    minmax(0, 1fr)
    auto !important;

  transition:
    border-color .15s ease,
    background .15s ease,
    box-shadow .15s ease;
}

.aura-file-card:hover:not(.is-selected) {
  border-color: #d9cdbf;
  background: #faf8f4;
}

.aura-file-card.is-selected {
  border-color:
    rgba(164, 140, 68, .65);

  background: #faf6ed;

  box-shadow:
    0 0 0 2px
    rgba(164, 140, 68, .10);
}

.dark .aura-file-card:hover:not(.is-selected) {
  background: #423a33;
}

.aura-file-check {
  display: grid;

  place-items: center;

  cursor: pointer;
}

.aura-single-send {
  white-space: nowrap;
}

.dark .aura-file-selection-bar {
  background: #332c27;

  border-color: #50463f;
}

.dark .aura-file-card.is-selected {
  background: #463c33;

  border-color: #a48c44;
}

/* AURA_FILE_MULTI_SELECT_END */

/* AURA_MODAL_THEME_START */

.aura-modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 999999;

  display: flex;
  align-items: center;
  justify-content: center;

  padding: 24px;

  background:
    rgba(30, 24, 20, 0.34);

  backdrop-filter: blur(4px);
}

.aura-modal {
  width: min(
    560px,
    calc(100vw - 32px)
  );

  overflow: hidden;

  border:
    1px solid
    rgba(168, 145, 112, 0.20);

  border-radius: 24px;

  background: #f8f4ef;
  color: #4f433b;

  box-shadow:
    0 22px 60px
    rgba(39, 30, 21, 0.18);

  font-family: inherit;
}

.aura-modal__header {
  display: flex;
  align-items: center;
  justify-content: space-between;

  padding:
    22px 24px 14px;
}

.aura-modal__title {
  margin: 0;

  color: #4b4037;

  font-size: 24px;
  font-weight: 800;
}

.aura-modal__close {
  padding: 0;

  border: 0;

  background: transparent;
  color: #8d7c6d;

  font-size: 27px;

  cursor: pointer;
}

.aura-modal__body {
  padding:
    0 24px 20px;
}

.aura-modal__label {
  display: block;

  margin-bottom: 8px;

  color: #7d6d60;

  font-size: 13px;
  font-weight: 700;
}

.aura-modal__input,
.aura-modal__textarea {
  width: 100%;

  box-sizing: border-box;

  border:
    1px solid
    rgba(168, 145, 112, 0.24);

  border-radius: 14px;

  outline: none;

  background: #fffdfc;
  color: #4f433b;

  font: inherit;

  transition: .18s ease;
}

.aura-modal__input {
  height: 52px;

  padding:
    0 15px;

  font-size: 16px;
}

.aura-modal__textarea {
  min-height: 145px;

  padding:
    14px 15px;

  resize: vertical;

  font-size: 15px;
  line-height: 1.6;
}

.aura-modal__input:focus,
.aura-modal__textarea:focus {
  border-color:
    rgba(160, 138, 77, 0.72);

  box-shadow:
    0 0 0 4px
    rgba(191, 196, 255, 0.22);
}

.aura-modal__hint {
  margin-top: 9px;

  color: #a18f84;

  font-size: 12px;
}

.aura-modal__footer {
  display: flex;
  justify-content: flex-end;

  gap: 10px;

  padding:
    0 24px 24px;
}

.aura-modal .aura-btn {
  min-width: 110px;
  height: 46px;

  padding:
    0 16px;

  border:
    1px solid transparent;

  border-radius: 14px;

  font: inherit;
  font-size: 14px;
  font-weight: 700;

  cursor: pointer;

  transition: .18s ease;
}

.aura-modal .aura-btn--ghost {
  border-color:
    rgba(168, 145, 112, 0.16);

  background: #efe9e2;
  color: #6a5a4d;
}

.aura-modal .aura-btn--ghost:hover {
  background: #e8e0d8;
}

.aura-modal .aura-btn--primary {
  background: #a48c44;
  color: #fff;
}

.aura-modal .aura-btn--primary:hover {
  background: #927b39;
}

.aura-modal .aura-btn--danger {
  background: #d46b6b;
  color: #fff;
}

/* DARK MODE */

.dark .aura-modal-backdrop {
  background:
    rgba(12, 10, 9, 0.58);
}

.dark .aura-modal {
  border-color:
    rgba(232, 216, 201, 0.08);

  background: #261f1a;
  color: #f1e8e0;
}

.dark .aura-modal__title {
  color: #f5eee8;
}

.dark .aura-modal__label,
.dark .aura-modal__hint {
  color: #b7a89c;
}

.dark .aura-modal__input,
.dark .aura-modal__textarea {
  border-color:
    rgba(255,255,255,0.08);

  background: #2f2722;
  color: #f5eee8;
}

.dark .aura-modal .aura-btn--ghost {
  border-color:
    rgba(255,255,255,0.08);

  background: #3a302a;
  color: #efe6de;
}

/* AURA_MODAL_THEME_END */

/* AURA_UNIFIED_CONVERSATION_TABS_START */

.aura-conversation-tabs {
  width: calc(100% - 24px);

  margin: 2px 12px 10px;
  padding: 3px;

  display: flex;
  align-items: center;

  gap: 2px;

  box-sizing: border-box;

  overflow-x: auto;
  overflow-y: hidden;

  scrollbar-width: none;

  border-radius: 13px;

  background: #f2efeb;

  white-space: nowrap;
}

.aura-conversation-tabs::-webkit-scrollbar {
  display: none;
}

.aura-conversation-tab {
  min-width: 0;
  height: 34px;

  flex: 1 1 0;

  display: inline-flex;
  align-items: center;
  justify-content: center;

  gap: 5px;

  padding: 0 7px;

  border: 0;
  border-radius: 9px;

  background: transparent;

  color: #766d67;

  font: inherit;
  font-size: 12px;
  font-weight: 600;

  line-height: 1;

  cursor: pointer;

  transition:
    background 120ms ease,
    color 120ms ease,
    box-shadow 120ms ease;
}

.aura-conversation-tab:hover {
  background: rgba(255,255,255,.55);
}

.aura-conversation-tab.is-active {
  background: #ffffff;

  color: #4f4540;

  box-shadow:
    0 1px 5px
    rgba(70,58,48,.08);
}

.aura-conversation-tabs__divider {
  width: 1px;
  height: 22px;

  flex: 0 0 1px;

  margin: 0 2px;

  background: #ded8d1;
}

.aura-conversation-tab__dot {
  width: 7px;
  height: 7px;

  min-width: 7px;

  border-radius: 999px;
}

.aura-conversation-tab--open
.aura-conversation-tab__dot {
  background: #b2f9e7;
}

.aura-conversation-tab--pending
.aura-conversation-tab__dot {
  background: #efcc60;
}

.aura-conversation-tab--resolved
.aura-conversation-tab__dot {
  background: #bfc4ff;
}


/* DARK MODE */

.dark .aura-conversation-tabs {
  background: #342f2b;
}

.dark .aura-conversation-tab {
  color: #cfc5bd;
}

.dark .aura-conversation-tab:hover {
  background: rgba(255,255,255,.06);
}

.dark .aura-conversation-tab.is-active {
  background: #463d36;
  color: #f3ece6;
}

.dark .aura-conversation-tabs__divider {
  background: rgba(255,255,255,.12);
}


/* Narrow conversation column */
@media (max-width: 1200px) {
  .aura-conversation-tab {
    padding-left: 5px;
    padding-right: 5px;

    font-size: 11px;
  }
}

/* AURA_UNIFIED_CONVERSATION_TABS_END */

/* AURA_UNIFIED_TABS_GRID_FIX_START */

/* Compact center filter block: scope row (Mine / All / Unread) above the
   status row (Open / Pending / Resolved). Six columns keep both rows full:
   three scope tabs span 2 columns each, two scope tabs span 3 each. */
.aura-conversation-tabs {
  display: grid !important;
  grid-template-columns: repeat(6, minmax(0, 1fr)) !important;

  width: calc(100% - 20px) !important;

  height: auto !important;

  margin: 6px 10px 8px !important;
  padding: 3px !important;

  gap: 3px !important;

  overflow: visible !important;

  border-radius: 12px !important;
}

.aura-conversation-tab {
  grid-column: span 2;

  width: 100% !important;
  min-width: 0 !important;
  height: 30px !important;

  padding: 0 6px !important;

  font-size: 12px !important;

  overflow: hidden !important;
  white-space: nowrap !important;
  text-overflow: ellipsis !important;
}

.aura-conversation-tabs--two-scope .aura-conversation-tab--scope {
  grid-column: span 3;
}

.aura-conversation-tabs__divider {
  display: none !important;
}

.aura-conversation-tab--status {
  border-top:
    1px solid rgba(120, 100, 85, 0.08) !important;
}

.dark .aura-conversation-tab--status {
  border-top-color:
    rgba(255,255,255,0.07) !important;
}

/* AURA_UNIFIED_TABS_GRID_FIX_END */



/* AURA_FILE_CONTEXT_MENU_CSS_START */

.aura-file-context-menu {
  position: fixed;
  z-index: 2147483000;

  width: 170px;

  padding: 6px;

  border: 1px solid
    var(--aura-border, #e9e0d6);

  border-radius: 12px;

  background:
    var(--aura-surface, #fff);

  box-shadow:
    0 12px 38px
    rgba(40, 30, 20, 0.16);
}

.aura-file-context-menu button {
  width: 100%;
  height: 36px;

  padding: 0 10px;

  border: 0;
  border-radius: 8px;

  display: flex;
  align-items: center;

  background: transparent;

  color:
    var(--aura-text, #4f4540);

  font-size: 13px;
  text-align: start;

  cursor: pointer;
}

.aura-file-context-menu button:hover {
  background:
    var(--aura-cream, #f5f0e9);
}

.aura-file-context-menu button.is-danger {
  color: #b42318;
}

.aura-file-context-menu button.is-danger:hover {
  background: #fff1f0;
}

.aura-delete-message {
  padding: 4px 0 14px;

  color:
    var(--aura-muted, #81756d);

  font-size: 13px;
  line-height: 1.5;
}

.aura-delete-actions {
  display: flex;
  justify-content: flex-end;

  gap: 8px;
}

.aura-delete-actions button {
  min-height: 36px;

  padding: 0 14px;

  border-radius: 9px;

  transition: background-color .15s ease;

  cursor: pointer;
}

.aura-danger-button {
  border: 0 !important;

  background: #b42318 !important;
  color: #fff !important;

  transition: background-color .15s ease;
}

.aura-danger-button:hover {
  background: #93271e !important;
}

.aura-delete-actions button[data-cancel]:hover {
  background: rgba(79,69,64,.06);
}

.dark .aura-file-context-menu {
  border-color:
    rgba(255,255,255,.10);

  background: #2f2925;

  box-shadow:
    0 14px 40px
    rgba(0,0,0,.35);
}

.dark .aura-file-context-menu button {
  color: #f0e8e2;
}

.dark .aura-file-context-menu button:hover {
  background:
    rgba(255,255,255,.06);
}

.dark
.aura-file-context-menu
button.is-danger {
  color: #ffb4ab;
}

.dark
.aura-file-context-menu
button.is-danger:hover {
  background:
    rgba(255,80,70,.12);
}

/* AURA_FILE_CONTEXT_MENU_CSS_END */


/* AURA_SIDEBAR_ALIGN_START */

/* The Aura panel is always 264px, but Chatwoot still renders its
   collapsed-mode toolbar and footer (centered) when the saved width is 56px.
   Align those two rows to the same left edge as the Aura list. */
.aura-workspace-layout .aura-main-sidebar > section:first-of-type > div:last-child {
  align-items: flex-start !important;

  padding-inline: 12px !important;
}

.aura-workspace-layout .aura-main-sidebar > section:last-of-type > div:not(.pointer-events-none) {
  justify-content: flex-start !important;

  padding-inline: 12px !important;
}

/* AURA_SIDEBAR_ALIGN_END */

/* AURA_PROFILE_FOOTER_VISIBLE_START */

/* Chatwoot's own sidebar footer (avatar + agent name/email) can end up
   with its text column squeezed to near-zero width by native flex/truncate
   rules when the sidebar isn't at full width, hiding the name and email
   even though the text is still in the DOM. Force a sane minimum width so
   it always renders. */
.aura-main-sidebar > section:last-of-type button {
  min-width: 0;
}

.aura-main-sidebar > section:last-of-type button > div.min-w-0 {
  min-width: 120px !important;
}

.aura-main-sidebar > section:last-of-type button .truncate {
  min-width: 100px !important;

  overflow: visible !important;

  text-overflow: clip !important;
}

/* AURA_PROFILE_FOOTER_VISIBLE_END */

/* AURA_TOOLBAR_ROW_START */

/* Search and compose sit side by side on one row. */
.aura-workspace-layout .aura-main-sidebar > section:first-of-type > div:last-child {
  flex-direction: row !important;
  align-items: center !important;

  gap: 8px !important;
}

/* AURA_TOOLBAR_ROW_END */

/* AURA RTL TIMESTAMP FIX */
html[dir="rtl"] .aura-conversation-card > div:last-child > div.absolute.flex.flex-col {
  left: 12px !important;
  right: auto !important;
  width: max-content !important;
  max-width: calc(100% - 64px) !important;
  align-items: flex-start !important;
}

html[dir="rtl"] .aura-conversation-card > div:last-child > div.absolute.flex.flex-col > span,
html[dir="rtl"] .aura-conversation-card > div:last-child > div.absolute.flex.flex-col > span > div {
  margin-left: 0 !important;
  margin-right: 0 !important;
}

/* AURA_REDUCED_MOTION_START */

@media (prefers-reduced-motion: reduce) {
  #aura-workspace-rail *,
  #aura-context-panel *,
  #aura-files-panel *,
  .aura-main-sidebar *,
  .aura-conversation-card,
  .aura-conversation-tab {
    transition-duration: .001ms !important;
    animation-duration: .001ms !important;
    animation-iteration-count: 1 !important;
  }

  .aura-rail-item:hover {
    transform: none !important;
  }
}

/* AURA_REDUCED_MOTION_END */



/* AURA_MOBILE_LAYOUT_FIX_20261107 */
@media screen and (max-width: 767px) {
  html, body, #app {
    max-width: 100%;
    overflow-x: clip;
  }

  .aura-workspace-layout,
  .aura-workspace-layout main {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .aura-chat-list-header-native {
    display: flex !important;
    flex-direction: column !important;
    align-items: stretch !important;
    height: auto !important;
    min-height: 0 !important;
    gap: 8px !important;
    padding: 10px 8px !important;
    box-sizing: border-box !important;
  }

  .aura-chat-list-header-native > div {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .aura-chat-list-header-native > div:last-child {
    display: flex !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    gap: 5px !important;
  }

  .aura-basic-filter {
    min-width: 0 !important;
    max-width: 100% !important;
  }

  .aura-native-status-tabs {
    display: flex !important;
    max-width: 100% !important;
    min-width: 0 !important;
    gap: 4px !important;
  }

  .aura-native-status {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    padding: 7px 8px !important;
    font-size: 12px !important;
    line-height: 1.25 !important;
    white-space: nowrap !important;
  }

  .aura-conversation-tabs {
    width: calc(100% - 12px) !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    margin: 6px !important;
    gap: 4px !important;
  }

  .aura-conversation-tab {
    grid-column: auto !important;
    min-width: 0 !important;
    font-size: 12px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
}

/* AURA_MOBILE_DRAWER_FIX_20261107 */
@media screen and (max-width: 767px) {
  html, body {
    max-width: 100% !important;
    overflow-x: hidden !important;
  }

  #aura-workspace-rail {
    display: none !important;
  }

  .aura-workspace-layout {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    padding-inline: 0 !important;
  }

  .aura-workspace-layout main {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    margin-inline: 0 !important;
    padding-inline-start: 0 !important;
  }

  #aura-mobile-drawer-toggle {
    display: grid !important;
    place-items: center;
    position: fixed;
    inset-inline-end: 12px;
    bottom: calc(14px + env(safe-area-inset-bottom));
    z-index: 1080;
    width: 46px;
    height: 46px;
    border: 1px solid #cbbda7;
    border-radius: 15px;
    background: #f8f4ef;
    color: #57483d;
    box-shadow: 0 4px 18px rgba(0,0,0,.16);
    font-size: 23px;
    cursor: pointer;
  }

  .dark #aura-mobile-drawer-toggle {
    background: #38322e;
    color: #fff;
  }

  html.aura-mobile-nav-open #aura-mobile-drawer-toggle {
    display: none !important;
  }

  html.aura-mobile-nav-open #aura-mobile-nav-scrim {
    display: block !important;
    z-index: 1090 !important;
  }

  html.aura-mobile-nav-open .aura-workspace-layout .aura-main-sidebar {
    display: flex !important;
    visibility: visible !important;
    position: fixed !important;
    inset-inline-start: 0 !important;
    inset-block-start: 0 !important;
    inset-block-end: 0 !important;
    width: min(86vw, 320px) !important;
    max-width: min(86vw, 320px) !important;
    margin: 0 !important;
    transform: translateX(0) !important;
    z-index: 1095 !important;
    overflow-y: auto !important;
  }
}

@media screen and (min-width: 768px) {
  #aura-mobile-drawer-toggle {
    display: none !important;
  }
}

/* AURA_MOBILE_CLOSE_FILTER_FIX_20261107_V2 */
@media screen and (max-width: 767px) {
  /* The closed state must override Chatwoot's stale native drawer state. */
  html:not(.aura-mobile-nav-open) .aura-workspace-layout .aura-main-sidebar {
    transform: translateX(-110%) !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
  html[dir="rtl"]:not(.aura-mobile-nav-open) .aura-workspace-layout .aura-main-sidebar {
    transform: translateX(110%) !important;
  }
  html.aura-mobile-nav-open .aura-workspace-layout .aura-main-sidebar {
    visibility: visible !important;
    pointer-events: auto !important;
  }
  #aura-mobile-nav-close {
    position: relative !important;
    z-index: 1101 !important;
    pointer-events: auto !important;
    touch-action: manipulation;
    cursor: pointer !important;
  }
  #aura-mobile-nav-scrim {
    touch-action: manipulation;
  }
  #aura-mobile-drawer-toggle {
    touch-action: manipulation;
  }

  /* Chatwoot teleports the advanced filter into a container inside
     ChatListHeader. Anchor it to the PHONE viewport, not the button. */
  #conversationFilterTeleportTarget,
  #saveFilterTeleportTarget {
    position: fixed !important;
    inset-inline-start: 12px !important;
    inset-inline-end: 12px !important;
    inset-block-start: max(62px, env(safe-area-inset-top)) !important;
    inset-block-end: auto !important;
    left: 12px !important;
    right: 12px !important;
    top: max(62px, env(safe-area-inset-top)) !important;
    width: auto !important;
    max-width: calc(100vw - 24px) !important;
    height: auto !important;
    max-height: calc(100dvh - 84px) !important;
    z-index: 1205 !important;
    transform: none !important;
  }
  #conversationFilterTeleportTarget > *,
  #saveFilterTeleportTarget > * {
    position: relative !important;
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    max-height: calc(100dvh - 90px) !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    padding: 14px !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #conversationFilterTeleportTarget > * .flex,
  #saveFilterTeleportTarget > * .flex {
    min-width: 0;
    flex-wrap: wrap;
  }
  .aura-chat-list-header-native,
  .conversations-list-wrap {
    overflow: visible !important;
  }
}
/* AURA_MOBILE_V4_START: independent drawer and body-level filters */
@media screen and (max-width: 767px) {
  /* Retire the two legacy mobile drawers. They competed with one another. */
  #aura-workspace-rail,
  #aura-mobile-drawer-toggle,
  #aura-mobile-nav-scrim,
  html.aura-mobile-nav-open #aura-mobile-nav-scrim,
  .aura-workspace-layout .aura-main-sidebar,
  html.aura-mobile-nav-open .aura-workspace-layout .aura-main-sidebar {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }

  html.aura-mobile-v4-open body { overflow: hidden !important; }

  #aura-mobile-v4-launch {
    display: grid !important;
    place-items: center;
    position: fixed !important;
    inset-inline-start: 10px !important;
    bottom: calc(12px + env(safe-area-inset-bottom, 0px)) !important;
    z-index: 2100 !important;
    width: 46px !important;
    height: 46px !important;
    border-radius: 14px !important;
    box-shadow: 0 6px 22px rgba(0,0,0,.16) !important;
    cursor: pointer;
    touch-action: manipulation;

    /* AURA_MOBILE_V4_LAUNCHER_GOLD_V3_18: the brand's own gold, not the
       cream/dark neutral this had before - back to a plain hamburger
       glyph (V3.17), so no need for the V3.14 dot-spacing tweak either. */
    border: 1px solid var(--aura-gold, #B9923F) !important;
    background: var(--aura-gold, #B9923F) !important;
    color: #fff !important;
    font-size: 21px !important;
  }
  .dark #aura-mobile-v4-launch {
    background: var(--aura-dark-gold, #C8A75D) !important;
    color: #fff !important;
    border-color: var(--aura-dark-gold, #C8A75D) !important;
  }
  html.aura-mobile-v4-open #aura-mobile-v4-launch { display: none !important; }
  body:has(textarea:focus, [contenteditable="true"]:focus) #aura-mobile-v4-launch {
    display: none !important;
  }

  #aura-mobile-v4-overlay {
    position: fixed !important;
    inset: 0 !important;
    z-index: 2190 !important;
    display: none !important;
    pointer-events: none !important;
  }
  html.aura-mobile-v4-open #aura-mobile-v4-overlay {
    display: block !important;
    pointer-events: auto !important;
  }
  #aura-mobile-v4-shade {
    position: absolute;
    inset: 0;
    background: rgba(10,9,8,.54);
  }
  #aura-mobile-v4-drawer {
    position: absolute !important;
    inset-block: 0 !important;
    inset-inline-start: 0 !important;
    box-sizing: border-box !important;
    width: min(90vw, 354px) !important;
    max-width: 100vw !important;
    display: flex !important;
    flex-direction: column !important;
    gap: 10px !important;
    padding: max(16px, env(safe-area-inset-top, 0px)) 14px max(18px, env(safe-area-inset-bottom, 0px)) !important;
    background: #fbf9f5 !important;
    color: #4f4540 !important;
    box-shadow: 0 0 30px rgba(0,0,0,.18);
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
    direction: inherit;
  }
  .dark #aura-mobile-v4-drawer {
    background: #27211d !important;
    color: #f3ebe5 !important;
  }
  #aura-mobile-v4-head {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
  }
  #aura-mobile-v4-title { margin: 0; font-size: 19px; font-weight: 700; }
  #aura-mobile-v4-close {
    flex: 0 0 auto;
    display: grid;
    place-items: center;
    width: 44px;
    height: 44px;
    border-radius: 12px;
    border: 1px solid #e3d8c8;
    background: transparent;
    color: inherit;
    font-size: 27px;
    cursor: pointer;
    touch-action: manipulation;
  }
  #aura-mobile-v4-categories {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .aura-mobile-v4-category,
  .aura-mobile-v4-link {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    box-sizing: border-box;
    min-width: 0;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ece2d5;
    border-radius: 12px;
    background: #fffdfa;
    color: inherit;
    text-align: start;
    font-size: 14px;
    cursor: pointer;
    touch-action: manipulation;
  }
  .dark .aura-mobile-v4-category,
  .dark .aura-mobile-v4-link {
    background: #332b26;
    border-color: #51443b;
  }
  .aura-mobile-v4-category[aria-pressed="true"] {
    border-color: #b49d61;
    background: #f3ede0;
    font-weight: 700;
  }
  .dark .aura-mobile-v4-category[aria-pressed="true"] { background: #463b2e; }
  .aura-mobile-v4-category svg { width: 20px; height: 20px; flex: 0 0 20px; }
  /* AURA_MOBILE_V4_CATEGORY_HIDDEN_FIX_V1: the display:flex !important
     rule above defeats the browser's default [hidden]{display:none}
     for this element, so a role-gated category (e.g. Supervision for
     a non-supervisor) rendered visible anyway despite JS correctly
     setting hidden=true. */
  .aura-mobile-v4-category[hidden] { display: none !important; }
  #aura-mobile-v4-links {
    display: flex;
    flex-direction: column;
    gap: 7px;
    min-height: 0;
  }
  #aura-mobile-v4-section-title {
    font-size: 12px;
    color: #998676;
    padding-block: 5px 2px;
    margin: 0;
  }
  .aura-mobile-v4-link { width: 100%; }

  /* AURA_MOBILE_SUPERVISION_AND_ACCOUNT_V3_10_CSS: account row at the
     foot of the V4 drawer - the only reachable account/logout control
     on phones, since .aura-main-sidebar and #aura-workspace-rail are
     both retired below 768px. */
  #aura-mobile-v4-account {
    margin-top: auto;
    padding-top: 10px;
    border-top: 1px solid #ece2d5;
    display: flex;
    flex-direction: column;
    gap: 8px;
  }
  .dark #aura-mobile-v4-account {
    border-color: #51443b;
  }
  #aura-mobile-v4-account-identity {
    display: flex;
    flex-direction: column;
    gap: 2px;
    padding: 0 2px;
  }
  #aura-mobile-v4-account-identity strong {
    font-size: 14px;
  }
  #aura-mobile-v4-account-identity span {
    font-size: 12px;
    color: #998676;
    word-break: break-all;
  }
  #aura-mobile-v4-account-logout {
    width: 100%;
    min-height: 46px;
    padding: 10px 12px;
    border: 1px solid #ece2d5;
    border-radius: 12px;
    background: #fffdfa;
    color: #9A7731;
    font-size: 14px;
    font-weight: 600;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
  }
  .dark #aura-mobile-v4-account-logout {
    background: #332b26;
    border-color: #51443b;
    color: #D0AD61;
  }

  /* AURA_MOBILE_FULL_PROFILE_MENU_V3_13_CSS: the account row now opens
     the real SidebarProfileMenu dropdown instead of a standalone Logout
     button (#aura-mobile-v4-account-logout above is now unused but left
     in place - harmless, nothing renders that id anymore). */
  #aura-mobile-v4-account-trigger {
    display: flex;
    flex-direction: column;
    width: 100%;
    margin: 0;
    padding: 0;
    background: transparent;
    border: none;
    text-align: start;
    cursor: pointer;
    touch-action: manipulation;
  }

  /* Briefly un-hides .aura-main-sidebar down to just its footer, long
     enough for a real click on SidebarProfileMenu's own trigger to open
     its dropdown at a usable position - see openNativeMenu() in
     aura-v2-brand-ui-20261112.js. Three classes beats the two-class
     hide rule above on specificity, regardless of source order. */
  .aura-workspace-layout .aura-main-sidebar.aura-mobile-reveal-sidebar {
    display: flex !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
    position: fixed !important;
    inset: auto 0 0 0 !important;
    top: auto !important;
    height: auto !important;
    width: 100% !important;
    max-width: 100% !important;
    z-index: 2200 !important;
  }

  .aura-workspace-layout .aura-main-sidebar.aura-mobile-reveal-sidebar > section:first-of-type,
  .aura-workspace-layout .aura-main-sidebar.aura-mobile-reveal-sidebar > #aura-context-panel,
  .aura-workspace-layout .aura-main-sidebar.aura-mobile-reveal-sidebar > nav {
    display: none !important;
  }

  /* These targets are teleported to <body> by the revised Vue component,
     so viewport-fixed positioning no longer has a transformed ancestor. */
  body > #conversationFilterTeleportTarget,
  body > #saveFilterTeleportTarget {
    position: fixed !important;
    inset-inline-start: 12px !important;
    inset-inline-end: 12px !important;
    left: 12px !important;
    right: 12px !important;
    top: max(56px, env(safe-area-inset-top, 0px)) !important;
    bottom: auto !important;
    width: auto !important;
    max-width: none !important;
    max-height: calc(100dvh - 76px) !important;
    margin: 0 !important;
    padding: 0 !important;
    transform: none !important;
    z-index: 2250 !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    -webkit-overflow-scrolling: touch;
    overscroll-behavior: contain;
  }
  body > #conversationFilterTeleportTarget:empty,
  body > #saveFilterTeleportTarget:empty { display: none !important; }
  body > #conversationFilterTeleportTarget > [dir],
  body > #saveFilterTeleportTarget > [dir] {
    width: 100% !important;
    max-width: 100% !important;
  }
  body > #conversationFilterTeleportTarget > [dir] > *,
  body > #saveFilterTeleportTarget > [dir] > * {
    box-sizing: border-box !important;
    width: 100% !important;
    max-width: 100% !important;
    padding: 14px !important;
  }
  .conversations-list-wrap { min-width: 0 !important; max-width: 100vw !important; }
}
@media screen and (min-width: 768px) {
  #aura-mobile-v4-launch,
  #aura-mobile-v4-overlay { display: none !important; }
}
/* AURA_MOBILE_V4_END */

/* AURA_MOBILE_V4_NAV_RETURN_FIX_20261107 */
@media screen and (max-width: 767px) {
  /* Keep navigation available on the Files screen, above its drawer. */
  #aura-mobile-v4-launch {
    inset-inline-start: auto !important;
    inset-inline-end: 10px !important;
    width: 44px !important;
    height: 44px !important;
    z-index: 2800 !important;
  }
  #aura-mobile-v4-overlay { z-index: 2900 !important; }

  /* File list remains fully inside the phone, with its own vertical scroll. */
  #aura-files-panel {
    width: 100% !important;
    max-width: 100vw !important;
    min-width: 0 !important;
    inset-inline-start: 0 !important;
    inset-inline-end: 0 !important;
    box-sizing: border-box !important;
    overflow-x: hidden !important;
    overflow-y: auto !important;
    overscroll-behavior: contain;
    -webkit-overflow-scrolling: touch;
  }
  #aura-files-panel .aura-file-card,
  #aura-files-panel .aura-files-content,
  #aura-files-panel .aura-file-list {
    max-width: 100% !important;
    min-width: 0 !important;
    box-sizing: border-box !important;
  }
}
/* END AURA_MOBILE_V4_NAV_RETURN_FIX_20261107 */


/* AURA_MOBILE_V4_SINGLE_LAUNCHER_20261107 */
@media screen and (max-width: 767px) {
  #aura-mobile-drawer-toggle {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}
/* END AURA_MOBILE_V4_SINGLE_LAUNCHER_20261107 */

/* AURA_HIDE_NATIVE_MOBILE_SIDEBAR_LAUNCHER_V3_16: #mobile-sidebar-launcher
   is Chatwoot's own native button (MobileSidebarLauncher.vue), not ours -
   it opens Chatwoot's native sidebar flyout, which this file already
   force-hides below 768px (see .aura-main-sidebar). Confirmed live: on
   phones, clicking it did nothing visible, it only duplicated our own
   AURA_MOBILE_V4 launcher in size/position/shape. */
@media screen and (max-width: 767px) {
  #mobile-sidebar-launcher {
    display: none !important;
    visibility: hidden !important;
    pointer-events: none !important;
  }
}


/* AURA_CHAT_HOVER_PREVIEW_V3_21_CSS: popover for the conversation-card
   hover preview (last 4 messages) - see aura-v2-brand-ui-20261112.js. */
#aura-chat-hover-preview {
  position: fixed;
  z-index: 3000;
  width: 280px;
  max-height: 260px;
  overflow-y: auto;
  background: #fffdfa;
  border: 1px solid #ece2d5;
  border-radius: 12px;
  box-shadow: 0 10px 30px rgba(0,0,0,.18);
  padding: 10px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
#aura-chat-hover-preview[hidden] {
  display: none;
}
.dark #aura-chat-hover-preview {
  background: #332b26;
  border-color: #51443b;
  color: #eee7df;
}
.aura-chat-hover-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(0,0,0,.03);
}
.dark .aura-chat-hover-row {
  background: rgba(255,255,255,.04);
}
.aura-chat-hover-out {
  background: rgba(185,146,63,.1);
}
.aura-chat-hover-sender {
  font-size: 10px;
  font-weight: 600;
  color: var(--aura-gold, #9A7731);
  text-transform: uppercase;
  letter-spacing: .02em;
}
.dark .aura-chat-hover-sender {
  color: var(--aura-dark-gold, #D0AD61);
}
.aura-chat-hover-text {
  font-size: 12px;
  line-height: 1.4;
  white-space: pre-wrap;
  word-break: break-word;
}
.aura-chat-hover-loading,
.aura-chat-hover-empty {
  font-size: 12px;
  opacity: .7;
  padding: 4px;
}
@media screen and (max-width: 767px) {
  #aura-chat-hover-preview {
    display: none !important;
  }
}

/* AURA_EMOJI_PICKER_FIX_20261118 */
.reply-box {
  overflow: visible !important;
}
.reply-box .reply-box__top {
  overflow: visible !important;
  z-index: 30;
}
.reply-box .emoji-dialog {
  z-index: 1000 !important;
}
.reply-box .emoji-dialog:not(.emoji-dialog--expanded) {
  left: 12px !important;
  right: auto !important;
}
[dir="rtl"] .reply-box .emoji-dialog:not(.emoji-dialog--expanded) {
  left: auto !important;
  right: 12px !important;
}
/* END_AURA_EMOJI_PICKER_FIX */

/* AURA_LOGIN_LOGO_SIZE_V1: enlarge the login/signup page logo (default Tailwind h-8 = 32px) */
main img[src*="/brand-custom/logo.png"],
main img[src*="/brand-custom/icon.png"] {
  height: 72px !important;
  width: auto !important;
}

/* AURA_HIDE_SSO_LOGIN_V1: hide the "Login via SSO" (SAML) button and its
   "OR" divider on the login page only. UI-only - backend SSO stays enabled.
   .section-separator is SimpleDivider's root class, used nowhere else in
   the app except this page; href="/app/login/sso" is the SAML link's own
   route, unique by definition. */
.section-separator,
div.text-center:has(> a[href="/app/login/sso"]) {
  display: none !important;
}

/* AURA_FILE_BULK_DELETE_V1: "Delete selected" button next to "Send
   selected" in the Files multi-select bar - same shape/size, red instead
   of gold so it reads as destructive. */
.aura-delete-selected {
  background: #b42318 !important;
}

.aura-delete-selected:hover:not(:disabled) {
  background: #8f1b12 !important;
}

/* AURA_FILE_BULK_DELETE_LAYOUT_FIX_V1: the selection bar is a 3-column
   grid (checkbox | count | actions) - group both buttons so they share
   that 3rd column side by side instead of Delete selected falling onto
   its own unaligned row. The "danger" color is derived from the theme's
   own --aura-blush token (a rose, not a generic red) instead of a
   borrowed stock red. */
.aura-selection-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.aura-delete-selected {
  background: #B5676D !important;
}

.aura-delete-selected:hover:not(:disabled) {
  background: #9C555B !important;
}

.dark .aura-delete-selected {
  background: var(--aura-blush) !important;
}

.dark .aura-delete-selected:hover:not(:disabled) {
  background: #7A5861 !important;
}

/* AURA_TEXT_MODAL_DARK_TEXTAREA_FIX_V1: the global "textarea { background:
   rgba(255,255,255,.92) !important }" rule above (meant for the main chat
   reply composer) was leaking into this modal's textarea and beating the
   .dark .aura-text-modal textarea rule, since that rule had no !important
   of its own - the Text field stayed white-on-white in dark mode while
   the Name input (an <input>, not forced white by that rule) looked fine. */
.dark .aura-text-modal textarea {
  background: #302b28 !important;
  color: #eee7df !important;
}

/* AURA_GROUPS_COMPOSER_DARK_TEXT_FIX_V1: the global textarea{background:
   rgba(255,255,255,.92)!important} rule (INPUTS section above) has no
   dark-mode override for the Groups chat composer specifically - unlike
   .aura-reply-box/.aura-contact-panel/.aura-text-modal, which already
   got this same fix. Text color was already correctly var(--aura-dark-text)
   (near-white), so on the forced white background it was invisible. */
.dark textarea.aura-groups-composer-input {
  background: transparent !important;
  color: var(--aura-dark-text) !important;
}

.dark textarea.aura-groups-composer-input::selection {
  background: rgba(185,146,63,0.35);
  color: var(--aura-dark-text) !important;
}

/* AURA_GROUPS_COMPOSER_DARK_TEXT_FIX_V2: solid black background (not
   transparent - explicit per request) and a gold focus ring/outline
   instead of Chatwoot's default blue focus:ring-n-brand, which was
   never themed for this composer. */
.dark textarea.aura-groups-composer-input {
  background: #000000 !important;
  color: var(--aura-dark-text) !important;
  --tw-ring-color: var(--aura-dark-gold) !important;
}

.dark textarea.aura-groups-composer-input:focus {
  border-color: var(--aura-dark-gold) !important;
  box-shadow: 0 0 0 1px var(--aura-dark-gold) !important;
  outline-color: var(--aura-dark-gold) !important;
}

textarea.aura-groups-composer-input:focus {
  --tw-ring-color: var(--aura-gold) !important;
  border-color: var(--aura-gold) !important;
  box-shadow: 0 0 0 1px var(--aura-gold) !important;
  outline-color: var(--aura-gold) !important;
}

/* AURA_GROUPS_MESSAGE_GOLD_V1: own/sent Groups messages used Chatwoot's
   default blue (bg-n-brand) - replaced with the AURA gold accent used
   everywhere else in this UI (Send button, rail highlight, etc.),
   matching the existing .aura-reply-box send-button convention
   (gold background, #211B16 text) in both themes. */
.aura-groups-message-sent {
  background: var(--aura-gold) !important;
  color: #211B16 !important;
}

.dark .aura-groups-message-sent {
  background: var(--aura-dark-gold) !important;
  color: #211B16 !important;
}

/* AURA_MOBILE_V4_FLOATING_DRAG_20261128: vertical drag + auto-hide for the
   mobile hamburger launcher (#aura-mobile-v4-launch). Mobile only - this
   whole block lives under the existing max-width:767px breakpoint, so
   desktop's launcher (already display:none above 768px) is untouched.
   JS lives in aura-mobile-v4-floating-drag.js (see brand-ui.js). */
@media screen and (max-width: 767px) {
  #aura-mobile-v4-launch {
    touch-action: none !important;
    -webkit-user-select: none !important;
    user-select: none !important;
    transition: transform .28s ease !important;
  }
  /* Instant follow while an active drag is in progress - no lag behind the
     finger, and no fighting with the peek/reveal transition above. */
  #aura-mobile-v4-launch.aura-mobile-v4-launch-dragging {
    transition: none !important;
  }
  @media (prefers-reduced-motion: reduce) {
    #aura-mobile-v4-launch {
      transition: none !important;
    }
  }
}

/* AURA_MOBILE_V4_FLOATING_DRAG_USER_POSITIONED_20261128: the pre-existing
   "hide while the composer/note textarea is focused" rule above (see
   `body:has(textarea:focus, ...) #aura-mobile-v4-launch`) was written when
   the launcher only ever sat at one fixed spot at the bottom edge, directly
   over where the composer and its keyboard appear - hiding it while typing
   made sense there. Now that it can be dragged anywhere on the edge, that
   same rule was fully hiding it (not peeking - gone) even when the user had
   moved it somewhere nowhere near the composer, with no way to bring it
   back until they left the text field. Once the user has actually
   positioned it themselves (brand-ui.js adds this class on first drag or
   on restoring a saved position), trust that choice and stop hiding it for
   composer focus - this selector's extra class beats the original rule's
   specificity, and it is declared after it, so it wins either way. */
@media screen and (max-width: 767px) {
  html.aura-mobile-v4-user-positioned
    body:has(textarea:focus, [contenteditable="true"]:focus)
    #aura-mobile-v4-launch {
    display: grid !important;
  }
}
