/* Chrome = site Pinhapel (floresta #01341a + lima #92c63d, Montserrat/Poppins).
   Chat = WhatsApp Web. Logo oficial, sem leftover Cohere. */

:root {
  --pp-forest: #01341a;
  --pp-forest-mid: #0c6837;
  --pp-leaf: #345c32;
  --pp-lime: #92c63d;
  --pp-lime-deep: #84b13c;
  --pp-lime-hover: #50992f;
  --pp-leaf-bright: #6ba518;
  --pp-gold: #f6af2f;
  --tw-navy: #01341a;
  --tw-navy-deep: #012613;
  --tw-navy-dark: #01180d;
  --tw-green: #92c63d;
  --tw-bg: #f4f6f2;
  --tw-fg: #01341a;
  --tw-card: #ffffff;
  --tw-muted: #e6eee0;
  --tw-muted-fg: #345c32;
  --tw-border: #d5e0cc;
  --tw-primary: #92c63d;
  --tw-sidebar: #01341a;
  --tw-radius: 6px;
  --wa-in: #ffffff;
  --wa-out: #d9fdd3;
  --wa-thread: #efeae2;
  --wa-composer: #f0f2f5;
  --wa-meta: #54656f;
  --wa-list-hover: #e4e7ea;
  --wa-list-active: #d7e8b3;
  --wa-unread: #92c63d;
  --ok: #0c6837;
  --coral: #92c63d;
  --coral-soft: #c5e08a;
  --canvas: #f4f6f2;
  --stone: #e6eee0;
  --stone-soft: #f4f6f2;
  --ink: #01341a;
  --ink-2: #0c6837;
  --ink-muted: #3d5342;
  --ink-subtle: #4b6350;
  --ink-tertiary: #4b6350;
  --hairline: #d5e0cc;
  --hairline-soft: #e6eee0;
  --card: #ffffff;
  --card-border: #d5e0cc;
  --action-blue: #0c6837;
  --focus: #92c63d;
  --pale-green: #eef6d8;
  --deep-green: #01341a;
  --error: #b42318;
  --success: #0c6837;
  --warn: #9a3412;
  --navy: #01341a;
  --f-display: "Poppins", "Montserrat", ui-sans-serif, sans-serif;
  --f-body: "Montserrat", "Poppins", ui-sans-serif, sans-serif;
  --f-mono: ui-monospace, "SFMono-Regular", Menlo, monospace;
  --s-1: 4px;
  --s-2: 8px;
  --s-3: 12px;
  --s-4: 16px;
  --s-5: 24px;
  --s-6: 32px;
  --shadow-1: 0 1px 2px rgb(1 52 26 / 0.08);
  --shadow-2: 0 8px 24px rgb(1 52 26 / 0.12);
  --shadow-3: 0 20px 50px rgb(1 52 26 / 0.22);
  --z-rail: 30;
  --z-overlay: 40;
  --z-modal: 70;
  --z-toast: 80;
  --z-dialog: 90;
  --z-preview: 95;
  --r-xs: 4px;
  --r-sm: 8px;
  --r-md: 16px;
  --r-lg: 22px;
  --r-pill: 9999px;
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);
  --ease-in: cubic-bezier(0.4, 0, 1, 1);
  --dur-fast: 140ms;
  --dur: 220ms;
  --dur-slow: 280ms;
  --icon-size: 24px;
  --control-h: 40px;
}

@font-face {
  font-family: "Material Symbols Outlined";
  font-style: normal;
  font-weight: 400;
  font-display: block;
  src: url("/static/panel/material-symbols-outlined.woff2") format("woff2");
}
.material-symbols-outlined {
  font-family: "Material Symbols Outlined";
  font-weight: 400;
  font-style: normal;
  font-size: var(--icon-size) !important;
  line-height: 1;
  letter-spacing: normal;
  text-transform: none;
  display: inline-block;
  white-space: nowrap;
  word-wrap: normal;
  direction: ltr;
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
  -webkit-font-feature-settings: "liga";
  font-feature-settings: "liga";
  user-select: none;
  flex-shrink: 0;
  speak: never;
}

*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  padding: 0;
  height: 100%;
  overflow: hidden;
  font-family: var(--f-body);
  font-size: 14px;
  line-height: 1.5;
  background: var(--tw-bg);
  color: var(--tw-fg);
  -webkit-font-smoothing: antialiased;
}
button, a, summary, [role="button"], [role="option"] { cursor: pointer; }
button { font-family: inherit; font-size: inherit; }
button:active:not(:disabled):not(.login-eye), .btn:active:not(:disabled), .pay-btn:active:not(:disabled) {
  transform: scale(0.98);
}
:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 2px;
}

* {
  scrollbar-width: thin;
  scrollbar-color: var(--tw-border) transparent;
}

/* Login = clone do TW Diesel Login.tsx (marca via wordmark). */
html:has(body.login-page) {
  font-size: 16px;
  height: 100%;
  overflow: hidden;
}
body.login-page {
  height: 100%;
  max-height: 100dvh;
  overflow: hidden;
  font-size: 16px;
  display: block !important;
  grid-template-columns: none !important;
  margin: 0;
  padding: 0;
  background: transparent !important;
}
body.login-page::before { display: none; }

