:root {
  --bg: #eff4fb;
  --bg-soft: #f7faff;
  --panel: rgba(255, 255, 255, 0.86);
  --panel-strong: rgba(255, 255, 255, 0.95);
  --card: #ffffff;
  --text: #16314f;
  --text-strong: #10253d;
  --muted: #6d86a3;
  --border: rgba(34, 96, 170, 0.14);
  --border-strong: rgba(22, 93, 184, 0.22);
  --shadow: 0 18px 48px rgba(19, 67, 127, 0.12);
  --shadow-soft: 0 8px 24px rgba(17, 72, 145, 0.08);
  --radius: 20px;
  --gap: 16px;

  --brand-1: #07192f;
  --brand-2: #0a56ad;
  --brand-3: #1d8fff;
  --brand-4: #64baff;

  --ok: rgba(39, 179, 106, 0.12);
  --ok-border: rgba(39, 179, 106, 0.28);

  --warn: rgba(242, 184, 29, 0.14);
  --warn-border: rgba(242, 184, 29, 0.28);

  --orange: rgba(242, 138, 46, 0.14);
  --orange-border: rgba(242, 138, 46, 0.28);

  --bad: rgba(226, 76, 76, 0.12);
  --bad-border: rgba(226, 76, 76, 0.24);

  --info: rgba(29, 143, 255, 0.12);
  --info-border: rgba(29, 143, 255, 0.24);

  --header-grad:
    radial-gradient(circle at top left, rgba(100, 186, 255, 0.28), transparent 32%),
    radial-gradient(circle at top right, rgba(10, 86, 173, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.92), rgba(247, 250, 255, 0.95));

  --board-max-width: 100vw;
}

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

html {
  height: 100%;
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  height: 100%;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, Segoe UI, Roboto, Arial, sans-serif;
  background:
    radial-gradient(1100px 700px at 0% 0%, rgba(100, 186, 255, 0.20), transparent 48%),
    radial-gradient(900px 560px at 100% 0%, rgba(10, 86, 173, 0.12), transparent 45%),
    linear-gradient(180deg, #f7fbff 0%, #eef4fb 100%);
  color: var(--text);
}

a {
  color: inherit;
  text-decoration: none;
}

img {
  max-width: 100%;
}

button,
input,
select,
textarea {
  font: inherit;
}

textarea {
  resize: vertical;
}

.mobileMenuBtn {
  display: none;
}

.mobileDrawer {
  display: none;
}

.tagsModalCard {
  max-width: 680px;
}

.owner-hidden {
  display: none !important;
}

/* Header */

.siteHeader {
  position: sticky;
  top: 0;
  z-index: 20;
  flex: 0 0 auto;
  min-height: 60px;
  backdrop-filter: blur(18px);
  background: rgba(247, 250, 255, 0.76);
  border-bottom: 1px solid rgba(34, 96, 170, 0.10);
  box-shadow: 0 8px 26px rgba(16, 66, 126, 0.05);
}

.boardTop {
  flex: 0 0 auto;
}

.wrap {
  width: calc(100vw - 32px);
  max-width: none;
  margin: 0 auto;
  padding: 4px 0;
}

.top {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 50px;
}

.brandBlock {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  flex-wrap: nowrap;
}

.brandRow {
  flex: 0 0 auto;
}

.brandLogo {
  display: block;
  width: auto;
  max-height: 34px;
}

.controls {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 12px;
}

.sub {
  font-size: 12px;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.pill {
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid var(--border);
  padding: 10px 12px;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  align-items: center;
  font-size: 12px;
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.pill input[type="number"],
.pill select {
  background: transparent;
  border: none;
  outline: none;
  color: var(--text-strong);
  font-weight: 600;
}

.pill input[type="number"] {
  width: 72px;
}

.pill select {
  min-width: 112px;
}

.trialPill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 1 auto;
  min-width: 0;
  max-width: 320px;
  padding: 5px 10px;
  font-size: 11px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  cursor: pointer;
  transition: transform 0.15s ease, box-shadow 0.15s ease, opacity 0.15s ease;
}

.trialPill:hover {
  transform: translateY(-1px);
}

/* Buttons */

.btn,
.btn2,
.xbtn,
.iconBtn,
.menuItem,
.sideItem,
.sideSubitem,
.field input,
.field select,
.field textarea,
.mobileMenuBtn {
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    filter 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease,
    color 0.16s ease;
}

.btn {
  border: 1px solid transparent;
  color: #fff;
  padding: 10px 14px;
  border-radius: 999px;
  cursor: pointer;
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  box-shadow: 0 10px 22px rgba(10, 86, 173, 0.14);
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}

.btn:hover,
.btn2:hover,
.xbtn:hover,
.iconBtn:hover,
.mobileMenuBtn:hover,
.sideItem:hover,
.sideSubitem:hover {
  transform: translateY(-1px);
}

.btn.primary {
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
}

.btn.secondary {
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-strong);
  border-color: var(--border);
  box-shadow: none;
}

.btn.danger {
  background: linear-gradient(135deg, #d94d4d, #f07272);
}

.btn:disabled,
.btn2:disabled,
.xbtn:disabled,
.iconBtn:disabled,
.menuItem:disabled,
.sideItem:disabled,
.viewTab:disabled {
  opacity: 0.55;
  cursor: not-allowed;
  filter: none;
  transform: none;
}

/* Status top */

.statusBar {
  margin-top: 8px;
  padding-left: 0;
  display: flex;
  align-items: center;
  gap: 14px;
  min-width: 0;
  flex-wrap: wrap;
}

.statusBarLeft {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

.statusBar .sub {
  font-size: 13px;
  color: var(--muted);
}

.statusBar .iconBtn {
  flex: 0 0 auto;
}

.slaInline {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 55%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  margin-left: auto;
}

.slaInline b {
  color: var(--text-strong);
  font-weight: 800;
}

.slaHelpWrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  flex: 0 0 auto;
}

.slaHelp {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(29, 143, 255, 0.28);
  background: linear-gradient(180deg, #e8f4ff, #cfe8ff);
  color: #075cae;
  font-size: 11px;
  font-weight: 900;
  cursor: help;
  flex: 0 0 auto;
  box-shadow: 0 4px 10px rgba(13, 99, 201, 0.14);
}

.slaHelp:hover,
.slaHelp:focus-visible {
  border-color: rgba(13, 99, 201, 0.48);
  box-shadow: 0 0 0 3px rgba(29, 143, 255, 0.13), 0 8px 18px rgba(13, 99, 201, 0.2);
  outline: none;
}

.slaTooltip {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(380px, calc(100vw - 28px));
  z-index: 40;
  display: grid;
  gap: 9px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  background: rgba(255, 255, 255, 0.98);
  color: var(--text-strong);
  box-shadow: 0 18px 42px rgba(18, 65, 123, 0.18);
  white-space: normal;
  line-height: 1.35;
  opacity: 0;
  transform: translateY(-4px);
  pointer-events: none;
  transition: opacity 0.16s ease, transform 0.16s ease;
}

.slaTooltip::before {
  content: "";
  position: absolute;
  top: -7px;
  right: 8px;
  width: 12px;
  height: 12px;
  background: #fff;
  border-left: 1px solid rgba(34, 96, 170, 0.16);
  border-top: 1px solid rgba(34, 96, 170, 0.16);
  transform: rotate(45deg);
}

.slaHelpWrap:hover .slaTooltip,
.slaHelp:focus-visible + .slaTooltip,
.slaHelpWrap:focus-within .slaTooltip {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.slaTooltip strong {
  font-size: 13px;
  letter-spacing: 0;
}

.slaTooltip small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.slaTooltip span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border-radius: 10px;
  background: rgba(236, 245, 255, 0.72);
  color: #31506e;
  font-size: 12px;
}

.slaTooltip span b {
  color: var(--text-strong);
  font-size: 12px;
}


.statusSummary {
  flex-wrap: wrap;
}

.statusLinePanel {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.statusMetric {
  min-height: 32px;
  display: inline-flex;
  align-items: baseline;
  gap: 6px;
  padding: 6px 10px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.64);
  color: var(--text);
}

.statusMetric small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}

.statusMetric b {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 850;
}

.statusEditBtn {
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 800;
}

/* Error */

.err {
  position: fixed;
  top: 94px;
  left: 0;
  right: 0;
  z-index: 99999;
  display: none;
  justify-content: center;
  pointer-events: none;
  padding: 0 16px;
}

#errBox {
  max-width: var(--board-max-width);
  width: 100%;
  background: linear-gradient(135deg, rgba(255, 242, 242, 0.95), rgba(255, 251, 251, 0.95));
  border: 1px solid rgba(226, 76, 76, 0.22);
  color: #9c2f2f;
  border-radius: 16px;
  padding: 12px 14px;
  box-shadow: 0 10px 22px rgba(226, 76, 76, 0.08);
  pointer-events: auto;
}

/* Desktop filters */

.boardFilters {
  flex: 0 0 auto;
  padding: 6px 0 0;
}

.desktopFiltersBar {
  flex: 0 0 auto;
}

.filtersShell {
  display: flex;
  align-items: end;
  gap: 12px;
  flex-wrap: wrap;
  padding: 14px;
  border-radius: 22px;
  border: 1px solid rgba(34, 96, 170, 0.10);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.88), rgba(247, 250, 255, 0.92));
  box-shadow: 0 10px 28px rgba(17, 72, 145, 0.06);
  backdrop-filter: blur(12px);
}

.filterBox {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 170px;
  flex: 0 0 auto;
}

.filterBoxSearch {
  min-width: 280px;
  flex: 1 1 320px;
}

.filterBoxMini {
  min-width: 118px;
  max-width: 118px;
}

.filterBoxLabel {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  padding-left: 2px;
}

.filterBox input,
.filterBox select {
  width: 100%;
  height: 46px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 96, 170, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  outline: none;
  box-shadow:
    0 1px 0 rgba(255, 255, 255, 0.8) inset,
    0 3px 10px rgba(17, 72, 145, 0.03);
  transition:
    transform 0.16s ease,
    box-shadow 0.16s ease,
    border-color 0.16s ease,
    background 0.16s ease;
}

.filterBox input::placeholder {
  color: #8ba0b9;
}

.filterBox input:hover,
.filterBox select:hover {
  border-color: rgba(22, 93, 184, 0.22);
  background: rgba(255, 255, 255, 1);
}

.filterBox input:focus,
.filterBox select:focus {
  border-color: rgba(29, 143, 255, 0.36);
  box-shadow:
    0 0 0 4px rgba(29, 143, 255, 0.12),
    0 6px 18px rgba(17, 72, 145, 0.06);
  background: #fff;
  transform: translateY(-1px);
}

.filterBox select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 40px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f86a2 50%),
    linear-gradient(135deg, #6f86a2 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filterActionBtn {
  height: 46px;
  padding: 0 18px;
  border-radius: 14px;
  white-space: nowrap;
  align-self: flex-end;
}

.filtersShell {
  align-items: center;
}

.filterBox {
  gap: 0;
}

.filterBoxNoLabel input {
  height: 40px;
}

.filterBoxInline {
  position: relative;
}

.filterBoxInline .filterInlineLabel {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
  pointer-events: none;
  z-index: 1;
}

.filterBoxInline select,
.filterBoxInline input {
  height: 40px;
  padding-left: 92px;
}

.filterBoxInline.filterBoxShort select,
.filterBoxInline.filterBoxShort input {
  padding-left: 76px;
}

.filterBoxLabel {
  display: none;
}

/* Board */

.board {
  flex: 1 1 auto;
  min-height: 0;
  width: calc(100vw - 32px);
  min-width: 0;
  max-width: none;
  margin: 0 auto 12px;
  padding: 8px 0 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(320px, 1fr));
  gap: var(--gap);
  overflow-x: auto;
  overflow-y: hidden;
}

.col {
  min-width: 320px;
  min-height: 0;
  display: flex;
  flex-direction: column;
  border-radius: 20px;
  overflow: hidden;
  background: var(--panel);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
  backdrop-filter: blur(14px);
}

.board::-webkit-scrollbar {
  height: 12px;
}

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

