/* IPW Inbox theme. GENERATED by brand/build.js from brand/tokens.json and src/base-theme.css:
   do not edit by hand. Loaded after the app stylesheet from /brand/brand.css.

   1. Tokens          IPW tokens, then Chatwoot's colour scales mapped onto them
   2. Base            canvas, type, focus, scrollbars
   Stock brand blue   stock utility classes that compile #2781f6, re-stated with the IPW primary
   3-13. Screens      the shared inbox screens (shell, sidebar, list, conversation, composer, ...)
   Login              --sl-* variables of the shared login page

   Light is the default; dark applies when Chatwoot puts .dark on <body> or <html>. */

/* ------------------------------------------------------------------ 1. Tokens */

:root {
  color-scheme: light;
  accent-color: #6a3a1b;

  --ink: #252018;
  --ink-soft: #5c503d;
  --muted: #887c6b;
  --line: #e6e0d7;
  --line-soft: #f1eee9;
  --paper: #faf9f8;
  --paper-2: #ffffff;
  --canvas: #f5f3ef;
  --teal: #6a3a1b;
  --teal-mid: #a35829;
  --teal-soft: #f6ede7;
  --teal-wash: #faf4f0;
  --teal-edge: rgba(106, 58, 27, 0.16);
  --danger-bg: #fff6f6;
  --danger-line: #efdada;
  --danger-ink: #8a3b3b;
  --warning-bg: #fffaf0;
  --warning-line: #eadfbe;
  --warning-ink: #84651f;
  --success-bg: #faf4f0;
  --success-line: rgba(106, 58, 27, 0.18);
  --success-ink: #6a3a1b;
  --unread: #dc2626;
  --on-primary: #ffffff;
  --media-bg: #f8f6f3;
  --logo-ink: #b57953;
  --overlay-ink: rgba(181, 121, 83, 0.09);
  --tooltip-bg: #252018;
  --tooltip-ink: #faf9f8;
  --focus-line: rgba(106, 58, 27, 0.42);
  --focus-ring: rgba(163, 88, 41, 0.12);

  --radius-xl: 22px;
  --radius-lg: 18px;
  --radius-md: 14px;
  --radius-sm: 12px;
  --radius-control: 10px;
  --radius-pill: 999px;

  --shadow-panel: 0 12px 36px rgba(37, 32, 24, 0.06);
  --shadow-card: 0 4px 16px rgba(37, 32, 24, 0.045);
  --shadow-floating: 0 18px 50px rgba(37, 32, 24, 0.08);

  --ease: 140ms ease;
  --font-ui: "LBC", "Segoe UI", Tahoma, Arial, sans-serif;

  /* Chatwoot scales, light */
  --brand: 106 58 27;

  --slate-1: 245 243 239;
  --slate-2: 250 249 248;
  --slate-3: 246 244 241;
  --slate-4: 241 238 233;
  --slate-5: 230 224 215;
  --slate-6: 214 207 196;
  --slate-7: 190 181 168;
  --slate-8: 166 156 140;
  --slate-9: 136 124 107;
  --slate-10: 136 124 107;
  --slate-11: 92 80 61;
  --slate-12: 37 32 24;

  --gray-1: 245 243 239;
  --gray-2: 250 249 248;
  --gray-3: 246 244 241;
  --gray-4: 241 238 233;
  --gray-5: 230 224 215;
  --gray-6: 214 207 196;
  --gray-7: 190 181 168;
  --gray-8: 166 156 140;
  --gray-9: 136 124 107;
  --gray-10: 136 124 107;
  --gray-11: 92 80 61;
  --gray-12: 37 32 24;

  --blue-1: 252 249 247;
  --blue-2: 250 244 240;
  --blue-3: 246 237 231;
  --blue-4: 238 221 211;
  --blue-5: 228 202 186;
  --blue-6: 213 178 156;
  --blue-7: 192 144 114;
  --blue-8: 164 95 51;
  --blue-9: 106 58 27;
  --blue-10: 94 51 23;
  --blue-11: 106 58 27;
  --blue-12: 56 30 14;

  --teal-1: 252 249 247;
  --teal-2: 250 244 240;
  --teal-3: 246 237 231;
  --teal-4: 238 221 211;
  --teal-5: 228 202 186;
  --teal-6: 213 178 156;
  --teal-7: 192 144 114;
  --teal-8: 164 95 51;
  --teal-9: 106 58 27;
  --teal-10: 94 51 23;
  --teal-11: 106 58 27;
  --teal-12: 56 30 14;

  --iris-1: 252 249 247;
  --iris-2: 250 244 240;
  --iris-3: 246 237 231;
  --iris-4: 238 221 211;
  --iris-5: 228 202 186;
  --iris-6: 213 178 156;
  --iris-7: 192 144 114;
  --iris-8: 164 95 51;
  --iris-9: 106 58 27;
  --iris-10: 94 51 23;
  --iris-11: 106 58 27;
  --iris-12: 56 30 14;

  --violet-1: 252 249 247;
  --violet-2: 250 244 240;
  --violet-3: 246 237 231;
  --violet-4: 238 221 211;
  --violet-5: 228 202 186;
  --violet-6: 213 178 156;
  --violet-7: 192 144 114;
  --violet-8: 164 95 51;
  --violet-9: 106 58 27;
  --violet-10: 94 51 23;
  --violet-11: 106 58 27;
  --violet-12: 56 30 14;

  --ruby-1: 255 252 252;
  --ruby-2: 255 246 246;
  --ruby-3: 253 238 238;
  --ruby-4: 250 226 226;
  --ruby-5: 239 218 218;
  --ruby-6: 233 196 196;
  --ruby-7: 222 166 166;
  --ruby-8: 206 124 126;
  --ruby-9: 220 38 38;
  --ruby-10: 196 32 32;
  --ruby-11: 176 52 52;
  --ruby-12: 138 59 59;

  --amber-1: 255 253 248;
  --amber-2: 255 250 240;
  --amber-3: 252 244 222;
  --amber-4: 246 236 204;
  --amber-5: 234 223 190;
  --amber-6: 226 208 160;
  --amber-7: 212 186 122;
  --amber-8: 196 162 80;
  --amber-9: 204 148 34;
  --amber-10: 184 130 24;
  --amber-11: 132 101 31;
  --amber-12: 96 72 18;

  --background-color: 245 243 239;
  --surface-1: 255 255 255;
  --surface-2: 250 249 248;
  --surface-active: 250 244 240;
  --background-input-box: 37, 32, 24, 0.02;
  --text-blue: 106 58 27;
  --text-purple: 106 58 27;
  --text-amber: 132 101 31;
  --border-container: 241, 238, 233, 1;
  --border-strong: 230 224 215;
  --border-weak: 241 238 233;
  --border-blue-strong: 106 58 27;
  --solid-1: 255 255 255;
  --solid-2: 255 255 255;
  --solid-3: 250 249 248;
  --solid-active: 246 244 241;
  --solid-amber: 255 250 240;
  --solid-blue: 246 237 231;
  --solid-blue-2: 250 244 240;
  --solid-iris: 250 244 240;
  --solid-purple: 250 244 240;
  --solid-red: 253 238 238;
  --solid-amber-button: 246 236 204;
  --card-color: 255 255 255;
  --overlay: 37, 32, 24, 0.3;
  --overlay-avatar: 255, 255, 255, 0.6;
  --button-color: 255 255 255;
  --button-hover-color: 37, 32, 24, 0.04;
  --label-background: 250 249 248;
  --label-border: 37, 32, 24, 0.08;
  --alpha-1: 37, 32, 24, 0.035;
  --alpha-2: 37, 32, 24, 0.06;
  --alpha-3: 255, 255, 255, 1;
  --black-alpha-1: 37, 32, 24, 0.06;
  --black-alpha-2: 37, 32, 24, 0.04;
  --border-blue: 106, 58, 27, 0.4;
  --white-alpha: 255, 255, 255, 0.8;
  --call-widget: 255, 255, 255, 0.98;
  --call-widget-border: 37, 32, 24, 0.08;
  --call-widget-text: 37, 32, 24, 1;
  --call-widget-sub-text: 136, 124, 107, 1;

  /* IPW: exact brand values (tokens.json). Cool grey surfaces, ink text; the primary carries links,
     filled buttons (white text) and focus; the accent appears only as the unread badge, darkened so
     its white count passes AA. */
  accent-color: #a84e15;
  --ink: #333333;
  --ink-soft: #374151;
  --muted: #5b6574;
  --line: #e2d6c4;
  --line-soft: #f1ebe2;
  --paper: #faf6f0;
  --paper-2: #ffffff;
  --canvas: #F4ECE0;
  --media-bg: #eee4d6;
  --tooltip-bg: #333333;
  --tooltip-ink: #f9fafb;
  --teal: #a84e15;
  --teal-mid: #8f4211;
  --teal-soft: #f4e8e1;
  --teal-wash: #faf4f1;
  --teal-edge: rgba(168, 78, 21, 0.2);
  --danger-bg: #fdf0f0;
  --danger-line: #f1cdcd;
  --danger-ink: #9b2c2c;
  --warning-bg: #fdf6e3;
  --warning-line: #ecdba8;
  --warning-ink: #7a5200;
  --success-bg: #e8f5ec;
  --success-line: rgba(22, 101, 52, 0.22);
  --success-ink: #166534;
  --unread: #976e15;
  --on-primary: #ffffff;
  --logo-ink: #a84e15;
  --overlay-ink: rgba(168, 78, 21, 0.05);
  --focus-line: rgba(168, 78, 21, 0.8);
  --focus-ring: rgba(168, 78, 21, 0.16);
  --font-ui: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --avatar-bg: #f4e8e1;
  --avatar-text: #a84e15;
  --avatar-default-bg: #eee6dc;
  --avatar-default-text: #4b5563;
  --brand: 168 78 21;
  --blue-8: 198 140 103;
  --blue-9: 168 78 21;
  --blue-10: 143 66 17;
  --blue-11: 168 78 21;
  --teal-8: 198 140 103;
  --teal-9: 168 78 21;
  --teal-10: 143 66 17;
  --teal-11: 168 78 21;
  --iris-8: 198 140 103;
  --iris-9: 168 78 21;
  --iris-10: 143 66 17;
  --iris-11: 168 78 21;
  --violet-8: 198 140 103;
  --violet-9: 168 78 21;
  --violet-10: 143 66 17;
  --violet-11: 168 78 21;
  --text-blue: 168 78 21;
  --text-purple: 168 78 21;
  --border-blue-strong: 168 78 21;
}