.tw-login {
  position: relative;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 1rem;
  background: #01341a;
}
.tw-blobs { display: none !important; }
.tw-blob {
  position: absolute;
  border-radius: 9999px;
  filter: blur(64px);
}
.tw-blob-g {
  right: -6rem;
  top: -6rem;
  width: 28rem;
  height: 28rem;
  background: #92c63d;
  opacity: 0.35;
}
.tw-blob-b {
  bottom: -8rem;
  left: -5rem;
  width: 26rem;
  height: 26rem;
  background: #f6af2f;
  opacity: 0.22;
}
.tw-blob-n {
  left: 50%;
  top: 33%;
  width: 36rem;
  height: 36rem;
  transform: translateX(-50%);
  background: #0c6837;
  opacity: 0.28;
}
.tw-login-col {
  position: relative;
  z-index: 10;
  width: 100%;
  max-width: 22rem;
}
.login-card {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  border: 1px solid rgb(255 255 255 / 0.1);
  background: rgb(255 255 255 / 0.95);
  border-radius: 0.375rem;
  box-shadow: 0 20px 25px -5px rgb(0 0 0 / 0.25), 0 8px 10px -6px rgb(0 0 0 / 0.25);
  backdrop-filter: blur(12px);
  overflow: hidden;
  padding-top: 0.5rem;
  padding-bottom: 0.5rem;
}
.login-logo {
  display: flex;
  justify-content: center;
  border-bottom: 1px solid rgb(214 14% 84% / 0.6);
  border-bottom: 1px solid hsl(214 14% 84% / 0.6);
  padding: 1.25rem 1rem 0.75rem;
  min-height: 0;
  background: transparent;
}
.login-logo img {
  height: 3.1rem;
  width: auto;
  max-width: 14rem;
  object-fit: contain;
  object-position: center;
}
.login-card h1 {
  margin: 0;
  padding: 0.75rem 1rem 0.75rem;
  text-align: center;
  font-family: var(--f-display);
  font-size: 16px;
  font-weight: 600;
  line-height: 1.2;
  letter-spacing: 0;
  color: var(--pp-forest);
}
.login-fields {
  padding: 0 1rem 1rem;
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
.login-field { display: flex; flex-direction: column; gap: 0.25rem; }
.login-field label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  color: hsl(222 30% 8% / 0.9);
  margin-bottom: 0;
  text-transform: none;
  letter-spacing: 0;
}
.login-input { position: relative; }
.login-input > .material-symbols-outlined {
  position: absolute;
  left: 0.5rem;
  top: 50%;
  transform: translateY(-50%);
  color: hsl(220 10% 32%);
  pointer-events: none;
}
.login-input input {
  width: 100%;
  height: 44px;
  min-width: 0;
  border: 1px solid hsl(214 14% 84% / 0.8);
  border-radius: 0.375rem;
  padding: 0 0.5rem 0 2rem;
  font-size: 16px;
  background: hsl(210 20% 98% / 0.8);
  color: var(--pp-forest);
  box-shadow: var(--shadow-1);
}
.login-input input:focus {
  border-color: #92c63d;
  box-shadow: 0 0 0 3px rgb(146 198 61 / 0.28);
}
.login-input.has-eye,
.overlay .login-input.has-eye,
.modal .login-input.has-eye {
  position: relative;
  display: block;
  width: 100%;
  overflow: hidden;
}
.login-input.has-eye input,
.overlay .login-input.has-eye input,
.modal .login-input.has-eye input {
  width: 100%;
  padding-right: 44px !important;
}
.login-eye,
.overlay .login-eye,
.modal .login-eye,
button.login-eye:active {
  position: absolute !important;
  right: 0;
  top: 0;
  bottom: 0;
  transform: none !important;
  width: 44px !important;
  height: auto !important;
  min-width: 44px !important;
  min-height: 0 !important;
  max-width: 44px;
  max-height: none;
  border: 0;
  background: transparent;
  color: hsl(220 10% 32%);
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0 !important;
  margin: 0;
  overflow: hidden;
  flex: none;
  z-index: 2;
}
.login-eye .material-symbols-outlined {
  font-size: 22px !important;
  line-height: 1;
  position: relative;
}
.login-eye.is-revealed .material-symbols-outlined::after {
  content: "";
  position: absolute;
  left: 2px;
  right: 2px;
  top: 50%;
  height: 2px;
  background: currentColor;
  transform: rotate(-22deg);
}
.login-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  font-size: 11px;
  padding-top: 0.125rem;
  margin-top: 0;
}
.login-remember {
  display: flex;
  align-items: center;
  gap: 0.375rem;
  color: hsl(220 10% 32%);
  font-weight: 400;
  font-size: 11px;
  cursor: pointer;
}
.login-remember input {
  appearance: none;
  width: 1rem;
  height: 1rem;
  margin: 0;
  border: 1px solid hsl(214 14% 84%);
  border-radius: 4px;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.05);
}
.login-remember input:checked {
  background: #92c63d;
  border-color: #92c63d;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 16 16'%3E%3Cpath fill='none' stroke='%23fff' stroke-width='2' d='M3.5 8.5 6.5 11.5 12.5 4.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: center;
  background-size: 0.875rem;
}
.login-link {
  border: 0;
  background: none;
  color: #0c6837;
  font-size: 11px;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
}
.login-link:hover { text-decoration: underline; }
.login-card button[type="submit"] {
  width: 100%;
  height: 44px;
  margin-top: 0.25rem;
  border: 0;
  border-radius: 9999px;
  background: #92c63d;
  color: #01341a;
  font-family: var(--f-body);
  font-size: 14px;
  font-weight: 600;
  box-shadow: var(--shadow-1);
}
.login-card button[type="submit"]:hover { background: #50992f; color: #01341a; }
.login-card button[type="submit"]:disabled { opacity: 0.55; cursor: not-allowed; }
.login-or {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  color: hsl(220 10% 32%);
  font-size: 11px;
  padding-top: 0.125rem;
  margin-top: 0;
}
.login-or::before,
.login-or::after {
  content: "";
  flex: 1;
  min-width: 0;
  height: 1px;
  background: hsl(214 14% 84%);
}
.login-or span { flex-shrink: 0; line-height: 1; }
.login-signup {
  margin: 0;
  text-align: center;
  font-size: 11px;
  color: hsl(220 10% 32%);
}
.login-link-green {
  border: 0;
  background: none;
  color: #0c6837;
  font-weight: 500;
  cursor: pointer;
  padding: 0;
  font-size: 11px;
}
.login-link-green:hover { text-decoration: underline; }
.login-copy {
  margin: 1.25rem 0 0;
  text-align: center;
  font-size: 12px;
  color: rgb(255 255 255 / 0.72);
}
.login-card .err {
  margin: 0;
  padding: 0.375rem 0.625rem;
  background: hsl(0 72% 46% / 0.1);
  border: 1px solid hsl(0 72% 46% / 0.4);
  color: hsl(0 72% 46%);
  border-radius: 0.375rem;
  font-size: 11px;
}
.login-card .sub { display: none; }

/* ——— Shell TW (rail 64px + overlay) + chat WhatsApp ——— */
.layout {
  height: 100dvh;
  overflow: hidden;
  display: flex;
  background: #f4f6f8;
}
.sidebar {
  width: 64px !important;
  flex-shrink: 0;
  height: 100%;
  background: #01341a !important;
  border-right: 1px solid #012613 !important;
  padding: 8px 0 0 !important;
  display: flex !important;
  flex-direction: column !important;
  z-index: 30;
  position: relative;
  transition: width var(--dur-slow) var(--ease-out);
}
.sidebar.expanded {
  width: 256px !important;
  box-shadow: none;
}
.side-scrim {
  display: block;
  position: fixed;
  inset: 0;
  background: rgb(0 0 0 / 0.4);
  z-index: 40;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) ease;
}
.side-scrim.on {
  opacity: 1;
  pointer-events: auto;
}
@media (max-width: 1279px) {
  .sidebar.expanded {
    position: fixed;
    left: 0;
    top: 0;
    height: 100dvh;
    z-index: 50;
    box-shadow: 0 25px 50px rgb(0 0 0 / 0.25);
  }
}
.side-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 8px 4px 6px;
  border-bottom: 0;
  margin: 0;
  min-height: 40px;
}
.side-brand::after { display: none !important; }
.side-mark { display: none !important; }
.side-mark-img {
  width: 32px;
  height: 32px;
  object-fit: contain;
  display: block;
  opacity: 1;
  transition: opacity var(--dur-fast) ease, width var(--dur) var(--ease-out), height var(--dur) var(--ease-out);
}
.side-word {
  display: block !important;
  height: 36px;
  width: auto;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  object-fit: contain;
  transition: opacity var(--dur) ease, max-width var(--dur-slow) var(--ease-out);
}
.sidebar.expanded .side-mark-img {
  width: 0;
  height: 0;
  opacity: 0;
  overflow: hidden;
}
.sidebar.expanded .side-word {
  max-width: 12rem;
  opacity: 1;
}
.side-expand {
  display: flex;
  align-items: center;
  justify-content: center;
  margin: 4px auto 8px;
  height: 24px;
  width: 36px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #e6eee0;
  cursor: pointer;
  transition: width var(--dur) var(--ease-out), min-width var(--dur) var(--ease-out), background var(--dur-fast) ease;
}
.side-expand .material-symbols-outlined { transition: transform var(--dur) var(--ease-out); }
.sidebar.expanded .side-expand { width: auto; min-width: 6.5rem; padding: 0 12px; }
.sidebar.expanded .side-expand .material-symbols-outlined { transform: rotate(180deg); }
.sidebar-nav { flex: 1; overflow: auto; padding: 4px 0; }
.side-item {
  display: flex !important;
  flex-direction: column !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  padding: 10px 0 !important;
  color: rgba(255,255,255,.68) !important;
  text-decoration: none !important;
  font-size: 12px !important;
  letter-spacing: 0 !important;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, padding var(--dur) var(--ease-out), gap var(--dur) var(--ease-out);
}
.side-label {
  display: inline-block;
  font-size: 12px;
  font-weight: 500;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  white-space: nowrap;
  transition: opacity var(--dur-fast) ease, max-width var(--dur-slow) var(--ease-out);
}
.sidebar.expanded .side-item {
  flex-direction: row !important;
  justify-content: flex-start !important;
  gap: 8px !important;
  padding: 8px 12px !important;
  font-size: 12px !important;
}
.sidebar.expanded .side-label { max-width: 160px; opacity: 1; }
.sidebar:not(.expanded) .side-label,
.sidebar:not(.expanded) .side-logout .side-label {
  position: absolute;
  width: 0;
  height: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.sidebar:not(.expanded) .side-item .material-symbols-outlined,
.sidebar:not(.expanded) .side-logout .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  flex-shrink: 0;
}
.sidebar:not(.expanded) .side-item,
.sidebar:not(.expanded) .side-logout {
  position: relative;
  min-height: 48px;
  padding: 4px 0 !important;
}
.sidebar:not(.expanded) .side-item:hover,
.sidebar:not(.expanded) .side-item.active,
.sidebar:not(.expanded) .side-logout:hover {
  background: transparent !important;
}
.sidebar:not(.expanded) .side-item:hover .material-symbols-outlined,
.sidebar:not(.expanded) .side-logout:hover .material-symbols-outlined {
  background: rgba(146, 198, 61, 0.16);
}
.sidebar:not(.expanded) .side-item.active .material-symbols-outlined {
  background: #92c63d;
}
.side-item:hover { background: rgba(146, 198, 61, 0.16) !important; color: #fff !important; }
.side-item.active { background: #92c63d !important; color: #01341a !important; }
.side-item.active .material-symbols-outlined { color: #01341a !important; }
.side-item.active::after { display: none !important; }
.sidebar-foot {
  margin-top: auto !important;
  border-top: 1px solid rgba(255,255,255,.12) !important;
  padding: 8px 6px 10px !important;
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 4px;
  width: 100%;
}
.sidebar-foot form {
  margin: 0;
  margin-left: auto;
  flex-shrink: 0;
}
.side-user {
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 0;
  flex: 1;
  min-width: 0;
  width: auto;
  height: auto !important;
  padding: 8px 8px 6px !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 8px !important;
  text-decoration: none !important;
  color: rgba(255,255,255,.68) !important;
  cursor: pointer;
}
.side-user:hover { background: rgba(146, 198, 61, 0.16) !important; color: #fff !important; }
.side-user.active { background: rgba(146, 198, 61, 0.22) !important; color: #fff !important; }
.side-user-email {
  display: block;
  max-width: 0;
  opacity: 0;
  font-size: 12px;
  font-weight: 500;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  transition: opacity var(--dur-fast) ease, max-width var(--dur-slow) var(--ease-out);
}
.sidebar.expanded .side-user {
  justify-content: flex-start;
  gap: 8px;
  padding: 8px 12px !important;
}
.sidebar.expanded .side-user-email { max-width: 180px; opacity: 1; }
.sidebar:not(.expanded) .sidebar-foot {
  flex-direction: column !important;
  align-items: center !important;
  justify-content: flex-end !important;
}
.sidebar:not(.expanded) .sidebar-foot form { margin-left: 0; }
.sidebar:not(.expanded) .side-user {
  position: relative;
  flex: 0 0 auto;
  justify-content: center;
  width: 100%;
  min-height: 48px;
  padding: 4px 0 !important;
}
.sidebar:not(.expanded) .side-user:hover,
.sidebar:not(.expanded) .side-user.active {
  background: transparent !important;
}
.sidebar:not(.expanded) .side-user .material-symbols-outlined {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 0;
  border-radius: 10px;
  background: none;
  flex-shrink: 0;
}
.sidebar:not(.expanded) .side-user:hover .material-symbols-outlined {
  background: rgba(146, 198, 61, 0.16);
}
.sidebar:not(.expanded) .side-user.active .material-symbols-outlined {
  background: #92c63d;
  color: #01341a;
}
.sidebar:not(.expanded) .side-user-email {
  position: absolute;
  width: 0;
  height: 0;
  max-width: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
}
.side-logout {
  width: auto;
  min-width: 40px;
  margin: 0 !important;
  display: flex !important;
  flex-direction: row;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 8px !important;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255,255,255,.62) !important;
  font-family: var(--f-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  cursor: pointer;
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease;
}
.side-logout .side-label {
  font-family: var(--f-body) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.2 !important;
  letter-spacing: 0 !important;
  transition: none !important;
}
#twSidebar:not(.expanded) .side-logout .side-label {
  display: none !important;
}
#twSidebar.expanded .side-logout .side-label {
  display: inline-block !important;
  position: static !important;
  width: auto !important;
  height: auto !important;
  max-width: none !important;
  opacity: 1 !important;
  overflow: visible !important;
  pointer-events: auto !important;
}
.sidebar.expanded .side-logout {
  gap: 8px;
  padding: 8px 12px !important;
}
.side-logout:hover {
  background: rgba(146, 198, 61, 0.16) !important;
  color: #fff !important;
}
.sidebar:not(.expanded) .side-logout:hover {
  background: transparent !important;
}
.sidebar:not(.expanded) .side-logout:hover .material-symbols-outlined {
  background: rgba(146, 198, 61, 0.16);
  color: #fff;
}

/* Chat = WhatsApp Web (só #shell). Chrome do produto fica na rail TW. */
#shell {
  display: grid !important;
  grid-template-columns: minmax(340px, 30%) minmax(0, 1fr) !important;
  flex: 1 1 0% !important;
  min-width: 0;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #fff;
  position: relative;
}
#shell.crm-open {
  grid-template-columns: minmax(340px, 30%) minmax(0, 1fr) !important;
}
#shell .rail {
  background: #fff !important;
  border-right: 1px solid #d1d7db !important;
  min-height: 0;
  display: flex !important;
  flex-direction: column !important;
}
#shell .rail-head {
  padding: 12px 12px 10px !important;
  gap: 10px !important;
  background: #fff !important;
  border-bottom: 1px solid #e9edef !important;
  flex-shrink: 0;
}
#shell .brand { justify-content: space-between; align-items: center; }
#shell .brand-name { font-size: 18px !important; font-weight: 600 !important; letter-spacing: 0 !important; color: #111b21 !important; }
#shell .brand-name b { font-weight: 600 !important; }
#shell .sound-toggle {
  width: 44px; height: 44px; padding: 0; border: 0; border-radius: 6px;
  background: transparent; color: #54656f; cursor: pointer;
  display: inline-flex; align-items: center; justify-content: center;
}
#shell .sound-toggle:hover { background: #f0f2f5; color: #111b21; }
#shell .rail-tools {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
#shell .rail-tools .search-box { flex: none; width: 100%; min-width: 0; margin: 0; position: relative; }
#shell .search-box .material-symbols-outlined {
  position: absolute;
  left: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: #667781;
  pointer-events: none;
}
#shell .search-input {
  height: var(--control-h) !important; border-radius: 10px !important;
  background: #f0f2f5 !important; border: 0 !important; font-size: 14px !important;
  padding-left: 40px !important;
}
.filter-dd {
  position: relative !important;
  margin: 0 !important;
  padding: 0 !important;
  flex: none;
  width: 100%;
  min-width: 0;
}
.filter-dd-trigger {
  display: flex !important;
  align-items: center !important;
  width: 100%;
  height: var(--control-h) !important;
  min-height: var(--control-h) !important;
  max-height: var(--control-h) !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: #f0f2f5 !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  color: #111b21 !important;
  box-shadow: none !important;
  padding: 0 10px 0 8px !important;
  gap: 8px !important;
  overflow: hidden;
}
.filter-dd-trigger:hover { background: #e8eaed !important; }
.filter-dd.open .filter-dd-trigger {
  background: #e8f5c8 !important;
  color: #01341a !important;
}
.filter-dd-label {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  text-align: left !important;
}
.filter-dd-trigger > .material-symbols-outlined:first-child { color: #01341a; flex-shrink: 0; }
.filter-dd-trigger > .material-symbols-outlined:last-child {
  color: #667781;
  margin-left: 0;
  flex-shrink: 0;
  transition: transform var(--dur) var(--ease-out);
}
.filter-dd.open .filter-dd-trigger > .material-symbols-outlined:last-child { transform: rotate(180deg); }
.filter-dd-menu {
  display: flex !important;
  position: absolute !important;
  top: calc(100% + 6px) !important;
  left: 0 !important;
  right: 0 !important;
  width: 100% !important;
  min-width: 0 !important;
  z-index: 40;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  gap: 2px !important;
  padding: 8px !important;
  border: 0 !important;
  border-radius: 14px !important;
  background: #fff !important;
  box-shadow: 0 18px 40px rgb(1 52 26 / 0.14) !important;
  animation: none !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(-6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
.filter-dd:not(.open) .filter-dd-menu {
  display: none !important;
}
.filter-dd.open .filter-dd-menu {
  display: flex !important;
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
.filter-dd.drop-up .filter-dd-menu {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
  transform: translateY(6px);
}
.filter-dd.drop-up.open .filter-dd-menu {
  transform: none;
}
#pager, .pager { position: relative; z-index: 6; overflow: visible; }
#pager .filter-dd-menu,
.pager .filter-dd-menu {
  top: auto !important;
  bottom: calc(100% + 6px) !important;
  transform: translateY(6px);
}
#pager .filter-dd.open .filter-dd-menu,
.pager .filter-dd.open .filter-dd-menu {
  transform: none;
}
.filter-dd-opt {
  display: flex !important;
  align-items: center !important;
  gap: 10px !important;
  width: 100% !important;
  height: auto !important;
  min-height: 40px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #01341a !important;
  font-size: 13px !important;
  font-weight: 500 !important;
  padding: 8px 10px !important;
  text-align: left !important;
  overflow: hidden;
}
.filter-dd-opt > .material-symbols-outlined {
  flex-shrink: 0;
  color: #667781;
}
.filter-dd-opt-label {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.filter-dd-opt:hover { background: #f4f6f2 !important; color: #01341a !important; }
.filter-dd-opt-danger,
.filter-dd-opt-danger > .material-symbols-outlined,
.filter-dd-opt-danger .filter-dd-opt-label { color: #b42318 !important; }
.filter-dd-opt-danger:hover {
  background: #fde8e8 !important;
  color: #b42318 !important;
}
.filter-dd-opt.active {
  background: #e8f5c8 !important;
  border: 0 !important;
  color: #01341a !important;
  font-weight: 600 !important;
}
.filter-dd-opt.active > .material-symbols-outlined { color: #01341a; }
.filter-dd-opt .count,
.filter-dd .count {
  flex-shrink: 0 !important;
  margin-left: auto !important;
  background: #eef2e8 !important;
  color: #3d5342 !important;
  font-size: 11px !important;
  font-weight: 600 !important;
  border-radius: 999px !important;
  padding: 2px 7px !important;
  white-space: nowrap;
}
.filter-dd-opt.active .count,
.filter-dd.open .filter-dd-trigger .count {
  background: #01341a !important;
  color: #92c63d !important;
}
#shell .rail-tools .filter-dd { width: 100%; }
.controls .filter-dd,
#pager .filter-dd,
.pager .filter-dd {
  width: auto;
  min-width: 168px;
  flex: 0 1 220px;
}
#pager .filter-dd,
.pager .filter-dd {
  flex: 0 0 112px;
  min-width: 96px;
}
.modal .filter-dd,
.overlay .filter-dd,
.edit-drawer .filter-dd,
.pay-select .filter-dd,
.art-panel-row .filter-dd,
.field .filter-dd {
  width: 100%;
  min-width: 0;
}
select.ui-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
}
#shell .conv-list { padding: 0 !important; flex: 1; min-height: 0; }
#shell .conv {
  display: grid !important;
  grid-template-columns: 49px 1fr;
  gap: 13px;
  align-items: center;
  width: 100%;
  min-height: 72px;
  padding: 12px 14px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  border-bottom: 1px solid #e9edef !important;
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  isolation: isolate;
  background: none;
  text-align: left;
  cursor: pointer;
}
#shell .conv > * { position: relative; z-index: 1; }
#shell #conversationList button.conv:hover::before,
#shell #conversationList button.conv.active::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
#shell #conversationList button.conv:hover::before { background: #e4e7ea; }
#shell #conversationList button.conv.active::before,
#shell #conversationList button.conv.active:hover::before {
  background: #d7e8b3;
  box-shadow: inset 3px 0 0 #01341a;
}
#shell .conv-avatar {
  width: 49px !important; height: 49px !important; border-radius: 50% !important;
  display: flex; align-items: center; justify-content: center;
  color: #fff; font-size: 18px !important; font-weight: 500;
}
#shell .conv-name {
  font-size: 17px !important; font-weight: 400 !important; color: #111b21 !important;
  display: block !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
#shell .conv.unread .conv-name { font-weight: 600 !important; }
#shell .conv.unread::before {
  content: "";
  position: absolute;
  left: 0;
  top: 14px;
  bottom: 14px;
  width: 3px;
  border-radius: 0 3px 3px 0;
  background: #92c63d;
}
#shell .conv-preview { font-size: 14px !important; color: #667781 !important; }
#shell .conv.unread .conv-preview { color: #111b21 !important; font-weight: 700 !important; }
#shell .conv-time { font-size: 12px !important; color: #667781 !important; font-family: inherit !important; display: inline-flex; align-items: center; gap: 6px; }
#shell .conv.unread .conv-time { color: #01341a !important; font-weight: 500 !important; }
#shell .conv-unread {
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 10px;
  background: #92c63d;
  color: #01341a;
  flex-shrink: 0;
  font-size: 11px !important;
  font-weight: 700 !important;
  line-height: 20px;
  font-family: inherit !important;
}
#shell .conv-row3 { display: none !important; }
#shell .unread-dot, #shell .pip { background: var(--pp-lime) !important; box-shadow: none !important; }
#shell .pip { min-width: 20px; height: 20px; border-radius: 10px; font-size: 11px; }
#shell .rail-foot { display: none !important; }
#shell .empty-state {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  color: #667781;
  padding: 48px 24px;
  gap: 6px;
}
#shell .empty-state strong {
  display: block;
  white-space: normal;
}
#shell .empty-state span {
  display: block;
  white-space: normal;
  line-height: 1.5;
}
#shell .empty-state .empty-cta {
  display: inline-flex;
  margin: 12px auto 0;
}
#shell .empty-state .material-symbols-outlined,
#shell .messages-empty .material-symbols-outlined,
.ms-empty {
  color: #667781;
  display: block;
  margin: 0 auto 12px;
}