.board::-webkit-scrollbar-thumb {
  background: rgba(34, 96, 170, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.col[data-col="green"] .colhead {
  background: linear-gradient(180deg, rgba(39, 179, 106, 0.12), rgba(255, 255, 255, 0.78));
}

.col[data-col="yellow"] .colhead {
  background: linear-gradient(180deg, rgba(242, 184, 29, 0.14), rgba(255, 255, 255, 0.78));
}

.col[data-col="orange"] .colhead {
  background: linear-gradient(180deg, rgba(242, 138, 46, 0.14), rgba(255, 255, 255, 0.78));
}

.col[data-col="red"] .colhead {
  background: linear-gradient(180deg, rgba(226, 76, 76, 0.12), rgba(255, 255, 255, 0.78));
}

.col[data-col="gray"] .colhead {
  background: linear-gradient(180deg, rgba(125, 143, 166, 0.12), rgba(255, 255, 255, 0.78));
}

.colhead {
  position: sticky;
  top: 0;
  z-index: 2;
  flex: 0 0 auto;
  padding: 16px 16px 14px;
  border-bottom: 1px solid rgba(34, 96, 170, 0.08);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  backdrop-filter: blur(10px);
}

.coltitle {
  display: flex;
  align-items: center;
  gap: 10px;
  font-weight: 800;
  color: var(--text-strong);
  letter-spacing: -0.01em;
  min-width: 0;
}

.dot {
  width: 11px;
  height: 11px;
  border-radius: 50%;
  box-shadow: 0 0 0 4px rgba(255, 255, 255, 0.8);
  flex: 0 0 auto;
}

.count {
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  padding: 0 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid var(--border);
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
  flex: 0 0 auto;
}

.list {
  flex: 1 1 auto;
  min-height: 0;
  padding: 14px;
  display: flex;
  flex-direction: column;
  gap: 12px;
  overflow-y: auto;
  overflow-x: hidden;
}

.list::-webkit-scrollbar {
  width: 10px;
}

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

.list::-webkit-scrollbar-thumb {
  background: rgba(34, 96, 170, 0.18);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}

.columnEmptyState {
  min-height: 96px;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  border: 1px dashed rgba(34, 96, 170, 0.14);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.46);
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  text-align: center;
}

/* Cards */

.card {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(251, 253, 255, 0.92));
  border: 1px solid rgba(34, 96, 170, 0.10);
  border-radius: 18px;
  padding: 14px;
  box-shadow: 0 10px 24px rgba(17, 72, 145, 0.08);
}

.cardOptimisticMove {
  opacity: 0.68;
  transform: translateY(3px) scale(0.992);
  pointer-events: none;
  cursor: wait;
  transition: opacity 120ms ease, transform 120ms ease;
}

.channelBadge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 800;
  line-height: 1;
  vertical-align: middle;
}

.channelBadge.whatsapp {
  color: #087a4a;
  background: rgba(38, 183, 106, 0.13);
  border: 1px solid rgba(38, 183, 106, 0.22);
}

.channelBadge.instagram {
  color: #9d174d;
  background: rgba(236, 72, 153, 0.12);
  border: 1px solid rgba(236, 72, 153, 0.22);
}

.priorityBadge {
  display: inline-flex;
  align-items: center;
  height: 18px;
  max-width: 100%;
  padding: 0 7px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  vertical-align: middle;
  white-space: nowrap;
  border: 1px solid rgba(109, 134, 163, 0.22);
  color: #46617e;
  background: rgba(241, 245, 249, 0.92);
}

.priorityBadge.critical {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.priorityBadge.urgent {
  color: #9a3412;
  background: #ffedd5;
  border-color: #fed7aa;
}

.priorityBadge.high {
  color: #854d0e;
  background: #fef9c3;
  border-color: #fde68a;
}

.priorityBadge.normal {
  color: #166534;
  background: #dcfce7;
  border-color: #bbf7d0;
}

.priorityReasons {
  display: grid;
  gap: 3px;
  margin: 8px 0 0;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid rgba(34, 96, 170, 0.10);
  background: rgba(241, 247, 255, 0.72);
  color: #476789;
  font-size: 11px;
  line-height: 1.35;
}

.priorityReasons span {
  overflow-wrap: anywhere;
}

.dangerConfirmCard {
  max-width: 420px;
}

.dangerConfirmText {
  margin: 0;
  color: var(--text);
  line-height: 1.5;
}

.cardtop {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.name {
  font-weight: 800;
  font-size: 14px;
  line-height: 1.25;
  color: var(--text-strong);
  margin: 0;
  word-break: break-word;
}

.meta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 5px;
  line-height: 1.45;
  word-break: break-word;
}

.msg {
  margin-top: 12px;
  font-size: 12px;
  color: #35506d;
  line-height: 1.5;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 4.6em;
  overflow: hidden;
}

.cardAudioPreview {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #315f91;
}

.cardAudioPreview strong {
  font-size: inherit;
  font-weight: 800;
}

.cardAudioIcon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  width: 28px;
  height: 24px;
  border: 1px solid rgba(29, 143, 255, 0.3);
  border-radius: 7px;
  background: rgba(29, 143, 255, 0.09);
}

.cardAudioIcon i {
  display: block;
  width: 2px;
  border-radius: 2px;
  background: #1d8fff;
}

.cardAudioIcon i:nth-child(1),
.cardAudioIcon i:nth-child(4) { height: 6px; }
.cardAudioIcon i:nth-child(2) { height: 12px; }
.cardAudioIcon i:nth-child(3) { height: 9px; }

.cardTags {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.cardMentions {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  margin: 10px 0 4px;
}

.mentionBadge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 10px;
  border: 1px solid rgba(29, 143, 255, 0.28);
  border-radius: 999px;
  background: #e8f3ff;
  color: #075da8;
  font-size: 12px;
  font-weight: 800;
}

.commonGroupsLine {
  margin-top: 9px;
  padding-top: 8px;
  border-top: 1px dashed rgba(13, 99, 201, 0.16);
  color: #5f7ba0;
  font-size: 11px;
  line-height: 1.4;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.commonGroupsLine b,
.commonGroupsLine strong {
  color: #0d56a6;
}

.tagChip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  max-width: 140px;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid rgba(13, 99, 201, 0.18);
  background: rgba(13, 99, 201, 0.08);
  color: #0d3b78;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.badge {
  font-size: 11px;
  padding: 0 11px;
  height: 28px;
  min-height: 28px;
  border-radius: 999px;
  border: 1px solid var(--border);
  color: var(--text-strong);
  white-space: nowrap;
  font-weight: 700;
  background: rgba(255, 255, 255, 0.9);
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 28px;
}

.badge.pending {
  background: rgba(242, 184, 29, 0.10);
  border-color: rgba(242, 184, 29, 0.26);
  color: #8b6100;
  min-width: 74px;
  justify-content: center;
}

.badge.success,
.badge.done {
  background: rgba(39, 179, 106, 0.10);
  border-color: rgba(39, 179, 106, 0.24);
  color: #1a7a46;
}

.footer {
  margin-top: 12px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px dashed rgba(34, 96, 170, 0.12);
  padding-top: 12px;
  font-size: 11px;
  color: var(--muted);
}

.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn2 {
  font-size: 11px;
  padding: 8px 11px;
  border-radius: 999px;
  cursor: pointer;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  text-decoration: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-weight: 700;
}

.btn2.green {
  border-color: rgba(39, 179, 106, 0.24);
  background: rgba(39, 179, 106, 0.12);
  color: #1d7d49;
}

.btn2.ghost {
  border-color: rgba(34, 96, 170, 0.12);
  background: transparent;
  color: var(--brand-2);
}

.smallmuted {
  color: var(--muted);
}

/* Desktop sidepanel */

.desktopSidepanel {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 10010;
  pointer-events: none;
}

.desktopSidepanelBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 47, 0.30);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.desktopSidepanelPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(19, 67, 127, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

.desktopSidepanel.open {
  pointer-events: auto;
}

.desktopSidepanel.open .desktopSidepanelBackdrop {
  opacity: 1;
}

.desktopSidepanel.open .desktopSidepanelPanel {
  transform: translateX(0);
}

.desktopSidepanelHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--border);
}

.desktopSidepanelBody {
  padding: 16px;
  overflow: auto;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.sideGroup {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.sideGroupTitle,
.mobileSectionTitle {
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.sideItem,
.sideSubitem,
.menuItem {
  width: 100%;
  border: 1px solid transparent;
  background: transparent;
  color: var(--text-strong);
  padding: 11px 12px;
  border-radius: 12px;
  cursor: pointer;
  font-size: 13px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
}

.menuIcon {
  width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
}

.menuIcon svg {
  width: 18px;
  height: 18px;
  display: block;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linejoin: round;
}

.sideItem:hover,
.sideSubitem:hover,
.menuItem:hover {
  background: rgba(10, 86, 173, 0.08);
  border-color: rgba(34, 96, 170, 0.10);
}

.sideSubmenu {
  border-radius: 12px;
}

.sideSubmenu summary {
  list-style: none;
}

.sideSubmenu summary::-webkit-details-marker {
  display: none;
}

.sideSubmenuItems {
  padding-left: 10px;
  margin-top: 6px;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

/* Old dropdown kept harmless */

.actionsMenuWrap {
  position: relative;
}

.actionsToggle {
  min-width: 110px;
  justify-content: center;
}

.actionsDropdown {
  position: absolute;
  top: calc(100% + 10px);
  left: 0;
  min-width: 240px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  border: 1px solid var(--border);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(19, 67, 127, 0.16);
  padding: 8px;
  display: none;
  flex-direction: column;
  gap: 6px;
  z-index: 50;
}

.actionsDropdown.open {
  display: flex;
}

/* Forms / modals */

.modalOverlay {
  position: fixed;
  inset: 0;
  background: rgba(11, 25, 47, 0.34);
  backdrop-filter: blur(8px);
  display: none;
  align-items: center;
  justify-content: center;
  z-index: 9999;
  padding: 18px;
}

.modal {
  width: min(680px, 94vw);
  max-height: calc(100vh - 36px);
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  border: 1px solid rgba(34, 96, 170, 0.14);
  border-radius: 22px;
  box-shadow: 0 24px 60px rgba(18, 65, 123, 0.18);
  overflow: hidden;
}

.termsModalCard,
.helpModalCard,
.teamModalCard {
  width: min(960px, 96vw);
}

.fiscalModalCard {
  width: min(860px, calc(100vw - 32px));
}

.teamModalCard {
  max-height: 88vh;
}

.teamModalBody,
.fiscalModalCard .modalBody {
  min-height: 0;
  overflow: auto;
}

.modalHeader {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 15px 16px;
  border-bottom: 1px solid rgba(34, 96, 170, 0.08);
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.72), rgba(255, 255, 255, 0.82));
  flex: 0 0 auto;
}

.modalTitle {
  font-weight: 800;
  letter-spacing: -0.01em;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-strong);
}

.modalBody {
  padding: 16px;
  overflow: auto;
  min-height: 0;
  flex: 1 1 auto;
}

.modalFooter {
  padding: 14px 16px;
  border-top: 1px solid rgba(34, 96, 170, 0.08);
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  flex-wrap: wrap;
  background: rgba(248, 251, 255, 0.82);
  flex: 0 0 auto;
}

.xbtn {
  width: 36px;
  height: 36px;
  border-radius: 12px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-strong);
  cursor: pointer;
}

.iconBtn {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.82);
  color: var(--brand-2);
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 13px;
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 14px;
}

.field label {
  font-size: 12px;
  color: var(--muted);
  font-weight: 600;
}

.field input,
.field select,
.field textarea {
  width: 100%;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-strong);
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.field textarea {
  min-height: 110px;
}

.field input:focus,
.field select:focus,
.field textarea:focus,
.pill select:focus,
.pill input[type="number"]:focus {
  outline: none;
  border-color: rgba(29, 143, 255, 0.35);
  box-shadow:
    0 0 0 3px rgba(29, 143, 255, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.hint {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.5;
}

.docBox {
  max-height: 52vh;
  overflow: auto;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  background: rgba(245, 249, 255, 0.86);
  font-size: 12px;
  color: #31506e;
  line-height: 1.5;
  white-space: pre-wrap;
}

.quickGuideIntro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  background: linear-gradient(180deg, rgba(236, 245, 255, 0.78), rgba(255, 255, 255, 0.9));
  margin-bottom: 14px;
}

.quickGuideIntro strong,
.quickGuideIntro span {
  display: block;
}

.quickGuideIntro strong {
  color: var(--text-strong);
  font-size: 14px;
  margin-bottom: 4px;
}

.quickGuideIntro span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.guideHero {
  background:
    linear-gradient(135deg, rgba(232, 244, 255, 0.94), rgba(255, 255, 255, 0.92)),
    radial-gradient(circle at top right, rgba(29, 143, 255, 0.16), transparent 34%);
}

.guideCallouts {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.guideCallouts div {
  padding: 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 18px rgba(18, 65, 123, 0.05);
}

.guideCallouts b,
.guideCallouts span {
  display: block;
}

.guideCallouts b {
  color: var(--text-strong);
  font-size: 12px;
  margin-bottom: 5px;
}

.guideCallouts span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.quickSteps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.quickStep {
  min-height: 74px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  border-radius: 14px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94), rgba(247, 251, 255, 0.92));
  padding: 12px;
  display: flex;
  flex-direction: column;
  gap: 8px;
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 800;
}

.quickStep b {
  width: 24px;
  height: 24px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(13, 99, 201, 0.1);
  color: var(--brand-2);
  border: 1px solid rgba(13, 99, 201, 0.18);
}

.guideAccordion {
  border-top: 1px solid rgba(34, 96, 170, 0.16);
}

.guideAccordion details {
  border-bottom: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 12px;
}

.guideAccordion details[open] {
  background: rgba(255, 255, 255, 0.72);
}

.guideAccordion summary {
  list-style: none;
  cursor: pointer;
  padding: 17px 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  color: var(--text-strong);
  font-weight: 800;
  font-size: 14px;
}

.guideAccordion summary::-webkit-details-marker {
  display: none;
}