html.dark,
body.dark {
  color-scheme: dark;
  accent-color: #cf7d4a;

  --ink: #f2eee9;
  --ink-soft: #cac3b9;
  --muted: #9b9182;
  --line: #41382a;
  --line-soft: #322a1e;
  --paper: #1c1710;
  --paper-2: #231d15;
  --canvas: #14110c;
  --teal: #cf7d4a;
  --teal-mid: #d17d47;
  --teal-soft: #c08159;
  --teal-wash: #c08159;
  --teal-edge: rgba(207, 125, 74, 0.2);
  --danger-bg: #311d20;
  --danger-line: #573034;
  --danger-ink: #e9a2a8;
  --warning-bg: #2a2416;
  --warning-line: #4a3f22;
  --warning-ink: #e0c684;
  --success-bg: #c08159;
  --success-line: rgba(207, 125, 74, 0.22);
  --success-ink: #cf7d4a;
  --unread: #e5484d;
  --on-primary: #d17d47;
  --media-bg: #19150f;
  --logo-ink: #ffffff;
  --overlay-ink: rgba(255, 255, 255, 0.045);
  --tooltip-bg: #f2eee9;
  --tooltip-ink: #262017;
  --focus-line: rgba(207, 125, 74, 0.5);
  --focus-ring: rgba(209, 125, 71, 0.14);

  --shadow-panel: 0 12px 36px rgba(0, 0, 0, 0.16);
  --shadow-card: 0 4px 16px rgba(0, 0, 0, 0.18);
  --shadow-floating: 0 18px 50px rgba(0, 0, 0, 0.32);

  /* Chatwoot scales, dark */
  --brand: 207 125 74;

  --slate-1: 20 17 12;
  --slate-2: 28 23 16;
  --slate-3: 35 29 21;
  --slate-4: 50 42 30;
  --slate-5: 65 56 42;
  --slate-6: 80 70 54;
  --slate-7: 106 95 78;
  --slate-8: 131 120 104;
  --slate-9: 155 145 130;
  --slate-10: 155 145 130;
  --slate-11: 202 195 185;
  --slate-12: 242 238 233;

  --gray-1: 20 17 12;
  --gray-2: 28 23 16;
  --gray-3: 35 29 21;
  --gray-4: 50 42 30;
  --gray-5: 65 56 42;
  --gray-6: 80 70 54;
  --gray-7: 106 95 78;
  --gray-8: 131 120 104;
  --gray-9: 155 145 130;
  --gray-10: 155 145 130;
  --gray-11: 202 195 185;
  --gray-12: 242 238 233;

  --blue-1: 23 19 14;
  --blue-2: 192 129 89;
  --blue-3: 192 129 89;
  --blue-4: 194 128 86;
  --blue-5: 197 128 84;
  --blue-6: 199 127 81;
  --blue-7: 201 127 80;
  --blue-8: 205 126 76;
  --blue-9: 207 125 74;
  --blue-10: 209 125 71;
  --blue-11: 216 144 98;
  --blue-12: 245 227 215;

  --teal-1: 23 19 14;
  --teal-2: 192 129 89;
  --teal-3: 192 129 89;
  --teal-4: 194 128 86;
  --teal-5: 197 128 84;
  --teal-6: 199 127 81;
  --teal-7: 201 127 80;
  --teal-8: 205 126 76;
  --teal-9: 207 125 74;
  --teal-10: 209 125 71;
  --teal-11: 216 144 98;
  --teal-12: 245 227 215;

  --iris-1: 23 19 14;
  --iris-2: 192 129 89;
  --iris-3: 192 129 89;
  --iris-4: 194 128 86;
  --iris-5: 197 128 84;
  --iris-6: 199 127 81;
  --iris-7: 201 127 80;
  --iris-8: 205 126 76;
  --iris-9: 207 125 74;
  --iris-10: 209 125 71;
  --iris-11: 216 144 98;
  --iris-12: 245 227 215;

  --violet-1: 23 19 14;
  --violet-2: 192 129 89;
  --violet-3: 192 129 89;
  --violet-4: 194 128 86;
  --violet-5: 197 128 84;
  --violet-6: 199 127 81;
  --violet-7: 201 127 80;
  --violet-8: 205 126 76;
  --violet-9: 207 125 74;
  --violet-10: 209 125 71;
  --violet-11: 216 144 98;
  --violet-12: 245 227 215;

  --ruby-1: 25 17 19;
  --ruby-2: 38 23 26;
  --ruby-3: 49 29 32;
  --ruby-4: 66 36 40;
  --ruby-5: 87 48 52;
  --ruby-6: 105 58 63;
  --ruby-7: 136 72 80;
  --ruby-8: 179 90 100;
  --ruby-9: 229 72 77;
  --ruby-10: 236 93 94;
  --ruby-11: 233 162 168;
  --ruby-12: 250 220 224;

  --amber-1: 22 19 12;
  --amber-2: 30 26 16;
  --amber-3: 42 36 22;
  --amber-4: 58 48 26;
  --amber-5: 74 63 34;
  --amber-6: 96 80 40;
  --amber-7: 124 102 50;
  --amber-8: 160 130 62;
  --amber-9: 226 176 76;
  --amber-10: 236 190 96;
  --amber-11: 224 198 132;
  --amber-12: 245 230 196;

  --background-color: 20 17 12;
  --surface-1: 28 23 16;
  --surface-2: 35 29 21;
  --surface-active: 192 129 89;
  --background-input-box: 255, 255, 255, 0.03;
  --text-blue: 216 144 98;
  --text-purple: 216 144 98;
  --text-amber: 224 198 132;
  --border-container: 50, 42, 30, 1;
  --border-strong: 65 56 42;
  --border-weak: 50 42 30;
  --border-blue-strong: 207 125 74;
  --solid-1: 28 23 16;
  --solid-2: 35 29 21;
  --solid-3: 41 35 25;
  --solid-active: 50 42 30;
  --solid-amber: 42 36 22;
  --solid-blue: 192 129 89;
  --solid-blue-2: 192 129 89;
  --solid-iris: 192 129 89;
  --solid-purple: 192 129 89;
  --solid-red: 49 29 32;
  --solid-amber-button: 74 63 34;
  --card-color: 35 29 21;
  --overlay: 198, 127, 83, 0.6;
  --overlay-avatar: 20, 17, 12, 0.55;
  --button-color: 35 29 21;
  --button-hover-color: 255, 255, 255, 0.06;
  --label-background: 35 29 21;
  --label-border: 255, 255, 255, 0.08;
  --alpha-1: 255, 255, 255, 0.04;
  --alpha-2: 255, 255, 255, 0.07;
  --alpha-3: 35, 29, 21, 1;
  --black-alpha-1: 0, 0, 0, 0.3;
  --black-alpha-2: 0, 0, 0, 0.18;
  --border-blue: 207, 125, 74, 0.5;
  --white-alpha: 255, 255, 255, 0.08;
  --call-widget: 35, 29, 21, 0.98;
  --call-widget-border: 255, 255, 255, 0.1;
  --call-widget-text: 242, 238, 233, 1;
  --call-widget-sub-text: 155, 145, 130, 1;

  /* IPW dark: deep ink surfaces, light text, the primary lifted to a light tint for links, focus
     and filled buttons (dark text on it, never white). */
  accent-color: #dfaf90;
  --ink: #f3f4f6;
  --ink-soft: #cbd2dc;
  --muted: #9aa4b2;
  --line: #383838;
  --line-soft: #2b2b2b;
  --paper: #1a1a1a;
  --paper-2: #212121;
  --canvas: #0f0f0f;
  --media-bg: #0f0f0f;
  --tooltip-bg: #f3f4f6;
  --tooltip-ink: #333333;
  --teal: #dfaf90;
  --teal-mid: #eacbb8;
  --teal-soft: #3d352f;
  --teal-wash: #2e2926;
  --teal-edge: rgba(223, 175, 144, 0.24);
  --danger-bg: #3b1d1f;
  --danger-line: #62302c;
  --danger-ink: #f4b4b4;
  --warning-bg: #33290f;
  --warning-line: #52451f;
  --warning-ink: #e9c77a;
  --success-bg: #12291c;
  --success-line: rgba(134, 217, 165, 0.28);
  --success-ink: #86d9a5;
  --unread: #976e15;
  --on-primary: #333333;
  --logo-ink: #ffffff;
  --overlay-ink: rgba(255, 255, 255, 0.045);
  --focus-line: rgba(223, 175, 144, 0.6);
  --focus-ring: rgba(223, 175, 144, 0.16);
  --font-ui: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --avatar-dark-bg: #3d352f;
  --avatar-dark-text: #eacbb8;
  --brand: 223 175 144;
  --blue-9: 223 175 144;
  --blue-10: 234 203 184;
  --blue-11: 234 203 184;
  --blue-12: 247 235 227;
  --teal-9: 223 175 144;
  --teal-10: 234 203 184;
  --teal-11: 234 203 184;
  --teal-12: 247 235 227;
  --iris-9: 223 175 144;
  --iris-10: 234 203 184;
  --iris-11: 234 203 184;
  --iris-12: 247 235 227;
  --violet-9: 223 175 144;
  --violet-10: 234 203 184;
  --violet-11: 234 203 184;
  --violet-12: 247 235 227;
  --text-blue: 234 203 184;
  --text-purple: 234 203 184;
  --border-blue-strong: 223 175 144;
}