#shell .main {
  display: flex !important;
  flex-direction: column !important;
  min-height: 0;
  height: 100%;
  overflow: hidden;
  background: #efeae2;
}
#shell .chat-head {
  flex: 0 0 59px;
  min-height: 59px !important;
  height: 59px !important;
  padding: 0 12px 0 16px !important;
  gap: 8px !important;
  display: flex !important;
  align-items: center !important;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  position: relative;
  z-index: 6;
  background: #f0f2f5 !important;
  border-bottom: 1px solid #d1d7db !important;
}
#shell .chat-head-left {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  min-width: 0;
  flex: 1 1 auto;
  overflow: hidden;
}
#shell .chat-head-info {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  justify-content: center !important;
  flex-wrap: nowrap !important;
  flex: 1 1 0% !important;
  gap: 2px !important;
  width: 0 !important;
  min-width: 0 !important;
  max-width: 100%;
  overflow: hidden !important;
}
#shell .chat-head .conv-avatar,
#shell #chatAvatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 15px !important;
  flex-shrink: 0;
  font-family: var(--f-display), Montserrat, sans-serif !important;
  font-variation-settings: normal !important;
  line-height: 1 !important;
  overflow: hidden;
}
#shell .chat-head-info h2,
#shell #chatTitle {
  display: block !important;
  font-size: 16px !important; font-weight: 500 !important; letter-spacing: 0 !important;
  font-family: inherit !important; color: #111b21 !important;
  flex: 0 0 auto;
  width: 100%;
  min-width: 0 !important;
  max-width: 100% !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  word-break: normal !important;
  overflow-wrap: normal !important;
}
#shell .chat-head-meta {
  text-transform: none !important; font-family: inherit !important;
  font-size: 13px !important; letter-spacing: 0 !important; color: #667781 !important;
  margin-top: 0 !important;
  display: block !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  flex: 0 0 18px !important;
  height: 18px !important;
  max-height: 18px !important;
  line-height: 18px !important;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}
#shell .chat-head-meta .dot {
  display: inline-block !important;
  width: 3px;
  height: 3px;
  border-radius: 99px;
  background: #667781 !important;
  vertical-align: middle;
  margin: 0 6px;
}
#shell .chat-head-meta .chip { display: none !important; }
#shell .chat-head-meta .meta-item {
  display: inline !important;
  white-space: nowrap !important;
}
#shell .chat-head-meta .meta-item > span:last-child {
  min-width: 0;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
#shell .chat-head-meta .material-symbols-outlined {
  display: inline-block !important;
  font-size: 15px !important;
  line-height: 18px !important;
  color: #54656f;
  vertical-align: middle;
  margin-right: 3px;
}
#shell .lead-toggle {
  color: #54656f !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  flex-direction: row !important;
  gap: 5px !important;
  padding: 0 8px !important;
  margin: 0 !important;
  height: 32px;
  border-radius: 6px;
  flex-shrink: 0;
}
#shell .lead-toggle svg { width: 15px !important; height: 15px !important; transform: none !important; }
#shell .lead-toggle:hover { background: #e9edef; color: #111b21 !important; }
#shell.crm-open .lead-toggle { color: #00a884 !important; background: rgb(0 168 132 / 0.08); }
#shell .chat-actions {
  flex: 0 0 auto;
  flex-wrap: nowrap !important;
  overflow: visible !important;
  gap: 4px !important;
  max-width: none;
}
#shell .chat-actions .filter-dd {
  width: auto !important;
  flex: 0 0 auto;
  z-index: 30;
}
#shell .chat-actions .filter-dd-trigger {
  width: auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  min-width: 36px;
  padding: 0 8px !important;
  border-radius: 18px !important;
  background: transparent !important;
  color: #54656f !important;
}
#shell .chat-actions .filter-dd-trigger .filter-dd-label { display: none; }
#shell .chat-actions .filter-dd-trigger > .material-symbols-outlined:first-child {
  color: #54656f;
  font-size: 22px !important;
}
#shell .chat-actions .filter-dd.open .filter-dd-trigger {
  background: #e8f5c8 !important;
  color: #01341a !important;
}
#shell .chat-actions .filter-dd.open .filter-dd-trigger > .material-symbols-outlined:first-child {
  color: #01341a;
}
#shell .chat-actions .filter-dd-menu {
  left: auto !important;
  right: 0 !important;
  width: max-content !important;
  min-width: 220px !important;
  z-index: 80;
}
#shell .chat-menu-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  height: 36px;
  min-width: 36px;
  padding: 0 8px;
  border: 0;
  border-radius: 18px;
  background: transparent;
  color: #54656f;
  cursor: pointer;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
}
#shell .chat-menu-btn .material-symbols-outlined { font-size: 22px !important; }
#shell .chat-menu-btn:hover,
#shell .chat-menu-btn[aria-expanded="true"] {
  background: #e9edef;
  color: #111b21;
}
#shell .btn.primary { background: #00a884; color: #fff; border-color: #00a884; }