.guideAccordion summary::after {
  content: "⌄";
  color: var(--muted);
  font-size: 18px;
  transition: transform 0.18s ease;
}

.guideAccordion details[open] summary::after {
  transform: rotate(180deg);
}

.guidePanel {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.65;
  padding: 0 12px 17px;
  max-width: 86ch;
}

.qrBox {
  display: flex;
  flex-direction: column;
  gap: 10px;
  align-items: center;
}

.qrImg {
  width: 280px;
  max-width: 70vw;
  border-radius: 18px;
  border: 1px solid rgba(34, 96, 170, 0.14);
  background: #fff;
  padding: 12px;
  box-shadow: 0 10px 24px rgba(17, 72, 145, 0.08);
}

.rowBetween {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.tag {
  font-size: 11px;
  padding: 7px 11px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.9);
  color: var(--text-strong);
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-weight: 700;
}

.tag.ok {
  border-color: var(--ok-border);
  background: var(--ok);
  color: #1d7d49;
}

.tag.bad {
  border-color: var(--bad-border);
  background: var(--bad);
  color: #9b3434;
}

.tag.mid {
  border-color: var(--info-border);
  background: var(--info);
  color: var(--brand-2);
}

.teamSearchField {
  margin-top: 12px;
  margin-bottom: 0;
}

.teamToolbar {
  margin-top: 10px;
  margin-bottom: 10px;
}

.teamListWrap {
  margin-top: 8px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  border-radius: 16px;
  background: rgba(247, 250, 255, 0.9);
  padding: 8px;
  max-height: 62vh;
  overflow-y: auto;
  min-height: 180px;
}

.teamList {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.teamItem {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  padding: 11px 12px;
  border-radius: 14px;
  border: 1px solid rgba(34, 96, 170, 0.10);
  background: rgba(255, 255, 255, 0.92);
}

.teamItem input {
  margin-top: 3px;
}

.teamItem b {
  font-size: 12px;
  color: var(--text-strong);
}

.teamMeta {
  font-size: 11px;
  color: var(--muted);
  margin-top: 3px;
}

.teamEmpty {
  padding: 14px 10px;
  font-size: 12px;
  color: var(--muted);
}

.waDebug {
  width: 100%;
  max-width: 100%;
  min-height: 0;
  max-height: none;
  overflow: visible;
  background: #eef6ff;
  color: #21466f;
  border: 1px solid rgba(29, 143, 255, 0.18);
  border-radius: 14px;
  padding: 12px 14px;
  font-family: inherit;
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
  display: none;
}

.wa-spinner-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 18px 10px;
}

.wa-spinner {
  width: 40px;
  height: 40px;
  border: 4px solid rgba(29, 143, 255, 0.14);
  border-top-color: var(--brand-2);
  border-radius: 50%;
  animation: waSpin 0.9s linear infinite;
}

.modalBrandMini {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(10, 86, 173, 0.08), rgba(100, 186, 255, 0.12));
  border: 1px solid rgba(34, 96, 170, 0.10);
  margin-bottom: 14px;
}

.modalBrandMini img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 12px;
  border: 1px solid rgba(34, 96, 170, 0.10);
}

.modalBrandMini div {
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.modalBrandMini strong {
  color: var(--text-strong);
  font-size: 13px;
}

.modalBrandMini span {
  color: var(--muted);
  font-size: 12px;
}

.toast {
  position: fixed;
  bottom: 18px;
  left: 50%;
  transform: translateX(-50%) translateY(12px);
  padding: 11px 15px;
  border-radius: 14px;
  background: linear-gradient(135deg, var(--brand-2), var(--brand-3));
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  z-index: 99999;
  box-shadow: 0 16px 32px rgba(10, 86, 173, 0.25);
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.18s ease, transform 0.18s ease;
}

.toast.show {
  opacity: 1;
  transform: translateX(-50%) translateY(0);
}

.mobileSection {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.mobilePill {
  display: flex;
  flex-direction: column;
  gap: 6px;
  align-items: stretch;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d9e3ef;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.03);
  color: #24364d;
  font-size: 12px;
  font-weight: 700;
}

.mobilePill input,
.mobilePill select {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #d7e2f0;
  background: #f9fbff;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #183153;
  outline: none;
  appearance: none;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}

.mobilePill input::placeholder {
  color: #97a3b6;
  font-size: 11px;
  font-weight: 600;
}

.mobilePill select {
  cursor: pointer;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7a90 50%),
    linear-gradient(135deg, #6b7a90 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

@keyframes waSpin {
  to {
    transform: rotate(360deg);
  }
}

/* Medium screens */

@media (max-width: 1400px) {
  .trialPill {
    max-width: 280px;
    font-size: 11px;
    padding: 7px 11px;
  }

  .brandLogo {
    max-height: 44px;
  }
}

@media (max-width: 1180px) {
  .top {
    grid-template-columns: 1fr auto;
    align-items: start;
  }

  .brandBlock {
    min-width: 0;
  }

  .trialPill {
    max-width: 260px;
    font-size: 11px;
    padding: 7px 11px;
  }

  .statusBar {
    flex-wrap: wrap;
    align-items: stretch;
  }

  .statusBarLeft {
    max-width: 100%;
    width: auto;
  }

  .board {
    width: calc(100vw - 24px);
    min-width: calc((300px * 4) + (var(--gap) * 3));
    padding-top: 0;
    overflow-x: auto;
    overflow-y: hidden;
  }

  .col {
    min-height: 420px;
  }

  .list {
    overflow-y: auto;
    overflow-x: hidden;
  }
}

/* Mobile */

@media (max-width: 760px) {
  body {
    overflow: hidden;
  }

  .desktopFiltersBar {
    display: none;
  }

  .statusBar {
    flex-direction: column;
    align-items: stretch;
    gap: 6px;
  }

  .statusBarLeft,
  .slaInline {
    margin-left: 0;
    max-width: 100%;
    width: 100%;
  }

  .slaHelp {
    flex: 0 0 auto;
  }

  .statusBar .sub {
    font-size: 12px;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .desktopSidepanel {
    display: none;
  }

  .mobileDrawer {
    display: block;
    position: fixed;
    inset: 0;
    z-index: 10000;
    pointer-events: none;
  }

  .mobileDrawerBackdrop {
    position: absolute;
    inset: 0;
    background: rgba(11, 25, 47, 0.34);
    opacity: 0;
    transition: opacity 0.18s ease;
  }

  .mobileDrawerPanel {
    position: absolute;
    top: 0;
    right: 0;
    width: min(86vw, 360px);
    height: 100%;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
    border-left: 1px solid var(--border);
    box-shadow: -12px 0 30px rgba(19, 67, 127, 0.16);
    transform: translateX(100%);
    transition: transform 0.22s ease;
    display: flex;
    flex-direction: column;
  }

  .mobileDrawer.open {
    pointer-events: auto;
  }

  .mobileDrawer.open .mobileDrawerBackdrop {
    opacity: 1;
  }

  .mobileDrawer.open .mobileDrawerPanel {
    transform: translateX(0);
  }

  .mobileDrawerHeader {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid var(--border);
  }

  .mobileDrawerBody {
    padding: 12px;
    overflow: auto;
    display: flex;
    flex-direction: column;
    gap: 12px;
  }

  .mobileMenuBtn {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    width: 42px;
    height: 42px;
    border-radius: 12px;
    border: 1px solid var(--border);
    background: rgba(255, 255, 255, 0.9);
    color: var(--text-strong);
    font-size: 18px;
    cursor: pointer;
  }

  .controls,
  .trialPill {
    display: none !important;
  }

  .wrap {
    width: calc(100vw - 20px);
    padding: 14px 0;
  }

  .siteHeader .top {
    display: grid;
    grid-template-columns: auto 1fr;
    align-items: center;
    gap: 10px;
  }

  .brandBlock {
    flex-direction: row;
    align-items: center;
    gap: 10px;
    min-width: 0;
    width: auto;
  }

  .brandRow {
    width: auto;
  }

  .brandLogo {
    width: 108px;
    max-height: none;
  }

  .board {
    flex: 1 1 auto;
    min-height: 0;
    width: 100vw;
    min-width: 0;
    margin: 0;
    padding: 8px 12px 14px;
    display: grid;
    grid-auto-flow: column;
    grid-auto-columns: calc(100vw - 24px);
    grid-template-columns: unset;
    gap: 12px;
    overflow-x: auto;
    overflow-y: hidden;
    scroll-snap-type: x mandatory;
    -webkit-overflow-scrolling: touch;
  }

  .board::-webkit-scrollbar {
    height: 0;
  }

  .col {
    min-height: 0;
    height: 100%;
    scroll-snap-align: start;
    border-radius: 20px;
  }

  .colhead {
    padding: 14px 14px 12px;
  }

  .list {
    flex: 1 1 auto;
    min-height: 0;
    padding: 12px;
    overflow-y: auto;
    overflow-x: hidden;
  }

  .card {
    padding: 12px;
    border-radius: 16px;
  }

  .name {
    font-size: 13px;
  }

  .meta,
  .msg,
  .footer,
  .btn2,
  .badge {
    font-size: 11px;
  }

  .footer {
    flex-direction: column;
    align-items: stretch;
  }

  .actions {
    justify-content: flex-start;
  }

  .pill {
    width: 100%;
    justify-content: space-between;
    border-radius: 16px;
  }

  .pill select,
  .pill input[type="number"] {
    min-width: 0;
    width: auto;
    max-width: 48%;
    text-align: right;
  }

  .modalOverlay {
    align-items: flex-start;
    justify-content: center;
    overflow-y: auto;
    padding: 8px;
  }

  .modal,
  .termsModalCard,
  .helpModalCard,
  .teamModalCard,
  .fiscalModalCard {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    margin: 0 auto;
    border-radius: 18px;
  }

  .quickSteps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quickGuideIntro {
    align-items: stretch;
    flex-direction: column;
  }

  .modalBody,
  .fiscalModalCard .modalBody {
    overflow-y: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modalFooter {
    justify-content: stretch;
  }

  .modalFooter .btn {
    width: 100%;
    justify-content: center;
  }

  .err {
    top: 78px;
    padding: 0 10px;
  }
}

/* =========================
   COMPACTAÇÃO DE ALTURAS
   ========================= */

/* Header mais fino */
.siteHeader {
  min-height: 72px;
}

.top {
  gap: 12px;
}

.brandLogo {
  max-height: 42px;
}

.trialPill {
  padding: 6px 10px;
  font-size: 11px;
}

.btn.secondary#btnDesktopSidepanel {
  padding: 7px 12px;
  font-size: 12px;
  min-height: 38px;
}

/* Barra de status/SLA mais fina */
.boardTop {
  padding: 0;
}

.statusBar .sub {
  font-size: 12px;
}

.statusBarLeft {
  gap: 6px;
}

.slaInline {
  gap: 4px;
  font-size: 12px;
}

.slaHelp {
  width: 18px;
  height: 18px;
  font-size: 10px;
}

.iconBtn {
  width: 28px;
  height: 28px;
  font-size: 12px;
}

/* Aviso de erro mais compacto */
.err {
  top: 74px;
}

#errBox {
  padding: 10px 12px;
  border-radius: 14px;
}

/* Barra de filtros mais fina */
.boardFilters {
  padding: 4px 0 0;
}

.filtersShell {
  padding: 10px 12px;
  border-radius: 18px;
  gap: 10px;
}

.filterBox {
  gap: 5px;
  min-width: 150px;
}

.filterBoxSearch {
  min-width: 240px;
  flex: 1 1 280px;
}

.filterBoxMini {
  min-width: 108px;
  max-width: 108px;
}

.filterBoxLabel {
  font-size: 11px;
  padding-left: 1px;
}

.filterBox input,
.filterBox select {
  height: 40px;
  border-radius: 12px;
  padding: 0 12px;
  font-size: 12px;
}

.filterActionBtn {
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 12px;
}

/* Board sobe um pouco */
.board {
  padding: 8px 0 0;
  margin-bottom: 12px;
}

/* Colunas e cards um pouco mais enxutos */
.col {
  border-radius: 20px;
}

.colhead {
  padding: 12px 14px 10px;
}

.coltitle {
  gap: 8px;
  font-size: 13px;
}

.dot {
  width: 10px;
  height: 10px;
}

.count {
  min-width: 30px;
  height: 30px;
  font-size: 11px;
  padding: 0 8px;
}

.list {
  padding: 10px;
  gap: 10px;
}

.card {
  border-radius: 16px;
  padding: 12px;
}

.name {
  font-size: 13px;
}

.meta {
  font-size: 10px;
  margin-top: 4px;
}

.msg {
  margin-top: 10px;
  font-size: 11px;
}

.cardTags {
  margin: 8px 0 2px;
}

.tagChip {
  min-height: 22px;
  padding: 0 8px;
  font-size: 11px;
}

.badge {
  font-size: 10px;
  padding: 5px 9px;
}

.footer {
  margin-top: 10px;
  padding-top: 10px;
  font-size: 10px;
  gap: 10px;
}

.actions {
  gap: 6px;
}

.btn2 {
  font-size: 10px;
  padding: 7px 10px;
}

/* Sidepanel um pouco mais enxuto */
.desktopSidepanelHeader {
  padding: 12px 14px;
}

.desktopSidepanelBody {
  padding: 14px;
  gap: 14px;
}

.sideItem,
.sideSubitem,
.menuItem {
  padding: 10px 11px;
  font-size: 12px;
  border-radius: 10px;
}

/* Mobile também mais compacto */
@media (max-width: 760px) {
  .wrap {
    padding: 10px 0;
  }

  .brandLogo {
    width: 98px;
  }

  .statusBar {
    gap: 4px;
  }

  .statusBar .sub,
  .slaInline {
    font-size: 11px;
  }

  .board {
    padding: 6px 10px 10px;
    gap: 10px;
  }

  .colhead {
    padding: 12px 12px 10px;
  }

  .list {
    padding: 10px;
    gap: 10px;
  }

  .card {
    padding: 10px;
    border-radius: 14px;
  }

  .mobileDrawerHeader {
    padding: 12px 14px;
  }

  .mobileDrawerBody {
    padding: 14px;
    gap: 14px;
  }

  .mobilePill {
    padding: 12px 14px;
    gap: 6px;
    border-radius: 14px;
    font-size: 12px;
  }

  .mobilePill input,
  .mobilePill select {
    height: 40px;
    font-size: 12px;
  }

  .err {
    top: 68px;
  }
}

.filtersShellCompact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: nowrap;
}

.filterInlineGroup {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 0 0 auto;
}

.filterInlineText {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  white-space: nowrap;
  flex: 0 0 auto;
}

.filterInlineGroup input,
.filterInlineGroup select {
  height: 40px;
  border-radius: 12px;
  border: 1px solid rgba(34, 96, 170, 0.14);
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-strong);
  padding: 0 12px;
  outline: none;
  min-width: 0;
}