/* -------------------------------------------------------------------- 2. Base */

html,
body,
#app {
  font-family: var(--font-ui) !important;
  color: var(--ink);
}

html,
body {
  background: var(--canvas);
}

html.dark,
html.dark body,
body.dark {
  background: var(--canvas);
}

#app {
  background: transparent !important;
}

::selection {
  background: rgba(163, 88, 41, 0.24);
}

* {
  scrollbar-width: thin;
  scrollbar-color: #d6cfc5 transparent;
}
body.dark * {
  scrollbar-color: #4a4133 transparent;
}

a:focus-visible,
button:focus-visible,
[role="tab"]:focus-visible,
[role="button"]:focus-visible {
  outline: 2px solid var(--focus-line);
  outline-offset: 2px;
}

input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]),
textarea,
select {
  border-radius: var(--radius-control);
}
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="range"]):focus,
textarea:focus,
select:focus {
  outline-color: var(--focus-line);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

p a,
.text-n-brand {
  color: var(--teal);
}

/* Solid primary fills carry dark text in dark mode, where the primary is a light tint. */
body.dark .bg-n-brand.text-white,
body.dark .bg-n-brand > .text-white {
  color: var(--on-primary);
}

/* ------------------------------------------------------------ Stock brand blue -> IPW */
:root { --ipw-brand-rgb: 168 78 21; }
html.dark, body.dark { --ipw-brand-rgb: 226 114 42; }
/* Generated from chatwoot/chatwoot:v4.16.2-ce /app/public/vite/assets (10 dashboard css files) by
   re-emitting only the declarations that use the stock brand blue #2781f6, as var(--ipw-brand-rgb).
   Re-extract when the Chatwoot image version changes. */
ninja-keys {
    --ninja-accent-color: rgb(var(--ipw-brand-rgb) / 1)
}
.banner.primary {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .banner.primary {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.border-n-brand {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .border-n-brand {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.border-t-n-brand {
    border-top-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .border-t-n-brand {
        border-top-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.bg-\[\#2781F6\] {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .bg-\[\#2781F6\] {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.bg-n-blue-9 {
    background-color: rgb(var(--ipw-brand-rgb))
}
.bg-n-brand {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .bg-n-brand {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.from-n-brand\/15 {
    --tw-gradient-from: rgb(var(--ipw-brand-rgb) / .15) var(--tw-gradient-from-position);
    --tw-gradient-to: rgb(var(--ipw-brand-rgb) / 0) var(--tw-gradient-to-position)
}
.fill-n-blue-9 {
    fill: rgb(var(--ipw-brand-rgb))
}
.text-n-blue-9 {
    color: rgb(var(--ipw-brand-rgb))
}
.text-n-brand {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .text-n-brand {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.accent-n-blue-9 {
    accent-color: rgb(var(--ipw-brand-rgb) / 1)
}
.\!shadow-\[var\(--widget-color\,\#2781f6\)\] {
    --tw-shadow-color: var(--widget-color,rgb(var(--ipw-brand-rgb))) !important
}
.\!outline-n-brand {
    outline-color: rgb(var(--ipw-brand-rgb)) !important
}
.outline-n-blue-9 {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.outline-n-brand {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.ring-n-brand {
    --tw-ring-color: rgb(var(--ipw-brand-rgb) / var(--tw-ring-opacity, 1))
}
p a {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    p a {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
p a:is(.dark *) {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    p a:is(.dark *) {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
input[type]:not([type=file]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=image]):not([type=hidden]):not(.reset-base):not(.no-margin):focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
input[type]:not([type=file]):not([type=checkbox]):not([type=radio]):not([type=range]):not([type=button]):not([type=submit]):not([type=reset]):not([type=color]):not([type=image]):not([type=hidden]):not(.reset-base):not(.no-margin):focus:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
select:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
select:focus:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
textarea:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
textarea:focus:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.before\:\!border-t-n-brand:before {
    border-top-color: rgb(var(--ipw-brand-rgb)) !important
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .before\:\!border-t-n-brand:before {
        border-top-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1)) !important
    }
}
.before\:bg-n-brand:before {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .before\:bg-n-brand:before {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.after\:bg-n-brand:after {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .after\:bg-n-brand:after {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.checked\:border-n-brand:checked {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .checked\:border-n-brand:checked {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.checked\:bg-n-brand:checked {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .checked\:bg-n-brand:checked {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.indeterminate\:border-n-brand:indeterminate {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .indeterminate\:border-n-brand:indeterminate {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.indeterminate\:bg-n-brand:indeterminate {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .indeterminate\:bg-n-brand:indeterminate {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.focus-within\:outline-n-brand:focus-within {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.focus-within\:ring-n-brand:focus-within {
    --tw-ring-color: rgb(var(--ipw-brand-rgb) / var(--tw-ring-opacity, 1))
}
.hover\:border-n-brand:hover {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .hover\:border-n-brand:hover {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.hover\:text-n-brand:hover {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .hover\:text-n-brand:hover {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.focus\:border-n-brand:focus {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .focus\:border-n-brand:focus {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.focus\:outline-n-blue-9:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.focus\:outline-n-brand:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.focus\:ring-n-brand:focus {
    --tw-ring-color: rgb(var(--ipw-brand-rgb) / var(--tw-ring-opacity, 1))
}
.focus-visible\:outline-n-brand:focus-visible {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.focus-visible\:ring-n-brand:focus-visible {
    --tw-ring-color: rgb(var(--ipw-brand-rgb) / var(--tw-ring-opacity, 1))
}
.hover\:enabled\:border-n-blue-9:enabled:hover {
    border-color: rgb(var(--ipw-brand-rgb))
}
.group:focus-within .group-focus-within\:text-n-brand {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .group:focus-within .group-focus-within\:text-n-brand {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.group:hover .group-hover\:bg-n-brand {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .group:hover .group-hover\:bg-n-brand {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.group:hover .group-hover\:text-n-brand {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .group:hover .group-hover\:text-n-brand {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.has-\[\:focus\]\:outline-n-brand:has(:focus) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.prose-strong\:text-n-brand :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))) {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .prose-strong\:text-n-brand :is(:where(strong):not(:where([class~=not-prose],[class~=not-prose] *))) {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.dark\:border-n-brand:is(.dark *) {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .dark\:border-n-brand:is(.dark *) {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.dark\:\!outline-n-brand:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb)) !important
}
.dark\:ring-n-brand:is(.dark *) {
    --tw-ring-color: rgb(var(--ipw-brand-rgb) / var(--tw-ring-opacity, 1))
}
.dark\:checked\:border-n-brand:checked:is(.dark *) {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .dark\:checked\:border-n-brand:checked:is(.dark *) {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.dark\:checked\:bg-n-brand:checked:is(.dark *) {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .dark\:checked\:bg-n-brand:checked:is(.dark *) {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.dark\:focus-within\:outline-n-brand:focus-within:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.dark\:hover\:text-n-brand:hover:is(.dark *) {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .dark\:hover\:text-n-brand:hover:is(.dark *) {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.dark\:focus\:outline-n-brand:focus:is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.dark\:has-\[\:focus\]\:outline-n-brand:has(:focus):is(.dark *) {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.ProseMirror-prompt .ProseMirror-prompt-buttons button[type=submit] {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .ProseMirror-prompt .ProseMirror-prompt-buttons button[type=submit] {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.menu[data-v-60cefcf4]:hover {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .menu[data-v-60cefcf4]:hover {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.search-input[data-v-69e77a2c]:focus {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .search-input[data-v-69e77a2c]:focus {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.notification--unread-indicator[data-v-577256f2] {
    background-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .notification--unread-indicator[data-v-577256f2] {
        background-color: rgb(var(--ipw-brand-rgb) / var(--tw-bg-opacity, 1))
    }
}
.file .icon-wrap[data-v-7ea48b19] {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .file .icon-wrap[data-v-7ea48b19] {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.file .download[data-v-7ea48b19] {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .file .download[data-v-7ea48b19] {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.option[data-v-74ee74cc] {
    border-color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .option[data-v-74ee74cc] {
        border-color: rgb(var(--ipw-brand-rgb) / var(--tw-border-opacity, 1))
    }
}
.email-input-group input[data-v-c0f153df]:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.customer-satisfaction .feedback-form input[data-v-b42a988a]:focus {
    outline-color: rgb(var(--ipw-brand-rgb))
}
.unread-wrap .clear-button[data-v-4f260fa6] {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .unread-wrap .clear-button[data-v-4f260fa6] {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}
.text-link {
    color: rgb(var(--ipw-brand-rgb))
}
@supports (color: rgb(0 0 0 / 0)) and (top: var(--f)) {
    .text-link {
        color: rgb(var(--ipw-brand-rgb) / var(--tw-text-opacity, 1))
    }
}

/* ------------------------------------------------------------------- 3. Shell */

#app > .flex.flex-grow {
  background: transparent !important;
}

@media (min-width: 768px) {
  #app > .flex.flex-grow {
    padding: 10px;
    gap: 10px;
  }

  #app > .flex.flex-grow > aside,
  #app > .flex.flex-grow > main {
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
  }

  /* Conversation routes: the list, thread and contact panel float separately,
     so the surrounding <main> gives up its own surface. */
  #app > .flex.flex-grow > main:has(> section.flex.w-full.h-full) {
    background: transparent !important;
    border-color: transparent !important;
    box-shadow: none;
    border-radius: 0;
    overflow: visible;
  }

  main > section.flex.w-full.h-full {
    gap: 10px;
  }

  main > section.flex.w-full.h-full > .conversations-list-wrap,
  main > section.flex.w-full.h-full > .conversation-details-wrap,
  main > section.flex.w-full.h-full > div.max-w-sm {
    border: 1px solid var(--line-soft) !important;
    border-radius: var(--radius-lg);
    box-shadow: var(--shadow-panel);
  }

  main > section.flex.w-full.h-full > div.max-w-sm {
    overflow: hidden;
  }

  .conversations-list-wrap:not(.basis-full) {
    width: 360px;
  }
  .conversations-list {
    border-end-start-radius: 17px;
    border-end-end-radius: 17px;
  }
}

@media (min-width: 1536px) {
  .conversations-list-wrap:not(.basis-full) {
    width: 384px;
  }
  main > section.flex.w-full.h-full > div.max-w-sm {
    width: 340px;
    min-width: 340px;
  }
}

#app > .flex.flex-grow > aside,
#app > .flex.flex-grow > main {
  background: var(--paper-2) !important;
}

.conversations-list-wrap,
main > section.flex.w-full.h-full > div.max-w-sm {
  background: var(--paper-2) !important;
}

.conversation-details-wrap {
  background: var(--paper) !important;
}

/* ----------------------------------------------------------------- 4. Sidebar */

@media (min-width: 768px) {
  aside:has(.sd-logo-tile) {
    min-width: 224px;
    max-width: 248px;
  }
}

aside:has(.sd-logo-tile) > section.grid > div.flex {
  padding-inline: 12px;
}
aside:has(.sd-logo-tile) > nav {
  padding-inline: 10px;
}

/* Full installation logo (multi-colour artwork): light and dark files, no mask. */
.sd-logo-tile {
  width: 120px;
  height: 66px;
  background: url(/brand/logo.svg?v=ipw4) center / contain no-repeat;
}
html.dark .sd-logo-tile,
body.dark .sd-logo-tile {
  background-image: url(/brand/logo_dark.svg?v=ipw4);
}
.sd-logo {
  display: none;
}

#sidebar-account-switcher {
  height: 36px;
  border-radius: var(--radius-control);
}
#sidebar-account-switcher > span:first-child {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}

.sd-theme-toggle {
  display: inline-grid;
  place-items: center;
  flex-shrink: 0;
  width: 34px;
  height: 34px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  background: var(--paper);
  color: var(--ink-soft);
  transition: background-color var(--ease), border-color var(--ease), color var(--ease);
}
.sd-theme-toggle:hover {
  background: var(--teal-wash);
  border-color: var(--teal-edge);
  color: var(--teal);
}

.sd-search {
  border: 1px solid var(--line);
  border-radius: var(--radius-control);
  background: var(--paper-2);
  font-size: 12.5px;
  color: var(--muted);
}
.sd-search:hover,
.sd-search:focus-visible {
  border-color: var(--focus-line);
  box-shadow: 0 0 0 3px var(--focus-ring);
}

.sd-nav-item {
  border-radius: var(--radius-control);
  color: var(--ink-soft);
  font-size: 13px;
  font-weight: 500;
  transition: background-color var(--ease), color var(--ease);
}
.sd-nav-item .truncate,
.sd-nav-item .text-sm,
.sd-nav-item .text-body-main {
  font-size: 13px;
}
.sd-nav-item [class^="i-"],
.sd-nav-item [class*=" i-"] {
  color: var(--muted);
  transition: color var(--ease);
}
.sd-nav-item:hover {
  background: var(--teal-wash);
  color: var(--ink);
}
.sd-nav-item--parent {
  color: var(--ink);
  font-weight: 600;
}
.sd-nav-item--active,
.sd-nav-item--active:hover {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}
.sd-nav-item--active [class^="i-"],
.sd-nav-item--active [class*=" i-"] {
  color: var(--teal);
}

.sd-nav-leaf {
  padding-inline-start: 26px;
}
aside nav li li li.sd-nav-leaf {
  padding-inline-start: 6px;
}

.sd-nav-heading {
  font-size: 10.5px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
:lang(ar) .sd-nav-heading {
  letter-spacing: 0;
}

/* Flat grouped navigation: no connector lines. */
aside nav [class*="before:"]::before,
aside nav [class*="after:"]::after {
  content: none !important;
}

.sd-count {
  background: var(--unread);
  color: #ffffff;
}

aside > section:last-of-type > .pointer-events-none {
  display: none;
}
aside > section:last-of-type > div.border-t {
  box-shadow: none;
  padding: 8px;
}

/* Under Conversations keep "All conversations" and the channel list only. */
aside nav > ul > li:has(a[href$="/dashboard"]) > ul > li:has(> a[href$="/mentions/conversations"]),
aside nav > ul > li:has(a[href$="/dashboard"]) > ul > li:has(> a[href$="/participating/conversations"]),
aside nav > ul > li:has(a[href$="/dashboard"]) > ul > li:has(> a[href$="/unattended/conversations"]),
aside nav > ul > li:has(a[href$="/dashboard"]) > ul > li.group\/sidebar-section:not(:has(a[href*="/inbox/"])) {
  display: none !important;
}
aside div.fixed.z-\[100\] ul > li:nth-child(n+2):nth-child(-n+4):not(:has(ul)) {
  display: none !important;
}

/* -------------------------------------------------------------- 5. Inbox list */

.sd-panel-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}
.sd-channel-mark {
  width: 22px;
  height: 22px;
  flex-shrink: 0;
  margin-inline-end: 8px;
  border-radius: 6px;
  object-fit: contain;
}

.sd-tabs {
  align-items: center;
  margin-bottom: 4px;
}
.sd-tab {
  height: 32px;
  padding: 0 10px;
  border-radius: var(--radius-control);
  font-size: 12.5px;
  font-weight: 500;
  color: var(--ink-soft);
  transition: background-color var(--ease), color var(--ease);
}
.sd-tab:hover {
  background: var(--teal-wash);
}
.sd-tab--active,
.sd-tab--active:hover {
  background: var(--teal-soft);
  color: var(--teal);
  font-weight: 600;
}

.conversation {
  margin: 2px 8px;
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  transition: background-color var(--ease), border-color var(--ease);
}
.conversation > div.flex-1 {
  padding-block: 10px;
}
.conversation:hover {
  background: var(--paper);
  border-color: var(--line-soft);
}
.conversation.active,
.conversation.active:hover {
  background: var(--teal-wash);
  border-color: var(--teal-edge);
}
.conversation.selected {
  background: var(--teal-wash);
}
.conversation--compact {
  margin-inline: 4px;
  padding-inline: 8px;
}

.conversation .conversation--user {
  font-size: 13.5px;
  color: var(--ink);
}
.conversation .conversation--user ~ .leading-6 {
  font-size: 12.5px;
  line-height: 1.5rem;
  color: var(--ink-soft);
}
.conversation.unread .conversation--user ~ .leading-6 {
  color: var(--ink);
}
.conversation .leading-4.text-xxs {
  font-size: 10.5px;
  color: var(--muted);
}

.sd-unread {
  background: var(--unread);
  color: #ffffff;
}

.conversations-list-wrap > p.flex.justify-center {
  margin: 12px;
  padding: 20px 16px;
  border: 1px dashed var(--teal-edge);
  border-radius: var(--radius-sm);
  background: var(--teal-wash);
  color: var(--ink-soft);
  font-size: 12.5px;
  text-align: center;
}

/* ------------------------------------------------------------ 6. Conversation */

.sd-conversation-header {
  background: var(--paper-2);
}
@media (min-width: 768px) {
  .sd-conversation-header {
    border-start-start-radius: 17px;
    border-start-end-radius: 17px;
  }
}

.sd-contact-title {
  font-size: 15px;
  font-weight: 700;
  line-height: 1.3;
}

.conversation--header--actions {
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
}
.conversation--header--actions .text-label-small,
.conversation--header--actions .text-n-slate-11 {
  color: var(--muted);
}

/* Status control: a quiet secondary control, not a call to action. */
.resolve-actions > .shadow {
  box-shadow: none;
  border-radius: var(--radius-control);
  outline-color: var(--line) !important;
  background: var(--paper-2);
}
.resolve-actions > .shadow button {
  font-size: 12.5px;
  color: var(--ink-soft);
}

/* Reply restriction and other inline alerts */
.banner.alert {
  background: var(--danger-bg) !important;
  color: var(--danger-ink) !important;
  border-block-end: 1px solid var(--danger-line);
}
.banner.alert a {
  color: inherit !important;
  font-weight: 600;
  margin-inline-start: 4px;
}
.banner.warning {
  background: var(--warning-bg) !important;
  color: var(--warning-ink) !important;
  border-block-end: 1px solid var(--warning-line);
}
.banner.warning a {
  color: inherit !important;
}
.banner .banner-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  margin-inline-end: 8px;
}
.banner.sd-notice {
  height: auto !important;
  min-height: 0;
  margin: 8px 12px 0;
  padding: 8px 12px !important;
  justify-content: flex-start !important;
  border: 1px solid var(--danger-line);
  border-radius: var(--radius-control);
  font-size: 12px;
  line-height: 1.45;
}

/* Message canvas */
.conversation-panel {
  background: transparent !important;
  padding-inline: 22px !important;
}
.conversation-details-wrap .bg-n-surface-1 {
  background-color: transparent;
}

.message-bubble-container {
  margin-bottom: 14px;
}
.message-bubble-container.group-with-next {
  margin-bottom: 4px;
}

.sd-bubble {
  border: 1px solid transparent;
  border-radius: var(--radius-md);
  font-size: 13.5px;
  line-height: 1.55;
}
.sd-bubble--in {
  background: var(--paper-2);
  border-color: var(--line-soft);
}
.sd-bubble--out {
  background: var(--teal-soft);
  border-color: var(--teal-edge);
}
.sd-bubble--note {
  background: var(--warning-bg);
  border-color: var(--warning-line);
  color: var(--ink);
}
.sd-bubble-meta--note {
  color: var(--warning-ink);
}
.sd-bubble .prose,
.sd-bubble .prose p {
  unicode-bidi: plaintext;
}

.sd-quote {
  border-inline-start: 3px solid var(--teal-mid);
  border-radius: 8px;
  background: var(--teal-wash);
}

/* Rich social card: header, media, footer */
.sd-social-card,
.sd-social-card.sd-bubble {
  width: 380px;
  max-width: min(420px, 100%);
  padding: 0;
  background: var(--paper-2);
  border-color: var(--line-soft);
  border-radius: 16px !important;
  box-shadow: var(--shadow-card);
}
.sd-social-card__header {
  padding: 12px 14px 10px;
}
.sd-social-card__source {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 0;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.03em;
  color: var(--muted);
}
.sd-social-card__context {
  margin: 4px 0 0;
  font-size: 12px;
  color: var(--ink-soft);
}
.sd-social-card__text {
  margin-top: 4px;
  font-size: 13.5px;
  color: var(--ink);
  unicode-bidi: plaintext;
}
.sd-social-card__media {
  display: grid;
  place-items: center;
  min-height: 160px;
  background: var(--media-bg);
  border-block: 1px solid var(--line-soft);
}
.sd-social-card__media img,
.sd-social-card__media video {
  display: block;
  width: 100%;
  max-height: 460px;
  object-fit: contain;
}
.sd-social-card__missing {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 20px 16px;
  font-size: 12px;
}
.sd-social-card > :last-child:not(.sd-social-card__media) {
  margin: 0;
  padding: 8px 14px 10px;
}
.sd-social-card > .sd-quote {
  margin: 10px 12px 0;
}
.sd-social-card > .sd-social-card__media:last-child {
  border-block-end: 0;
}

/* Image and video attachments */
[data-bubble-name="image"] .rounded-lg,
[data-bubble-name="video"] .rounded-lg {
  background: var(--media-bg);
  border-radius: var(--radius-sm);
}
[data-bubble-name="image"] img {
  display: block;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

/* ---------------------------------------------------------------- 7. Composer */

div.reply-box {
  margin: 0 12px 12px !important;
  border: 1px solid var(--line-soft) !important;
  border-radius: var(--radius-lg) !important;
  background: var(--paper-2) !important;
  box-shadow: var(--shadow-card);
  transition: border-color var(--ease), box-shadow var(--ease), background-color var(--ease);
}
div.reply-box.is-focused {
  border-color: var(--focus-line) !important;
  box-shadow: 0 0 0 3px var(--focus-ring);
}
div.reply-box.is-private {
  background: var(--teal-wash) !important;
  border-color: var(--success-line) !important;
}
.reply-box .ProseMirror,
.reply-box textarea {
  font-size: 13.5px;
  line-height: 1.55;
  box-shadow: none !important;
}
.reply-box .ProseMirror p.is-editor-empty:first-child::before,
.reply-box [data-placeholder]::before {
  color: var(--muted) !important;
}

.sd-mode-toggle {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-control);
  background: var(--paper);
}
.sd-mode {
  height: 24px;
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  transition: color var(--ease);
}
.sd-mode--active {
  color: var(--teal);
  font-weight: 600;
}
.sd-mode--locked {
  opacity: 0.6;
}
.sd-mode-chip {
  border-radius: 7px;
  background: var(--teal-soft);
  border: 1px solid var(--teal-edge);
}

.reply-box button {
  border-radius: var(--radius-control);
}
.sd-composer-hint {
  display: none;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 10.5px;
  color: var(--muted);
}
@media (min-width: 1280px) {
  .sd-composer-hint {
    display: block;
  }
}
button.sd-send {
  height: 36px;
  padding-inline: 14px;
  border-radius: var(--radius-control);
  background: linear-gradient(135deg, var(--teal), var(--teal-mid)) !important;
  color: var(--on-primary) !important;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: none;
}
button.sd-send:disabled {
  /* Readable while there is nothing to send yet. */
  opacity: 0.72;
  filter: saturate(0.55);
}

/* ----------------------------------------------------------- 8. Contact panel */

.sd-contact {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  column-gap: 12px;
  align-items: center;
}
.sd-contact__avatar {
  grid-row: span 2;
}
.sd-contact__avatar:empty {
  display: none;
}
.sd-contact__body {
  display: contents;
}
.sd-contact__body > * {
  grid-column: 1 / -1;
}
.sd-contact__body > .sd-contact__name,
.sd-contact__body > .sd-contact__platform {
  grid-column: 2;
}
.sd-contact__platform {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}
.sd-contact__description {
  margin: 12px 0 0;
  font-size: 12.5px;
  color: var(--ink-soft);
}
.sd-contact__actions {
  grid-column: 1 / -1;
  margin-top: 12px;
}
.sd-contact__actions button {
  border-radius: var(--radius-control);
}

.sd-kv {
  margin-top: 14px;
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-sm);
  background: var(--paper-2);
  overflow: hidden;
}
.sd-kv-row {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 36px;
  padding: 4px 10px;
  border-block-end: 1px solid var(--line-soft);
}
.sd-kv-row:nth-child(even) {
  background: color-mix(in srgb, var(--teal-wash) 45%, transparent);
}
.sd-kv > :last-child {
  border-block-end: 0;
}
.sd-kv > :not(.sd-kv-row):not(:empty) {
  padding: 8px 10px;
}
.sd-kv-label {
  flex: 0 0 72px;
  font-size: 11.5px;
  font-weight: 600;
  color: var(--muted);
}
.sd-kv-value {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1;
  min-width: 0;
  font-size: 12.5px;
  color: var(--ink);
}
.sd-kv-empty {
  color: var(--muted);
}

.sd-accordion {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-md);
  background: var(--paper-2);
}
.sd-accordion__header {
  border-radius: 13px;
  cursor: pointer;
  transition: background-color var(--ease);
}
.sd-accordion__header:hover {
  background: var(--paper);
}
.sd-accordion--open > .sd-accordion__header {
  border-end-start-radius: 0;
  border-end-end-radius: 0;
}
.sd-accordion__title {
  font-size: 13px;
  font-weight: 700;
  color: var(--ink);
}
.sd-accordion__chevron {
  color: var(--muted);
  transition: transform var(--ease);
}
.sd-accordion--open .sd-accordion__chevron {
  transform: rotate(180deg);
}
.sd-accordion__body {
  border-block-start: 1px solid var(--line-soft);
}

/* Labels as chips */
.label:not(.small) {
  height: 24px;
  padding: 0 9px;
  border-radius: var(--radius-pill);
  font-size: 11.5px;
}
.label.small {
  border-radius: var(--radius-pill);
  padding-inline: 7px;
}
.sidebar-labels-wrap .label {
  background: var(--teal-soft);
  border-color: var(--teal-edge);
  color: var(--teal);
}
.sidebar-labels-wrap .label-wrap {
  gap: 4px;
  align-items: center;
}
.sidebar-labels-wrap .label-wrap > button {
  height: 24px;
  margin: 0;
  border-radius: var(--radius-pill) !important;
  background: var(--teal-wash);
  color: var(--teal);
  font-size: 11.5px;
  font-weight: 600;
}
.sidebar-labels-wrap .label {
  margin: 0;
}

/* ----------------------------------------------------------- 9. Shared pieces */

/* Menus and popovers: opaque raised surface, no blur. */
.n-dropdown-body,
.bg-n-alpha-3.backdrop-blur-\[100px\] {
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  background: var(--paper-2) !important;
  border-color: var(--line-soft) !important;
  border-radius: var(--radius-sm) !important;
  box-shadow: var(--shadow-floating) !important;
}

.tooltip {
  padding: 5px 8px;
  border-radius: 8px;
  background: var(--tooltip-bg);
  color: var(--tooltip-ink);
  font-size: 11px;
  line-height: 1.35;
  box-shadow: none;
}

.modal-container {
  border: 1px solid var(--line-soft);
  border-radius: var(--radius-lg) !important;
  background: var(--paper-2) !important;
  box-shadow: var(--shadow-floating) !important;
}

/* Auth pages: the IPW wordmark is tall. */
img.h-8[src*="/brand/logo"] {
  height: 5.5rem;
}
img.m-4.w-32 {
  display: none !important;
}

/* --------------------------------------------------- 10. Responsive and motion */

@media (min-width: 768px) and (max-width: 1279px) {
  .conversations-list-wrap:not(.basis-full) {
    width: 320px;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
  }
}

/* ------------------------------------------------------------ 11. Refinements */

/* Names keep the interface's start edge even when the text itself is RTL. */
.conversation--user,
.sd-contact-title,
.sd-panel-title {
  text-align: -webkit-match-parent;
  text-align: match-parent;
}

/* App-level announcements: a quiet strip rather than a saturated bar. */
.banner.primary {
  background: var(--teal-wash) !important;
  color: var(--ink-soft) !important;
  border-block-end: 1px solid var(--line-soft);
}
.banner.primary a {
  color: var(--teal) !important;
  font-weight: 600;
}
.banner.primary button {
  color: var(--teal) !important;
  background: transparent !important;
}
.banner.primary,
.banner.warning,
.banner.alert:not(.sd-notice) {
  height: 40px !important;
}

/* Contact details: labels on one line. */
.sd-kv-label {
  flex-basis: 96px;
  white-space: nowrap;
}

/* Conversation actions: quiet field labels, medium-weight values. */
.sd-accordion__body .items-center.flex.justify-between > span.text-sm {
  font-size: 12px;
  font-weight: 600;
  color: var(--ink-soft);
}
.sd-accordion__body h4 {
  font-size: 13px;
  font-weight: 500;
}
.sd-accordion__body .mb-2 > button {
  height: 40px;
  border-radius: var(--radius-control);
  outline-color: var(--line);
}

/* Give the thread the room on mid-size desktops. */
@media (min-width: 1280px) and (max-width: 1535px) {
  .conversations-list-wrap:not(.basis-full) {
    width: 340px;
  }
}

/* The conversation workspace may never push the contact panel off-screen. */
#app > .flex.flex-grow > main {
  min-width: 0;
}

@media (min-width: 1280px) {
  .sd-conversation-header {
    flex: 0 0 64px;
  }
}

/* A locked Reply dims only its own segment, not the active mode. */
.sd-mode-toggle:disabled {
  opacity: 1;
}

/* Medium desktops: the contact panel floats over the thread rather than
   squeezing it. Keep 1279px in step with ConversationSidebar.vue. */
@media (min-width: 768px) and (max-width: 1279px) {
  main > section.flex.w-full.h-full {
    position: relative;
  }
  main > section.flex.w-full.h-full > div.max-w-sm {
    position: absolute;
    inset-block: 0;
    inset-inline-end: 0;
    z-index: 30;
    box-shadow: var(--shadow-floating);
  }
}

@media (min-width: 1280px) and (max-width: 1365px) {
  .conversations-list-wrap:not(.basis-full) {
    width: 320px;
  }
}

/* Conversation rows: channel and assignee line under the name. */
.conversation--meta {
  margin-block: 1px 0;
}
.conversation--meta .text-label-small,
.conversation--meta .text-xs {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
}
.conversation.unread .conversation--meta {
  padding-inline-end: 30px;
}

/* Row density: two-line rows sit near 62px, three-line rows under 80px. */
.conversation > div.flex-1 {
  padding-block: 9px;
}
.conversation .conversation--user ~ .leading-6 {
  height: 1.25rem;
  line-height: 1.25rem;
}
.conversation--meta {
  height: 16px;
}

/* ------------------------------------------------- 12. Brand mark overlay */

/* One large IPW mark sits behind the thread: flat surface, single overlay. */
.conversation-details-wrap {
  isolation: isolate;
}
.conversation-details-wrap::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background: var(--overlay-ink);
  -webkit-mask: url(/brand/ipw-mark-mask.svg?v=ipw4) center 42% / min(56%, 440px) auto no-repeat;
  mask: url(/brand/ipw-mark-mask.svg?v=ipw4) center 42% / min(56%, 440px) auto no-repeat;
}

/* ------------------------------------------------- 13. UI/UX pass (2026-10-07) */

/* Arabic and English messages each take their own direction, per paragraph. */
.prose-bubble,
.prose-bubble p,
.prose-bubble li,
.prose-bubble blockquote {
  unicode-bidi: plaintext;
  text-align: start;
}

/* Reports on phones: number cards wrap two per row, the hourly chart scrolls. */
@media (max-width: 767px) {
  .card-body {
    flex-wrap: wrap;
    row-gap: 1rem;
  }
  .card-body > * {
    flex: 1 1 45%;
    min-width: 0;
  }
  [class*="grid-cols-[80px_1fr]"] {
    overflow-x: auto;
  }
  [class*="min-h-[10rem]"] {
    min-width: 0;
    max-width: 100%;
    padding: 1rem;
  }
}

/* ------------------------------------------------------------------- Login page */
.sarrdeh-login.sarrdeh-login {
  --sl-font: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --sl-script-font: system-ui, "Segoe UI", Tahoma, "Noto Sans Arabic", Arial, sans-serif;
  --sl-script-weight: 700;
  --sl-bg: #0f0f0f;
  --sl-text: #f3f4f6;
  --sl-muted: rgba(243, 244, 246, 0.78);
  --sl-faint: rgba(243, 244, 246, 0.66);
  --sl-card: rgba(33, 33, 33, 0.94);
  --sl-card-border: rgba(223, 175, 144, 0.22);
  --sl-input-bg: rgba(0, 0, 0, 0.28);
  --sl-input-border: rgba(243, 244, 246, 0.42);
  --sl-accent: #dfaf90;
  --sl-button-bg: #dfaf90;
  --sl-button-text: #333333;
  --sl-glow-1: rgba(168, 78, 21, 0.32);
  --sl-glow-2: rgba(223, 162, 31, 0.12);
  --sl-watermark-opacity: 0.05;
}
.sarrdeh-login.sarrdeh-login.is-light {
  --sl-bg: #F4ECE0;
  --sl-text: #333333;
  --sl-muted: rgba(51, 51, 51, 0.86);
  --sl-faint: rgba(51, 51, 51, 0.78);
  --sl-card: rgba(255, 255, 255, 0.95);
  --sl-card-border: rgba(168, 78, 21, 0.16);
  --sl-input-bg: #ffffff;
  --sl-input-border: rgba(168, 78, 21, 0.8);
  --sl-accent: #a84e15;
  --sl-button-bg: #a84e15;
  --sl-button-text: #ffffff;
  --sl-glow-1: rgba(223, 162, 31, 0.16);
  --sl-glow-2: rgba(168, 78, 21, 0.1);
  --sl-watermark-opacity: 0.06;
}
.sarrdeh-login.sarrdeh-login .sl-script {
  color: #dfaf90;
}
.sarrdeh-login.sarrdeh-login.is-light .sl-script {
  color: #a84e15;
}