#shell .handoff-banner {
  display: flex !important;
  margin: 0 16px !important;
  padding-top: 0;
  padding-bottom: 0;
  max-height: 0;
  opacity: 0;
  overflow: hidden;
  pointer-events: none;
  border-radius: 8px !important;
  transform: translateY(-6px);
  transition: opacity var(--dur) ease, transform var(--dur) var(--ease-out), max-height var(--dur-slow) var(--ease-out), margin var(--dur) ease, padding var(--dur) ease;
}
#shell .handoff-banner.show {
  margin: 8px 16px 0 !important;
  padding: 12px 18px;
  max-height: 96px;
  opacity: 1;
  pointer-events: auto;
  transform: none;
}
#shell .handoff-banner .btn {
  background: #fff !important;
  border-color: #fff !important;
  color: #01341a !important;
  font-weight: 650 !important;
}
#shell .handoff-banner .btn:hover {
  background: #e8f5c8 !important;
  color: #01341a !important;
}
#shell .art-panel { margin: 8px 16px 0 !important; }

#shell .messages {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow-y: auto !important;
  overflow-x: hidden !important;
  padding: 8px 8px 10px !important;
  gap: 3px !important;
  align-items: flex-start !important;
  background-color: #efeae2 !important;
  background-image: none !important;
}
#shell .messages-empty {
  margin: auto; max-width: 420px; gap: 10px !important;
}
#shell .messages-empty h3 { font-size: 32px !important; font-weight: 300 !important; color: #41525d !important; letter-spacing: 0 !important; }
#shell .messages-empty p { font-size: 14px !important; color: #667781 !important; }
#shell .thread-more {
  align-self: center;
  margin: 8px 0 6px;
  padding: 7px 14px;
  border: 0;
  border-radius: 8px;
  background: #fff;
  color: #54656f;
  font: inherit;
  font-size: 12.5px;
  font-weight: 600;
  box-shadow: 0 1px 1.5px rgba(11,20,26,.13);
  cursor: pointer;
}
#shell .thread-more.loading { opacity: 0.7; cursor: progress; }
#shell .list-more {
  display: flex;
  align-items: center;
  justify-content: center;
  width: calc(100% - 16px);
  margin: 8px;
  padding: 10px 14px;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #01341a;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 1px 1.5px rgba(11,20,26,.13);
  cursor: pointer;
}
#shell .list-more:hover { background: #e8f5c8; }
#shell .list-more.loading { opacity: 0.7; cursor: progress; }
#shell .day-marker {
  align-self: center;
  background: #ffffff !important; border: 0 !important;
  color: #54656f !important; box-shadow: 0 1px 1.5px rgba(11,20,26,.13);
  font-size: 12.5px !important; text-transform: none !important;
  letter-spacing: 0 !important; font-family: inherit !important;
  padding: 5px 12px !important; border-radius: 8px !important;
  margin: 8px 0;
}
#shell .msg {
  position: relative;
  width: fit-content !important;
  max-width: min(82%, 560px) !important;
  flex-shrink: 0;
  align-self: flex-start !important;
  padding: 6px 9px 5px 10px !important;
  border-radius: 7.5px !important;
  background: #fff !important; color: #111b21 !important;
  border: 0 !important; font-size: 14.2px !important; line-height: 1.4 !important;
  box-shadow: 0 1px 0.5px rgba(11,20,26,.13);
}
#shell .msg-react-open {
  position: absolute;
  top: -8px;
  right: -10px;
  width: 24px;
  height: 24px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: #fff;
  color: #54656f;
  box-shadow: 0 1px 2px rgba(11,20,26,.18);
  display: none;
  place-items: center;
  cursor: pointer;
  z-index: 3;
}
#shell .msg-react-open .material-symbols-outlined { font-size: 16px !important; }
#shell .msg.outbound .msg-react-open { right: auto; left: -10px; }
#shell .msg:hover .msg-react-open { display: grid; }
@media (hover: none) {
  #shell .msg-react-open { display: none !important; }
}
.msg-react-pop {
  position: fixed;
  z-index: 96;
  display: flex;
  align-items: center;
  gap: 2px;
  padding: 4px 6px;
  background: #fff;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(11,20,26,.2), 0 0 0 1px rgba(11,20,26,.06);
}
.msg-react-pop[hidden] { display: none !important; }
.msg-react-pop button {
  width: 36px;
  height: 36px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 20px;
  line-height: 1;
  cursor: pointer;
  transition: transform var(--dur-fast) var(--ease-out), background var(--dur-fast) ease;
}
.msg-react-pop button:hover:not(:disabled) {
  background: #f0f2f5;
  transform: scale(1.18);
}
.msg-react-pop button:disabled { opacity: 0.4; cursor: not-allowed; }
#shell .msg.outbound {
  align-self: flex-end !important;
  background: #d9fdd3 !important; color: #111b21 !important;
  border-color: transparent !important;
  border-top-right-radius: 0 !important;
}
#shell .msg:not(.outbound):not(.system) { border-top-left-radius: 0 !important; }
#shell .msg.system {
  align-self: center !important;
  background: #fff !important; color: #54656f !important; border: 0 !important;
  box-shadow: 0 1px 1.5px rgba(11,20,26,.08); font-size: 12.5px !important;
}
#shell .msg .meta {
  float: right;
  margin: 4px 0 -1px 10px;
  color: #667781 !important;
  font-size: 11px !important;
  line-height: 1.2 !important;
  white-space: nowrap;
  display: inline-flex;
  align-items: center;
  gap: 2px;
}
#shell .msg-ticks {
  font-size: 16px !important;
  line-height: 1;
  margin-left: 1px;
}
#shell .msg-ticks.sent,
#shell .msg-ticks.delivered,
#shell .msg-ticks.pending { color: #8696a0; }
#shell .msg-ticks.read { color: #53bdeb; }
#shell .msg-ticks.failed { color: #e54b4b; }
#shell .msg.msg-sticker-wrap {
  background: transparent !important;
  box-shadow: none !important;
  padding: 0 2px 2px !important;
}
#shell .msg-stack {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  align-self: flex-start;
  width: fit-content;
  max-width: min(82%, 560px);
  flex-shrink: 0;
  margin-bottom: 8px;
}
#shell .msg-stack.outbound {
  align-self: flex-end;
  align-items: flex-end;
}
#shell .msg-stack .msg {
  max-width: 100% !important;
}
#shell .msg.has-react { margin-bottom: 14px !important; }
#shell .msg-react-chip {
  position: absolute;
  left: 8px;
  bottom: -12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  min-width: 24px;
  height: 22px;
  padding: 1px 6px 2px;
  background: #fff;
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(11,20,26,.18);
  font-size: 13px;
  line-height: 1;
  z-index: 2;
}
#shell .msg.outbound .msg-react-chip { left: auto; right: 8px; }
#shell .msg-react-theirs,
#shell .msg-react-mine {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  line-height: 1;
  cursor: default;
}
#shell .msg-react-mine { cursor: pointer; }
#shell .msg-react-mine:hover { transform: scale(1.08); }
.msg-react-pop button.is-mine {
  outline: 2px solid #01341a;
  background: #e8f5d6;
}
#shell .msg.msg-sticker-wrap .msg-sticker {
  display: block;
  width: min(148px, 46vw);
  height: auto;
}
#shell .msg-video {
  display: block;
  max-width: min(260px, 70vw);
  max-height: 280px;
  border-radius: 8px;
  background: #000;
}
#chatAvatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: inherit;
  display: block;
}
#shell .msg.msg-voice {
  position: relative;
  width: min(300px, 88%) !important;
  max-width: min(300px, 88%) !important;
  padding: 8px 10px 6px 8px !important;
  overflow: hidden;
  flex-shrink: 0;
  min-height: 0;
  white-space: normal !important;
}
#shell .msg.msg-voice .meta { display: none !important; }
#shell .msg.msg-voice.outbound {
  background: #005c4b !important;
  color: #fff !important;
}
.wa-voice {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr);
  grid-template-rows: 32px 16px;
  column-gap: 8px;
  align-items: center;
  width: 100%;
  color: inherit;
}
.wa-voice audio { display: none; }
.wa-voice-avatar {
  position: relative;
  grid-column: 1;
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  align-self: center;
  justify-self: center;
}
.wa-voice-ini {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #01341a;
  color: #92c63d;
  font-weight: 600;
  font-size: 11px;
}
.msg.outbound .wa-voice-ini {
  background: #0b3d32;
  color: #e7ffdb;
}
.wa-voice-mic {
  position: absolute;
  left: -2px;
  bottom: -2px;
  font-size: 13px !important;
  color: #667781;
}
.msg.outbound .wa-voice-mic { color: #d1f4e6; }
.wa-voice-main {
  grid-column: 2;
  grid-row: 1 / 3;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.wa-voice-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-height: 32px;
}
.wa-voice-play {
  width: 32px;
  height: 32px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  display: grid;
  place-items: center;
  cursor: pointer;
  flex-shrink: 0;
  border-radius: 50%;
}
.wa-voice-play .material-symbols-outlined {
  font-size: 28px !important;
  line-height: 1;
}
.wa-voice-play:focus-visible { outline: 2px solid currentColor; outline-offset: 2px; }
.wa-voice-track {
  position: relative;
  flex: 1 1 auto;
  align-self: center;
  height: 14px;
  cursor: pointer;
}
.wa-voice-track::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 50%;
  height: 2px;
  transform: translateY(-50%);
  background-image: radial-gradient(circle, currentColor 1.1px, transparent 1.3px);
  background-size: 5px 2px;
  background-repeat: repeat-x;
  opacity: 0.45;
}
.wa-voice-fill {
  position: absolute;
  left: 0;
  top: 50%;
  height: 2px;
  width: 0;
  transform: translateY(-50%);
  background: currentColor;
  opacity: 0.9;
  border-radius: 2px;
}
.wa-voice-thumb {
  position: absolute;
  top: 50%;
  left: 0;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: currentColor;
  transform: translate(-50%, -50%);
}
.wa-voice-foot {
  display: flex;
  align-items: center;
  min-height: 16px;
  padding: 0 0 2px 36px;
  font-size: 11px;
  line-height: 1;
  color: #667781;
}
.msg.outbound .wa-voice-foot { color: rgba(255,255,255,.78); }
.wa-voice-time {
  position: absolute;
  right: 8px;
  bottom: 4px;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  font-size: 11px;
  line-height: 1.2;
  color: #667781;
  white-space: nowrap;
}
.msg.outbound .wa-voice-time { color: rgba(255,255,255,.72); }
.wa-voice-ticks,
.wa-voice-time .msg-ticks {
  font-size: 16px !important;
  opacity: 0.9;
}
.wa-voice-time .msg-ticks.read { color: #53bdeb; }
.wa-voice-time .msg-ticks.failed { color: #ff8a80; }
.msg:not(.outbound) .wa-voice { color: #111b21; }
.msg:not(.outbound) .wa-voice-play { color: #54656f; }
#shell .composer {
  flex: 0 0 auto;
  background: #f0f2f5 !important;
  border-top: 0 !important;
  padding: 5px 16px 8px !important;
  min-height: 62px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
#shell .window-warn {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  width: 100%;
  margin: 0;
  padding: 9px 12px;
  border-radius: 8px;
  font-size: 12.5px;
  line-height: 1.45;
  letter-spacing: 0;
  white-space: normal;
  word-break: normal;
  overflow-wrap: break-word;
  background: #fff7f3;
  border: 1px solid #f3c9b8;
  color: #7a3a1a;
}
#shell .window-warn[hidden] { display: none !important; }
#shell .window-warn .material-symbols-outlined {
  font-size: 18px !important;
  line-height: 1.3;
  flex-shrink: 0;
  color: #b45309;
}
#shell .window-warn div { min-width: 0; flex: 1; }
#shell #composerForm { width: 100%; display: none; }
#shell .composer-card {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: #fff !important;
  padding: 6px 8px 6px 6px !important;
  min-height: 48px;
  width: 100%;
  box-shadow: none !important;
}
#shell .composer textarea {
  font-size: 15px !important;
  min-height: 24px !important;
  padding: 6px 8px !important;
  line-height: 1.35 !important;
}
#shell .composer-card .btn.icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #54656f !important;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  flex-shrink: 0;
}
#shell .composer-card button[type="submit"],
#shell .composer .btn.primary.icon {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px;
  min-height: 32px;
  padding: 0 !important;
  border: 0 !important;
  background: #00a884 !important;
  color: #fff !important;
  border-radius: 50% !important;
  display: grid;
  place-items: center;
  aspect-ratio: 1;
  flex-shrink: 0;
}
#shell .composer-card button[type="submit"] .material-symbols-outlined,
#shell #sendBtn .material-symbols-outlined {
  font-size: 16px !important;
}
#shell .composer-foot { display: none !important; }
#shell .composer-locked {
  width: 100%;
  border: 0 !important;
  background: transparent !important;
  color: #667781 !important;
  padding: 8px 4px !important;
  font-size: 14px !important;
  white-space: normal;
  word-break: normal;
}
#shell.idle .composer,
#shell.idle .handoff-banner,
#shell.idle .art-panel,
#shell.idle .chat-actions { display: none !important; }
#shell.idle .main { background: #f0f2f5; }
#shell.idle .messages {
  background-color: #f0f2f5 !important;
  background-image: none !important;
}
#shell .crm { display: none !important; }
#crmPark { display: none !important; }
#actPane .crm {
  display: flex !important;
  flex-direction: column;
  position: static;
  width: 100%;
  height: 100%;
  min-height: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  opacity: 1;
  visibility: visible;
  transform: none;
}
#actPane .crm-head {
  display: none;
}
#actPane .crm-tabs {
  padding: 0 0 0;
  border-bottom: 1px solid #e6ecf1;
}
#actPane .ctab {
  padding: 8px 12px;
  border: 0;
  background: transparent;
  color: #6b7785;
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  border-bottom: 2px solid transparent;
  cursor: pointer;
}
#actPane .ctab:hover { color: #01341a; }
#actPane .ctab.active { color: #01341a; border-bottom-color: #92c63d; }
#actPane .crm-body {
  flex: 1;
  min-height: 0;
  overflow: hidden;
  padding: 12px 0 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