.filterInlineGroup select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 36px;
  cursor: pointer;
  background-image:
    linear-gradient(45deg, transparent 50%, #6f86a2 50%),
    linear-gradient(135deg, #6f86a2 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.filterInlineSearch {
  flex: 1 1 320px;
  min-width: 260px;
  max-width: 620px;
}

.filterInlineSearch input {
  width: 100%;
}

.searchFilterControl {
  position: relative;
  min-width: 0;
}

.filterInlineSearch .searchFilterControl {
  flex: 1 1 auto;
}

.searchFilterControl input {
  padding-right: 102px;
  transition: border-color 0.16s ease, box-shadow 0.16s ease, background 0.16s ease;
}

.searchFilterControl.is-active input {
  border-color: #2482dc;
  background: #f7fbff;
  box-shadow: 0 0 0 3px rgba(36, 130, 220, 0.12);
}

.searchFilterStatus {
  display: none;
  position: absolute;
  right: 37px;
  top: 50%;
  transform: translateY(-50%);
  color: #0d68bd;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap;
  pointer-events: none;
}

.searchFilterClear {
  display: none;
  position: absolute;
  right: 7px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 50%;
  background: #e6f2ff;
  color: #075eae;
  font-size: 12px;
  font-weight: 800;
  cursor: pointer;
}

.searchFilterControl.is-active .searchFilterStatus,
.searchFilterControl.is-active .searchFilterClear {
  display: flex;
}

.searchFilterClear:hover,
.searchFilterClear:focus-visible {
  background: #cfe7ff;
  outline: 2px solid rgba(13, 104, 189, 0.2);
}

.filterInlineGroup:not(.filterInlineSearch):not(.filterInlineMini) select {
  width: 170px;
}

.filterInlineMini input {
  width: 72px;
}

@media (max-width: 1440px) {
  .filtersShellCompact {
    gap: 10px;
  }

  .filterInlineSearch {
    flex-basis: 300px;
    max-width: 520px;
  }

  .filterInlineGroup:not(.filterInlineSearch):not(.filterInlineMini) select {
    width: 150px;
  }
}

@media (max-width: 1280px) {
  .filtersShellCompact {
    flex-wrap: wrap;
  }

  .filterInlineSearch {
    flex-basis: 100%;
    width: 100%;
    max-width: none;
  }

  .filterInlineSearch input {
    width: 100%;
  }
}

.meta,
.footer,
.btn2,
.badge,
.smallmuted {
  font-size: 11px;
}

.msg {
  font-size: 13px;
}

.footerStacked {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
}

.actionsSingleRow {
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  justify-content: flex-start;
  gap: 8px;
}

.actionsSingleRow .btn2 {
  font-size: 11px;
  font-weight: 700;
  padding: 5px 9px;
  min-height: 32px;
}

.cardInfoLine {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 13px;
  color: var(--muted);
  line-height: 1.35;
}

.cardInfoLine b {
  color: #5f7ba0;
  font-weight: 700;
}

.filterInlineGroup input,
.filterInlineGroup select,
.filterBox input,
.filterBox select {
  font-size: 14px;
}

.filterInlineSearch input::placeholder,
.filterBox input::placeholder {
  font-size: 14px;
}

.mobileFilterRow {
  display: grid;
  grid-template-columns: 72px 1fr;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid #d9e3ef;
  box-shadow: 0 3px 10px rgba(16, 24, 40, 0.03);
}

.mobileFilterLabel {
  font-size: 12px;
  font-weight: 700;
  color: #5f7694;
  white-space: nowrap;
}

.mobileFilterRow input,
.mobileFilterRow select {
  width: 100%;
  height: 38px;
  border-radius: 11px;
  border: 1px solid #d7e2f0;
  background: #f9fbff;
  padding: 0 12px;
  font-size: 11px;
  font-weight: 600;
  color: #183153;
  outline: none;
  appearance: none;
}

.mobileFilterRow .searchFilterControl,
.mobileFilterRow .searchFilterControl input {
  width: 100%;
}

.mobileFilterRow .searchFilterControl input {
  padding-right: 92px;
}

.mobileFilterRow input::placeholder {
  color: #97a3b6;
  font-size: 11px;
  font-weight: 600;
}

.mobileFilterRow select {
  cursor: pointer;
  padding-right: 38px;
  background-image:
    linear-gradient(45deg, transparent 50%, #6b7a90 50%),
    linear-gradient(135deg, #6b7a90 50%, transparent 50%);
  background-position:
    calc(100% - 18px) calc(50% - 3px),
    calc(100% - 12px) calc(50% - 3px);
  background-size: 6px 6px, 6px 6px;
  background-repeat: no-repeat;
}

.mobileFilterRowMini {
  grid-template-columns: 72px 90px;
}

#refreshSecMobile {
  text-align: left;
}

/* Chat drawer */
.chatDrawerBackdrop {
  position: fixed;
  inset: 0;
  display: none;
  background: rgba(11, 25, 47, 0.18);
  z-index: 9000;
}

.chatDrawerBackdrop.open {
  display: block;
}

.chatDrawer {
  position: fixed;
  top: 0;
  right: 0;
  z-index: 9001;
  width: min(520px, 100vw);
  height: 100vh;
  display: flex;
  flex-direction: column;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99), rgba(248, 251, 255, 0.99));
  border-left: 1px solid rgba(34, 96, 170, 0.16);
  box-shadow: -18px 0 48px rgba(18, 65, 123, 0.18);
  transform: translateX(104%);
  transition: transform 0.2s ease;
}

.chatDrawer.open {
  transform: translateX(0);
}

.chatDrawerHeader {
  flex: 0 0 auto;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid rgba(34, 96, 170, 0.10);
  background: rgba(236, 245, 255, 0.72);
}

.chatDrawerTitleWrap {
  min-width: 0;
}

.chatDrawerTitle {
  font-size: 16px;
  line-height: 1.25;
  font-weight: 850;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatDrawerMeta {
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow: hidden;
}

.chatDrawerCommonGroups {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #54779f;
}

.chatDrawerMessages {
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
  padding: 16px;
  background: linear-gradient(180deg, rgba(239, 246, 255, 0.72), rgba(247, 250, 255, 0.92));
}

.chatDrawerEmpty {
  color: var(--muted);
  font-size: 14px;
  text-align: center;
  padding: 28px 12px;
}

.chatOlderMessages {
  display: flex;
  justify-content: center;
  padding: 4px 0 10px;
}

.chatOlderMessages .btn2 {
  min-height: 34px;
  padding: 7px 14px;
  font-size: 13px;
}

.chatMessage {
  display: flex;
  margin: 8px 0;
}

.chatMessage.mine {
  justify-content: flex-end;
}

.chatMessage.theirs {
  justify-content: flex-start;
}

.chatBubble {
  position: relative;
  width: fit-content;
  max-width: min(86%, 380px);
  padding: 9px 11px;
  border: 1px solid rgba(34, 96, 170, 0.12);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 20px rgba(17, 72, 145, 0.07);
}

.chatBubble.hasReactions {
  margin-bottom: 12px;
}

.chatBubbleReactions {
  position: absolute;
  right: 8px;
  bottom: -14px;
  display: flex;
  gap: 4px;
  z-index: 2;
}

.chatMessage.theirs .chatBubbleReactions {
  right: auto;
  left: 8px;
}

.chatReactionChip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 25px;
  padding: 2px 7px;
  border: 1px solid rgba(34, 96, 170, 0.18);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 3px 10px rgba(17, 72, 145, 0.12);
  font-size: 15px;
  line-height: 1;
}

.chatReactionChip strong {
  color: var(--muted);
  font-size: 10px;
}

.chatMessage.mine .chatBubble {
  background: rgba(29, 143, 255, 0.12);
  border-color: rgba(29, 143, 255, 0.20);
}

.chatMessage.pending .chatBubble {
  opacity: 0.76;
  border-style: dashed;
}

.chatMessage.pending .chatBubbleTime {
  color: var(--primary);
  font-weight: 800;
}

.chatMessage.pending.failed .chatBubble {
  border-color: rgba(226, 76, 76, 0.45);
  background: rgba(226, 76, 76, 0.08);
}

.chatMessage.pending.failed .chatBubbleTime {
  color: #b4232f;
}


.chatMessage.highlight .chatBubble {
  box-shadow: 0 0 0 3px rgba(29, 143, 255, 0.22), 0 8px 20px rgba(17, 72, 145, 0.07);
}

.chatQuotedPreview {
  width: 100%;
  max-width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  margin: 2px 0 7px;
  padding: 7px 9px 7px 10px;
  border: none;
  border-left: 3px solid var(--brand-3);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.68);
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
}

.chatMessage.mine .chatQuotedPreview {
  background: rgba(255, 255, 255, 0.58);
}

.chatQuotedPreview:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatQuotedPreview strong {
  max-width: 100%;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 850;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatQuotedPreview span {
  max-width: 100%;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.28;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.chatBubbleName {
  font-size: 11px;
  font-weight: 800;
  color: var(--muted);
}

.chatBubbleNameRow {
  min-height: 20px;
  margin-bottom: 4px;
  display: flex;
  align-items: center;
  gap: 7px;
}

.chatMarkTeamBtn {
  min-width: 42px;
  height: 24px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  padding: 0 9px;
  border: 1px solid rgba(8, 102, 255, 0.2);
  border-radius: 7px;
  background: #e9f2ff;
  color: #0866ff;
  cursor: pointer;
}

.chatMarkTeamBtn:hover,
.chatMarkTeamBtn:focus-visible {
  background: #dbeaff;
  border-color: rgba(8, 102, 255, 0.4);
  outline: none;
}

.chatTeamPersonIcon {
  position: relative;
  width: 13px;
  height: 15px;
  flex: 0 0 13px;
}

.chatTeamPersonIcon::before {
  content: "";
  position: absolute;
  top: 0;
  left: 4px;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: currentColor;
}

.chatTeamPersonIcon::after {
  content: "";
  position: absolute;
  left: 1px;
  bottom: 0;
  width: 12px;
  height: 7px;
  border-radius: 7px 7px 3px 3px;
  background: currentColor;
}

.chatTeamPlus {
  font-size: 16px;
  font-weight: 700;
  line-height: 1;
}

.chatMarkTeamBtn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chatTeamBadge {
  display: inline-flex;
  align-items: center;
  min-height: 20px;
  padding: 2px 7px;
  border-radius: 10px;
  background: #e9f8ef;
  color: #147a43;
  font-size: 9px;
  font-weight: 800;
}

.teamParticipantConfirmCard {
  width: min(460px, calc(100vw - 32px));
}

.teamParticipantConfirmBody {
  display: flex;
  align-items: flex-start;
  gap: 14px;
}

.teamParticipantConfirmIcon {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  border-radius: 8px;
  background: #e9f2ff;
  color: #0866ff;
}

.teamParticipantConfirmIcon .chatTeamPersonIcon {
  transform: scale(1.25);
}

.teamParticipantConfirmIcon .chatTeamPlus {
  font-size: 20px;
}

.teamParticipantConfirmText strong {
  display: block;
  color: var(--text-strong);
  font-size: 15px;
  line-height: 1.35;
}

.teamParticipantConfirmText p {
  margin: 6px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.chatBubbleBody {
  font-size: 14px;
  line-height: 1.38;
  color: var(--text-strong);
  white-space: normal;
  overflow-wrap: anywhere;
}

.chatBubbleMedia {
  margin-top: 6px;
  font-size: 12px;
  color: var(--muted);
}

.chatBubbleMediaFallback {
  display: flex;
  align-items: center;
  gap: 9px;
  width: min(270px, 100%);
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 143, 255, 0.20);
  border-radius: 8px;
  background: rgba(29, 143, 255, 0.06);
  color: var(--text-strong);
}

.chatBubbleMediaFallback span {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 28px;
  border-radius: 9px;
  background: rgba(29, 143, 255, 0.14);
  color: var(--brand-2);
  font-size: 10px;
  font-weight: 900;
}

.chatBubbleMediaFallback strong { font-size: 13px; }
.chatBubbleMediaFallback div {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}
.chatBubbleMediaFallback small { color: var(--muted); font-size: 11px; overflow-wrap: anywhere; }

.chatContactCard {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(320px, 100%);
  padding: 10px 12px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.74);
}

.chatContactAvatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: rgba(29, 143, 255, 0.12);
  color: var(--brand-2);
  font-weight: 900;
}

.chatContactInfo {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.chatContactInfo strong,
.chatContactInfo span,
.chatContactInfo small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatContactInfo strong {
  color: var(--text-strong);
  font-size: 13px;
}

.chatContactInfo span {
  color: var(--text);
  font-size: 12px;
}

.chatContactInfo small {
  color: var(--muted);
  font-size: 11px;
}

.chatContactStartBtn {
  margin-left: auto;
  border: 1px solid rgba(29, 143, 255, 0.24);
  border-radius: 999px;
  background: rgba(29, 143, 255, 0.1);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 850;
  padding: 7px 10px;
  cursor: pointer;
  white-space: nowrap;
}

.chatContactStartBtn:hover {
  background: rgba(29, 143, 255, 0.16);
}

.chatContactStartBtn:disabled {
  opacity: 0.55;
  cursor: wait;
}

.chatMediaPlaceholder {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(270px, 100%);
  min-height: 62px;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid rgba(29, 143, 255, 0.28);
  border-radius: 8px;
  background: rgba(29, 143, 255, 0.07);
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
}

.chatMediaPlaceholder:hover {
  background: rgba(29, 143, 255, 0.12);
  border-color: rgba(29, 143, 255, 0.42);
}

.chatMediaPlaceholder.loading {
  cursor: wait;
  opacity: 0.9;
}

.chatMediaPlaceholder.loading:hover {
  background: rgba(29, 143, 255, 0.07);
  border-color: rgba(29, 143, 255, 0.28);
}

.chatMediaPlaceholderIcon {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: var(--brand);
  color: #fff;
  font-size: 13px;
}

.chatMediaSpinner {
  display: block;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 50%;
  border: 3px solid rgba(29, 143, 255, 0.18);
  border-top-color: var(--brand);
  animation: chatMediaSpin 0.8s linear infinite;
}

@keyframes chatMediaSpin {
  to { transform: rotate(360deg); }
}

.chatMediaPlaceholder span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.chatMediaPlaceholder strong { font-size: 13px; }
.chatMediaPlaceholder small { color: var(--muted); font-size: 11px; }

.chatBubble.deleted {
  background: rgba(148, 163, 184, 0.10);
  border-color: rgba(100, 116, 139, 0.18);
}

.chatMessage.mine .chatBubble.deleted {
  background: rgba(29, 143, 255, 0.08);
}

.chatDeletedBadge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  margin-left: 6px;
  padding: 2px 7px;
  border: 1px solid rgba(244, 63, 94, 0.24);
  border-radius: 999px;
  background: rgba(255, 241, 242, 0.92);
  color: #be123c;
  font-size: 10px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.chatDeletedBadge::before {
  content: "⊘";
  font-size: 12px;
  line-height: 1;
}

.chatDeletedMessage {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--muted);
  font-style: italic;
}

.chatDeletedMessage::before {
  content: "⊘";
  font-style: normal;
  font-size: 16px;
  line-height: 1;
}

.chatBubbleTime {
  margin-top: 6px;
  font-size: 10px;
  color: var(--muted);
  text-align: right;
}

.chatComposer {
  flex: 0 0 auto;
  padding: 12px;
  border-top: 1px solid rgba(34, 96, 170, 0.10);
  background: rgba(248, 251, 255, 0.96);
  transition: background .16s ease, box-shadow .16s ease;
}

.chatComposer.dragOver {
  background: #eef6ff;
  box-shadow: inset 0 0 0 2px rgba(29, 143, 255, 0.34);
}

.chatComposer textarea {
  width: 100%;
  min-height: 76px;
  max-height: 180px;
  border: 1px solid var(--border);
  border-radius: 14px;
  padding: 11px 12px;
  color: var(--text-strong);
  background: #fff;
  outline: none;
  resize: vertical;
}

.chatComposer textarea:focus {
  border-color: rgba(29, 143, 255, 0.44);
  box-shadow: 0 0 0 4px rgba(29, 143, 255, 0.12);
}

.chatComposerFooter {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 10px;
}

.chatQuickRepliesWrap { position: relative; margin-right: auto; }
.chatQuickRepliesPanel {
  position: absolute;
  left: 0;
  bottom: calc(100% + 8px);
  z-index: 40;
  width: min(340px, calc(100vw - 48px));
  max-height: 300px;
  overflow: auto;
  gap: 4px;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(16, 42, 74, .18);
}
.chatQuickRepliesPanel > button {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: var(--text-strong);
  text-align: left;
  cursor: pointer;
}
.chatQuickRepliesPanel > button:hover { background: #eef6ff; }
.chatQuickRepliesPanel span { overflow: hidden; color: var(--muted); font-size: 12px; text-overflow: ellipsis; white-space: nowrap; }

.quickRepliesModalCard {
  width: min(980px, calc(100vw - 28px));
  max-height: min(92vh, 900px);
}
.quickRepliesBody { display: grid; gap: 18px; }
.quickReplyEditor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
}
.quickReplyEditor textarea { width: 100%; resize: vertical; }
.quickReplyAutomaticToggle {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid #b9d8f8;
  border-radius: 8px;
  background: #eef6ff;
  cursor: pointer;
}
.quickReplyAutomaticToggle input { margin-top: 3px; }
.quickReplyAutomaticToggle span { display: grid; gap: 3px; }
.quickReplyAutomaticToggle small { color: var(--muted); }
.quickReplyAutomationFields { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.quickReplyAutomationFields:not([hidden]) { display: grid; }
.quickReplyAttachmentBox {
  display: grid;
  gap: 8px;
}
.quickReplyAttachmentBox small {
  color: var(--muted);
  font-size: 12px;
}
.quickReplyAttachmentPreview {
  align-items: center;
  gap: 10px;
  padding: 9px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 8px;
  background: #fff;
}
.quickReplyAttachmentPreview:not([hidden]) {
  display: flex;
}
.quickReplyAttachmentIcon {
  min-width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #0b63ce;
  font-size: 11px;
  font-weight: 900;
}
.quickReplyAttachmentInfo {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}
.quickReplyAttachmentInfo strong,
.quickReplyAttachmentInfo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.quickReplyAttachmentInfo strong { color: var(--text-strong); font-size: 12px; }
.quickReplyAttachmentInfo span { color: var(--muted); font-size: 11px; }
.quickReplyRepeatWarning {
  grid-column: 1 / -1;
  padding: 10px 12px;
  border: 1px solid #f2c66d;
  border-radius: 8px;
  background: #fff8e8;
  color: #704a00;
  font-size: 12px;
  line-height: 1.4;
}
.quickReplyEditorActions,
.quickReplyCardActions { display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }
.quickRepliesListHeader { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.quickRepliesListHeader span { color: var(--muted); font-size: 12px; }
.quickRepliesList {
  display: grid;
  gap: 10px;
  min-height: 120px;
  max-height: min(42vh, 430px);
  overflow: auto;
  align-content: start;
}
.quickReplyCard { display: grid; gap: 10px; padding: 14px; border: 1px solid var(--border); border-radius: 8px; background: #fff; }
.quickReplyCard.isAutomatic { border-color: #8dc5f5; box-shadow: inset 3px 0 #1877d2; }
.quickReplyCardHeader { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; }
.quickReplyCardHeader > div { display: grid; gap: 3px; }
.quickReplyCardHeader small { color: var(--muted); }
.quickReplyCard p { margin: 0; color: var(--text); line-height: 1.45; }
.quickReplyAttachmentChip {
  width: fit-content;
  max-width: 100%;
  padding: 6px 9px;
  border-radius: 8px;
  background: #eef6ff;
  color: #0d4f8b;
  font-size: 12px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.quickReplyStatus { padding: 4px 8px; border-radius: 999px; background: #e5f3ff; color: #0969bd; font-size: 11px; font-weight: 800; }
.quickReplyCardActions .danger { color: #b42318; }

.boardTop {
  display: none;
}

.headerSla {
  margin-left: auto;
  max-width: min(680px, 48vw);
  justify-content: flex-end;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.inboxToolbar {
  align-items: center;
  gap: 10px;
  overflow: hidden;
}

.inboxToolbar > .filterInlineGroup:not(.filterInlineSearch) {
  display: none;
}

.inboxToolbar .filterInlineSearch {
  flex: 0 1 330px;
  min-width: 250px;
  max-width: 360px;
}

.viewTabs {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  flex: 1 1 auto;
  overflow-x: auto;
  scrollbar-width: none;
}

.viewTabs::-webkit-scrollbar {
  display: none;
}

.viewTab {
  flex: 0 0 auto;
  height: 38px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 0;
  border-radius: 10px;
  padding: 0 12px;
  background: transparent;
  color: var(--text);
  font-weight: 800;
  cursor: pointer;
}

.viewTab:hover {
  background: rgba(13, 99, 201, 0.08);
}

.viewTab:disabled:hover {
  background: transparent;
}

.viewTab.active {
  color: #0969bd;
  background: #e8f2ff;
}

.viewTab span {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  padding: 0 5px;
  background: #dbeeff;
  color: #0969bd;
  border: 1px solid #b8dcff;
  font-size: 11px;
  line-height: 1;
}

.colSlaEdit {
  height: 24px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border: 1px solid rgba(34, 96, 170, 0.14);
  border-radius: 999px;
  padding: 0 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #5f7694;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.colSlaEdit:hover {
  color: #0b63ce;
  border-color: rgba(13, 99, 201, 0.28);
  background: #fff;
}

#mobileFilterDrawer {
  display: block;
  position: fixed;
  inset: 0;
  z-index: 90;
  pointer-events: none;
}

#mobileFilterDrawer .mobileDrawerBackdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 25, 47, 0.34);
  opacity: 0;
  transition: opacity 0.2s ease;
}

#mobileFilterDrawer .mobileDrawerPanel {
  position: absolute;
  top: 0;
  right: 0;
  width: min(420px, 92vw);
  height: 100%;
  background: var(--panel-strong);
  border-left: 1px solid var(--border);
  box-shadow: -12px 0 30px rgba(19, 67, 127, 0.16);
  transform: translateX(100%);
  transition: transform 0.22s ease;
  display: flex;
  flex-direction: column;
}

#mobileFilterDrawer.open {
  pointer-events: auto;
}

#mobileFilterDrawer.open .mobileDrawerBackdrop {
  opacity: 1;
}

#mobileFilterDrawer.open .mobileDrawerPanel {
  transform: translateX(0);
}

/* Compact header and filter polish */
.inboxToolbar {
  padding: 10px 14px;
  min-height: 64px;
}

.inboxToolbar .filterInlineSearch {
  flex-basis: 340px;
  min-width: 260px;
  max-width: 420px;
}

.viewTabs {
  gap: 2px;
}

.viewTab {
  height: 34px;
  gap: 6px;
  padding: 0 10px;
  border-radius: 9px;
  font-size: 14px;
  letter-spacing: 0;
}

.viewTab span {
  min-width: 16px;
  height: 16px;
  padding: 0 5px;
  font-size: 10px;
}

.filterActionBtn {
  height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  font-size: 13px;
}

.filterActionBtn.hasActiveFilters,
.mobileFilterBtn.hasActiveFilters {
  border-color: rgba(13, 99, 201, 0.28);
  background: #e8f2ff;
  color: #0969bd;
}

.filterActiveCount {
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-left: 7px;
  border-radius: 999px;
  padding: 0 5px;
  background: #0d73d9;
  color: #fff;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
}

.filterClearBtn {
  height: 32px;
  padding: 0 11px;
  border-radius: 10px;
  font-size: 12px;
}

.filterClearBtn:disabled {
  opacity: 0.46;
  cursor: default;
}

#mobileFilterDrawer .mobileDrawerPanel {
  width: min(380px, 92vw);
}

#mobileFilterDrawer .mobileDrawerHeader {
  padding: 12px 14px;
  gap: 8px;
}

#mobileFilterDrawer .mobileDrawerHeader strong {
  font-size: 15px;
  margin-right: auto;
}

#mobileFilterDrawer .mobileDrawerBody {
  padding: 10px 12px 14px;
  gap: 10px;
}