#actPane .crm-body.crm-order,
#actPane .crm-body.crm-team,
#actPane .crm-body.crm-queue,
#actPane .crm-body.crm-profile {
  overflow: auto;
  gap: 24px;
  justify-content: flex-start;
  padding: 20px 2px 12px;
}
#actPane .fit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 32px 56px;
  align-items: start;
}
#actPane .lead-sheet,
#actPane .profile-fit,
#actPane .order-fit,
#actPane .order-pipe,
#actPane .order-product,
#actPane .order-values,
#actPane .team-fit,
#actPane .queue-fit,
#actPane .lead-actions {
  flex: 0 0 auto;
  width: 100%;
  max-width: 100%;
  padding: 0 !important;
  background: transparent;
  border: 0;
  box-shadow: none;
  overflow: visible;
}
#actPane .lead-block { width: 100%; }
#actPane .profile-col {
  display: flex;
  flex-direction: column;
  min-width: 0;
}
#actPane .crm-body .card-title {
  margin: 0 0 4px;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
#actPane .crm-body .field {
  flex: none;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr);
  align-items: start;
  gap: 16px;
  min-height: 48px;
  padding: 12px 0 !important;
  border-bottom: 1px solid var(--hairline-soft);
}
#actPane .crm-body .field .l {
  white-space: nowrap;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink-muted);
  line-height: 1.4;
  padding-top: 1px;
}
#actPane .crm-body .field .v {
  min-width: 0;
  max-width: none;
  text-align: left;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.4;
  color: var(--ink);
  overflow-wrap: break-word;
  word-break: break-word;
}
#actPane .crm-body .field .v.mono,
#actPane .crm-body .field .v.amount {
  font-variant-numeric: tabular-nums;
}
#actPane .order-values-row {
  display: flex;
  flex-direction: column;
}
#actPane .pipeline {
  display: flex;
  align-items: flex-start;
  gap: 0;
  padding: 12px 0 4px;
}
#actPane .step .dot {
  width: 12px;
  height: 12px;
}
#actPane .step + .step::before { top: 5px; }
#actPane .step .label {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
  line-height: 1.3;
}
#actPane .team-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}
#actPane .team-head .pay-btn {
  min-width: 140px;
  min-height: 44px;
  flex-shrink: 0;
  margin-top: 22px;
}
#actPane .agent-grid {
  display: flex;
  flex-direction: column;
}
#actPane .agent {
  min-height: 48px;
  padding: 10px 0;
  gap: 12px;
}
#actPane .agent-avatar {
  width: 36px;
  height: 36px;
  font-size: 13px;
}
#actPane .agent-email {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  font-weight: 600;
}
#actPane .agent-meta-row {
  font-family: inherit;
  font-size: 12px;
  letter-spacing: 0;
  text-transform: none;
}
#actPane .agent-owner-tag {
  font-family: inherit;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0;
  text-transform: none;
}
#actPane .agent .btn {
  flex: 0 0 auto;
  min-width: 88px;
  min-height: 36px;
}
#actPane .queue-grid {
  display: flex;
  flex-direction: column;
}
#actPane .queue-empty {
  padding: 16px 0;
  font-size: 14px;
  color: var(--ink-muted);
}
#actPane .lead-actions { margin-top: 0; }
#actPane .lead-act {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 8px 0;
  border-top: 1px solid #f0f2f5;
}
#actPane .lead-act:first-of-type { border-top: 0; padding-top: 2px; }
#actPane .lead-act-copy { min-width: 0; flex: 1; }
#actPane .lead-act-copy strong {
  display: block;
  font-size: 13.5px;
  font-weight: 650;
  color: #121820;
  margin-bottom: 3px;
}
#actPane .lead-act-copy span {
  display: block;
  font-size: 12.5px;
  line-height: 1.4;
  color: #6b7785;
}
#actPane .lead-act .pay-btn {
  flex-shrink: 0;
  min-width: 132px;
}
#actPane .lead-act-danger .lead-act-copy strong { color: #b42318; }
@media (max-width: 760px) {
  #shell { grid-template-columns: 1fr !important; }
}
.btn.primary { background: #92c63d; color: #01341a; border-color: #92c63d; }

.content-scroll .btn:not(.icon),
.content-scroll input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.content-scroll select,
.layout > .shell:not(#shell) .btn:not(.icon),
.layout > .shell:not(#shell) input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.layout > .shell:not(#shell) select,
.overlay .btn,
.overlay input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.overlay select,
.edit-drawer .btn,
.edit-drawer input:not([type="checkbox"]):not([type="radio"]):not([type="file"]):not([type="hidden"]),
.edit-drawer select,
.drawer footer .btn,
.drawer header .btn,
.ui-dialog-cancel,
.ui-dialog-ok,
.empty-cta,
.controls .btn,
.sel-bar .btn,
.page-head .btn,
#pager .btn,
.pager button,
#pager select,
.pager select {
  height: var(--control-h) !important;
  min-height: var(--control-h) !important;
  box-sizing: border-box;
  padding-top: 0;
  padding-bottom: 0;
}

/* Listagens: card (tabela+pager) preenche a viewport desde o HTML, sem esperar JS.
   Chat (#shell) não entra. */
.layout > .content-scroll,
.layout > .shell:not(#shell) {
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 0% !important;
  min-width: 0;
  min-height: 0 !important;
  height: auto !important;
  overflow: hidden !important;
  background: #f4f6f8;
}
.layout > .content-scroll {
  padding: 12px 16px;
}
.content-scroll .page-head {
  flex-shrink: 0;
  max-width: none !important;
  width: 100%;
  padding: 4px 0 10px !important;
  margin: 0 !important;
}
.content-scroll .page-head-compact {
  display: flex;
  align-items: center;
  gap: 8px;
  position: relative;
}
.content-scroll .page-head-compact h1 { margin: 0 !important; }
.content-scroll .page-head-cta { margin-left: auto; flex-shrink: 0; }
.help-tip { position: relative; display: inline-flex; }
.help-tip > summary {
  list-style: none;
  width: 44px;
  height: 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid #d5dee6;
  border-radius: 50%;
  background: #fff;
  color: #4b5563;
  font-size: 12px;
  font-weight: 600;
  line-height: 1;
  cursor: pointer;
}
.help-tip > summary::-webkit-details-marker { display: none; }
.help-tip > summary:hover { background: #eef2f6; color: #121820; }
.help-pop {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 20;
  width: min(360px, calc(100vw - 96px));
  padding: 12px 14px;
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgb(0 0 0 / 0.12);
  color: #121820;
  font-size: 12px;
  line-height: 1.45;
}
.help-tip[open] .help-pop { animation: popIn var(--dur) var(--ease-out); }
.help-pop p { margin: 0 0 10px; color: #4b5563; }
.help-pop p:last-child { margin-bottom: 0; }
.help-pop strong { color: #121820; font-weight: 600; }
.quota {
  margin-left: auto;
  font-size: 11px;
  color: #6b7785;
}
.content-scroll h1 { font-size: 18px !important; font-weight: 600; letter-spacing: -0.02em; margin: 0 0 4px !important; }
.content-scroll .crumbs { font-size: 12px; letter-spacing: .04em; color: var(--ink-muted); }
.page-head > .crumbs,
.layout > .shell:not(#shell) .head .crumbs { display: none; }
.content-scroll.account-shell {
  overflow: hidden !important;
}
.account-page {
  flex: 1 1 0%;
  min-height: 0;
  max-width: none;
  width: 100%;
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-content: start;
  gap: 12px;
  padding: 0;
  overflow: auto;
}
.account-card {
  min-height: 0;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  background: #fff;
  border: 1px solid var(--hairline);
  border-radius: 12px;
  padding: 14px 18px;
  overflow: hidden;
}
.account-card h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
}
.account-card h2 .material-symbols-outlined {
  font-size: 20px;
  color: #01341a;
}
.account-body {
  display: flex;
  align-items: center;
  gap: 20px;
  min-width: 0;
}
.account-id {
  display: flex;
  align-items: center;
  gap: 14px;
}
.account-dl {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px 24px;
  margin: 0;
}
.account-dl > div {
  display: grid;
  gap: 4px;
  min-width: 0;
}
.account-dl dt {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-muted);
  font-weight: 600;
}
.account-dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
@media (max-width: 767px) {
  .account-page { grid-template-columns: 1fr; overflow: auto; }
  .account-body { flex-direction: column; align-items: flex-start; }
  .account-dl { width: 100%; grid-template-columns: 1fr; }
}
.account-avatar {
  width: 56px;
  height: 56px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #01341a;
  color: #92c63d;
  font-weight: 700;
  font-size: 18px;
  flex-shrink: 0;
}
.account-id strong { display: block; font-size: 16px; }
.account-email { margin-top: 2px; font-size: 13px; color: var(--ink-muted); }
.account-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 8px;
}
.account-status {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 2px 9px;
  border-radius: 99px;
  background: #e3f3ea;
  color: #0c6837;
  font-size: 12px;
  font-weight: 500;
}
.account-status .material-symbols-outlined { color: #25d366; }
.account-role {
  display: inline-block;
  padding: 2px 9px;
  border-radius: 99px;
  background: #eef6d8;
  color: #01341a;
  font-size: 12px;
  font-weight: 500;
}
.account-body .pref-row { flex: 1 1 auto; width: 100%; min-width: 0; }
.pref-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.pref-row strong { display: block; font-size: 15px; }
.pref-row p { margin: 4px 0 0; font-size: 13px; color: var(--ink-muted); max-width: 36ch; }
.pref-switch {
  width: 48px;
  height: 28px;
  padding: 2px;
  border: 0;
  border-radius: 999px;
  background: #c5d0bb;
  cursor: pointer;
  flex-shrink: 0;
  position: relative;
  transition: background var(--dur-fast) var(--ease-out);
}
.pref-switch::after {
  content: "";
  display: block;
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 2px rgb(0 0 0 / 0.16);
  transition: transform var(--dur-fast) var(--ease-out);
}
.pref-switch.on { background: #92c63d; }
.pref-switch.on::after { transform: translateX(20px); }
.pref-switch:focus-visible { outline: 2px solid #01341a; outline-offset: 3px; }
.account-card:has(#brandForm) { grid-column: 1 / -1; }
.brand-form { display: flex; flex-direction: column; gap: 12px; width: 100%; }
.brand-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}
.brand-field {
  display: grid;
  gap: 6px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.brand-field input[type="text"] {
  width: 100%;
  height: 40px;
  padding: 0 12px;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: var(--canvas);
  font: inherit;
  text-transform: none;
  letter-spacing: 0;
  font-size: 13px;
  font-weight: 500;
  color: var(--ink);
}
.brand-swatch { display: flex; align-items: center; gap: 8px; }
.brand-swatch input[type="color"] {
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--hairline);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}
.brand-swatch code { font-size: 13px; font-weight: 600; color: var(--ink); }
.brand-actions { display: flex; align-items: center; gap: 12px; }
.pref-save {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border: 0;
  border-radius: 10px;
  background: #01341a;
  color: #fff;
  font: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}
.pref-save .material-symbols-outlined { font-size: 18px; }
.brand-msg { font-size: 13px; color: var(--ink-muted); }
.content-scroll .container {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  max-width: none !important;
  width: 100%;
  padding: 0 !important;
  margin: 0 !important;
}
.content-scroll .summary,
.content-scroll .stats,
.content-scroll .controls,
.content-scroll .sel-bar,
.content-scroll .note,
.content-scroll .banner,
.content-scroll #banner {
  flex-shrink: 0;
}
.content-scroll #banner:empty { display: none; }
.stats, .summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 8px; margin-bottom: 10px; }
.stat { padding: 8px 10px !important; border: 1px solid #d5dee6; border-radius: 6px; background: #fff; }
.stat .label { font-size: 10px !important; text-transform: uppercase; letter-spacing: .04em; color: #6b7785; }
.stat .value { font-size: 18px !important; font-weight: 600; display: flex; align-items: center; gap: 8px; }
.stat .value .material-symbols-outlined { font-size: 20px !important; font-weight: 400; }
.controls {
  display: flex; flex-wrap: wrap; gap: 6px; align-items: center;
  padding: 6px 8px; margin-bottom: 8px;
  border: 1px solid #d5dee6; border-radius: 6px; background: #fff;
}
.controls input, .controls select, .controls .btn {
  height: var(--control-h) !important;
  min-height: var(--control-h) !important;
  font-size: 14px !important;
  border-radius: 6px;
}
#tableWrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  overflow: auto;
  background: #fff;
  border: 1px solid #d5dee6;
  border-bottom: 0;
  border-radius: 6px 6px 0 0;
}
#tableWrap table { width: 100%; border: 0 !important; border-radius: 0 !important; }
#tableWrap .empty {
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
}
#pager, .pager {
  flex: 0 0 auto !important;
  display: flex !important;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  width: 100%;
  box-sizing: border-box;
  min-height: 52px;
  padding: 12px 16px !important;
  margin: 0 !important;
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 0 0 6px 6px;
}
#pager > :first-child,
.pager > :first-child {
  margin-right: auto;
}
#pager .btn, .pager button {
  height: var(--control-h) !important;
  min-width: 88px;
  padding: 0 14px !important;
}
#pager select, .pager select {
  height: var(--control-h) !important;
  min-width: 64px;
}
#footerMeta { display: none !important; }
.layout > .shell:not(#shell) .head {
  flex-shrink: 0;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 16px 4px !important;
  background: transparent !important;
  border: 0 !important;
}
.layout > .shell:not(#shell) .page-head-cta { margin-left: auto; flex-shrink: 0; }
.controls input[type="search"] {
  flex: 1 1 240px;
  min-width: 240px;
  padding: 0 12px;
  border: 1px solid #d5dee6;
  border-radius: 6px;
  background: #fff;
  appearance: none;
  -webkit-appearance: none;
}
.controls input[type="search"]::-webkit-search-decoration,
.controls input[type="search"]::-webkit-search-cancel-button,
.controls input[type="search"]::-webkit-search-results-button {
  -webkit-appearance: none;
}
.layout > .shell:not(#shell) .wrap {
  flex: 1 1 0% !important;
  min-height: 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none;
  align-self: stretch;
  overflow: auto;
  margin: 12px 16px 16px;
  padding: 0 !important;
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 6px;
  box-sizing: border-box;
}
.layout > .shell:not(#shell) .users-main .wrap {
  margin: 0 !important;
}
.layout > .shell:not(#shell) .wrap table {
  width: 100%;
  table-layout: fixed;
  border: 0 !important;
  border-radius: 0 !important;
}
.layout > .shell:not(#shell) .wrap th,
.layout > .shell:not(#shell) .wrap td {
  overflow: hidden;
  text-overflow: ellipsis;
}
.layout > .shell:not(#shell) .wrap th:last-child,
.layout > .shell:not(#shell) .wrap td:last-child {
  width: 120px;
  overflow: visible;
  text-align: right;
  padding-right: 12px;
}
.layout > .shell:not(#shell) .wrap .row-actions {
  flex-wrap: nowrap;
  justify-content: flex-end;
}
.layout > .shell:not(#shell) .wrap .row-actions .btn {
  width: 40px;
  min-width: 40px;
  height: 40px;
  padding: 0;
  justify-content: center;
}
table { font-size: 13px !important; font-variant-numeric: tabular-nums; }
thead th {
  font-size: 11px !important; text-transform: uppercase; letter-spacing: 0.04em;
  color: var(--ink-muted); background: #fff;
  position: sticky; top: 0; z-index: 1;
  box-shadow: 0 1px 0 var(--hairline);
}
thead th[data-sort] { cursor: pointer; }
thead th[aria-sort="ascending"]::after { content: " ↑"; }
thead th[aria-sort="descending"]::after { content: " ↓"; }
tbody tr { height: 40px; }
tbody tr:hover td { background: rgb(146 198 61 / 0.06); }

@media (max-width: 760px) {
  .messages { padding: 8px !important; }
  .msg { max-width: 88% !important; }
  #pager .btn, .pager button { min-width: 0; padding: 0 10px !important; }
  #pager, .pager { gap: 8px; padding: 10px 12px !important; }
}

.ui-dialog-ov {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 16px;
  background: rgb(17 24 32 / 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.ui-dialog-ov.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.ui-dialog-ov[hidden] { display: none !important; }
.ui-dialog {
  width: min(420px, 100%);
  background: #fff;
  border: 1px solid #d5dee6;
  border-radius: 8px;
  box-shadow: 0 16px 40px rgb(0 0 0 / 0.2);
  padding: 18px 18px 14px;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur) var(--ease-out);
}
.ui-dialog-ov.is-open .ui-dialog { transform: none; }
.ui-dialog-msg {
  margin: 0 0 16px;
  font-size: 14px;
  line-height: 1.45;
  color: #121820;
  white-space: pre-wrap;
}
.ui-dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.ui-dialog-cancel,
.ui-dialog-ok {
  height: var(--control-h);
  padding: 0 12px;
  border-radius: 6px;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
}
.ui-dialog-cancel { border: 1px solid #d5dee6; background: #fff; color: #121820; }
.ui-dialog-cancel,
.ui-dialog-ok {
  min-height: var(--control-h);
}
.ui-dialog-ok { border: 0; background: #92c63d; color: #01341a; }
.ui-dialog-ok.danger { background: #b42318; color: #fff; }
.img-preview-ov {
  position: fixed;
  inset: 0;
  z-index: var(--z-preview);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 72px 24px 96px;
  background: rgb(0 0 0 / 0.78);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.img-preview-ov.is-open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.img-preview-ov[hidden] { display: none !important; }
.img-preview-top {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  display: flex;
  justify-content: flex-end;
  align-items: center;
  padding: max(12px, env(safe-area-inset-top)) 12px 20px;
  background: linear-gradient(to bottom, rgb(0 0 0 / 0.45), transparent);
}
.img-preview-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.img-preview-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 999px;
  background: rgb(0 0 0 / 0.45);
  color: #fff;
  display: grid;
  place-items: center;
  cursor: pointer;
  padding: 0;
}
.img-preview-btn:hover { background: rgb(0 0 0 / 0.62); }
.img-preview-btn:focus-visible { outline: 2px solid #fff; outline-offset: 3px; }
.img-preview-fig {
  margin: 0;
  max-width: min(960px, 100%);
  max-height: 100%;
}
.img-preview-fig img {
  display: block;
  max-width: 100%;
  max-height: calc(100dvh - 180px);
  width: auto;
  height: auto;
  border-radius: 12px;
  box-shadow: 0 16px 48px rgb(0 0 0 / 0.45);
  transform: scale(0.96);
  transition: transform var(--dur) var(--ease-out);
}
.img-preview-ov.is-open .img-preview-fig img { transform: none; }
.img-preview-caption {
  margin: 8px 4px 0;
  color: #fff;
  font-size: 14px;
  text-align: center;
}
.img-preview-bottom {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  display: flex;
  justify-content: center;
  padding: 20px 12px max(16px, env(safe-area-inset-bottom));
  background: linear-gradient(to top, rgb(0 0 0 / 0.45), transparent);
}
.img-preview-react {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 6px;
  border-radius: 999px;
  background: rgb(255 255 255 / 0.14);
}
.img-preview-react-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  font-size: 22px;
  line-height: 1;
  cursor: pointer;
}
.img-preview-react-btn:hover:not(:disabled) { background: rgb(255 255 255 / 0.18); }
.img-preview-react-btn:disabled { opacity: 0.4; cursor: not-allowed; }
.msg-img-btn {
  display: block;
  padding: 0;
  border: 0;
  background: none;
  cursor: zoom-in;
  border-radius: 10px;
}
.pill.admin { background: #eef6d8 !important; color: #01341a !important; }
.pill.seller { background: #e6eee0 !important; color: #0c6837 !important; }
.btn.coral { background: #92c63d !important; color: #01341a !important; border-color: #92c63d !important; }
#usersToast, #toast { z-index: var(--z-toast); }
.overlay[aria-modal="true"] { z-index: var(--z-modal); }
.row-actions .btn { min-height: 40px; min-width: 44px; }
.stat .label .help-tip { display: inline-flex; vertical-align: middle; margin-left: 2px; }
.stat .label .help-tip > summary { width: 28px; height: 28px; }

.pay-overlay {
  position: fixed; inset: 0; z-index: 70;
  display: flex !important; align-items: center; justify-content: center;
  padding: 16px;
  background: rgb(17 24 32 / 0.45);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.pay-overlay.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.pay-modal {
  width: min(520px, 100%);
  max-height: min(90vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.22);
  padding: 0;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur) var(--ease-out);
}
.pay-overlay.show .pay-modal { transform: none; }
.pay-head {
  display: flex; align-items: flex-start; gap: 12px;
  flex-shrink: 0;
  padding: 22px 22px 12px;
}
.pay-head-ico {
  width: 40px; height: 40px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgb(146 198 61 / 0.12); color: #0c6837;
}
.pay-head-copy { flex: 1; min-width: 0; }
.pay-head-copy h2 {
  margin: 0; font-size: 18px; font-weight: 700; color: #121820; letter-spacing: -0.02em;
}
.pay-head-copy p { margin: 2px 0 0; font-size: 13px; color: #6b7785; }
.pay-close {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  border: 1px solid #e6ecf1; background: #fff; color: #6b7785;
  display: flex; align-items: center; justify-content: center; cursor: pointer;
}
.pay-close svg { width: 14px; height: 14px; }
.pay-close:hover { background: #f4f6f8; color: #121820; }
.pay-body {
  font-size: 13px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 22px 16px;
}
.pay-muted { color: #6b7785; padding: 12px 0; }
.pay-banner {
  display: flex; flex-direction: column; gap: 2px;
  padding: 8px 12px; margin: 0;
  border-radius: 10px; background: #fff7ed; border: 1px solid #fed7aa;
  color: #9a3412;
}
.pay-body > .pay-banner:first-child { margin-top: 0; margin-bottom: 0; }
.pay-banner strong { font-size: 13px; font-weight: 600; color: #c2410c; }
.pay-banner span { font-size: 12.5px; line-height: 1.4; }
.pay-banner a { color: #0c6837; font-weight: 500; }
.pay-items {
  border: 1px solid #e6ecf1; border-radius: 10px; padding: 2px 12px;
  margin-bottom: 0;
}
.pay-item {
  display: flex; justify-content: space-between; gap: 12px;
  align-items: baseline;
  min-height: 40px;
  padding: 10px 0; border-bottom: 1px solid #f0f2f5; color: #4b5563;
}
.pay-item:last-child { border-bottom: 0; }
.pay-item.tot { font-weight: 600; color: #121820; }
.pay-field { margin-bottom: 0; }
.pay-fit {
  display: flex;
  flex-direction: column;
  gap: 16px;
  flex: 0 0 auto;
  min-height: 0;
  height: auto;
  overflow: visible;
  justify-content: flex-start;
}
.pay-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 14px;
}
.pay-client {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 10px;
  flex: 0 0 auto;
  align-content: start;
}
.pay-client .pay-input:last-child { grid-column: 1 / -1; }
.pay-label {
  display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap;
  font-size: 13px; font-weight: 600; color: #121820; margin-bottom: 6px;
}
.pay-label em { font-style: normal; font-weight: 500; font-size: 12px; color: #0c6837; }
.pay-label span { font-weight: 400; font-size: 12px; color: #6b7785; }
.pay-valor, .pay-input {
  display: flex; align-items: center; gap: 10px;
  border: 1px solid #e6ecf1; border-radius: 10px; padding: 0 14px;
  background: #fff; min-height: 48px;
}
.pay-select {
  display: block;
  border: 0;
  padding: 0;
  background: transparent;
  min-height: 0;
}
.pay-select .filter-dd { width: 100%; }
.pay-select .filter-dd-trigger {
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
}
.pay-select .filter-dd-menu {
  max-height: 220px;
  overflow-y: auto;
}
.pay-valor:focus-within, .pay-input:focus-within {
  border-color: #92c63d; box-shadow: 0 0 0 3px rgb(146 198 61 / 0.12);
}
.pay-valor span { color: #6b7785; font-weight: 500; }
.pay-valor input, .pay-select select, .pay-input input {
  flex: 1; min-width: 0; border: 0; outline: none; background: transparent;
  font: inherit; font-size: 16px; color: #121820; height: 46px;
}
.pay-input label {
  flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 0;
  font-size: 11px; color: #6b7785; margin: 0; font-weight: 400;
}
.pay-input input { height: 28px; font-size: 14px; padding: 0; }
.pay-ico {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: rgb(146 198 61 / 0.1); color: #0c6837;
}
.pay-block-title {
  margin: 8px 0 0;
  padding: 0 0 10px;
  border-bottom: 1px solid var(--hairline);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-muted);
}
.pay-input + .pay-input { margin-top: 0; }
.pay-sum {
  display: flex; align-items: center; gap: 12px;
  padding: 14px 16px; margin: 0;
  border-radius: 10px; background: #f4f6f8; border: 1px solid #e6ecf1;
}
.pay-sum-ico {
  width: 32px; height: 32px; border-radius: 50%; flex-shrink: 0;
  display: flex; align-items: center; justify-content: center;
  background: #edf7ee; color: #15803d;
}
.pay-sum-ico svg { width: 16px; height: 16px; }
.pay-sum-copy { flex: 1; min-width: 0; }
.pay-sum-copy strong { display: block; font-size: 13px; color: #121820; }
.pay-sum-copy span { font-size: 12px; color: #6b7785; }
.pay-sum-amt { font-size: 16px; font-weight: 700; color: #15803d; white-space: nowrap; }
.pay-foot {
  display: flex; justify-content: flex-end; gap: 10px;
  flex-shrink: 0;
  margin: 0;
  padding: 14px 22px 18px;
  border-top: 1px solid #e6ecf1;
  background: #fff;
}
.pay-btn {
  height: 40px; padding: 0 16px; border-radius: 10px;
  font: inherit; font-size: 13px; font-weight: 600; cursor: pointer;
}
.pay-btn.ghost { border: 1px solid #d5dee6; background: #fff; color: #121820; }
.pay-btn.ghost:hover { background: #f4f6f8; }
.pay-btn.primary { border: 0; background: #92c63d; color: #01341a; }
.pay-btn.primary:hover { filter: brightness(0.95); }
.pay-btn.primary:disabled { opacity: .45; cursor: not-allowed; filter: none; }
.pay-btn.danger {
  border: 0; background: #fde8e6; color: #b42318;
}
.pay-btn.danger:hover { background: #f8d4d0; }

.act-overlay {
  position: fixed; inset: 0; z-index: 72;
  display: none;
  align-items: center; justify-content: center;
  padding: 16px;
  background: rgb(17 24 32 / 0.45);
}
.act-overlay.show {
  display: flex;
}
.act-modal {
  width: min(860px, 100%);
  height: min(720px, 92vh);
  display: flex;
  overflow: hidden;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 20px 50px rgb(0 0 0 / 0.22);
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur) var(--ease-out);
}
.act-overlay.show .act-modal { transform: none; }
.act-nav {
  width: 220px;
  flex-shrink: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 18px 10px;
  background: #f6f8f5;
  border-right: 0;
  overflow: auto;
}
.act-nav-kicker {
  margin: 0 10px 8px;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #6b7785;
}
.act-nav-btn {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 0 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #3d5342;
  font: inherit;
  font-size: 13.5px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
}
.act-nav-btn .material-symbols-outlined { font-size: 20px !important; color: #54656f; }
.act-nav-btn .act-label { display: inline !important; }
.act-nav-btn:hover { background: #e8eee4; color: #01341a; }
.act-nav-btn.active {
  background: #d7e8b3;
  color: #01341a;
  box-shadow: none;
}
.act-nav-btn.active .material-symbols-outlined { color: #01341a; }
.act-nav-btn.danger { color: #b42318; }
.act-nav-btn.danger .material-symbols-outlined { color: #b42318; }
.act-nav-btn.danger.active { background: #fde8e6; box-shadow: none; }
.act-main {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  background: #fff;
}
.act-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 22px 12px;
  flex-shrink: 0;
}
.act-head-lead {
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex: 1;
}
.act-head-copy { min-width: 0; }
.act-avatar {
  width: 52px;
  height: 52px;
  border-radius: 50%;
  flex-shrink: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  color: #fff;
  font-size: 18px;
  font-weight: 650;
  background: #01341a;
}
.act-avatar[hidden] { display: none !important; }
.act-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
.act-head h2 {
  margin: 0;
  font-size: 24px;
  font-weight: 700;
  color: #121820;
  letter-spacing: -0.03em;
  line-height: 1.15;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.act-head p { margin: 3px 0 0; font-size: 13px; color: #6b7785; }
.act-pane {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 0 22px 18px;
  display: flex;
  flex-direction: column;
}
.act-pane.act-pane-fit { overflow: auto; }
.act-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 14px;
  max-width: 460px;
}
.act-card p { margin: 0; font-size: 14px; line-height: 1.45; color: #3d5342; }
.act-card .act-warn {
  padding: 12px 14px;
  border-radius: 10px;
  background: #fff7f3;
  border: 1px solid #f3c9b8;
  color: #7a3a1a;
}
.act-card .field {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  width: 100%;
  padding: 8px 0;
  border-bottom: 1px solid #f0f2f5;
  font-size: 13px;
}
.act-card .field .l { color: #6b7785; }
.act-card .field .v { color: #121820; font-weight: 500; }
.act-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 22px 18px;
  border-top: 1px solid #e6ecf1;
}
.act-foot[hidden] { display: none !important; }

/* ——— Shared chrome (skip, empty, skeleton, motion, mobile) ——— */
.skip-link {
  position: absolute;
  left: 8px;
  top: 8px;
  z-index: 200;
  padding: 8px 12px;
  background: #01341a;
  color: #fff;
  border-radius: 6px;
  transform: translateY(-140%);
}
.skip-link:focus { transform: none; }
.sr-only {
  position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px;
  overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0;
}
.field-error { color: #b42318; font-size: 12px; margin-top: 4px; }
.composer-error { color: #b42318; font-size: 13px; padding: 4px 8px 0; }
.empty-cta {
  display: inline-flex; align-items: center; justify-content: center;
  margin-top: 12px; height: 40px; padding: 0 14px;
  border: 1px solid var(--hairline); border-radius: 8px;
  background: #fff; color: var(--ink); font: inherit; font-weight: 600;
}
.skel {
  background: linear-gradient(90deg, #eef2e8 25%, #f7faf3 50%, #eef2e8 75%);
  background-size: 200% 100%;
  animation: skel 1.2s ease-in-out infinite;
  border-radius: 6px;
}
@keyframes skel { 0% { background-position: 200% 0; } 100% { background-position: -200% 0; } }
.skel-row { display: grid; grid-template-columns: 49px 1fr; gap: 13px; padding: 12px 14px; border-bottom: 1px solid #e9edef; }
.skel-ava { width: 49px; height: 49px; border-radius: 50%; }
.skel-line { height: 12px; margin: 8px 0; }
.skel-table { padding: 8px 0; }
.skel-table .skel { height: 16px; margin: 12px 16px; }
.thread-fade { animation: threadIn var(--dur) var(--ease-out); }
@keyframes threadIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { opacity: 0; transform: translateY(-4px) scale(0.98); } to { opacity: 1; transform: none; } }
@keyframes railIn { from { opacity: 0; transform: translateX(-12px); } to { opacity: 1; transform: none; } }
.act-label { display: none; }
@media (min-width: 1024px) { .act-label { display: inline; } }

/* Menus, drawers, overlays e toasts: fade/slide em vez de display snap */
#shell .attach-menu {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(6px);
  transition: opacity var(--dur-fast) ease, transform var(--dur-fast) var(--ease-out), visibility var(--dur-fast);
}
#shell .attach-menu.show {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: none;
}
#shell .rec-bar { display: none !important; }
#shell .composer-card .rec-ctrl,
#shell .composer-card .rec-stage { display: none !important; }
#shell .composer-card.is-rec .attach-wrap,
#shell .composer-card.is-rec #micBtn,
#shell .composer-card.is-rec #replyBody { display: none !important; }
#shell .composer-card.is-rec #recTrash,
#shell .composer-card.is-rec #recPause { display: grid !important; }
#shell .composer-card.is-rec #recTrash { color: #b42318 !important; }
#shell .composer-card.is-rec .rec-stage {
  display: flex !important;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
  height: 36px;
  padding: 0 8px;
}
#shell .rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #b42318;
  flex-shrink: 0;
  animation: recpulse 1s infinite;
}
@keyframes recpulse { 0%, 100% { opacity: 1; } 50% { opacity: .35; } }
#shell .composer-card.is-rec.is-paused .rec-dot { display: none !important; }
#shell .rec-preview-play {
  display: none;
  width: 28px;
  height: 28px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #54656f;
  flex-shrink: 0;
  place-items: center;
}
#shell .composer-card.is-rec.is-paused .rec-preview-play { display: grid; }
#shell .rec-preview-play .material-symbols-outlined { font-size: 22px !important; }
#shell .rec-track {
  position: relative;
  flex: 1 1 auto;
  min-width: 48px;
  height: 4px;
  border-radius: 99px;
  background: #d1d7db;
  cursor: pointer;
}
#shell .rec-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  border-radius: inherit;
  background: #01341a;
}
#shell .composer-card.is-rec:not(.is-paused) .rec-fill {
  width: 100%;
  opacity: .35;
  animation: recpulse 1.2s infinite;
}
#shell .rec-time {
  flex-shrink: 0;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
  color: #667781;
  min-width: 2.4em;
  text-align: right;
}
.overlay[aria-modal="true"],
.overlay {
  display: flex !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.overlay.show {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto;
  background: rgba(0, 0, 0, 0.4);
}
.overlay .modal {
  background: #fff;
  color: #01341a;
  transform: translateY(8px) scale(0.98);
  transition: transform var(--dur) var(--ease-out);
}
.overlay.show .modal {
  transform: none;
  background: #fff;
}
.edit-drawer {
  display: flex !important;
  justify-content: flex-end;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.edit-drawer.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.edit-drawer-inner {
  transform: translateX(24px);
  transition: transform var(--dur-slow) var(--ease-out);
}
.edit-drawer.open .edit-drawer-inner { transform: none; }
.drawer-backdrop {
  display: block !important;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity var(--dur) ease, visibility var(--dur);
}
.drawer-backdrop.open {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
}
.drawer {
  transition: transform var(--dur-slow) var(--ease-out) !important;
}
#toast,
.content-scroll .toast {
  display: block !important;
  opacity: 0;
  pointer-events: none;
  transition: opacity var(--dur) var(--ease-out), transform var(--dur) var(--ease-out);
}
#toast.show,
.content-scroll .toast.show {
  opacity: 1;
}
.skip-link { transition: transform var(--dur) var(--ease-out); }
#shell .sound-toggle,
#shell .chat-menu-btn,
#shell .composer-card .btn,
.btn, .pay-btn {
  transition: background var(--dur-fast) ease, color var(--dur-fast) ease, border-color var(--dur-fast) ease, filter var(--dur-fast) ease;
}
tbody tr td { transition: background var(--dur-fast) ease; }

@media (max-width: 1024px) {
  .summary, .stats { grid-template-columns: repeat(2, 1fr) !important; }
  #shell .crm { display: none !important; }
}
@media (max-width: 768px) {
  .summary, .stats { grid-template-columns: 1fr !important; }
  .row-actions .btn { min-height: 44px; }
  .composer { padding-bottom: max(8px, env(safe-area-inset-bottom)) !important; }
}
@media (max-width: 760px) {
  #shell.chat-open .rail { display: none !important; }
  #shell:not(.chat-open) .main { display: none !important; }
  #openRail { min-width: 44px; min-height: 44px; }
  #shell .rail.show-mobile { animation: railIn var(--dur) var(--ease-out); }
}

/* Phone only. Desktop ≥768 stays as-is. */
.m-bar,
#shell .brand .m-bar-menu { display: none; }

@media (max-width: 767px) {
  :root { --control-h: 44px; }
  html { -webkit-text-size-adjust: 100%; }
  button, a, .side-item, .conv, .btn, summary { touch-action: manipulation; }
  .layout { flex-direction: column; }

  .tw-login {
    padding: max(1rem, env(safe-area-inset-top)) 1rem max(1rem, env(safe-area-inset-bottom));
    align-items: center;
  }
  .tw-login-col { max-width: 100%; }
  .login-card {
    border-radius: 16px;
    padding-bottom: 0.75rem;
  }
  .login-card h1 { font-size: 1.25rem; }
  .login-input input { font-size: 16px; }

  .m-bar {
    display: flex;
    align-items: center;
    gap: 10px;
    flex-shrink: 0;
    min-height: 52px;
    padding: max(10px, env(safe-area-inset-top)) 12px 10px;
    background: #01341a;
    color: #fff;
    z-index: 20;
  }
  .m-bar-title {
    font-family: var(--f-display);
    font-size: 16px;
    font-weight: 600;
    letter-spacing: -0.02em;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .m-bar-menu {
    width: 44px;
    height: 44px;
    border: 0;
    border-radius: 8px;
    background: transparent;
    color: inherit;
    display: grid;
    place-items: center;
    padding: 0;
    cursor: pointer;
    flex-shrink: 0;
  }
  #shell .brand { gap: 4px; }
  #shell .brand .m-bar-menu {
    display: grid;
    color: #111b21;
  }
  #shell .brand .m-bar-menu:active { background: #f0f2f5; }

  .sidebar,
  .sidebar.expanded {
    position: fixed !important;
    left: 0;
    top: 0;
    height: 100dvh;
    width: min(280px, 86vw) !important;
    z-index: 50;
    transform: translateX(-105%);
    box-shadow: none;
    padding-top: max(8px, env(safe-area-inset-top)) !important;
    visibility: hidden;
    pointer-events: none;
  }
  .sidebar.expanded {
    transform: translateX(0);
    box-shadow: 0 25px 50px rgb(0 0 0 / 0.25);
    visibility: visible;
    pointer-events: auto;
  }
  .sidebar .side-word,
  .sidebar.expanded .side-word {
    max-width: 12rem !important;
    opacity: 1 !important;
  }
  .sidebar .side-mark-img,
  .sidebar.expanded .side-mark-img {
    width: 0;
    height: 0;
    opacity: 0;
    overflow: hidden;
  }
  .sidebar .side-label,
  .sidebar .side-user-email {
    max-width: 180px !important;
    opacity: 1 !important;
  }
  .sidebar .sidebar-foot {
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
  }
  .sidebar .sidebar-foot form { margin-left: auto; }
  .sidebar .side-user {
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 44px;
    padding: 10px 12px !important;
  }
  .sidebar .side-item,
  .sidebar .side-logout {
    flex-direction: row !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-height: 44px;
    padding: 10px 12px !important;
  }
  .sidebar .side-expand {
    width: auto;
    min-width: 6.5rem;
    min-height: 44px;
    padding: 0 12px;
  }
  .sidebar .side-expand .material-symbols-outlined { transform: rotate(180deg); }

  .layout > .content-scroll,
  .layout > .shell,
  .layout > #shell {
    width: 100%;
    min-width: 0;
  }
  .layout > .content-scroll {
    padding: 10px 12px max(12px, env(safe-area-inset-bottom));
  }

  #shell .rail-head { padding: 8px 10px 10px !important; }
  #shell .brand-name { font-size: 20px !important; }
  #shell .rail-tools {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
  }
  .filter-dd { flex: 1 1 auto; width: 100%; }
  #shell .search-input,
  .filter-dd-trigger {
    height: 44px !important;
    font-size: 16px !important;
  }
  #shell .chat-head {
    flex-wrap: nowrap !important;
    gap: 8px;
    padding: 8px 10px !important;
  }
  #shell .chat-head-info { gap: 2px !important; }
  #shell .chat-head-info h2,
  #shell #chatTitle {
    max-width: 100% !important;
  }
  #shell .chat-actions {
    flex-wrap: nowrap;
    overflow: visible !important;
    width: auto;
    justify-content: flex-end;
  }
  #shell .chat-menu-btn { min-height: 44px; min-width: 44px; }
  .act-modal { flex-direction: column; height: min(92vh, 760px); }
  .act-head h2 { font-size: 20px; }
  #actPane .fit-grid,
  #actPane .order-values-row,
  #actPane .agent-grid,
  #actPane .queue-grid,
  #actPane .pay-grid,
  #actPane .pay-client { grid-template-columns: 1fr; }
  #actPane .team-head { flex-direction: column; align-items: stretch; }
  #actPane .team-head .pay-btn { margin-top: 0; width: 100%; }
  .act-nav {
    width: 100%;
    flex-direction: row;
    overflow-x: auto;
    border-right: 0;
    border-bottom: 0;
    padding: 10px;
  }
  .act-nav-kicker { display: none; }
  .act-nav-btn { width: auto; flex-shrink: 0; }
  #shell .messages-empty h3 { font-size: 22px !important; }
  #shell .composer textarea { font-size: 16px !important; }
  #shell .composer {
    padding-bottom: max(8px, env(safe-area-inset-bottom)) !important;
  }

  .content-scroll .page-head,
  .content-scroll .page-head-compact,
  .layout > .shell:not(#shell) .head {
    flex-direction: column;
    align-items: stretch !important;
    gap: 10px;
  }
  .content-scroll .page-head:not(.page-head-compact) { display: none; }
  .content-scroll .page-head-compact > h1,
  .layout > .shell:not(#shell) .head h1 {
    display: none;
  }
  .content-scroll .page-head .btn,
  .layout > .shell:not(#shell) .head .btn,
  .content-scroll .controls .btn,
  .content-scroll .sel-bar .btn {
    width: 100%;
    min-height: 44px;
    justify-content: center;
  }
  .help-tip { margin-left: auto; }
  .controls {
    flex-direction: column;
    align-items: stretch;
    gap: 8px;
    padding: 10px;
  }
  .controls input,
  .controls select {
    width: 100%;
    min-height: 44px;
    height: 44px !important;
    font-size: 16px !important;
  }
  .sel-bar {
    display: flex;
    flex-wrap: wrap;
    gap: 8px;
  }
  .sel-bar .btn { flex: 1 1 100%; }

  #tableWrap,
  .content-scroll .container,
  .layout > .shell:not(#shell) .wrap {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }
  .content-scroll table,
  .layout > .shell:not(#shell) table,
  .layout > .shell:not(#shell) .wrap table {
    min-width: 720px;
    table-layout: auto !important;
  }

  #pager, .pager {
    flex-direction: column;
    align-items: stretch;
    justify-content: flex-start;
    flex-wrap: nowrap;
    gap: 10px;
    min-height: 0;
    padding: 12px !important;
  }
  #pager > :first-child,
  .pager > :first-child {
    margin-right: 0;
  }
  #pager > div,
  .pager > div {
    display: flex !important;
    flex-wrap: wrap;
    gap: 8px;
    width: 100%;
    align-items: center;
  }
  #pager .btn, .pager button {
    flex: 1 1 calc(50% - 8px);
    min-height: 44px;
    min-width: 0;
    height: 44px !important;
  }
  #pager select, .pager select {
    height: 44px !important;
    min-width: 72px;
    font-size: 16px !important;
  }

  .ui-dialog-ov,
  .img-preview-ov,
  .pay-overlay,
  .act-overlay,
  .overlay,
  .edit-drawer {
    padding: max(12px, env(safe-area-inset-top)) 12px max(12px, env(safe-area-inset-bottom));
  }
  .img-preview-btn,
  .img-preview-react-btn {
    width: 44px;
    height: 44px;
  }
  .pay-modal,
  .ui-dialog,
  .overlay .modal {
    width: 100%;
    max-width: 100%;
  }
  .edit-drawer-inner,
  .drawer {
    width: 100% !important;
    max-width: 100% !important;
  }
}
@view-transition { navigation: auto; }
#twSidebar { view-transition-name: pp-sidebar; }
.layout > #shell,
.layout > .content-scroll,
.layout > .shell:not(#shell) { view-transition-name: pp-main; }
body.panel-nav .layout > :not(#twSidebar):not(.side-scrim):not(.m-bar) {
  opacity: 0.55;
  transition: opacity var(--dur-fast) var(--ease-out);
}

@media (prefers-reduced-motion: reduce) {
  @view-transition { navigation: none; }
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  .side-user-dot { box-shadow: none !important; }
  .msg-react-pop button:hover:not(:disabled) { transform: none !important; }
  #shell .msg-react-mine:hover { transform: none !important; }
}