#mobileFilterDrawer .mobileSection {
  gap: 8px;
}

#mobileFilterDrawer .mobileSectionTitle {
  font-size: 11px;
  letter-spacing: 0;
  text-transform: none;
}

#mobileFilterDrawer .mobileFilterRow {
  grid-template-columns: 82px minmax(0, 1fr);
  min-height: 46px;
  padding: 7px 8px;
  border-radius: 12px;
}

#mobileFilterDrawer .mobileFilterLabel {
  font-size: 12px;
}

#mobileFilterDrawer .mobileFilterRow input,
#mobileFilterDrawer .mobileFilterRow select {
  height: 34px;
  border-radius: 10px;
  font-size: 13px;
}

#mobileFilterDrawer .mobileFilterRow .searchFilterControl input {
  padding-right: 82px;
}

#mobileFilterDrawer .mobileFilterRowMini {
  grid-template-columns: 82px 100px;
}

@media (max-width: 620px) {
  .quickReplyAutomationFields:not([hidden]) { grid-template-columns: 1fr; }
  .chatComposerFooter { flex-wrap: wrap; }
  .chatQuickRepliesWrap { width: 100%; }
}

.supportFab {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 80;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  border: 0;
  background: transparent;
  color: #fff;
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22);
  display: grid;
  place-items: center;
  cursor: pointer;
  font-weight: 900;
  font-size: 20px;
  padding: 0;
  overflow: visible;
}

.supportFab img {
  width: 100%;
  height: 100%;
  display: block;
  border-radius: 50%;
  object-fit: cover;
}

.supportUnreadBadge {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  border: 2px solid #fff;
  background: #dc2626;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 10px;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 4px 10px rgba(185, 28, 28, .28);
}

.supportUnreadBadge[hidden] {
  display: none;
}

.supportFab.hasUnread {
  box-shadow: 0 14px 32px rgba(15, 23, 42, .22), 0 0 0 4px rgba(220, 38, 38, .12);
}

.supportFab:hover {
  transform: translateY(-1px);
}

.supportPanel {
  position: fixed;
  right: 18px;
  bottom: 76px;
  z-index: 81;
  width: min(360px, calc(100vw - 24px));
  max-height: min(560px, calc(100vh - 96px));
  background: #fff;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  box-shadow: 0 22px 60px rgba(15, 23, 42, .22);
  overflow: hidden;
  display: none;
}

.supportPanel.open {
  display: block;
}

.supportPanelHeader {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 14px 14px 12px;
  border-bottom: 1px solid rgba(148, 163, 184, .22);
}

.supportPanelHeader strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
}

.supportPanelHeader small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  margin-top: 2px;
}

.supportPanelBody {
  padding: 14px;
  display: grid;
  gap: 12px;
}

.supportPrompt label {
  display: block;
  color: var(--ink);
  font-weight: 800;
  font-size: 12px;
  margin-bottom: 6px;
}

.supportPrompt textarea {
  width: 100%;
  resize: vertical;
  min-height: 96px;
  max-height: 180px;
  border-radius: 8px;
  border: 1px solid rgba(148, 163, 184, .45);
  padding: 10px;
  color: var(--ink);
  font: inherit;
  outline: none;
}

.supportPrompt textarea:focus {
  border-color: #0b63ce;
  box-shadow: 0 0 0 3px rgba(11, 99, 206, .12);
}

.supportActions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.supportActions .btn {
  min-width: 112px;
}

.supportAnswer {
  border-radius: 8px;
  background: #f8fafc;
  border: 1px solid rgba(148, 163, 184, .22);
  padding: 10px;
  color: var(--ink);
  font-size: 13px;
  line-height: 1.45;
  max-height: 190px;
  overflow: auto;
}

.supportAnswer strong {
  display: block;
  margin-bottom: 6px;
}

.supportAnswer ol {
  padding-left: 20px;
  margin: 0 0 8px;
}

.supportAnswer li + li {
  margin-top: 4px;
}

.supportAnswer small {
  display: block;
  color: var(--muted);
}

@media (max-width: 620px) {
  .supportFab {
    right: 12px;
    bottom: 12px;
  }

  .supportPanel {
    right: 12px;
    bottom: 66px;
  }
}

.card {
  cursor: pointer;
}

.supportPanel.open {
  display: flex;
  flex-direction: column;
}

.supportPanelBody {
  min-height: 360px;
  max-height: calc(min(560px, calc(100vh - 96px)) - 66px);
  display: flex;
  flex-direction: column;
}

.supportThread {
  flex: 1;
  min-height: 160px;
  overflow: auto;
  padding: 4px 2px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.supportMessage {
  align-self: flex-end;
  width: min(100%, 310px);
  background: #dceeff;
  border: 1px solid #a9d2ff;
  border-radius: 8px;
  padding: 10px 11px 8px;
  color: var(--ink);
  box-shadow: 0 1px 0 rgba(15, 23, 42, .03);
}

.supportMessage.incoming {
  align-self: flex-start;
  background: #fff;
  border-color: rgba(148, 163, 184, .34);
}

.supportMessage.failed {
  background: #fff1f2;
  border-color: #fecdd3;
}

.supportMessageAuthor {
  color: #5d7798;
  font-weight: 800;
  font-size: 11px;
  margin-bottom: 6px;
}

.supportMessageBody {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 14px;
  line-height: 1.35;
}

.supportMessageMeta {
  margin-top: 8px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
  color: #5d7798;
  font-size: 11px;
}

.supportMessage.failed .supportMessageMeta {
  color: #be123c;
}

.supportRetryBtn {
  border: 1px solid #fecdd3;
  border-radius: 999px;
  background: #fff;
  color: #be123c;
  padding: 4px 9px;
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
}

.supportRetryBtn:hover,
.supportRetryBtn:focus-visible {
  background: #ffe4e6;
  outline: 2px solid rgba(190, 18, 60, .18);
}

.supportPrompt label {
  display: none;
}

.supportPrompt textarea {
  min-height: 76px;
  resize: none;
}

.supportAnswer {
  display: none;
  border: 0;
  background: transparent;
  padding: 0;
  color: var(--muted);
  font-size: 12px;
  max-height: none;
}

.supportAnswer.visible {
  display: block;
}

.supportAttachmentPreview {
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 8px;
  border: 1px solid rgba(148, 163, 184, .35);
  border-radius: 8px;
  background: #f8fafc;
}

.supportAttachmentPreview img {
  width: 42px;
  height: 42px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid rgba(148, 163, 184, .35);
}

.supportAttachmentIcon {
  min-width: 42px;
  height: 42px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #0b63ce;
  font-size: 11px;
  font-weight: 900;
}

.supportAttachmentInfo {
  min-width: 0;
  flex: 1;
  display: grid;
  gap: 2px;
}

.supportAttachmentInfo strong,
.supportAttachmentInfo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.supportAttachmentInfo strong {
  color: var(--ink);
  font-size: 12px;
}

.supportAttachmentInfo span {
  color: var(--muted);
  font-size: 11px;
}

.supportAttachmentBubble {
  margin-top: 8px;
  display: grid;
  gap: 2px;
  padding: 9px;
  border: 1px solid rgba(148, 163, 184, .36);
  border-radius: 8px;
  background: rgba(255, 255, 255, .72);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}

.supportAttachmentBubble.image {
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.supportAttachmentBubble.image img {
  display: block;
  width: 100%;
  max-height: 180px;
  object-fit: cover;
}

.supportAttachmentBubble.image span {
  padding: 7px 9px;
}

.supportAttachmentBubble strong {
  font-size: 12px;
}

.supportAttachmentBubble span {
  color: #5d7798;
  font-size: 11px;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .chatDrawer {
    width: 100vw;
  }

  .chatBubble {
    max-width: 92%;
  }
}


.chatImageButton {
  display: block;
  margin-top: 6px;
  padding: 0;
  border: none;
  border-radius: 10px;
  background: transparent;
  cursor: zoom-in;
  overflow: hidden;
}

.chatImageButton img {
  display: block;
  max-width: min(260px, 100%);
  max-height: 260px;
  object-fit: contain;
  border-radius: 10px;
}

.chatAttachmentPreview {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px;
  border: 1px solid rgba(29, 143, 255, 0.20);
  border-radius: 14px;
  background: rgba(29, 143, 255, 0.08);
}

.chatAttachmentPreview img {
  width: 54px;
  height: 54px;
  object-fit: cover;
  border-radius: 10px;
  border: 1px solid rgba(34, 96, 170, 0.14);
}

.chatAttachmentAudio {
  width: min(260px, 100%);
  height: 38px;
}

.chatVoiceBtn.recording {
  min-width: 72px;
  border-color: rgba(220, 38, 38, 0.28);
  background: #fee2e2;
  color: #b91c1c;
}

.chatAttachmentIcon {
  min-width: 54px;
  height: 54px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: #e8f1ff;
  color: #0b63ce;
  border: 1px solid rgba(34, 96, 170, 0.14);
  font-size: 11px;
  font-weight: 900;
}

.chatAttachmentInfo {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.chatAttachmentInfo strong {
  color: var(--text-strong);
  font-size: 13px;
}

.chatAttachmentInfo span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}


.chatComposerInputWrap {
  position: relative;
}

.chatMentionSuggest {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: calc(100% + 8px);
  z-index: 2;
  max-height: 220px;
  overflow: auto;
  padding: 6px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(18, 65, 123, 0.16);
}

.chatMentionSuggest button {
  width: 100%;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 2px;
  padding: 8px 10px;
  border: none;
  border-radius: 10px;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  text-align: left;
}

.chatMentionSuggest button:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatMentionSuggest span {
  font-size: 11px;
  color: var(--muted);
}

.chatMentionSuggestStatus {
  padding: 9px 10px;
  color: var(--muted);
  font-size: 12px;
}

.chatReplyPreview {
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 9px 9px 9px 11px;
  border-left: 3px solid var(--brand-3);
  border-radius: 12px;
  background: rgba(29, 143, 255, 0.08);
}

.chatReplyPreviewText {
  min-width: 0;
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 12px;
  color: var(--muted);
}

.chatReplyPreviewText strong {
  color: var(--text-strong);
}

.chatReplyPreviewText span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chatBubbleActions {
  position: relative;
  z-index: 3;
  margin-top: 6px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.chatBubbleActions button {
  border: none;
  background: transparent;
  color: var(--brand-2);
  font-size: 11px;
  font-weight: 800;
  cursor: pointer;
  padding: 2px 0;
}

.chatBubbleActions button:hover {
  text-decoration: underline;
}

.chatMessageMenuWrap {
  position: relative;
  z-index: 4;
}

.chatMessageMenuWrap.menuOpen {
  z-index: 120;
}

.chatMessageMenuBtn {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  padding: 0 !important;
  color: var(--muted) !important;
  font-size: 18px !important;
  line-height: 1;
}

.chatMessageMenuBtn:hover {
  background: rgba(29, 143, 255, 0.10) !important;
  text-decoration: none !important;
}

.chatMessageMenu {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  z-index: 1200;
  min-width: 150px;
  padding: 6px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(18, 65, 123, 0.15);
}

.chatMessageMenu button {
  width: 100%;
  display: block;
  padding: 8px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #b4232f !important;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.chatMessageMenu button:hover {
  background: rgba(226, 76, 76, 0.10) !important;
  text-decoration: none !important;
}

.chatMentionText {
  color: var(--brand-2);
  font-weight: 850;
}


.chatAudioWrap {
  position: relative;
  z-index: 1;
  margin-top: 8px;
  display: grid;
  grid-template-columns: 34px minmax(150px, 1fr) 28px;
  align-items: center;
  gap: 9px;
  min-width: min(310px, 100%);
}

.chatAudioWrap audio {
  display: none;
}

.chatAudioPlay,
.chatAudioMenuBtn {
  border: none;
  background: transparent;
  color: var(--text-strong);
  cursor: pointer;
  line-height: 1;
}

.chatAudioPlay {
  width: 34px;
  height: 34px;
  border-radius: 999px;
  font-size: 18px;
}

.chatAudioPlay:hover,
.chatAudioMenuBtn:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatAudioMain {
  min-width: 0;
}

.chatAudioProgress {
  position: relative;
  height: 18px;
  cursor: pointer;
}

.chatAudioProgress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(109, 134, 163, 0.28);
}

.chatAudioProgressFill {
  position: absolute;
  left: 0;
  top: 8px;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--brand-3);
}

.chatAudioProgressKnob {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--brand-3);
  transform: translateX(-50%);
}

.chatAudioTimes {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 1px;
  font-size: 11px;
  color: var(--muted);
}

.chatAudioMenuWrap {
  position: relative;
  z-index: 2;
}

.chatAudioWrap.menuOpen,
.chatAudioMenuWrap.menuOpen {
  z-index: 80;
}

.chatAudioMenuBtn {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 20px;
}

.chatAudioMenu {
  position: absolute;
  right: 0;
  top: calc(100% + 6px);
  z-index: 1000;
  min-width: 130px;
  padding: 6px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 16px 34px rgba(18, 65, 123, 0.15);
}

.chatAudioMenu a,
.chatAudioMenu button {
  width: 100%;
  display: block;
  padding: 8px 9px;
  border: none;
  border-radius: 8px;
  background: transparent;
  color: var(--text-strong);
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.chatAudioMenu a:hover,
.chatAudioMenu button:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatAudioWrap.floatingActive {
  color: var(--brand-2);
}

.floatingAudioPlayer {
  position: fixed;
  left: 50%;
  bottom: 18px;
  z-index: 2500;
  width: min(620px, calc(100vw - 28px));
  transform: translateX(-50%);
  grid-template-columns: 42px minmax(0, 1fr) 70px 34px 34px;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border: 1px solid rgba(34, 96, 170, 0.18);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: 0 24px 60px rgba(13, 45, 92, 0.24);
}

.floatingAudioPlayer audio {
  display: none;
}

.floatingAudioPlay,
.floatingAudioClose,
.floatingAudioDownload {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 999px;
  background: rgba(29, 143, 255, 0.10);
  color: var(--brand-2);
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.floatingAudioPlay {
  width: 42px;
  height: 42px;
  border: none;
  background: linear-gradient(135deg, #1d8fff, #0b66d8);
  color: #fff;
}

.floatingAudioInfo {
  min-width: 0;
}

.floatingAudioInfo strong,
.floatingAudioInfo span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.floatingAudioInfo strong {
  color: var(--text-strong);
  font-size: 13px;
}

.floatingAudioInfo span {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
}

.floatingAudioProgress {
  position: relative;
  height: 18px;
  margin-top: 4px;
  cursor: pointer;
}

.floatingAudioProgress::before {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 8px;
  height: 3px;
  border-radius: 999px;
  background: rgba(109, 134, 163, 0.26);
}

.floatingAudioProgressFill {
  position: absolute;
  left: 0;
  top: 8px;
  height: 3px;
  width: 0;
  border-radius: 999px;
  background: var(--brand-3);
}

.floatingAudioProgressKnob {
  position: absolute;
  left: 0;
  top: 4px;
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: var(--brand-3);
  transform: translateX(-50%);
}

.floatingAudioTimes {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.floatingAudioSpeed {
  width: 70px;
  height: 36px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 999px;
  background: #fff;
  color: var(--text-strong);
  font-weight: 800;
  text-align: center;
}

@media (max-width: 560px) {
  .floatingAudioPlayer {
    bottom: 10px;
    grid-template-columns: 38px minmax(0, 1fr) 56px 32px 32px;
    gap: 8px;
    padding: 10px;
    border-radius: 14px;
  }

  .floatingAudioPlay {
    width: 38px;
    height: 38px;
  }

  .floatingAudioSpeed {
    width: 56px;
    font-size: 12px;
  }
}


.chatComposerInputWrap textarea {
  padding-right: 48px;
}

.chatEmojiBtn {
  position: absolute;
  right: 10px;
  bottom: 10px;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-2);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.chatEmojiBtn:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatEmojiPanel {
  position: absolute;
  right: 8px;
  bottom: calc(100% + 8px);
  z-index: 3;
  grid-template-columns: repeat(5, 34px);
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(34, 96, 170, 0.16);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 18px 38px rgba(18, 65, 123, 0.16);
}

.chatEmojiPanel button {
  width: 34px;
  height: 34px;
  border: none;
  border-radius: 10px;
  background: transparent;
  font-size: 20px;
  cursor: pointer;
}

.chatEmojiPanel button:hover {
  background: rgba(29, 143, 255, 0.10);
}

.chatDrawerActions {
  flex: 0 0 auto;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  padding: 10px 16px;
  border-bottom: 1px solid rgba(34, 96, 170, 0.10);
  background: rgba(255, 255, 255, 0.86);
}

.chatDrawerActions .btn {
  min-height: 34px;
  padding: 8px 12px;
}

.chatTimelineEvent {
  width: min(92%, 420px);
  margin: 10px auto;
  padding: 10px 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px dashed rgba(34, 96, 170, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-strong);
  box-shadow: 0 6px 16px rgba(17, 72, 145, 0.06);
}

.chatTimelineEvent strong,
.chatTimelineEvent span,
.chatTimelineEvent p {
  display: block;
}

.chatTimelineEvent span {
  margin-top: 2px;
  font-size: 11px;
  color: var(--muted);
}

.chatTimelineEvent p {
  margin: 6px 0 0;
  font-size: 12px;
  color: var(--muted);
}

.groupEvent {
  justify-content: center;
  flex-direction: column;
  width: min(88%, 440px);
  gap: 3px;
  padding: 8px 12px;
  border-style: solid;
  border-color: rgba(111, 126, 145, 0.16);
  background: rgba(255, 255, 255, 0.64);
  box-shadow: none;
  text-align: center;
}

.groupEventText {
  margin: 0 !important;
  color: #4e6683 !important;
  font-size: 12px !important;
  font-weight: 700;
}

.groupEventTime {
  margin: 0 !important;
  color: #7890ad !important;
  font-size: 10px !important;
}

.serviceOrderEvent {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
  width: min(94%, 520px);
  padding: 14px;
  border-style: solid;
  background: rgba(255, 255, 255, 0.94);
}

.serviceOrderEventMain {
  min-width: 0;
}

.serviceOrderEventTitle,
.serviceOrderListTitle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}

.serviceOrderEventTitle > div {
  min-width: 0;
}

.serviceOrderEventTitle strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 14px;
  line-height: 1.25;
}

.serviceOrderEventEyebrow {
  margin: 0 0 3px !important;
  color: #5f7fa5 !important;
  font-size: 10px !important;
  font-weight: 850;
  letter-spacing: 0;
  text-transform: uppercase;
}

.serviceOrderEventMeta {
  margin-top: 5px !important;
}

.serviceOrderEventSummary {
  margin-top: 9px !important;
  padding-top: 9px;
  border-top: 1px solid rgba(34, 96, 170, 0.12);
  color: var(--text-strong) !important;
  font-size: 13px !important;
  line-height: 1.4;
}

.serviceOrderEventActions,
.serviceOrderListActions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.serviceOrderEventActions {
  padding-top: 11px;
  border-top: 1px solid rgba(34, 96, 170, 0.12);
}

.serviceOrderListActions {
  align-items: flex-end;
  justify-content: flex-end;
}

.serviceOrderStatusControl {
  display: grid;
  gap: 5px;
}

.serviceOrderStatusControl > span {
  margin: 0 !important;
  color: var(--muted);
  font-size: 10px !important;
  font-weight: 800;
  text-transform: uppercase;
}

.serviceOrderStatusActions {
  display: inline-flex;
  gap: 0;
  flex-wrap: nowrap;
  overflow: hidden;
  border: 1px solid rgba(34, 96, 170, 0.2);
  border-radius: 7px;
  background: #fff;
}

.serviceOrderStatusActions .serviceOrderStatusBtn {
  min-height: 30px;
  padding: 5px 9px;
  border: 0;
  border-right: 1px solid rgba(34, 96, 170, 0.15);
  border-radius: 0;
  background: transparent;
  font-size: 11px;
}

.serviceOrderStatusActions .serviceOrderStatusBtn:last-child {
  border-right: 0;
}

.serviceOrderStatusActions .serviceOrderStatusBtn.active {
  background: rgba(29, 143, 255, 0.12);
  color: var(--brand-2);
}

.serviceOrderPrintBtn {
  align-self: flex-end;
}

@media (max-width: 520px) {
  .serviceOrderEventActions {
    align-items: stretch;
  }

  .serviceOrderStatusControl {
    width: 100%;
  }

  .serviceOrderStatusActions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .serviceOrderPrintBtn {
    margin-left: auto;
  }
}

.serviceOrderStatus {
  display: inline-flex !important;
  align-items: center;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  border: 1px solid rgba(34, 96, 170, 0.18);
  font-size: 11px !important;
  font-weight: 850;
  line-height: 1;
  white-space: nowrap;
}

.serviceOrderStatus.open {
  color: #92400e;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
}

.serviceOrderStatus.resolved {
  color: #047857;
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.12);
}

.serviceOrderStatus.canceled {
  color: #b91c1c;
  border-color: rgba(239, 68, 68, 0.34);
  background: rgba(239, 68, 68, 0.10);
}

.serviceOrderStatusBtn {
  min-height: 30px;
  padding: 6px 9px;
  font-size: 12px;
}

.serviceOrderStatusBtn.active,
.serviceOrderStatusBtn:disabled {
  cursor: default;
  opacity: 1;
  background: rgba(29, 143, 255, 0.10);
  border-color: rgba(29, 143, 255, 0.24);
  color: var(--brand-2);
}

.productEditorGrid {
  display: grid;
  grid-template-columns: 1fr 160px;
  gap: 10px;
  margin-bottom: 12px;
}

.productEditorGrid input,
.productEditorGrid textarea,
.serviceOrderModalCard textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  font: inherit;
  color: var(--text-strong);
  background: #fff;
}

.productEditorGrid textarea,
.productEditorGrid input[type="url"] {
  grid-column: 1 / -1;
}

.productsListWrap {
  max-height: 330px;
}

.productItem {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
}

.productItem img,
.productThumbEmpty {
  width: 54px;
  height: 54px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(29, 143, 255, 0.10);
}

.productThumbEmpty,
.serviceOrderProductIcon {
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 900;
  color: var(--blue);
}

.productInfo {
  min-width: 0;
}

.productInfo strong,
.productInfo span,
.productInfo b {
  display: block;
}

.productInfo span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.productInfo b {
  margin-top: 4px;
  font-size: 12px;
  color: var(--text-strong);
}

.productActions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.serviceOrderModalCard {
  max-width: 760px;
}

.serviceOrderProductsHeader {
  margin: 14px 0 8px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.fieldLabel {
  display: block;
  margin: 12px 0 6px;
  font-size: 12px;
  font-weight: 800;
  color: var(--muted);
}

.serviceOrderProducts {
  display: grid;
  gap: 8px;
  max-height: 280px;
  overflow: auto;
  padding-right: 4px;
}

.serviceOrderProduct {
  display: grid;
  grid-template-columns: auto 44px minmax(0, 1fr) 70px;
  gap: 10px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.serviceOrderProduct img,
.serviceOrderProductIcon {
  width: 44px;
  height: 44px;
  border-radius: 8px;
  object-fit: cover;
  background: rgba(29, 143, 255, 0.10);
}

.serviceOrderProductText {
  min-width: 0;
}

.serviceOrderProductText strong,
.serviceOrderProductText small,
.serviceOrderProductText b {
  display: block;
}

.serviceOrderProductText small {
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serviceOrderProduct input[type="number"] {
  width: 68px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
}

@media (max-width: 720px) {
  .productEditorGrid,
  .productItem,
  .serviceOrderProduct {
    grid-template-columns: 1fr;
  }

  .productActions {
    justify-content: flex-start;
  }
}

.serviceOrdersListWrap {
  max-height: 460px;
}

.serviceOrderListItem {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
}

.serviceOrderListMain {
  min-width: 0;
}

.serviceOrderListMain strong,
.serviceOrderListMain span,
.serviceOrderListMain p,
.serviceOrderListMain small {
  display: block;
}

.serviceOrderListMain strong {
  color: var(--text-strong);
}

.serviceOrderListMain span {
  margin-top: 2px;
  font-size: 12px;
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serviceOrderListMain p {
  margin: 6px 0 0;
  font-size: 13px;
  color: var(--text-strong);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.serviceOrderListMain small {
  margin-top: 5px;
  color: var(--muted);
}

.serviceOrderListActions {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 720px) {
  .serviceOrderListItem {
    grid-template-columns: 1fr;
  }

  .serviceOrderListActions,
  .serviceOrderStatusActions {
    justify-content: flex-start;
  }
}

@media (max-width: 760px) {
  .siteHeader .top {
    grid-template-columns: auto minmax(0, 1fr) auto;
  }

  .mobileFilterBtn {
    width: auto;
    min-width: 82px;
    padding: 0 12px;
    font-size: 13px;
    font-weight: 800;
  }
}


/* Menu pending indicators */
#btnDesktopSidepanel,
#btnMobileMenu,
.sideItem,
.menuItem {
  position: relative;
}

.pendingCountBadge {
  position: absolute;
  top: -7px;
  right: -7px;
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #1d8fff;
  color: #fff;
  border: 2px solid #fff;
  box-shadow: 0 6px 14px rgba(29, 143, 255, 0.24);
  font-size: 11px;
  font-weight: 900;
  line-height: 1;
}

.pendingDotBadge {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 10px;
  height: 10px;
  transform: translateY(-50%);
  border-radius: 999px;
  background: #1d8fff;
  border: 2px solid #fff;
  box-shadow: 0 0 0 3px rgba(29, 143, 255, 0.12);
}

.sideItem.hasPending,
.menuItem.hasPending {
  padding-right: 34px;
  border-color: rgba(29, 143, 255, 0.24);
  background: rgba(29, 143, 255, 0.08);
}

.menuPendingHint {
  position: relative;
  grid-template-columns: 28px 1fr auto;
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(29, 143, 255, 0.20);
  border-radius: 12px;
  background: rgba(29, 143, 255, 0.08);
  color: var(--text);
}

.menuPendingHint b,
.menuPendingHint span {
  display: block;
}

.menuPendingHint b {
  color: var(--text-strong);
  font-size: 12px;
}

.menuPendingHint span {
  margin-top: 2px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.35;
}

.menuPendingArrow {
  width: 28px;
  height: 28px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  color: #0d63c9;
  border: 1px solid rgba(29, 143, 255, 0.22);
  font-weight: 900;
}

.menuPendingHintClose {
  border: 1px solid rgba(29, 143, 255, 0.22);
  background: #fff;
  color: var(--text-strong);
  border-radius: 999px;
  padding: 7px 10px;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.checkRow {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 10px;
  align-items: start;
  margin: 14px 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.checkRow input {
  margin-top: 2px;
}

.passwordFieldWrap {
  position: relative;
  display: flex;
  align-items: stretch;
}

.passwordFieldWrap input {
  padding-right: 78px;
}

.passwordToggleBtn {
  position: absolute;
  top: 50%;
  right: 8px;
  transform: translateY(-50%);
  height: 30px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: var(--brand-2);
  cursor: pointer;
  padding: 0 10px;
  font-size: 11px;
  font-weight: 800;
}

.inlineLink {
  border: none;
  background: transparent;
  color: var(--brand-2);
  cursor: pointer;
  padding: 0;
  font: inherit;
  font-weight: 800;
  text-decoration: underline;
}


.chatVideoWrap {
  display: grid;
  gap: 8px;
  margin-top: 8px;
}

.chatVideoWrap video {
  width: min(320px, 100%);
  max-height: 240px;
  border-radius: 8px;
  background: #0f172a;
}

.chatVideoWrap a,
.chatFileLink {
  display: inline-flex;
  flex-direction: column;
  gap: 3px;
  max-width: 100%;
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.chatFileLink span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.teamSetupModal { width: min(760px, calc(100vw - 28px)); }
.teamSetupIntro,
.teamSetupQuestion { color: var(--text-strong); font-size: 14px; margin-bottom: 16px; }
.teamSetupQuestion { font-weight: 800; }
.teamSetupChoices { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.teamSetupChoice {
  min-height: 170px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #fff;
  color: var(--text-strong);
  padding: 22px;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 9px;
  text-align: center;
  cursor: pointer;
  transition: border-color .15s ease, box-shadow .15s ease, transform .15s ease;
}
.teamSetupChoice:hover,
.teamSetupChoice:focus-visible {
  border-color: var(--brand-3);
  box-shadow: 0 0 0 3px rgba(25, 118, 210, .12);
  transform: translateY(-1px);
  outline: none;
}
.teamSetupChoiceIcon {
  position: relative;
  display: inline-flex;
  width: 42px;
  height: 38px;
  align-items: flex-end;
  justify-content: center;
  color: #126fd0;
}
.teamSetupChoiceIcon i {
  position: relative;
  display: block;
  width: 22px;
  height: 16px;
  border-radius: 11px 11px 5px 5px;
  background: currentColor;
}
.teamSetupChoiceIcon i::before {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 17px;
  width: 13px;
  height: 13px;
  border-radius: 50%;
  background: currentColor;
  transform: translateX(-50%);
}
.teamSetupGroupIcon { width: 54px; }
.teamSetupGroupIcon i {
  position: absolute;
  bottom: 0;
  width: 19px;
  height: 14px;
}
.teamSetupGroupIcon i:nth-child(1) { left: 0; opacity: .66; }
.teamSetupGroupIcon i:nth-child(2) { left: 50%; z-index: 1; transform: translateX(-50%); }
.teamSetupGroupIcon i:nth-child(3) { right: 0; opacity: .66; }
.teamSetupGroupIcon i:nth-child(2)::before { width: 14px; height: 14px; }
.teamSetupBusinessIcon::before {
  content: "";
  width: 28px;
  height: 27px;
  border: 3px solid currentColor;
  border-radius: 4px 4px 2px 2px;
  background:
    linear-gradient(currentColor, currentColor) 5px 5px / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 5px / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 5px 15px / 5px 5px no-repeat,
    linear-gradient(currentColor, currentColor) 16px 15px / 5px 5px no-repeat;
}
.teamSetupPersonalIcon::before {
  content: "";
  width: 18px;
  height: 30px;
  border: 3px solid currentColor;
  border-radius: 5px;
}
.teamSetupPersonalIcon::after {
  content: "";
  position: absolute;
  bottom: 4px;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
}
.teamSetupChoice b { font-size: 16px; }
.teamSetupChoice small { color: var(--muted); line-height: 1.45; }
.teamSetupBack { margin-top: 16px; }
.inviteSequenceList { gap: 8px; margin-top: 14px; padding-top: 14px; border-top: 1px solid var(--border); }
.inviteSequenceItem {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid #b9e5ca;
  border-radius: 8px;
  background: #f1fbf5;
}
.manualIdentityListWrap { margin-top: 12px; max-height: min(48vh, 460px); }
.manualIdentityItem { cursor: pointer; align-items: flex-start; }
.manualIdentityItem input { margin-top: 4px; flex: 0 0 auto; }
.manualIdentityItem.isUnavailable { opacity: .58; cursor: not-allowed; }
.teamIdentityConflict { margin-top: 4px; color: #a23b3b; font-size: 12px; font-weight: 700; }
.inviteSequenceItem span:last-child { display: grid; gap: 2px; }
.inviteSequenceItem small { color: var(--muted); }
.inviteSequenceIcon {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #16834b;
  color: #fff;
  font-weight: 900;
}
.teamIdentitySection { margin: 16px 0; }
.teamIdentitySection h3 { font-size: 14px; margin: 0 0 9px; }
.teamIdentitySuggestions { display: grid; gap: 8px; }
.teamIdentitySuggestion,
.teamIdentityComplete { border: 1px solid var(--border); border-radius: 8px; padding: 12px; background: #fff; }
.teamIdentitySuggestion { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.teamIdentitySuggestion > div:first-child { display: grid; gap: 4px; }
.teamIdentitySuggestion span,
.teamIdentityComplete { color: var(--muted); font-size: 13px; }
.teamIdentitySuggestionActions,
.identitySuggestionActions { display: flex; flex-wrap: wrap; gap: 8px; }
.identitySuggestionNotice {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 3000;
  width: min(460px, calc(100vw - 36px));
  border: 1px solid #b8d6f5;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 18px 52px rgba(16, 42, 74, .2);
  padding: 16px;
  display: grid;
  gap: 14px;
}
.identitySuggestionCopy { display: grid; gap: 5px; }
.identitySuggestionCopy span { color: var(--muted); line-height: 1.45; }

.instagramConnectBox {
  display: grid;
  gap: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: #f8fbff;
  padding: 14px;
}
.instagramAccountLine {
  font-weight: 800;
  color: var(--ink);
}

.instagramSetupBox {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}
.instagramSetupGrid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 12px;
}
.copyField {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 38px;
  gap: 8px;
  align-items: center;
}
.copyField .iconBtn {
  width: 38px;
  height: 38px;
  border-radius: 10px;
}
.instagramSetupActions {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.instagramSetupActions .hint {
  min-width: min(320px, 100%);
}
@media (max-width: 620px) {
  .instagramSetupGrid { grid-template-columns: 1fr; }
  .instagramSetupActions { align-items: stretch; }
  .instagramSetupActions .btn { width: 100%; }
}

@media (max-width: 620px) {
  .teamSetupChoices { grid-template-columns: 1fr; }
  .teamSetupChoice { min-height: 138px; }
  .teamIdentitySuggestion { align-items: stretch; flex-direction: column; }
  .identitySuggestionActions .btn { flex: 1; }
}

/* Mobile header cleanup after inbox views */
@media (max-width: 760px) {
  .siteHeader {
    min-height: auto;
  }

  .siteHeader .wrap {
    width: 100vw;
    padding: 8px 10px;
  }

  .siteHeader .top {
    grid-template-columns: auto minmax(0, 1fr);
    align-items: center;
    gap: 8px;
  }

  .siteHeader .brandBlock {
    justify-content: center;
    min-width: 0;
  }

  .siteHeader .brandRow {
    justify-content: center;
    min-width: 0;
  }

  .siteHeader .brandLogo {
    width: 118px;
    max-height: 36px;
  }

  .siteHeader .headerSla {
    display: none;
  }

  .siteHeader .mobileFilterBtn {
    display: none;
  }

  .mobileMenuBtn {
    width: 44px;
    height: 44px;
    border-radius: 14px;
  }

  .inboxToolbar {
    min-height: 0;
    padding: 8px 10px;
    gap: 8px;
    overflow: visible;
    flex-wrap: wrap;
  }

  .inboxToolbar .filterInlineSearch {
    flex: 1 1 calc(100% - 92px);
    min-width: 0;
    max-width: none;
  }

  .inboxToolbar .filterInlineSearch .filterLabel {
    display: none;
  }

  .inboxToolbar .filterInlineSearch input {
    height: 42px;
    font-size: 14px;
  }

  .inboxToolbar .filterActionBtn {
    order: 1;
    flex: 0 0 auto;
    height: 42px;
    min-width: 82px;
    padding: 0 12px;
    align-self: auto;
    font-size: 13px;
  }

  .inboxToolbar .primary.filterActionBtn {
    display: none;
  }

  .viewTabs {
    order: 2;
    flex: 0 0 100%;
    width: 100%;
    gap: 4px;
    padding-bottom: 2px;
  }

  .viewTab {
    height: 32px;
    gap: 5px;
    padding: 0 9px;
    border-radius: 9px;
    font-size: 13px;
  }

  .viewTab span {
    min-width: 16px;
    height: 16px;
    font-size: 10px;
  }
}

/* Mobile filter drawer should fit narrow screens without horizontal clipping */
@media (max-width: 760px) {
  #mobileFilterDrawer .mobileDrawerPanel {
    left: 8px;
    right: 8px;
    width: auto;
    max-width: none;
    border-left: 1px solid var(--border);
    border-radius: 18px 18px 0 0;
  }

  #mobileFilterDrawer .mobileDrawerHeader {
    min-width: 0;
    padding: 10px 12px;
  }

  #mobileFilterDrawer .mobileDrawerHeader strong {
    min-width: 0;
    font-size: 15px;
  }

  #mobileFilterDrawer .filterClearBtn {
    height: 34px;
    max-width: 132px;
    padding: 0 10px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  #mobileFilterDrawer .xbtn {
    flex: 0 0 auto;
  }

  #mobileFilterDrawer .mobileDrawerBody {
    overflow-x: hidden;
    padding: 10px 12px 16px;
  }

  #mobileFilterDrawer .mobileSectionTitle {
    font-size: 12px;
    line-height: 1.2;
  }

  #mobileFilterDrawer .mobileFilterRow,
  #mobileFilterDrawer .mobileFilterRowMini {
    grid-template-columns: 1fr;
    align-items: stretch;
    gap: 6px;
    min-height: 0;
    padding: 9px 10px;
  }

  #mobileFilterDrawer .mobileFilterLabel {
    font-size: 12px;
    line-height: 1.2;
  }

  #mobileFilterDrawer .mobileFilterRow input,
  #mobileFilterDrawer .mobileFilterRow select {
    width: 100%;
    height: 38px;
    font-size: 13px;
  }

  #mobileFilterDrawer .mobileFilterRow .searchFilterControl input {
    padding-right: 86px;
  }
}

@media (max-width: 480px) {
  #mobileFilterDrawer .mobileDrawerPanel {
    left: 0;
    right: 0;
    top: 0;
    width: 100vw;
    height: 100dvh;
    border-radius: 0;
    border-left: 0;
    border-right: 0;
  }

  #mobileFilterDrawer .mobileDrawerHeader {
    padding: 12px 14px;
  }

  #mobileFilterDrawer .mobileDrawerHeader strong {
    font-size: 16px;
  }

  #mobileFilterDrawer .filterClearBtn {
    max-width: 96px;
    font-size: 0;
  }

  #mobileFilterDrawer .filterClearBtn::after {
    content: "Limpar";
    font-size: 12px;
  }

  #mobileFilterDrawer .mobileDrawerBody {
    padding: 12px 14px 18px;
  }

  #mobileFilterDrawer .mobileSection {
    gap: 9px;
  }

  #mobileFilterDrawer .mobileFilterRow,
  #mobileFilterDrawer .mobileFilterRowMini {
    padding: 10px 11px;
    border-radius: 13px;
  }

  #mobileFilterDrawer .mobileFilterRow input,
  #mobileFilterDrawer .mobileFilterRow select {
    height: 40px;
    font-size: 14px;
  }
}


@media (max-width: 760px) {
  .slaTooltip {
    right: auto;
    left: 50%;
    transform: translateX(-50%) translateY(-4px);
    width: min(340px, calc(100vw - 24px));
  }

  .slaHelpWrap:hover .slaTooltip,
  .slaHelp:focus-visible + .slaTooltip,
  .slaHelpWrap:focus-within .slaTooltip {
    transform: translateX(-50%) translateY(0);
  }

  .guideCallouts,
  .quickSteps {
    grid-template-columns: 1fr;
  }
}
