/* ══════════════════════════════════════════════════════════════════════════
   CHAT HUB DIGITALKANAJA — SWISS MINIMALIST MONOCHROME CHALK
   + FULL THREADS / iOS 26 LIQUID GLASS ANIMATED NAVBAR
   ══════════════════════════════════════════════════════════════════════════ */

@font-face {
  font-family: "Geist";
  src: url("./geist-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Plus Jakarta Sans";
  src: url("./plus-jakarta-sans-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "JetBrains Mono";
  src: url("./jetbrains-mono-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("./inter-latin.woff2") format("woff2");
  font-weight: 400 700;
  font-style: normal;
  font-display: swap;
}

/* ─── 1. DESIGN TOKENS ─── */
:root {
  --font-display: "Plus Jakarta Sans", "Geist", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-sans: "Geist", "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --font-mono: "JetBrains Mono", ui-monospace, SFMono-Regular, Menlo, monospace;

  /* 1:1 Shopee Dashboard Digitalkanaja Exact Pixel Type Scale (1rem = 16px) */
  --t-kpi: 1.25rem;         /* 20px — StoresView/Ringkasan text-xl */
  --t-h1: 0.96875rem;       /* 15.5px — StoresView/AgentView/ActivityView section title */
  --t-h1-compact: 0.90625rem; /* 14.5px — InboxView "Inbox Gabungan" */
  --t-h2: 0.90625rem;       /* 14.5px — Thread & Dialog header */
  --t-body: 0.8125rem;      /* 13px — Buyer name, chat bubble, composer, breadcrumb */
  --t-body-sm: 0.78125rem;  /* 12.5px — Descriptions, sidebar utility, sheet nav */
  --t-ui: 0.75rem;          /* 12px — Buttons, search, inputs, selects, AI preview */
  --t-sub: 0.71875rem;      /* 11.5px — Snippet, avatar initials, form labels, QR pill */
  --t-meta: 0.6875rem;      /* 11px — Quick filter pills, badges, header actions */
  --t-micro: 0.65625rem;    /* 10.5px — Count pills, message stamps, thread subtitle, kbd */
  --t-nav: 0.625rem;        /* 10px — Timestamps, card footer meta, bottom dock labels */
  --t-badge: 0.59375rem;    /* 9.5px — Perlu dibalas pill, dock counter badge */

  --chalk: #f5f6f8;
  --chalk-soft: rgba(255, 255, 255, 0.56);
  --stone-chip: #f2f3f7;
  --stone-hover: #e8eaf0;
  --surface: #ffffff;
  --ink: #141417;
  --ink-hover: #272830;
  --text: #141417;
  --text-secondary: #52525e;
  --muted: #7a7a88;
  --line: rgba(15, 23, 42, 0.065);
  --line-strong: rgba(15, 23, 42, 0.12);

  --success-bg: rgba(16, 185, 129, 0.11);
  --success-ink: #065f46;
  --success-border: rgba(110, 231, 183, 0.65);
  --success-dot: #10b981;
  --warning-bg: rgba(245, 158, 11, 0.12);
  --warning-ink: #92400e;
  --warning-border: rgba(252, 211, 77, 0.65);
  --danger-bg: rgba(244, 63, 94, 0.1);
  --danger-ink: #be123c;
  --danger-border: rgba(253, 164, 175, 0.65);

  --r-sm: 12px;
  --r-md: 18px;
  --r-card: 26px;
  --r-pill: 999px;

  --shadow-card: 0 12px 32px -18px rgba(15, 23, 42, 0.14), 0 1px 2px rgba(15, 23, 42, 0.04);
  --shadow-float: 0 24px 60px -16px rgba(15, 20, 38, 0.24), 0 4px 14px -4px rgba(15, 20, 38, 0.08);
  --ease-out: cubic-bezier(0.22, 1, 0.36, 1);

  /* Shopee Dashboard Translucent Pastel Glass Avatar Tones */
  --av-0-bg: rgba(20, 184, 166, 0.13); --av-0-fg: #115e59; --av-0-ring: rgba(94, 234, 212, 0.55);
  --av-1-bg: rgba(99, 102, 241, 0.13); --av-1-fg: #3730a3; --av-1-ring: rgba(165, 180, 252, 0.55);
  --av-2-bg: rgba(245, 158, 11, 0.15); --av-2-fg: #92400e; --av-2-ring: rgba(252, 211, 77, 0.6);
  --av-3-bg: rgba(139, 92, 246, 0.13); --av-3-fg: #5b21b6; --av-3-ring: rgba(196, 181, 253, 0.55);
  --av-4-bg: rgba(244, 63, 94, 0.13); --av-4-fg: #9f1239; --av-4-ring: rgba(253, 164, 175, 0.55);
  --av-5-bg: rgba(100, 116, 139, 0.13); --av-5-fg: #334155; --av-5-ring: rgba(203, 213, 225, 0.6);
}

/* ─── 2. BASE RESET ─── */
*, *::before, *::after { box-sizing: border-box; }

html, body {
  margin: 0;
  height: 100%;
  background: var(--chalk);
  color: var(--text);
  font-family: var(--font-sans);
  font-size: 16px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

[hidden] { display: none !important; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
  border: 0;
}

h1, h2, h3 {
  margin: 0;
  font-family: var(--font-display);
  color: var(--ink);
}
p { margin: 0; }
a { color: var(--ink); }
button, input, select, textarea { font: inherit; color: inherit; }
button, a, summary, [role="button"], select { cursor: pointer; }
button:disabled, input:disabled, select:disabled, textarea:disabled { cursor: not-allowed; opacity: 0.48; }
svg { display: block; flex-shrink: 0; shape-rendering: geometricPrecision; }
:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }

/* Sleek zero-arrow scrollbars (omit standard scrollbar-width so Chromium hides Windows arrows) */
::-webkit-scrollbar { width: 5px; height: 5px; }
::-webkit-scrollbar-track { background: transparent; margin-block: 6px; }
::-webkit-scrollbar-thumb { background: rgba(17, 17, 17, 0.16); border-radius: var(--r-pill); }
::-webkit-scrollbar-thumb:hover { background: rgba(17, 17, 17, 0.3); }
::-webkit-scrollbar-button { display: none; width: 0; height: 0; }
::-webkit-resizer { display: none; }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    transition-duration: 0.01ms !important;
    animation-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}

/* ─── 3. SHARED PRIMITIVES ─── */
.primary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 42px;
  padding: 0 20px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.84375rem;
  font-weight: 580;
  line-height: 1;
  text-decoration: none;
  white-space: nowrap;
  box-shadow: 0 6px 16px -8px rgba(17, 17, 17, 0.42);
  transition: transform 150ms var(--ease-out), background-color 150ms ease;
}
.primary:hover:enabled { background: var(--ink-hover); transform: translateY(-1px); }
.primary:active:enabled { transform: scale(0.97); }
.primary svg { width: 16px; height: 16px; flex-shrink: 0; }

.text-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid var(--line-strong);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-family: var(--font-display);
  font-size: 0.84375rem;
  font-weight: 550;
  line-height: 1.1;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, transform 140ms var(--ease-out);
}
.text-button:hover:enabled { background: var(--stone-chip); border-color: rgba(17, 17, 17, 0.16); }
.text-button:active:enabled { transform: scale(0.97); }
.text-button svg { width: 16px; height: 16px; }

.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: var(--text-secondary);
  transition: background-color 150ms ease, color 150ms ease, transform 140ms var(--ease-out);
}
.icon-button:hover:enabled { background: var(--stone-chip); color: var(--ink); }
.icon-button:active:enabled { transform: scale(0.94); }
.icon-button svg { width: 18px; height: 18px; }

input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  width: 100%;
  min-height: 42px;
  padding: 9px 14px;
  border: 1.5px solid transparent;
  border-radius: 15px;
  background: var(--chalk-soft);
  color: var(--ink);
  font-family: var(--font-sans);
  font-size: 0.875rem;
  font-weight: 420;
  line-height: 1.5;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
input:not([type="checkbox"]):not([type="file"]):hover:enabled,
select:hover:enabled,
textarea:hover:enabled {
  background: var(--stone-chip);
}
input:not([type="checkbox"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  background: var(--surface);
  border-color: var(--ink);
  outline: none;
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.08);
}
input::placeholder,
textarea::placeholder { color: var(--muted); opacity: 1; }
textarea { resize: none; min-height: 108px; }

/* ─── 2026 MODERN LIQUID GLASS DROPDOWNS (ALL <select> ELEMENTS) ─── */
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 36px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%235a5a55' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 15px 15px;
  text-overflow: ellipsis;
}

@supports (appearance: base-select) {
  select,
  select::picker(select) {
    appearance: base-select;
  }

  select {
    display: inline-flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    min-width: 0;
    overflow: hidden;
    padding: 0 11px 0 13px;
    background-image: none;
    border: 1px solid rgba(17, 17, 17, 0.065);
    border-radius: 15px;
    background-color: var(--chalk-soft);
    color: var(--ink);
    font-weight: 480;
    transition: background-color 160ms ease, border-color 160ms ease, box-shadow 180ms ease;
  }
  select:hover:enabled {
    background-color: var(--stone-chip);
    border-color: rgba(17, 17, 17, 0.12);
  }
  select:open,
  select:focus-visible {
    background-color: var(--surface);
    border-color: rgba(17, 17, 17, 0.24);
    box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.06), 0 4px 12px -6px rgba(17, 17, 17, 0.12);
  }

  select > button {
    all: unset;
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 6px;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    height: 100%;
    cursor: inherit;
  }
  select selectedcontent {
    display: block;
    flex: 1 1 auto;
    min-width: 0;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    text-align: left;
  }

  /* Precision animated 2026 chevron */
  select::picker-icon {
    content: "";
    flex-shrink: 0;
    width: 16px;
    height: 16px;
    background-color: var(--text-secondary);
    -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
    mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 15px 15px no-repeat;
    transition: transform 240ms var(--ease-out), background-color 160ms ease;
  }
  select:hover::picker-icon,
  select:open::picker-icon {
    background-color: var(--ink);
  }
  select:open::picker-icon {
    transform: rotate(180deg);
  }

  /* Floating iOS 26 Crystal Liquid Glass Dropdown Menu */
  select::picker(select) {
    margin-block: 6px;
    padding: 6px;
    min-width: max(anchor-size(width), 156px);
    max-width: min(370px, calc(100vw - 20px));
    max-height: 300px;
    overflow-y: auto;
    overflow-x: hidden;
    border: 0;
    border-radius: 22px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.9) 0%,
      rgba(248, 248, 245, 0.82) 60%,
      rgba(255, 255, 255, 0.86) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow:
      inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
      inset 0 -1px 0 rgba(255, 255, 255, 0.55),
      inset 1px 0 0 rgba(255, 255, 255, 0.5),
      inset -1px 0 0 rgba(255, 255, 255, 0.5),
      0 0 0 0.5px rgba(17, 17, 17, 0.09),
      0 20px 44px -12px rgba(17, 17, 17, 0.22),
      0 4px 12px -4px rgba(17, 17, 17, 0.08);
    color: var(--ink);
    opacity: 0;
    transform: translateY(-6px) scale(0.97);
    transform-origin: top center;
    transition:
      opacity 180ms var(--ease-out),
      transform 220ms var(--ease-out),
      overlay 180ms allow-discrete,
      display 180ms allow-discrete;
  }
  select::picker(select):popover-open {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
  @starting-style {
    select::picker(select):popover-open {
      opacity: 0;
      transform: translateY(-6px) scale(0.97);
    }
  }

  /* Crisp 2026 Single-Line Dropdown Options (never wraps mid-word) */
  select option {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 10px;
    min-height: 38px;
    padding: 8px 12px;
    border-radius: 12px;
    background: transparent;
    color: var(--ink);
    font-family: var(--font-sans);
    font-size: 0.78125rem;
    font-weight: 480;
    line-height: 1.25;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    cursor: pointer;
    transition: background-color 120ms ease, color 120ms ease;
  }
  .ai-studio-account select::picker(select),
  .ai-settings-form select::picker(select),
  .resource-filter select::picker(select),
  dialog select::picker(select) {
    min-width: anchor-size(width);
    max-width: calc(100vw - 24px);
  }
  .ai-studio-account select option {
    font-size: 0.75rem;
    font-variant-numeric: tabular-nums;
  }
  select option + option { margin-top: 2px; }
  select option:hover,
  select option:focus-visible {
    background: rgba(17, 17, 17, 0.06);
    outline: none;
  }
  select option:checked {
    background: var(--ink);
    color: #ffffff;
    font-weight: 560;
  }
  select option:checked:hover {
    background: var(--ink-hover);
  }
  select option::checkmark {
    order: 2;
    margin-left: auto;
    font-size: 0.875rem;
    font-weight: 600;
    color: currentColor;
  }
}

.avatar {
  display: grid;
  place-items: center;
  flex-shrink: 0;
  width: 38px;
  height: 38px;
  border-radius: 50%;
  background: var(--av-0-bg);
  color: var(--av-0-fg);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 600;
  user-select: none;
}
.avatar[data-tint="1"] { background: var(--av-1-bg); color: var(--av-1-fg); }
.avatar[data-tint="2"] { background: var(--av-2-bg); color: var(--av-2-fg); }
.avatar[data-tint="3"] { background: var(--av-3-bg); color: var(--av-3-fg); }
.avatar[data-tint="4"] { background: var(--av-4-bg); color: var(--av-4-fg); }
.avatar[data-tint="5"] { background: var(--av-5-bg); color: var(--av-5-fg); }

.resource-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 11px;
  border: 1px solid var(--line);
  border-radius: var(--r-pill);
  background: var(--stone-chip);
  color: var(--text-secondary);
  font-size: 0.75rem;
  font-weight: 560;
  line-height: 1.25;
  white-space: nowrap;
}
.resource-badge.badge-success {
  background: var(--success-bg);
  border-color: var(--success-border);
  color: var(--success-ink);
}
.resource-badge.badge-success::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--success-dot);
}
.resource-badge.badge-warning {
  background: var(--warning-bg);
  border-color: var(--warning-border);
  color: var(--warning-ink);
}
.resource-badge.badge-accent {
  background: var(--stone-chip);
  border-color: var(--line-strong);
  color: var(--ink);
}
.resource-badge.badge-danger {
  background: var(--danger-bg);
  border-color: var(--danger-border);
  color: var(--danger-ink);
}

.tool-note { color: var(--muted); font-size: 0.8125rem; line-height: 1.48; }
.tool-form { display: grid; gap: 14px; }
.tool-form label {
  display: grid;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 600;
  color: #3a3a37;
}

.brand {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  font-family: var(--font-display);
  font-size: 0.90625rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: var(--ink);
}
.brand-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: var(--surface);
  box-shadow: 0 1px 4px -1px rgba(17, 17, 17, 0.1), inset 0 0 0 0.5px rgba(17, 17, 17, 0.06);
  flex-shrink: 0;
}
.brand-logo-img { width: 20px; height: 20px; object-fit: contain; display: block; }

/* ─── 4. LOGIN SCREEN ─── */
.login {
  min-height: 100dvh;
  display: grid;
  place-items: center;
  padding: 24px 16px;
  background: var(--chalk);
}
.login-card {
  width: min(400px, 100%);
  padding: 32px 28px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: 0 14px 40px -18px rgba(17, 17, 17, 0.14);
  display: grid;
  gap: 16px;
}
.login-card h1 { font-size: 1.625rem; font-weight: 600; letter-spacing: -0.025em; line-height: 1.18; }
.login-card > p { color: var(--text-secondary); font-size: 0.90625rem; margin-top: -6px; }
.login-card .primary { width: 100%; min-height: 48px; }
.login-card small:empty { display: none; }
.login-card small { color: var(--muted); font-size: 0.8125rem; text-align: center; }

/* ─── 5. WORKSPACE SHELL & TOPBAR ─── */
.workspace {
  height: 100dvh;
  display: grid;
  grid-template-rows: 58px minmax(0, 1fr);
  grid-template-columns: minmax(0, 1fr);
  background: var(--chalk);
  overflow: hidden;
}
.live-workspace {
  grid-template-columns: 88px minmax(0, 1fr);
}

.skip-workspace {
  position: fixed;
  z-index: 60;
  top: 8px;
  left: 8px;
  transform: translateY(-160%);
}
.skip-workspace:focus { transform: translateY(0); }

/* iOS 26 Crystal Liquid Glass Floating Header Capsules */
.topbar {
  grid-column: 1 / -1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 6px 14px 2px;
  background: var(--chalk);
  z-index: 15;
}
.topbar .brand,
.topbar .profile {
  height: 42px;
  border-radius: var(--r-pill);
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.64) 0%,
    rgba(250, 250, 248, 0.4) 58%,
    rgba(255, 255, 255, 0.54) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.96),
    inset 0 -1px 0 rgba(255, 255, 255, 0.52),
    inset 1px 0 0 rgba(255, 255, 255, 0.45),
    inset -1px 0 0 rgba(255, 255, 255, 0.45),
    0 0 0 0.5px rgba(17, 17, 17, 0.08),
    0 8px 22px -10px rgba(17, 17, 17, 0.14),
    0 1px 4px -1px rgba(17, 17, 17, 0.05);
}
.topbar .brand {
  padding: 5px 15px 5px 6px;
}
.topbar .profile {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 4px;
}
.topbar .profile .icon-button {
  width: 34px;
  height: 34px;
  border-radius: 50%;
  background: transparent;
  color: rgba(23, 23, 23, 0.72);
  box-shadow: none;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease, transform 150ms var(--ease-out);
}
.topbar .profile .icon-button svg { width: 17px; height: 17px; stroke-width: 1.75; }
.topbar .profile .icon-button:hover:enabled {
  background: rgba(255, 255, 255, 0.84);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 1),
    0 2px 8px -3px rgba(17, 17, 17, 0.12),
    0 0 0 0.5px rgba(17, 17, 17, 0.05);
  transform: none;
}
.topbar .profile #refresh:hover:enabled svg {
  transform: rotate(35deg);
  transition: transform 240ms var(--ease-out);
}
.topbar .profile #logout:hover:enabled {
  background: rgba(220, 38, 38, 0.09);
  color: var(--danger-ink);
  box-shadow: 0 0 0 0.5px rgba(220, 38, 38, 0.14);
}
.topbar .profile .icon-button:active:enabled {
  transform: scale(0.92);
}
.topbar .profile .text-button {
  min-height: 34px;
  padding: 0 12px;
  border: 0;
  background: transparent;
  font-size: 0.8125rem;
}
.topbar .profile .text-button:hover:enabled {
  background: rgba(255, 255, 255, 0.84);
}

/* ══════════════════════════════════════════════════════════════════════════
   6. iOS 26 / iPHONE 2026 CRYSTAL LIQUID GLASS + MAGNIFYING REFRACTION DOCK
   - Rest (Image 1): crystal-clear blown glass capsule, clean frosted cushion,
     crisp SOLID active icon vs outline inactive icons.
   - Motion & Scrub (Image 2): bulging foreground magnifying glass lens
     (z-index: 4) with SVG <feDisplacementMap> + RGB chromatic edge refraction
     that bends & magnifies icons underneath while gliding across tabs.
   ══════════════════════════════════════════════════════════════════════════ */
.ios26-glass-defs {
  position: fixed;
  width: 0;
  height: 0;
  pointer-events: none;
  overflow: hidden;
}

@keyframes liquidSheenSweep {
  0% { transform: translateX(-130%) skewX(-24deg); opacity: 0; }
  32% { opacity: 0.72; }
  100% { transform: translateX(170%) skewX(-24deg); opacity: 0; }
}

.workspace-nav {
  position: relative;
  grid-column: 1;
  grid-row: 2;
  align-self: start;
  justify-self: center;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
  width: 68px;
  height: fit-content;
  max-height: calc(100dvh - 72px);
  margin: 0 0 12px 6px;
  padding: 5px;
  border-radius: 34px;
  /* Image 1: ultra-clean crystal translucent glass shell */
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.42) 0%,
    rgba(248, 248, 246, 0.24) 52%,
    rgba(255, 255, 255, 0.36) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 0;
  /* Continuous sharp luminous crystal rim highlight */
  box-shadow:
    inset 0 1.25px 0.5px rgba(255, 255, 255, 0.98),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.66),
    inset 1px 0 0.5px rgba(255, 255, 255, 0.58),
    inset -1px 0 0.5px rgba(255, 255, 255, 0.58),
    0 0 0 0.5px rgba(17, 17, 17, 0.1),
    0 14px 36px -12px rgba(17, 17, 17, 0.16),
    0 2px 6px -1px rgba(17, 17, 17, 0.05);
  overflow: visible;
  touch-action: none;
  user-select: none;
  z-index: 20;
}

/* Interactive subtle specular glint tracking pointer */
.workspace-nav::before {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  background: radial-gradient(
    84px circle at var(--glass-x, 50%) var(--glass-y, 20%),
    rgba(255, 255, 255, 0.6),
    transparent 70%
  );
  opacity: 0;
  pointer-events: none;
  transition: opacity 220ms ease;
  z-index: 0;
}
.workspace-nav:hover::before,
.workspace-nav.is-glass-pressed::before {
  opacity: 1;
}

/* Layer 1 (z-index: 1): Calm Frosted Inner Pill Cushion at Rest (Image 1) */
.nav-glass-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
  will-change: transform, width, height;
  transition: opacity 160ms ease;
}
.workspace-nav.is-glass-gliding .nav-glass-pill,
.workspace-nav.is-glass-pressed .nav-glass-pill {
  opacity: 0.52 !important;
}
.nav-glass-lens {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 26px;
  overflow: hidden;
  /* Image 1: clean smoky-frosted inner glass pill on light background */
  background: linear-gradient(
    180deg,
    rgba(17, 17, 17, 0.088) 0%,
    rgba(17, 17, 17, 0.055) 100%
  );
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.72),
    inset 0 -0.5px 0 rgba(17, 17, 17, 0.06),
    0 1px 3px rgba(17, 17, 17, 0.04);
}
.nav-glass-lens::after {
  content: "";
  position: absolute;
  inset: -20% auto -20% 0;
  width: 58%;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.85), transparent);
  opacity: 0;
  pointer-events: none;
}
.nav-glass-lens.is-gliding::after {
  animation: liquidSheenSweep 560ms var(--ease-out) forwards;
}

/* Layer 2 (z-index: 4): Foreground Bulging Magnifying Chromatic Liquid Lens (Image 2!) */
.nav-glass-refract {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 4;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  will-change: transform, width, height, opacity;
}
.nav-glass-refract.is-active {
  opacity: 1;
  visibility: visible;
}
.nav-glass-refract-lens {
  position: relative;
  display: block;
  width: 100%;
  height: 100%;
  border-radius: 28px;
  overflow: hidden;
  transform-origin: center center;
  will-change: transform, opacity;
  /* Crystal-clear lens interior with REAL SVG edge displacement + RGB split */
  background: radial-gradient(
    ellipse at 50% 44%,
    rgba(255, 255, 255, 0.06) 0%,
    rgba(255, 255, 255, 0.16) 66%,
    rgba(255, 255, 255, 0.44) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  /* Signature Image-2 prismatic cyan/blue/violet caustic meniscus rim + sharp specular top/bottom arc */
  box-shadow:
    inset 0 2.5px 2px rgba(255, 255, 255, 1),
    inset 0 -2px 2.5px rgba(255, 255, 255, 0.88),
    inset 3px 0 5px rgba(0, 178, 255, 0.48),
    inset -3px 0 5px rgba(99, 102, 241, 0.4),
    inset 0 -4px 7px rgba(34, 211, 238, 0.28),
    0 0 0 1px rgba(255, 255, 255, 0.86),
    0 0 0 1.5px rgba(17, 17, 17, 0.1),
    0 16px 34px -6px rgba(17, 17, 17, 0.3);
  transition: transform 180ms cubic-bezier(0.22, 1.4, 0.36, 1);
}
.workspace-nav.is-glass-gliding .nav-glass-refract-lens,
.workspace-nav.is-glass-dragging .nav-glass-refract-lens {
  transition: none;
}
/* Curved glass dome top highlight */
.nav-glass-refract-lens::before {
  content: "";
  position: absolute;
  inset: 1.5px 8px auto 8px;
  height: 36%;
  border-radius: 999px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0) 100%);
  pointer-events: none;
}
/* Subtle chromatic rainbow refraction glaze on curved edges */
.nav-glass-refract-lens::after {
  content: "";
  position: absolute;
  inset: 0;
  border-radius: inherit;
  padding: 1.5px;
  background: linear-gradient(
    115deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(56, 189, 248, 0.52) 24%,
    rgba(255, 255, 255, 0.25) 50%,
    rgba(129, 140, 248, 0.48) 76%,
    rgba(255, 255, 255, 0.95) 100%
  );
  -webkit-mask: linear-gradient(#000 0 0) content-box, linear-gradient(#000 0 0);
  -webkit-mask-composite: xor;
  mask-composite: exclude;
  pointer-events: none;
}
/* Bulge cleanly past the navbar edge while pressing & scrubbing (Image 2!) */
.workspace-nav.is-glass-pressed .nav-glass-refract-lens {
  transform: scale(1.26, 1.18);
}

/* Dock Buttons — Crisp SOLID Active Icon vs Clean Outline Inactive Icons */
.workspace-nav button[data-view],
.workspace-nav .mobile-nav-more,
.workspace-nav .nav-utility-btn {
  position: relative;
  z-index: 2;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: 58px;
  min-height: 50px;
  padding: 6px 2px;
  border: 0;
  border-radius: 26px;
  background: transparent;
  color: rgba(23, 23, 23, 0.48);
  font-family: var(--font-display);
  font-size: var(--t-nav);
  font-weight: 530;
  letter-spacing: -0.01em;
  line-height: 1;
  transition: color 180ms ease, transform 140ms var(--ease-out);
}
.workspace-nav button[data-view]:hover:not([aria-current="page"]),
.workspace-nav .nav-utility-btn:hover {
  color: rgba(23, 23, 23, 0.85);
}
.workspace-nav button[data-view]:active,
.workspace-nav .mobile-nav-more:active,
.workspace-nav .nav-utility-btn:active {
  transform: scale(0.92);
}
.workspace-nav button[data-view] [data-icon],
.workspace-nav .mobile-nav-more [data-icon],
.workspace-nav .nav-utility-btn [data-icon] {
  position: relative;
  display: block;
  width: 21px;
  height: 21px;
}
.workspace-nav button[data-view] svg,
.workspace-nav .mobile-nav-more svg,
.workspace-nav .nav-utility-btn svg {
  position: absolute;
  inset: 0;
  width: 21px;
  height: 21px;
  transition: opacity 180ms ease, transform 220ms var(--ease-out);
}
.workspace-nav svg.ico-outline {
  opacity: 1;
  transform: scale(1);
}
.workspace-nav svg.ico-solid {
  opacity: 0;
  transform: scale(0.82);
}
.workspace-nav button[data-view][aria-current="page"],
.workspace-nav .mobile-nav-more[data-active] {
  color: #141414;
  font-weight: 660;
}
.workspace-nav button[data-view][aria-current="page"] svg.ico-outline,
.workspace-nav .mobile-nav-more[data-active] svg.ico-outline {
  opacity: 0;
  transform: scale(0.84);
}
.workspace-nav button[data-view][aria-current="page"] svg.ico-solid,
.workspace-nav .mobile-nav-more[data-active] svg.ico-solid {
  opacity: 1;
  transform: scale(1);
}

.workspace-nav-secondary {
  margin-top: 6px;
  padding-top: 10px;
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 3px;
}
.workspace-nav-secondary::before {
  content: "";
  position: absolute;
  top: 2px;
  left: 50%;
  transform: translateX(-50%);
  width: 22px;
  height: 1px;
  background: rgba(17, 17, 17, 0.1);
  border-radius: var(--r-pill);
}
.workspace-nav .mobile-nav-more { display: none; }

/* ─── 7. FLOATING BENTO INBOX WORKSPACE (3 WHITE CARDS ON CHALK) ─── */
.layout {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 220px 318px minmax(0, 1fr);
  gap: 12px;
  padding: 0 12px 12px;
  min-height: 0;
}
.live-workspace .layout {
  grid-column: 2;
  grid-template-columns: 318px minmax(0, 1fr);
  padding: 0 12px 12px 4px;
}
.live-workspace .layout:has(#contact-panel:not([hidden])) {
  grid-template-columns: 308px minmax(0, 1fr) 288px;
}
.live-workspace .channels { display: none; }

/* Demo Channels Sidebar */
.channels {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 16px 12px;
  border-radius: var(--r-card);
  background: var(--surface);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}
.channels h2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 0.71875rem;
  font-weight: 620;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
  padding: 0 8px;
}
.channel-button {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 40px;
  padding: 6px 10px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.84375rem;
  text-align: left;
}
.channel-button:hover { background: var(--chalk-soft); color: var(--ink); }
.channel-button[aria-current="true"] { background: var(--stone-chip); color: var(--ink); font-weight: 600; }
.channel-copy { flex: 1; min-width: 0; display: grid; }
.channel-copy small { color: var(--muted); font-size: 0.75rem; }
.channel-count { font-size: 0.75rem; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--muted); }
.sidebar-tools { margin-top: 8px; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.staff { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: flex; align-items: center; gap: 10px; }
.staff strong { display: block; font-size: 0.84375rem; }
.staff small { color: var(--muted); font-size: 0.75rem; }

/* Floating Inbox Queue Card */
.inbox {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.045);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}

.list-header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px 8px;
  padding: 16px 14px 10px;
  background: var(--surface);
}
.list-title {
  grid-column: 1 / -1;
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.list-title h1 {
  font-size: 1.3125rem;
  font-weight: 600;
  letter-spacing: -0.022em;
  line-height: 1.15;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#list-count {
  padding: 3px 9px;
  border-radius: var(--r-pill);
  background: var(--stone-chip);
  color: var(--text-secondary);
  font-size: 0.71875rem;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  flex-shrink: 0;
}
.mobile-channel {
  margin-left: auto;
  min-width: 0;
  max-width: min(164px, 46%);
  flex-shrink: 1;
}
.mobile-channel select {
  min-height: 34px;
  width: auto;
  max-width: 100%;
  overflow: hidden;
  padding: 0 10px 0 12px;
  border-radius: var(--r-pill);
  font-size: 0.78125rem;
  font-weight: 560;
  white-space: nowrap;
  background-color: var(--stone-chip);
}

.inbox-controls { grid-column: 1 / -1; }
.search {
  position: relative;
  display: flex;
  align-items: center;
}
.search > [data-icon="search"] {
  position: absolute;
  left: 13px;
  color: var(--muted);
  pointer-events: none;
}
.search > [data-icon="search"] svg { width: 16px; height: 16px; }
.search input[type="search"],
.inbox .search input,
.thread-search .search input {
  min-height: 38px;
  padding: 7px 36px 7px 38px;
  border-radius: var(--r-pill);
  background: var(--chalk-soft);
}
#search-clear { position: absolute; right: 4px; width: 30px; height: 30px; }

.filter-menu { position: relative; grid-column: 1; grid-row: 3; }
.filter-menu summary {
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 10px 0 12px;
  border: 1px solid rgba(17, 17, 17, 0.08);
  border-radius: var(--r-pill);
  background: var(--surface);
  color: var(--ink);
  font-size: 0.78125rem;
  font-weight: 560;
  white-space: nowrap;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}
.filter-menu summary::after {
  content: "";
  width: 14px;
  height: 14px;
  margin-left: 2px;
  background-color: var(--text-secondary);
  -webkit-mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  mask: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") center / 14px 14px no-repeat;
  transition: transform 240ms var(--ease-out);
}
.filter-menu[open] summary {
  border-color: rgba(17, 17, 17, 0.22);
  box-shadow: 0 0 0 3px rgba(17, 17, 17, 0.05);
}
.filter-menu[open] summary::after { transform: rotate(180deg); }
.filter-menu summary::-webkit-details-marker { display: none; }
.filter-menu summary:hover { background: var(--chalk-soft); }
.filter-menu summary svg { width: 14px; height: 14px; color: var(--muted); }
.filter-caption { color: var(--muted); font-weight: 500; }
.filter-caption::before { content: "· "; }

.filter-panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 30;
  width: min(296px, calc(100vw - 28px));
  padding: 6px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.88) 0%,
    rgba(248, 248, 245, 0.78) 60%,
    rgba(255, 255, 255, 0.84) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
    inset 0 -1px 0 rgba(255, 255, 255, 0.55),
    0 0 0 0.5px rgba(17, 17, 17, 0.09),
    0 20px 44px -12px rgba(17, 17, 17, 0.22),
    0 4px 12px -4px rgba(17, 17, 17, 0.08);
}
.tabs { display: grid; gap: 2px; }
.tabs button {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  min-height: 38px;
  padding: 6px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: var(--ink);
  font-size: 0.84375rem;
  text-align: left;
}
.tabs button:hover:enabled:not([aria-pressed="true"]) {
  background: rgba(15, 23, 42, 0.055);
  color: var(--ink);
}
.tabs button[aria-pressed="true"],
.tabs button[aria-pressed="true"]:hover:enabled {
  background: linear-gradient(180deg, rgba(44, 46, 56, 0.96) 0%, rgba(18, 19, 24, 0.98) 100%);
  color: #ffffff;
  font-weight: 590;
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 6px 16px -6px rgba(10, 12, 24, 0.42), inset 0 1px 0.5px rgba(255, 255, 255, 0.22);
}
.tabs button svg { width: 16px; height: 16px; color: var(--muted); }
.tabs button[aria-pressed="true"] svg { color: #ffffff; }
.filter-label { flex: 1; }
.filter-count {
  min-width: 24px;
  padding: 2px 7px;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.06);
  color: var(--text-secondary);
  font-size: 0.71875rem;
  font-weight: 620;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.tabs button[aria-pressed="true"] .filter-count {
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
}
.filter-unavailable { font-size: 0.71875rem; color: var(--muted); }
#filter-unavailable {
  margin-top: 8px;
  padding: 8px 10px 4px;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 0.75rem;
  line-height: 1.45;
}

.list-toolbar { display: contents; }
#sort-conversations { grid-column: 2; grid-row: 3; justify-self: end; }
#sort-order {
  min-height: 34px;
  width: auto;
  padding: 0 10px 0 12px;
  border-radius: var(--r-pill);
  background-color: var(--chalk-soft);
  font-size: 0.78125rem;
  font-weight: 560;
}
#pilot-status {
  grid-column: 1 / -1;
  grid-row: 4;
  font-size: 0.71875rem;
  color: var(--muted);
  margin-top: -2px;
}

/* Conversation Rows */
.conversation-list {
  position: relative;
  overflow-y: auto;
  padding: 4px 8px 10px;
}
.conv-active-pill { display: none; }

.conversation {
  position: relative;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px 12px;
  margin-block: 2px;
  border: 0;
  border-radius: 16px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  transition: background-color 140ms ease;
}
.conversation:hover { background: var(--chalk-soft); }
.conversation[aria-current="true"] { background: #f0f0ed; }
.conversation[aria-current="true"] .avatar {
  background: var(--ink);
  color: #ffffff;
  box-shadow: 0 0 0 0.5px rgba(23, 23, 23, 0.16);
}
.row-copy { min-width: 0; display: grid; gap: 2px; }
.row-copy strong {
  font-family: var(--font-display);
  font-size: 0.875rem;
  font-weight: 580;
  letter-spacing: -0.012em;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation.unread .row-copy strong { font-weight: 660; }
.snippet {
  font-size: 0.8125rem;
  color: var(--text-secondary);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conversation-meta { display: flex; align-items: center; gap: 6px; font-size: 0.75rem; color: var(--muted); }
.row-meta { font-size: 0.71875rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.row-end {
  display: grid;
  justify-items: end;
  align-self: start;
  padding-top: 2px;
  gap: 6px;
  font-size: 0.71875rem;
  font-weight: 500;
  line-height: 1.2;
  letter-spacing: -0.005em;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}
.conversation.unread .row-end {
  color: var(--ink);
  font-weight: 600;
}
.row-end time { font-size: inherit; color: inherit; }
.unread-count {
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-size: 0.65625rem;
  font-weight: 680;
  line-height: 1;
  display: grid;
  place-items: center;
}
.dot { width: 7px; height: 7px; border-radius: 50%; background: var(--ink); }
.queue-status {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: var(--r-pill);
  font-size: 0.71875rem;
  font-weight: 560;
  white-space: nowrap;
  background: var(--stone-chip);
  color: var(--text-secondary);
}
.queue-waiting { background: var(--warning-bg); color: var(--warning-ink); }
.load-more, .older-messages { width: calc(100% - 12px); margin: 8px 6px; }

/* ─── 8. FLOATING ACTIVE THREAD CARD ─── */
.thread {
  display: grid;
  min-width: 0;
  min-height: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.045);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.empty {
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 10px;
  padding: 32px;
  text-align: center;
  color: var(--muted);
}
.empty-thread-icon {
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border-radius: 50%;
  background: var(--ink);
  color: #ffffff;
}
.empty-thread-icon svg { width: 22px; height: 22px; }
.empty h2 { font-size: 1.0625rem; font-weight: 600; }
.empty p { max-width: 34ch; font-size: 0.875rem; color: var(--text-secondary); }

.active-thread {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
  background: var(--surface);
}

.thread-header {
  grid-row: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 16px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  min-width: 0;
}
.thread-header .back { display: none; }
.thread-header .contact {
  flex: 1 1 0;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.thread-header .contact h2 {
  font-size: 0.96875rem;
  font-weight: 600;
  letter-spacing: -0.015em;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
#contact-channel {
  font-size: 0.75rem;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-storage-status {
  width: fit-content;
  margin-top: 2px;
  padding: 2px 9px;
  border-radius: var(--r-pill);
  background: var(--chalk-soft);
  border: 1px solid var(--line);
  color: var(--text-secondary);
  font-size: 0.65625rem;
  font-weight: 540;
  white-space: nowrap;
}
.layout:has(#contact-panel:not([hidden])) #contact-storage-status,
.layout:has(#contact-panel:not([hidden])) #thread-queue-status { display: none; }
.layout:has(#contact-panel:not([hidden])) #save-contact { width: 38px; min-height: 38px; padding: 0; border-radius: 50%; }
.layout:has(#contact-panel:not([hidden])) #save-contact #save-contact-label { display: none; }
#thread-queue-status { white-space: nowrap; flex-shrink: 0; }
#save-contact .contact-compact-label { display: none; }
.thread-header .resolve { min-height: 36px; padding: 0 13px; font-size: 0.8125rem; flex-shrink: 0; }
.thread-header #thread-details,
.thread-header #mark-read,
.thread-header #save-contact { flex-shrink: 0; }

.thread-search {
  grid-row: 2;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 8px 16px;
  border-bottom: 1px solid var(--line);
}
.thread-search .search { flex: 1; }
#thread-search-count { font-size: 0.75rem; color: var(--muted); font-variant-numeric: tabular-nums; }

/* Messages Feed */
.messages {
  grid-row: 3;
  overflow-y: auto;
  padding: 16px 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.day-label {
  align-self: center;
  margin: 10px 0 4px;
  padding: 4px 12px;
  border-radius: var(--r-pill);
  background: var(--chalk-soft);
  color: var(--muted);
  font-size: 0.71875rem;
  font-weight: 580;
}

.bubble {
  max-width: min(600px, 78%);
  padding: 10px 14px 8px;
  border-radius: 20px 20px 20px 6px;
  background: #f3f3f0;
  color: var(--text);
  align-self: flex-start;
  overflow-wrap: anywhere;
}
.bubble.out {
  align-self: flex-end;
  border-radius: 20px 20px 6px 20px;
  background: #1a1a19;
  color: #f8f8f6;
  box-shadow: 0 4px 14px -10px rgba(17, 17, 17, 0.28);
}
.bubble.bubble-continuation { margin-top: -3px; }
.bubble p { font-size: 0.90625rem; font-weight: 420; line-height: 1.52; white-space: pre-wrap; }
.bubble .message-stamp {
  margin-top: 5px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  font-size: 0.6875rem;
  line-height: 1;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}
.bubble.out .message-stamp { color: rgba(248, 248, 246, 0.66); }
.message-delivery svg { width: 14px; height: 14px; }

/* Transparent Sticker & Clean Media Bubbles */
.media-open {
  display: block;
  width: fit-content;
  max-width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  border-radius: 14px;
  overflow: hidden;
}
.media-image,
.message-image,
.media-video {
  display: block;
  width: auto;
  height: auto;
  max-width: min(270px, 100%);
  max-height: 300px;
  border-radius: 14px;
  object-fit: contain;
}
.bubble-row .bubble { min-width: 0; overflow: hidden; }
.media-audio { width: min(280px, 100%); }
.media-sticker { width: 132px; height: 132px; object-fit: contain; display: block; }
.bubble.sticker-bubble,
.bubble.out.sticker-bubble {
  padding: 2px 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.sticker-bubble .message-stamp {
  width: fit-content;
  margin-left: auto;
  margin-top: 6px;
  padding: 4px 10px;
  border-radius: var(--r-pill);
  background: rgba(23, 23, 23, 0.8);
  color: #ffffff;
}
.sticker-bubble .message-stamp time,
.sticker-bubble .message-delivery { color: rgba(255, 255, 255, 0.94); }
.bubble.has-media p:not(.media-unavailable) { margin-top: 8px; }
.media-unavailable { font-size: 0.8125rem; color: var(--muted); }
.message-document { display: inline-flex; align-items: center; gap: 8px; min-height: 40px; color: inherit; font-weight: 580; }
.product-label { font-size: 0.75rem; font-weight: 600; margin-bottom: 4px; color: var(--muted); }

/* Thread Footer & 2-Row Clean Composer */
.thread-footer {
  grid-row: 4;
  position: relative;
  padding: 10px 16px 14px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.reply-source {
  display: inline-block;
  margin-bottom: 7px;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--chalk-soft);
  font-size: 0.71875rem;
  font-weight: 540;
  color: var(--text-secondary);
  font-variant-numeric: tabular-nums;
}
.reply-status:not(:empty) { margin-top: 6px; font-size: 0.75rem; color: var(--muted); }

.attachment-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  margin-bottom: 8px;
  border-radius: 16px;
  background: var(--chalk-soft);
}
#attachment-image { width: 44px; height: 44px; object-fit: cover; border-radius: 10px; }
#attachment-name { flex: 1; font-size: 0.84375rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

.ai-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px 12px;
  padding: 12px 14px;
  margin-bottom: 10px;
  border: 1px solid var(--line-strong);
  border-radius: 20px;
  background: var(--chalk-soft);
}
.ai-inline-header {
  grid-column: 1 / -1;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: var(--surface);
  border: 1px solid var(--line);
  font-family: var(--font-display);
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink);
}
#ai-inline-preview { grid-column: 1 / -1; min-height: 64px; background: var(--surface); }
.ai-inline .tool-note { grid-column: 1 / -1; }
.ai-inline-usage { grid-column: 1; font-size: 0.71875rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }
.ai-inline-usage summary { display: inline-flex; align-items: center; gap: 6px; min-height: 28px; font-weight: 560; }
.ai-inline-actions { grid-column: 2; justify-self: end; }
#ai-inline-insert {
  min-height: 36px;
  padding: 0 15px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--ink);
  color: #ffffff;
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 580;
}
#ai-inline-insert:hover:enabled { background: var(--ink-hover); }

.quick-templates {
  position: absolute;
  left: 16px;
  right: 16px;
  bottom: calc(100% + 8px);
  z-index: 25;
  max-height: 260px;
  overflow-y: auto;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: var(--shadow-float);
}
.quick-template-option {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 9px 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  text-align: left;
}
.quick-template-option:hover { background: var(--chalk-soft); }
.quick-template-head { display: flex; align-items: center; gap: 8px; }
.quick-template-code { padding: 2px 8px; border-radius: var(--r-pill); background: var(--stone-chip); color: var(--ink); font-size: 0.75rem; font-weight: 600; }

/* 2-Row Full-Width Composer */
.reply {
  display: grid;
  grid-template-columns: repeat(4, 38px) minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 6px 4px;
  padding: 8px 10px 7px;
  border: 1px solid rgba(17, 17, 17, 0.085);
  border-radius: 22px;
  background: var(--surface);
  box-shadow: 0 8px 24px -16px rgba(17, 17, 17, 0.14);
}
.reply:focus-within { border-color: rgba(17, 17, 17, 0.25); }
.reply textarea {
  grid-column: 1 / -1;
  grid-row: 1;
  width: 100%;
  min-height: 36px;
  max-height: 150px;
  padding: 4px 6px 6px;
  border: 0;
  background: transparent;
  box-shadow: none;
}
.reply textarea:focus { box-shadow: none; }
.reply > button { grid-row: 2; }
.reply .ai-composer-btn {
  grid-column: 6;
  min-height: 38px;
  padding: 0 13px;
  border: 0;
  background: var(--stone-chip);
  font-size: 0.8125rem;
}
.reply .ai-composer-btn .ai-btn-compact { display: none; }
.reply #send {
  grid-column: 7;
  min-height: 38px;
  padding: 0 16px;
}
.reply #send svg { width: 15px; height: 15px; }

.emoji-picker {
  padding: 10px;
  border: 0;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.92) 0%, rgba(248, 248, 245, 0.84) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow:
    inset 0 1.5px 0 rgba(255, 255, 255, 0.98),
    0 0 0 0.5px rgba(17, 17, 17, 0.09),
    0 20px 44px -12px rgba(17, 17, 17, 0.22);
  max-width: min(300px, calc(100vw - 24px));
}
.emoji-picker:popover-open {
  display: grid;
  grid-template-columns: repeat(7, 36px);
  gap: 4px;
}
.emoji-picker button {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: transparent;
  font-size: 1.25rem;
  line-height: 1;
  transition: background-color 120ms ease, transform 140ms var(--ease-out);
}
.emoji-picker button:hover {
  background: rgba(17, 17, 17, 0.07);
  transform: scale(1.12);
}
#quick-template-status:empty { display: none; }
#quick-template-options { display: grid; gap: 3px; }

/* ─── 9. FLOATING CONTACT DETAIL CARD ─── */
.contact-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  min-height: 0;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.045);
  box-shadow: var(--shadow-card);
  overflow: hidden;
}
.contact-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}
.contact-panel-header h2 { font-size: 0.9375rem; font-weight: 600; }
.thread-detail-body { padding: 16px; overflow-y: auto; display: grid; gap: 16px; align-content: start; }
.contact-identity { display: grid; justify-items: start; gap: 6px; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.contact-identity .avatar { width: 46px; height: 46px; font-size: 0.9375rem; }
.contact-identity h2 { font-size: 1rem; font-weight: 620; }
.contact-identity p { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
#thread-detail-fields { margin: 0; display: grid; gap: 10px; }
.detail-field { display: grid; gap: 2px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.detail-field:last-child { border-bottom: 0; padding-bottom: 0; }
.detail-field dt { font-size: 0.71875rem; font-weight: 580; color: var(--muted); }
.detail-field dd { margin: 0; font-size: 0.84375rem; color: var(--text); overflow-wrap: anywhere; }
.detail-field.is-muted-note dd { font-size: 0.78125rem; color: var(--muted); }

.contact-memory-card { padding: 14px; border-radius: 18px; background: var(--chalk-soft); display: grid; gap: 8px; }
.contact-memory-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.contact-memory-title { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 620; }
.contact-memory-summary, .contact-memory-empty { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.48; }
.contact-memory-facts { margin: 0; padding-left: 18px; display: grid; gap: 4px; font-size: 0.8125rem; color: var(--text-secondary); }
.contact-memory-actions { display: flex; flex-wrap: wrap; gap: 6px; }
.detail-actions { display: grid; gap: 8px; }
.detail-actions button { justify-content: flex-start; width: 100%; }
.detail-actions .mobile-detail-action { display: none; }

/* ─── 10. RESOURCE PAGES (WHITE FLOATING PAGE ON DESKTOP, CHALK + WHITE CARDS ON MOBILE) ─── */
.resource-page {
  grid-column: 2;
  grid-row: 2;
  margin: 0 12px 12px 4px;
  padding: 28px 34px 40px;
  border-radius: var(--r-card);
  background: var(--surface);
  border: 1px solid rgba(17, 17, 17, 0.045);
  box-shadow: var(--shadow-card);
  overflow-y: auto;
}
.resource-page > * { max-width: 1120px; }

.resource-header {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px 20px;
  padding-bottom: 18px;
  margin-bottom: 22px;
  border-bottom: 1px solid var(--line);
}
.resource-header h1 {
  font-size: 1.75rem;
  font-weight: 560;
  letter-spacing: -0.018em;
  word-spacing: 0.02em;
  line-height: 1.18;
}
.resource-header p { margin-top: 5px; color: var(--text-secondary); font-size: 0.875rem; max-width: 62ch; }
.resource-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

#resource-link {
  gap: 8px;
  padding: 0 18px;
  min-height: 42px;
  background: var(--ink);
  border-color: var(--ink);
  color: #ffffff;
  font-weight: 580;
  box-shadow: 0 6px 16px -8px rgba(17, 17, 17, 0.42);
}
#resource-link svg {
  width: 15px;
  height: 15px;
  flex-shrink: 0;
  opacity: 0.9;
  transition: transform 180ms var(--ease-out), opacity 160ms ease;
}
#resource-link:hover { background: var(--ink-hover); border-color: var(--ink-hover); }
#resource-link:hover svg { transform: translate(1.5px, -1.5px); opacity: 1; }

.resource-filter {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(240px, 1.3fr) auto;
  align-items: end;
  gap: 14px;
  padding: 16px 18px;
  margin-bottom: 16px;
  border-radius: 20px;
  background: var(--chalk-soft);
}
.resource-filter label { display: grid; gap: 6px; font-family: var(--font-display); font-size: 0.78125rem; font-weight: 600; color: var(--text-secondary); }
.resource-filter input, .resource-filter select { background: var(--surface); }
.resource-status:not(:empty) { margin-bottom: 14px; font-size: 0.8125rem; font-weight: 540; color: var(--muted); }

/* Crisp Spacious Uppercase Section Eyebrows */
.account-section h2,
#whatsapp-accounts-title,
.resource-subheading {
  margin: 0 0 12px;
  font-family: var(--font-display);
  font-size: 0.71875rem;
  font-weight: 620;
  letter-spacing: 0.075em;
  word-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--muted);
}
.account-section { margin-bottom: 26px; }

/* Ringkasan KPI Cards */
.overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 28px;
}
.overview-stat {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 20px 22px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--chalk-soft);
  color: var(--ink);
  text-align: left;
  transition: transform 180ms var(--ease-out), background-color 180ms ease, border-color 180ms ease, box-shadow 200ms ease;
}
.overview-stat::after {
  content: "↗";
  position: absolute;
  top: 18px;
  right: 18px;
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--surface);
  color: var(--text-secondary);
  font-size: 0.875rem;
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
  transition: background-color 160ms ease, color 160ms ease;
}
.overview-stat-head { display: flex; align-items: center; gap: 11px; padding-right: 36px; min-width: 0; }
.overview-stat-icon {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.065);
  flex-shrink: 0;
  transition: background-color 160ms ease, color 160ms ease;
}
.overview-stat-icon svg { width: 19px; height: 19px; }
.overview-stat-label { font-family: var(--font-display); font-size: 0.8125rem; font-weight: 560; color: var(--text-secondary); }
.overview-stat strong {
  font-family: var(--font-display);
  font-size: 2.375rem;
  font-weight: 550;
  letter-spacing: -0.04em;
  line-height: 1.05;
  color: var(--ink);
  font-variant-numeric: tabular-nums;
  margin-top: 4px;
}
@media (hover: hover) and (pointer: fine) {
  .overview-stat:hover {
    background: var(--surface);
    border-color: rgba(17, 17, 17, 0.14);
    box-shadow: 0 12px 26px -16px rgba(17, 17, 17, 0.14);
    transform: translateY(-2px);
  }
  .overview-stat:hover::after,
  .overview-stat:hover .overview-stat-icon {
    background: var(--ink);
    color: #ffffff;
  }
}

.recent-list,
.contact-directory,
.resource-table-wrap {
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
  overflow: hidden;
}
.recent-row {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  padding: 13px 18px;
  border: 0;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
  text-align: left;
  transition: background-color 140ms ease;
}
.recent-row:last-child { border-bottom: 0; }
.recent-row:hover { background: var(--chalk-soft); }

.contact-card {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 13px 18px;
  border-bottom: 1px solid var(--line);
}
.contact-card:last-child { border-bottom: 0; }
.contact-card-info { display: grid; gap: 2px; min-width: 0; }
.contact-card-name { font-family: var(--font-display); font-size: 0.90625rem; font-weight: 580; }
.contact-card-phone { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.contact-card-labels { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 4px; }

/* Accounts, Templates & Broadcasts */
.account-grid,
.broadcast-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  gap: 14px;
}
.account-card,
.broadcast-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--chalk-soft);
  transition: background-color 160ms ease, border-color 160ms ease, transform 180ms var(--ease-out);
}
.telegram-account-card { grid-template-columns: minmax(0, 1fr) auto; }
.account-icon-tile,
.broadcast-tile {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: var(--surface);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.065);
  transition: background-color 160ms ease, color 160ms ease;
}
.account-icon-tile svg { width: 20px; height: 20px; }
@media (hover: hover) and (pointer: fine) {
  .account-card:hover,
  .broadcast-card:hover {
    background: var(--surface);
    border-color: rgba(17, 17, 17, 0.14);
    transform: translateY(-1px);
  }
  .account-card:hover .account-icon-tile,
  .broadcast-card:hover .account-icon-tile {
    background: var(--ink);
    color: #ffffff;
  }
}
.account-card-info,
.broadcast-card-info { display: grid; gap: 2px; min-width: 0; }
.account-card-name,
.broadcast-card-name,
.template-card-name { font-family: var(--font-display); font-size: 0.9375rem; font-weight: 580; color: var(--ink); letter-spacing: -0.015em; }
.account-card-identity,
.broadcast-card-date { font-size: 0.8125rem; color: var(--muted); font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
#telegram-setup-open { background: var(--surface); }
#telegram-setup-open:hover { background: var(--ink); color: #ffffff; border-color: var(--ink); }

.template-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(310px, 1fr)); gap: 14px; }
.template-card {
  display: grid;
  gap: 12px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--chalk-soft);
  align-content: start;
}
.template-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.template-card-title { display: grid; gap: 6px; min-width: 0; }
.template-card-meta { display: flex; flex-wrap: wrap; gap: 6px; }
.template-card-body { font-size: 0.84375rem; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; overflow-wrap: anywhere; }
.template-card-actions { display: flex; flex-wrap: wrap; gap: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.resource-delete { color: var(--danger-ink); }
.resource-delete:hover:enabled { background: var(--danger-bg); border-color: var(--danger-border); }

.resource-empty {
  display: grid;
  justify-items: center;
  gap: 12px;
  padding: 44px 20px;
  border-radius: 22px;
  background: var(--chalk-soft);
  text-align: center;
  color: var(--text-secondary);
}
.resource-empty-icon { display: grid; place-items: center; width: 48px; height: 48px; border-radius: 50%; background: var(--ink); color: #ffffff; }
.resource-empty-icon svg { width: 20px; height: 20px; }
.resource-empty p { max-width: 46ch; font-size: 0.875rem; }

.resource-table { width: 100%; border-collapse: collapse; font-size: 0.84375rem; text-align: left; }
.resource-table th, .resource-table td { padding: 12px 16px; border-bottom: 1px solid var(--line); }
.resource-table th { background: var(--chalk-soft); font-size: 0.71875rem; text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); }
#resource-more { margin-top: 14px; }

/* ─── 11. PENGATURAN AI STUDIO ─── */
.ai-studio-shell { display: grid; gap: 18px; }
.ai-studio-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px 16px;
  padding: 16px 18px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--chalk-soft);
}
.ai-studio-account { flex: 1 1 280px; display: grid; gap: 6px; font-family: var(--font-display); font-size: 0.78125rem; font-weight: 600; color: var(--text-secondary); }
.ai-studio-account select { background-color: var(--surface); min-height: 44px; border-radius: 16px; }
.ai-provider-status {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 14px;
  border: 1px solid var(--success-border);
  border-radius: var(--r-pill);
  background: var(--success-bg);
  color: var(--success-ink);
  font-size: 0.78125rem;
  font-weight: 600;
}
.ai-provider-status::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: var(--success-dot); }
.ai-provider-status.is-unconfigured { border-color: var(--warning-border); background: var(--warning-bg); color: var(--warning-ink); }
.ai-provider-status.is-unconfigured::before { background: var(--warning-ink); }

.ai-studio-grid { display: grid; grid-template-columns: minmax(0, 1.22fr) minmax(320px, 0.85fr); gap: 18px; align-items: start; }
.ai-studio-config { display: grid; gap: 16px; min-width: 0; }

/* Gliding Pill Segmented Tabs */
.ai-segmented-tabs {
  position: relative;
  display: flex;
  align-items: center;
  padding: 4px;
  border-radius: var(--r-pill);
  background: #e5e5e1;
  width: fit-content;
  max-width: 100%;
  overflow-x: auto;
}
.ai-seg-pill {
  position: absolute;
  top: 0;
  left: 0;
  z-index: 1;
  pointer-events: none;
  opacity: 0;
}
.ai-seg-lens {
  display: block;
  width: 100%;
  height: 100%;
  border-radius: var(--r-pill);
  background: var(--ink);
  box-shadow: 0 4px 12px -4px rgba(17, 17, 17, 0.35);
}
.ai-seg-tab {
  position: relative;
  z-index: 2;
  min-height: 36px;
  padding: 0 16px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 560;
  white-space: nowrap;
  transition: color 160ms ease;
}
.ai-seg-tab[aria-pressed="true"] { color: #ffffff; font-weight: 600; }
.ai-seg-tab .nav-label-compact { display: none; }
.ai-mobile-only-tab { display: none; }

.ai-settings-form,
.ai-bento-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--surface);
}
.ai-persona-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.ai-settings-form label:not(.ai-toggle-row),
.ai-bento-section label:not(.ai-toggle-row) {
  display: grid;
  gap: 7px;
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 600;
  color: #3a3a37;
}
#ai-business { min-height: 152px; }
.ai-toggle-row {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 15px;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--chalk-soft);
}
.ai-toggle-row input[type="checkbox"] { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--ink); flex-shrink: 0; }
.ai-toggle-row strong { display: block; font-size: 0.84375rem; font-weight: 600; color: var(--ink); }
.ai-toggle-row small { display: block; margin-top: 2px; font-size: 0.78125rem; color: var(--text-secondary); }
.ai-form-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ai-form-actions button:not(.primary) { background: var(--stone-chip); border-color: transparent; }
.ai-section-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-example-inline-form { display: grid; gap: 12px; padding-top: 12px; border-top: 1px solid var(--line); }
.ai-example-list, .ai-compact-list { display: grid; gap: 10px; }
.ai-example, .ai-memory-card { display: grid; gap: 8px; padding: 14px; border-radius: 16px; background: var(--chalk-soft); }
.ai-memory-card.is-paused { opacity: 0.7; }
.ai-memory-card-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 10px; }
.ai-kb-title-wrap { display: grid; gap: 6px; }
.ai-memory-card-title { font-family: var(--font-display); font-size: 0.90625rem; font-weight: 600; }
.ai-memory-card-body { font-size: 0.84375rem; color: var(--text-secondary); line-height: 1.5; white-space: pre-wrap; }
.ai-cust-identity { display: flex; align-items: center; gap: 10px; }
.ai-cust-meta { display: grid; gap: 1px; }
.ai-cust-meta strong { font-size: 0.875rem; }
.ai-cust-meta small { font-size: 0.78125rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.ai-empty-box { padding: 18px; border-radius: 16px; background: var(--chalk-soft); color: var(--text-secondary); font-size: 0.84375rem; }

.ai-memory-toolbar { display: grid; gap: 10px; }
.ai-cat-pills { position: relative; display: flex; flex-wrap: wrap; gap: 6px; }
.ai-cat-active-pill { display: none; }
.ai-cat-pill {
  min-height: 32px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: var(--stone-chip);
  color: var(--text-secondary);
  font-size: 0.78125rem;
  font-weight: 560;
}
.ai-cat-pill[aria-pressed="true"] { background: var(--ink); color: #ffffff; }

.ai-studio-preview {
  display: grid;
  grid-template-rows: auto auto minmax(320px, 440px) auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: var(--chalk-soft);
  overflow: hidden;
}
.ai-sim-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 14px 16px; background: var(--surface); border-bottom: 1px solid var(--line); }
.ai-sim-identity { display: flex; align-items: center; gap: 10px; min-width: 0; }
.ai-sim-orb { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; background: var(--ink); color: #ffffff; }
.ai-sim-orb svg { width: 17px; height: 17px; }
.ai-sim-title-copy strong { display: block; font-size: 0.90625rem; font-weight: 600; }
.ai-sim-title-copy small { display: block; font-size: 0.75rem; color: var(--muted); }
.ai-sim-context-bar { padding: 10px 16px; border-bottom: 1px solid var(--line); background: var(--chalk-soft); }
.ai-sim-ctx-label { display: flex; align-items: center; gap: 10px; font-size: 0.78125rem; font-weight: 580; color: var(--muted); white-space: nowrap; }
.ai-sim-ctx-label select { min-height: 34px; padding: 4px 12px; background: var(--surface); font-size: 0.8125rem; }
.ai-sim-thread { padding: 14px 16px; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.ai-sim-welcome { margin: auto 0; display: grid; gap: 10px; }
.ai-sim-welcome-icon { display: grid; place-items: center; width: 40px; height: 40px; border-radius: 50%; background: var(--surface); color: var(--ink); }
.ai-sim-welcome-icon svg { width: 18px; height: 18px; }
.ai-sim-welcome strong { font-size: 0.9375rem; }
.ai-sim-welcome p { font-size: 0.8125rem; color: var(--text-secondary); line-height: 1.5; }
.ai-sim-starters { display: grid; gap: 6px; margin-top: 4px; }
.ai-sim-chip {
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--surface);
  color: var(--ink);
  font-size: 0.8125rem;
  text-align: left;
  transition: background-color 140ms ease;
}
.ai-sim-chip:hover:enabled { background: var(--stone-chip); }
.ai-sim-msg { max-width: 90%; padding: 10px 14px; border-radius: 18px; font-size: 0.84375rem; line-height: 1.48; white-space: pre-wrap; }
.ai-sim-msg.is-customer { align-self: flex-end; background: var(--ink); color: #ffffff; }
.ai-sim-msg.is-ai { align-self: flex-start; background: var(--surface); color: var(--ink); display: grid; gap: 6px; }
.ai-sim-msg.is-error { align-self: stretch; background: var(--danger-bg); color: var(--danger-ink); }
.ai-sim-badge-head { display: inline-flex; align-items: center; gap: 5px; font-size: 0.75rem; font-weight: 600; color: var(--ink); }
.ai-sim-badge-head svg { width: 14px; height: 14px; }
.ai-sim-msg-foot { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px; padding-top: 6px; border-top: 1px solid var(--line); font-size: 0.71875rem; color: var(--muted); }
.ai-sim-save-ex { padding: 3px 10px; border: 0; border-radius: var(--r-pill); background: var(--stone-chip); color: var(--ink); font-size: 0.71875rem; font-weight: 600; }
.ai-typing-dots { display: inline-flex; align-items: center; gap: 8px; font-size: 0.8125rem; color: var(--muted); }
.ai-typing-wave { display: inline-flex; gap: 3px; }
.ai-typing-wave i { width: 5px; height: 5px; border-radius: 50%; background: var(--muted); display: block; }
.ai-sim-composer {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 12px;
  background: var(--surface);
  border-top: 1px solid var(--line);
}
.ai-sim-input {
  flex: 1;
  min-width: 0;
  min-height: 40px;
  padding: 8px 15px;
  border-radius: var(--r-pill);
}
.ai-sim-send {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
}
.ai-sim-send svg {
  width: 17px;
  height: 17px;
  transform: translate(-0.5px, 0.5px);
}
.ai-studio-extras { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.ai-teaching-log { display: grid; gap: 6px; max-height: 180px; overflow-y: auto; }
.ai-teaching-msg { padding: 8px 12px; border-radius: 14px; background: var(--chalk-soft); font-size: 0.8125rem; }
.ai-usage-chip { margin-top: auto; padding: 10px 14px; border-radius: 14px; background: var(--chalk-soft); font-size: 0.78125rem; color: var(--text-secondary); font-variant-numeric: tabular-nums; }

/* ─── 12. DIALOGS & MODALS (UNIFIED PADDING, SCROLLING & 2026 POLISH) ─── */
dialog {
  width: min(490px, calc(100vw - 24px));
  max-height: min(86dvh, 720px);
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: var(--surface);
  color: var(--ink);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 0.5px rgba(17, 17, 17, 0.08),
    0 24px 60px -14px rgba(17, 17, 17, 0.28),
    0 4px 16px -4px rgba(17, 17, 17, 0.08);
  overflow: hidden;
}
dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
#media-viewer[open] {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
#business-tools[open] {
  grid-template-rows: auto auto minmax(0, 1fr);
}
dialog::backdrop {
  background: rgba(17, 17, 17, 0.36);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.filter-panel {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.91) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dialog-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--surface);
  border-bottom: 1px solid var(--line);
}
.dialog-header h2 { font-size: 0.9375rem; font-weight: 630; letter-spacing: -0.016em; }
.dialog-header .icon-button {
  width: 34px;
  height: 34px;
  background: var(--chalk-soft);
  color: var(--ink);
}
.dialog-header .icon-button:hover:enabled {
  background: var(--stone-hover);
}

/* ALL modal bodies get consistent generous padding + proper scrolling */
.contact-form,
.resource-editor,
.ai-body,
.tool-body,
.more-navigation-list,
dialog .thread-detail-body {
  padding: 18px 20px 22px;
  min-height: 0;
  overflow-y: auto;
  display: grid;
  gap: 14px;
  align-content: start;
}
dialog textarea { min-height: 84px; }
dialog .contact-form > p:not([role="status"]) {
  font-size: var(--t-ui);
  color: var(--text-secondary);
  line-height: 1.52;
}
#telegram-status:not(:empty) {
  padding: 9px 13px;
  border-radius: 13px;
  background: var(--chalk-soft);
  color: var(--ink);
  font-size: var(--t-meta);
  font-weight: 560;
}
dialog .tool-form > .primary,
dialog .resource-editor > .primary,
dialog .contact-form > .primary {
  width: 100%;
  min-height: 44px;
  margin-top: 4px;
}
dialog [role="status"]:empty,
dialog .tool-note:empty {
  display: none;
}
#editor-contact,
#editor-template {
  display: grid;
  gap: 14px;
}
#media-viewer-content {
  padding: 16px 20px;
  min-height: 0;
  overflow: auto;
  display: grid;
  place-items: center;
}
.ai-secondary-actions,
.ai-actions,
.template-dialog-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.ai-actions > button,
.template-dialog-actions > button {
  flex: 1 1 140px;
  min-height: 42px;
}
.ai-memory-banner { padding: 12px 14px; border-radius: 16px; background: var(--chalk-soft); font-size: 0.8125rem; }
.ai-memory-pills { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.ai-mem-pill { padding: 3px 9px; border-radius: var(--r-pill); background: var(--surface); font-size: 0.75rem; }
.template-preview { padding: 12px 14px; border-radius: 16px; background: var(--chalk-soft); font-size: 0.84375rem; white-space: pre-wrap; }
.template-preview:empty { display: none; }
.more-navigation-list button { justify-content: flex-start; min-height: 48px; width: 100%; padding: 0 16px; border-radius: 16px; background: var(--chalk-soft); border: 0; }
.more-navigation-list [aria-current="page"] { background: var(--ink); color: #ffffff; font-weight: 600; }
.tool-nav { display: flex; gap: 6px; padding: 10px 20px; border-bottom: 1px solid var(--line); }
.tool-nav button { min-height: 34px; padding: 0 14px; border: 0; border-radius: var(--r-pill); background: var(--chalk-soft); font-size: 0.8125rem; font-weight: 560; color: var(--text-secondary); }
.tool-nav button[aria-pressed="true"] { background: var(--ink); color: #ffffff; }
.tool-list { display: grid; gap: 8px; }
.tool-card { padding: 12px 14px; border-radius: 16px; background: var(--chalk-soft); display: grid; gap: 6px; }
.viewer-image { display: block; max-width: 100%; max-height: 64dvh; margin: 0 auto; object-fit: contain; border-radius: 12px; }
.media-viewer-footer { padding: 12px 20px; border-top: 1px solid var(--line); display: flex; justify-content: flex-end; }

/* ─── 13. TABLET BREAKPOINT (681px – 1020px) ─── */
@media (max-width: 1020px) and (min-width: 681px) {
  .live-workspace .layout { grid-template-columns: 292px minmax(0, 1fr); }
  .live-workspace .contact-panel { display: none; }
  .resource-page { padding: 22px 24px 36px; }
}
@media (max-width: 960px) {
  .ai-studio-grid { grid-template-columns: minmax(0, 1fr); }
  .ai-studio-extras { grid-template-columns: minmax(0, 1fr); }
  .ai-mobile-only-tab { display: inline-flex; align-items: center; justify-content: center; }
  .ai-studio-preview:not(.is-mobile-active) { display: none; }
  .ai-studio-config.is-mobile-hidden > :not(.ai-segmented-tabs) { display: none; }
  .ai-seg-tab .nav-label-wide { display: none; }
  .ai-seg-tab .nav-label-compact { display: inline; }
  .resource-filter { grid-template-columns: minmax(0, 1fr); }
}

/* ─── 14. MOBILE BREAKPOINT (<= 680px) + FLOATING THREADS LIQUID GLASS CAPSULE ─── */
@media (max-width: 680px) {
  .workspace,
  .live-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: 58px minmax(0, 1fr);
  }
  .topbar { grid-column: 1; grid-row: 1; padding: 6px 14px 4px; }
  .topbar .brand { padding: 4px 13px 4px 5px; font-size: 0.875rem; }
  .topbar .profile .icon-button { width: 34px; height: 34px; }

  .layout,
  .live-workspace .layout {
    grid-column: 1;
    grid-row: 2;
    grid-template-columns: minmax(0, 1fr);
    padding: 0;
    gap: 0;
  }
  .channels, .contact-panel { display: none; }
  .inbox, .thread { border-radius: 0; border: 0; box-shadow: none; }
  .conversation-list { padding-bottom: 96px; }

  /* Mobile Inbox vs Thread Switching (.thread-open is on #workspace) */
  .layout .thread { display: none; }
  .workspace.thread-open .layout .inbox { display: none; }
  .workspace.thread-open .layout .thread { display: grid; }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .workspace-nav { display: none; }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .topbar { display: none; }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) { grid-template-rows: minmax(0, 1fr); }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .layout { grid-row: 1; }

  /* FLOATING iOS 26 / iPHONE 2026 CRYSTAL LIQUID GLASS TAB BAR */
  .workspace-nav {
    position: fixed;
    left: 14px;
    right: 14px;
    bottom: max(14px, env(safe-area-inset-bottom));
    top: auto;
    width: calc(100% - 28px);
    height: 60px;
    max-height: none;
    margin: 0;
    padding: 4px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    border-radius: 999px;
    background: linear-gradient(
      180deg,
      rgba(255, 255, 255, 0.4) 0%,
      rgba(248, 248, 246, 0.24) 55%,
      rgba(255, 255, 255, 0.36) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 0;
    box-shadow:
      inset 0 1.25px 0.5px rgba(255, 255, 255, 0.98),
      inset 0 -1px 0.5px rgba(255, 255, 255, 0.66),
      inset 1px 0 0.5px rgba(255, 255, 255, 0.56),
      inset -1px 0 0.5px rgba(255, 255, 255, 0.56),
      0 0 0 0.5px rgba(17, 17, 17, 0.1),
      0 14px 36px -10px rgba(17, 17, 17, 0.2),
      0 2px 8px -2px rgba(17, 17, 17, 0.06);
  }
  .workspace-nav-secondary { display: none; }
  .workspace-nav .mobile-nav-more { display: flex; }

  .workspace-nav button[data-view],
  .workspace-nav .mobile-nav-more {
    flex: 1 1 0;
    width: auto;
    height: 52px;
    min-height: 52px;
    padding: 5px 2px;
    border-radius: 999px;
    gap: 2px;
    font-size: 0.59375rem;
  }
  .workspace-nav button[data-view] [data-icon],
  .workspace-nav .mobile-nav-more [data-icon],
  .workspace-nav button[data-view] svg,
  .workspace-nav .mobile-nav-more svg {
    width: 19px;
    height: 19px;
  }
  .nav-glass-lens,
  .nav-glass-refract-lens { border-radius: 999px; }

  /* Mobile Thread Header — Uniform 40x40px Circular Buttons */
  .thread-header { padding: 10px 12px; gap: 8px; }
  .thread-header .back { display: inline-flex; }
  .thread-header .avatar { width: 36px; height: 36px; font-size: 0.78125rem; }
  #mark-read, #resolve, #thread-queue-status { display: none; }
  .detail-actions .mobile-detail-action { display: flex; }
  .thread-header :is(#back, #save-contact, #thread-details) {
    width: 40px;
    height: 40px;
    min-width: 40px;
    min-height: 40px;
    padding: 0;
    border: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .thread-header :is(#save-contact, #thread-details) {
    background: var(--chalk-soft);
    box-shadow: inset 0 0 0 1px rgba(17, 17, 17, 0.06);
    color: var(--ink);
  }
  #save-contact #save-contact-label { display: none; }
  .messages { padding: 12px 12px 10px; }
  .bubble { max-width: 86%; }

  /* Mobile Composer */
  .thread-footer { padding: 8px 10px max(10px, env(safe-area-inset-bottom)); }
  .reply {
    grid-template-columns: repeat(4, 42px) minmax(0, 1fr) auto 42px;
    padding: 6px 8px;
  }
  .reply textarea { font-size: 1rem; padding: 6px 8px; }
  .reply :is(#emoji-trigger, #attach, #open-wa-catalog, #open-templates) { width: 42px; height: 42px; }
  .reply .ai-composer-btn { min-height: 40px; padding: 0 12px; }
  .reply .ai-composer-btn .ai-btn-label { display: none; }
  .reply .ai-composer-btn .ai-btn-compact { display: inline; }
  .reply #send { width: 42px; height: 42px; min-height: 42px; padding: 0; justify-self: end; }
  .reply #send > span:first-child { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }

  /* Mobile Resource Pages — Chalk Ground + Pure White Floating Cards */
  .resource-page {
    grid-column: 1;
    grid-row: 2;
    margin: 0;
    padding: 14px 14px 108px;
    border-radius: 0;
    border: 0;
    box-shadow: none;
    background: var(--chalk);
  }
  .resource-header { padding: 4px 2px 14px; margin-bottom: 14px; }
  .resource-header h1 { font-size: 1.5rem; }

  /* Mobile Ringkasan — Pure White Horizontal Row Cards, Zero Overlap */
  .overview-grid { grid-template-columns: 1fr; gap: 10px; margin-bottom: 22px; }
  .overview-stat {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
    gap: 12px;
    padding: 15px 18px;
    border-radius: 20px;
    border: 0;
    background: var(--surface);
    box-shadow: 0 2px 10px -4px rgba(17, 17, 17, 0.055);
  }
  .overview-stat::after { display: none; }
  .overview-stat-head { padding-right: 0; }
  .overview-stat-icon { width: 38px; height: 38px; background: var(--stone-chip); }
  .overview-stat strong { font-size: 1.625rem; margin-top: 0; }

  .account-grid, .template-grid, .broadcast-list { grid-template-columns: 1fr; gap: 10px; }
  .account-card, .template-card, .broadcast-card, .recent-list, .contact-directory, .resource-filter, .ai-studio-bar, .ai-settings-form, .ai-bento-section, .ai-studio-preview {
    background: var(--surface);
    border: 0;
    border-radius: 20px;
    box-shadow: 0 2px 10px -4px rgba(17, 17, 17, 0.055);
  }
  .account-icon-tile, .broadcast-tile, #telegram-setup-open { background: var(--stone-chip); border: 0; }
  .telegram-account-card { grid-template-columns: 1fr; gap: 14px; padding: 18px; }
  .account-card { padding: 14px 16px; gap: 12px; }

  .ai-segmented-tabs { width: 100%; justify-content: space-between; }
  .ai-seg-tab { flex: 1 1 0; padding: 0 8px; }
  .ai-persona-row { grid-template-columns: 1fr; }
  .ai-form-actions { display: grid; grid-template-columns: 1fr; }
  .ai-form-actions button { width: 100%; min-height: 46px; white-space: normal; line-height: 1.25; }
  .ai-studio-account select,
  .ai-settings-form select { background-color: var(--chalk-soft); min-height: 44px; border-radius: 16px; }
  .ai-settings-form input:not([type="checkbox"]),
  .ai-settings-form textarea { background: var(--chalk-soft); }
}

/* ══════════════════════════════════════════════════════════════════════════
   15. 2026 PRECISION TYPOGRAPHY SCALE (ALL MENUS, DESKTOP + MOBILE)
   Unified optical hierarchy, tracking, and tabular numerals across Inbox,
   Thread, Detail Kontak, Ringkasan, Nomor & Akun, Kontak, Template, AI,
   Broadcast, Topbar, Dropdowns, and Modals.
   ══════════════════════════════════════════════════════════════════════════ */

/* Topbar & Brand */
.topbar .brand {
  font-size: var(--t-body-sm);
  font-weight: 630;
  letter-spacing: -0.02em;
}

/* Buttons & Controls */
.primary {
  font-size: var(--t-ui);
  font-weight: 590;
  letter-spacing: -0.008em;
}
.text-button {
  font-size: var(--t-ui);
  font-weight: 560;
  letter-spacing: -0.006em;
}
.resource-badge {
  font-size: var(--t-micro);
  font-weight: 590;
  letter-spacing: 0;
}

/* Global Form Inputs, Selects & Labels */
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  font-size: var(--t-body-sm);
  font-weight: 420;
  letter-spacing: -0.005em;
  line-height: 1.54;
}
select { font-weight: 480; }
select option {
  font-size: var(--t-sub);
  font-weight: 480;
  letter-spacing: -0.005em;
}
.ai-studio-account select option {
  font-size: var(--t-meta);
}
.tool-form label,
.resource-filter label,
.ai-studio-account,
.ai-settings-form label:not(.ai-toggle-row),
.ai-bento-section label:not(.ai-toggle-row) {
  font-size: var(--t-meta);
  font-weight: 600;
  letter-spacing: -0.006em;
}
.tool-note {
  font-size: var(--t-meta);
  font-weight: 420;
  line-height: 1.5;
}

/* Inbox Queue */
.list-title h1 {
  font-size: var(--t-h1-compact);
  font-weight: 640;
  letter-spacing: -0.024em;
}
#list-count {
  font-size: var(--t-micro);
  font-weight: 600;
}
.mobile-channel select,
.filter-menu summary,
#sort-order {
  font-size: var(--t-meta);
  font-weight: 560;
}
.search input[type="search"],
.inbox .search input,
.thread-search .search input {
  font-size: var(--t-ui);
}
#pilot-status {
  font-size: var(--t-micro);
  font-weight: 480;
}
.tabs button {
  font-size: var(--t-ui);
  font-weight: 500;
}
.row-copy strong {
  font-size: var(--t-body-sm);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.3;
}
.conversation.unread .row-copy strong { font-weight: 670; }
.snippet {
  font-size: var(--t-sub);
  font-weight: 420;
  letter-spacing: -0.003em;
  line-height: 1.38;
}
.conversation-meta,
.row-meta,
.queue-status {
  font-size: var(--t-micro);
  line-height: 1.25;
}
.row-end {
  font-size: var(--t-micro);
  font-weight: 500;
  letter-spacing: 0;
}
.conversation.unread .row-end { font-weight: 620; }
.unread-count { font-size: 0.65625rem; font-weight: 680; }

/* Active Thread & Bubbles */
.thread-header .contact h2 {
  font-size: var(--t-h2);
  font-weight: 620;
  letter-spacing: -0.016em;
}
#contact-channel {
  font-size: var(--t-meta);
  font-weight: 450;
}
.contact-storage-status {
  font-size: 0.65625rem;
  font-weight: 540;
}
.thread-header .resolve {
  font-size: var(--t-meta);
  font-weight: 580;
}
.bubble p {
  font-size: var(--t-body);
  font-weight: 420;
  letter-spacing: -0.004em;
  line-height: 1.54;
}
.bubble .message-stamp {
  font-size: 0.65625rem;
  font-weight: 480;
}
.day-label {
  font-size: var(--t-micro);
  font-weight: 580;
}
.reply-source {
  font-size: var(--t-micro);
  font-weight: 540;
}
.reply textarea {
  font-size: var(--t-body);
  line-height: 1.48;
}
.reply .ai-composer-btn,
.reply #send {
  font-size: var(--t-ui);
  font-weight: 580;
}

/* Contact Detail Panel */
.contact-panel-header h2 {
  font-size: var(--t-body);
  font-weight: 620;
  letter-spacing: -0.014em;
}
.contact-identity h2 {
  font-size: var(--t-h2);
  font-weight: 630;
  letter-spacing: -0.016em;
}
.contact-identity p {
  font-size: var(--t-meta);
}
.detail-field dt {
  font-size: var(--t-micro);
  font-weight: 580;
}
.detail-field dd {
  font-size: var(--t-ui);
  font-weight: 460;
  line-height: 1.45;
}
.detail-field.is-muted-note dd {
  font-size: var(--t-meta);
}

/* Resource Pages (Ringkasan, Nomor & Akun, Kontak, Template, Pengaturan AI, Broadcast) */
.resource-header h1 {
  font-size: var(--t-h1);
  font-weight: 620;
  letter-spacing: -0.025em;
  line-height: 1.2;
}
.resource-header p {
  font-size: var(--t-body-sm);
  font-weight: 420;
  line-height: 1.5;
}
.resource-status:not(:empty) {
  font-size: var(--t-meta);
  font-weight: 550;
}
.account-section h2,
#whatsapp-accounts-title,
.resource-subheading {
  font-size: var(--t-micro);
  font-weight: 650;
  letter-spacing: 0.08em;
  word-spacing: 0.06em;
}

/* Ringkasan KPI */
.overview-stat-label {
  font-size: var(--t-sub);
  font-weight: 560;
  letter-spacing: -0.008em;
}
.overview-stat strong {
  font-size: var(--t-kpi);
  font-weight: 580;
  letter-spacing: -0.04em;
}

/* Cards: Accounts, Contacts, Templates, Broadcasts */
.account-card-name,
.broadcast-card-name,
.template-card-name,
.contact-card-name {
  font-size: var(--t-body);
  font-weight: 600;
  letter-spacing: -0.014em;
  line-height: 1.3;
}
.account-card-identity,
.broadcast-card-date,
.contact-card-phone {
  font-size: var(--t-sub);
  font-weight: 430;
}
.template-card-body {
  font-size: var(--t-ui);
  line-height: 1.54;
}

/* Pengaturan AI Studio */
.ai-provider-status {
  font-size: var(--t-meta);
  font-weight: 590;
}
.ai-seg-tab {
  font-size: var(--t-sub);
  font-weight: 560;
  letter-spacing: -0.008em;
}
.ai-seg-tab[aria-pressed="true"] { font-weight: 620; }
.ai-toggle-row strong {
  font-size: var(--t-body-sm);
  font-weight: 600;
}
.ai-toggle-row small {
  font-size: var(--t-meta);
  line-height: 1.48;
}
.ai-sim-title-copy strong {
  font-size: var(--t-body);
  font-weight: 620;
  letter-spacing: -0.014em;
}
.ai-sim-title-copy small {
  font-size: var(--t-micro);
}
.ai-sim-welcome strong {
  font-size: var(--t-body);
  font-weight: 620;
}
.ai-sim-welcome p,
.ai-sim-chip,
.ai-teaching-msg {
  font-size: var(--t-sub);
  line-height: 1.5;
}
.ai-sim-msg {
  font-size: var(--t-ui);
  line-height: 1.52;
}
.ai-usage-chip {
  font-size: var(--t-micro);
}

/* Dialogs */
.dialog-header h2 {
  font-size: var(--t-h2);
  font-weight: 630;
  letter-spacing: -0.016em;
}

/* Liquid Glass Navbar Captions */
.workspace-nav button[data-view],
.workspace-nav .mobile-nav-more {
  font-size: var(--t-nav);
  font-weight: 540;
  letter-spacing: -0.01em;
}
.workspace-nav button[data-view][aria-current="page"],
.workspace-nav .mobile-nav-more[data-active] {
  font-weight: 640;
}

/* Mobile Precision Scale (<= 680px) */
@media (max-width: 680px) {
  .topbar .brand { font-size: var(--t-ui); font-weight: 630; }
  .resource-header h1 { font-size: 1.375rem; letter-spacing: -0.024em; }
  .resource-header p { font-size: var(--t-ui); }
  .list-title h1 { font-size: 1.25rem; }
  .overview-stat strong { font-size: 1.5rem; font-weight: 600; letter-spacing: -0.032em; }
  .overview-stat-label { font-size: var(--t-ui); }
  .bubble p { font-size: var(--t-body); line-height: 1.5; }
  .reply textarea { font-size: 0.9375rem; }
  .ai-settings-form input:not([type="checkbox"]),
  .ai-settings-form select,
  .ai-settings-form textarea,
  .ai-studio-account select {
    font-size: var(--t-body);
  }
  .workspace-nav button[data-view],
  .workspace-nav .mobile-nav-more {
    font-size: 0.59375rem;
  }
}


/* ══════════════════════════════════════════════════════════════════════════
   16. SHOPEE DASHBOARD (DIGITALKANAJA DESK) UNIFIED LIQUID GLASS THEME
   1:1 visual parity with digitalkanaja-shopee-Gemini:
   - Cool Cloud Slate Ground (#F5F6F8) + Switchable Wallpapers (Polos, Aurora, Sand, Mist, Custom)
   - iOS 26/27 Translucent Frosted Glass Cards (.surface-card / .liquid-glass-pill / .liquid-glass-drawer)
   - 3D Glass Obsidian CTAs & Outgoing Bubbles (.hero-obsidian gradient + specular rim)
   - Pastel Glass Avatars (Teal, Indigo, Amber, Violet, Rose, Slate)
   - Harmonized Luminous Liquid Glass Navbar + SVG Chromatic Magnifying Motion
   ══════════════════════════════════════════════════════════════════════════ */

html, body {
  background-color: #f5f6f8;
  background-position: center;
  background-repeat: no-repeat;
  background-size: cover;
  background-attachment: fixed;
  color: #141417;
  letter-spacing: -0.011em;
  font-feature-settings: "cv02", "cv03", "cv04", "cv11";
}

h1, h2, h3, h4 {
  letter-spacing: -0.024em;
}

::-webkit-scrollbar-thumb { background: #d8d8df; }
::-webkit-scrollbar-thumb:hover { background: #b4b4c0; }

/* Transparent shell so #F5F6F8 or chosen wallpaper shines behind floating glass layers */
.login,
.workspace,
.topbar {
  background: transparent;
}

/* Pulsing emerald live dot in topbar brand pill (matching Shopee Desk breadcrumb pill) */
.brand-live-dot {
  position: relative;
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #10b981;
  box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.22);
  flex-shrink: 0;
}

/* Shopee .liquid-glass-pill Topbar Capsules */
.topbar .brand,
.topbar .profile {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.34) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.84);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 6px 18px -10px rgba(15, 23, 42, 0.12),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.38);
}
.topbar .profile .icon-button {
  color: #3f3f46;
}
.topbar .profile .icon-button:hover:enabled {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 100%);
  color: #111114;
  box-shadow:
    inset 0 1px 0.5px rgba(255, 255, 255, 1),
    0 2px 8px -3px rgba(15, 23, 42, 0.14);
}
.topbar .profile #logout:hover:enabled {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
  box-shadow: 0 0 0 0.5px rgba(244, 63, 94, 0.2);
}

/* Shopee .hero-obsidian 3D Glass Obsidian Primaries & Active Chips */
.primary,
#ai-inline-insert,
.tabs button[aria-pressed="true"],
.ai-seg-lens,
.ai-cat-pill[aria-pressed="true"],
.unread-count,
.empty-thread-icon,
.resource-empty-icon,
.ai-sim-orb {
  background: linear-gradient(
    180deg,
    rgba(44, 46, 56, 0.96) 0%,
    rgba(18, 19, 24, 0.98) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  box-shadow:
    0 8px 22px -8px rgba(10, 12, 24, 0.45),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.24);
}
.primary:hover:enabled,
#resource-link:hover,
#ai-inline-insert:hover:enabled {
  background: linear-gradient(
    180deg,
    rgba(56, 59, 72, 0.98) 0%,
    rgba(24, 25, 32, 0.98) 100%
  );
  border-color: rgba(255, 255, 255, 0.22);
}

/* Shopee .liquid-glass-button Secondary Controls */
.text-button {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.68) 0%,
    rgba(255, 255, 255, 0.44) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.065);
  color: #18181b;
  box-shadow:
    0 6px 18px -10px rgba(15, 23, 42, 0.14),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.98),
    inset 0 -1px 0.5px rgba(15, 23, 42, 0.04);
}
.text-button:hover:enabled {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.86) 0%,
    rgba(255, 255, 255, 0.62) 100%
  );
  border-color: rgba(255, 255, 255, 0.96);
  color: #111114;
}

/* Shopee .surface-card Translucent Glass Main Sheets */
.inbox,
.thread,
.contact-panel,
.resource-page,
.channels,
.login-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.52) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.84);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 12px 32px -18px rgba(15, 23, 42, 0.14),
    0 1px 2px rgba(15, 23, 42, 0.04),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.38);
}

/* When a colorful/photo wallpaper is selected, make glass sheets more airy like Shopee Desk */
body[data-wallpaper-rich="true"] .inbox,
body[data-wallpaper-rich="true"] .thread,
body[data-wallpaper-rich="true"] .contact-panel,
body[data-wallpaper-rich="true"] .resource-page,
body[data-wallpaper-rich="true"] .channels,
body[data-wallpaper-rich="true"] .login-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.56) 0%,
    rgba(255, 255, 255, 0.36) 100%
  );
}

/* Harmonize Floating Navbar with Shopee .liquid-glass-bar + .liquid-glass-lens */
.workspace-nav {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.52) 0%,
    rgba(255, 255, 255, 0.3) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.82);
  outline: 1px solid rgba(15, 20, 38, 0.07);
  box-shadow:
    0 16px 42px -12px rgba(15, 20, 38, 0.2),
    0 3px 10px -2px rgba(15, 20, 38, 0.07),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.48);
}
.nav-glass-lens {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.52) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px -5px rgba(15, 20, 38, 0.14),
    0 1px 2px rgba(15, 20, 38, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 1),
    inset 0 -1px 0.5px rgba(15, 23, 42, 0.05);
}
.workspace-nav button[data-view],
.workspace-nav .mobile-nav-more {
  color: #7a7a86;
}
.workspace-nav button[data-view]:hover:not([aria-current="page"]),
.workspace-nav .mobile-nav-more:hover:not([data-active]) {
  color: #27272a;
}
.workspace-nav button[data-view][aria-current="page"],
.workspace-nav .mobile-nav-more[data-active] {
  color: #111114;
}
.workspace-nav button[data-view][aria-current="page"] [data-icon],
.workspace-nav .mobile-nav-more[data-active] [data-icon] {
  filter: drop-shadow(0 3px 8px rgba(17, 17, 20, 0.14));
}

/* Translucent Pastel Glass Avatars (Teal, Indigo, Amber, Violet, Rose, Slate) */
.avatar {
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-0-ring);
  backdrop-filter: none;
}
.avatar[data-tint="0"] { background: var(--av-0-bg); color: var(--av-0-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-0-ring); }
.avatar[data-tint="1"] { background: var(--av-1-bg); color: var(--av-1-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-1-ring); }
.avatar[data-tint="2"] { background: var(--av-2-bg); color: var(--av-2-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-2-ring); }
.avatar[data-tint="3"] { background: var(--av-3-bg); color: var(--av-3-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-3-ring); }
.avatar[data-tint="4"] { background: var(--av-4-bg); color: var(--av-4-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-4-ring); }
.avatar[data-tint="5"] { background: var(--av-5-bg); color: var(--av-5-fg); box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.9), 0 0 0 1px var(--av-5-ring); }

/* Inbox List Header, Search, Filter Pills & Floating Glass Thread Cards */
.list-header {
  background: rgba(255, 255, 255, 0.42);
  border-bottom: 1px solid rgba(15, 23, 42, 0.055);
}
#list-count,
.filter-menu summary,
#sort-order,
.mobile-channel select,
.day-label,
.reply-source {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.64) 0%, rgba(255, 255, 255, 0.38) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 4px 12px -8px rgba(15, 23, 42, 0.12),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96);
}
.search input[type="search"],
.inbox .search input,
.thread-search .search input,
input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  background-color: rgba(255, 255, 255, 0.66);
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.92);
}
input:not([type="checkbox"]):not([type="file"]):hover:enabled,
select:hover:enabled,
textarea:hover:enabled {
  background-color: rgba(255, 255, 255, 0.84);
  border-color: rgba(15, 23, 42, 0.14);
}
input:not([type="checkbox"]):not([type="file"]):focus,
select:focus,
textarea:focus {
  background-color: rgba(255, 255, 255, 0.95);
  border-color: rgba(20, 20, 23, 0.3);
  box-shadow: 0 0 0 3px rgba(20, 20, 23, 0.06), 0 6px 16px -8px rgba(15, 23, 42, 0.12);
}

.conversation {
  border-radius: 20px;
  border: 1px solid transparent;
  transition: background-color 150ms ease, border-color 150ms ease, box-shadow 160ms ease, transform 140ms var(--ease-out);
}
.conversation:hover {
  background: rgba(255, 255, 255, 0.52);
  border-color: rgba(255, 255, 255, 0.8);
}
.conversation[aria-current="true"] {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.84) 0%,
    rgba(255, 255, 255, 0.56) 100%
  );
  border-color: rgba(255, 255, 255, 0.94);
  box-shadow:
    0 6px 18px -6px rgba(15, 20, 38, 0.12),
    0 1px 2px rgba(15, 20, 38, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 1);
}
.conversation[aria-current="true"] .avatar {
  background: linear-gradient(180deg, rgba(44, 46, 56, 0.96) 0%, rgba(18, 19, 24, 0.98) 100%);
  color: #ffffff;
  box-shadow: 0 4px 12px -4px rgba(10, 12, 24, 0.4), inset 0 1px 0.5px rgba(255, 255, 255, 0.24);
}
.queue-waiting {
  background: rgba(245, 158, 11, 0.13);
  color: #92400e;
  border: 1px solid rgba(252, 211, 77, 0.55);
}

/* Active Thread Glass Header, Messages, Bubbles & Floating Composer */
.active-thread {
  background: rgba(255, 255, 255, 0.18);
}
.thread-header {
  background: rgba(255, 255, 255, 0.6);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-bottom: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.05);
}
.thread-footer {
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-top: 1px solid rgba(255, 255, 255, 0.78);
  box-shadow: 0 -1px 0 rgba(15, 23, 42, 0.05);
}

/* Shopee Glass Incoming Bubble + Obsidian 3D Glass Outgoing Bubble */
.bubble {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.92);
  outline: 1px solid rgba(15, 23, 42, 0.045);
  color: #141417;
  box-shadow:
    0 6px 18px -10px rgba(15, 23, 42, 0.14),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.98);
}
.bubble.out {
  background: linear-gradient(
    180deg,
    rgba(42, 44, 54, 0.95) 0%,
    rgba(18, 19, 24, 0.97) 100%
  );
  border: 1px solid rgba(255, 255, 255, 0.15);
  outline: 0;
  color: #ffffff;
  box-shadow:
    0 10px 24px -10px rgba(10, 12, 24, 0.45),
    inset 0 1px 0.5px rgba(255, 255, 255, 0.22);
}
.bubble.out .message-stamp { color: rgba(255, 255, 255, 0.68); }
.bubble.sticker-bubble,
.bubble.out.sticker-bubble {
  background: transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  border: 0;
  outline: 0;
  box-shadow: none;
}

/* Shopee Liquid Glass AI Inline Suggestion Drawer & Unified Composer */
.ai-inline {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.66) 0%,
    rgba(255, 255, 255, 0.46) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.065);
  border-radius: 22px;
  box-shadow:
    0 14px 32px -14px rgba(15, 20, 38, 0.18),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.98);
}
.reply {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.72) 0%,
    rgba(255, 255, 255, 0.52) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.88);
  outline: 1px solid rgba(15, 23, 42, 0.065);
  box-shadow:
    0 8px 24px -14px rgba(15, 23, 42, 0.14),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.98);
}
.reply:focus-within {
  background: rgba(255, 255, 255, 0.88);
  outline-color: rgba(20, 20, 23, 0.18);
  box-shadow:
    0 12px 28px -12px rgba(15, 23, 42, 0.18),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 1);
}
.reply .ai-composer-btn {
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(15, 23, 42, 0.06);
}

/* Inner Bento Cards across Ringkasan, Nomor, Kontak, Template, Broadcast, Pengaturan AI */
.overview-stat,
.account-card,
.template-card,
.broadcast-card,
.recent-list,
.contact-directory,
.resource-table-wrap,
.resource-filter,
.ai-studio-bar,
.ai-settings-form,
.ai-bento-section,
.ai-studio-preview,
.contact-memory-card {
  background: linear-gradient(
    180deg,
    rgba(255, 255, 255, 0.64) 0%,
    rgba(255, 255, 255, 0.44) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.82);
  outline: 1px solid rgba(15, 23, 42, 0.055);
  box-shadow:
    0 10px 26px -18px rgba(15, 23, 42, 0.14),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96);
}
.recent-row { background: transparent; }
.recent-row:hover { background: rgba(255, 255, 255, 0.56); }
.ai-segmented-tabs {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.54) 0%, rgba(255, 255, 255, 0.32) 100%);
  border: 1px solid rgba(255, 255, 255, 0.84);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: inset 0 1.5px 0.5px rgba(255, 255, 255, 0.94);
}
.ai-sim-header,
.ai-sim-composer {
  background: rgba(255, 255, 255, 0.68);
  backdrop-filter: none;
}
.ai-sim-context-bar {
  background: rgba(255, 255, 255, 0.36);
}
.ai-sim-msg.is-customer {
  background: linear-gradient(180deg, rgba(42, 44, 54, 0.95) 0%, rgba(18, 19, 24, 0.97) 100%);
  border: 1px solid rgba(255, 255, 255, 0.15);
  box-shadow: 0 8px 20px -8px rgba(10, 12, 24, 0.42), inset 0 1px 0.5px rgba(255, 255, 255, 0.22);
}
.ai-sim-msg.is-ai {
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.94);
  outline: 1px solid rgba(15, 23, 42, 0.05);
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.14), inset 0 1px 0.5px rgba(255, 255, 255, 0.98);
}
.ai-sim-chip {
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.055);
}
.ai-sim-chip:hover:enabled {
  background: rgba(255, 255, 255, 0.92);
}

/* Shopee .liquid-glass-drawer Modals, Pickers & Filter Menus */
dialog,
.filter-panel,
.emoji-picker,
.quick-templates {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.82) 0%,
    rgba(255, 255, 255, 0.66) 55%,
    rgba(255, 255, 255, 0.62) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.075);
  box-shadow:
    0 24px 60px -16px rgba(15, 20, 38, 0.26),
    0 4px 14px -4px rgba(15, 20, 38, 0.08),
    inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
    inset 1px 0 1px rgba(255, 255, 255, 0.72),
    inset 0 -1px 1px rgba(255, 255, 255, 0.42);
}
.filter-panel {
  background: linear-gradient(
    165deg,
    rgba(255, 255, 255, 0.95) 0%,
    rgba(248, 250, 252, 0.91) 100%
  );
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.dialog-header {
  background: rgba(255, 255, 255, 0.56);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
dialog::backdrop {
  background: rgba(11, 13, 20, 0.25);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
@supports (appearance: base-select) {
  select::picker(select) {
    background: linear-gradient(
      165deg,
      rgba(255, 255, 255, 0.86) 0%,
      rgba(248, 250, 252, 0.76) 100%
    );
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.88);
    outline: 1px solid rgba(15, 23, 42, 0.075);
    box-shadow:
      0 22px 54px -14px rgba(15, 20, 38, 0.24),
      inset 0 1.5px 1px rgba(255, 255, 255, 0.98);
  }
}

/* Wallpaper Picker Modal (matching Shopee Dashboard WallpaperModal.tsx) */
.wallpaper-dialog {
  width: min(410px, calc(100vw - 24px));
  border-radius: 30px;
}
.wallpaper-subtitle {
  margin-top: 2px;
  font-size: var(--t-micro);
  color: var(--muted);
}
.wallpaper-body {
  padding: 18px 20px 22px;
  display: grid;
  gap: 14px;
  min-height: 0;
  overflow-y: auto;
}
.wallpaper-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}
.wallpaper-card {
  display: grid;
  gap: 7px;
  padding: 6px;
  border: 1.5px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.07);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.56);
  text-align: left;
  transition: transform 150ms var(--ease-out), border-color 160ms ease, outline-color 160ms ease, box-shadow 160ms ease;
}
.wallpaper-card:hover {
  transform: translateY(-1px);
  background: rgba(255, 255, 255, 0.82);
}
.wallpaper-card[aria-pressed="true"] {
  border-color: #141417;
  outline-color: rgba(20, 20, 23, 0.22);
  box-shadow: 0 8px 20px -10px rgba(15, 23, 42, 0.24);
}
.wallpaper-swatch {
  display: block;
  width: 100%;
  height: 62px;
  border-radius: 13px;
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.wp-plain { background: #f5f6f8; }
.wp-aurora {
  background-color: #eef2fa;
  background-image:
    radial-gradient(80% 70% at 15% 15%, rgba(170, 205, 255, 0.85) 0%, transparent 65%),
    radial-gradient(75% 65% at 90% 85%, rgba(252, 208, 190, 0.8) 0%, transparent 65%);
}
.wp-sand {
  background-color: #f7f3ec;
  background-image:
    radial-gradient(80% 70% at 20% 20%, rgba(244, 218, 186, 0.85) 0%, transparent 68%),
    radial-gradient(75% 65% at 85% 85%, rgba(226, 210, 190, 0.8) 0%, transparent 68%);
}
.wp-mist {
  background-color: #edf1f7;
  background-image:
    radial-gradient(72% 62% at 14% 14%, rgba(186, 214, 248, 0.72) 0%, transparent 65%),
    radial-gradient(68% 60% at 86% 86%, rgba(204, 232, 238, 0.72) 0%, transparent 65%);
}
.wallpaper-label {
  padding: 0 4px 2px;
  font-family: var(--font-display);
  font-size: var(--t-meta);
  font-weight: 600;
  color: var(--ink);
}
.wallpaper-upload-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.wallpaper-upload-row #wallpaper-upload { flex: 1 1 180px; }

/* Menu Lainnya — Ubah Wallpaper Row (matching Shopee Dashboard Drawer) */
.more-navigation-list .more-wallpaper-btn {
  justify-content: space-between;
  margin-top: 4px;
}
.more-wallpaper-lead {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}
.more-wallpaper-badge {
  padding: 3px 10px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.07);
  font-size: var(--t-micro);
  font-weight: 560;
  color: var(--text-secondary);
}
.workspace-nav .nav-utility-btn {
  color: #7a7a86;
  font-size: var(--t-nav);
  font-weight: 540;
}
.workspace-nav .nav-utility-btn:hover { color: #111114; }

/* Mobile Harmonization with Shopee Dashboard Transparent Canvas + Frosted Glass */
@media (max-width: 680px) {
  .inbox,
  .thread {
    border-radius: 0;
    border: 0;
    outline: 0;
    box-shadow: none;
    background: rgba(255, 255, 255, 0.56);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
  .resource-page {
    background: transparent;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
    border: 0;
    outline: 0;
    box-shadow: none;
  }
  .overview-stat,
  .account-card,
  .template-card,
  .broadcast-card,
  .recent-list,
  .contact-directory,
  .resource-filter,
  .ai-studio-bar,
  .ai-settings-form,
  .ai-bento-section,
  .ai-studio-preview {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.72) 0%, rgba(255, 255, 255, 0.52) 100%);
    border: 1px solid rgba(255, 255, 255, 0.84);
    outline: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: 0 10px 26px -18px rgba(15, 23, 42, 0.14), inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96);
  }
  .workspace-nav {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.52) 0%, rgba(255, 255, 255, 0.3) 100%);
    border: 1px solid rgba(255, 255, 255, 0.82);
    outline: 1px solid rgba(15, 20, 38, 0.07);
    box-shadow:
      0 16px 42px -12px rgba(15, 20, 38, 0.2),
      0 3px 10px -2px rgba(15, 20, 38, 0.07),
      inset 0 1.5px 1px rgba(255, 255, 255, 0.98),
      inset 0 -1px 0.5px rgba(255, 255, 255, 0.48);
  }
}


/* ─── WA WEB-STYLE BUBBLE FORWARD ACTION + GALLERY UPLOAD + FORWARD MODAL ─── */
.bubble-row {
  display: flex;
  align-items: center;
  gap: 6px;
  max-width: 100%;
  align-self: flex-start;
}
.bubble-row.out {
  align-self: flex-end;
  flex-direction: row-reverse;
}
.bubble-row.bubble-continuation { margin-top: -3px; }
.bubble-row .bubble {
  max-width: min(580px, calc(100% - 36px));
  align-self: auto;
  margin-top: 0;
}
.bubble-forward-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  flex-shrink: 0;
  padding: 0;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.78) 0%, rgba(255, 255, 255, 0.5) 100%);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  color: #52525e;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.16), inset 0 1px 0.5px rgba(255, 255, 255, 0.96);
  opacity: 0;
  transform: scale(0.9);
  transition: opacity 150ms ease, transform 160ms var(--ease-out), color 150ms ease, background-color 150ms ease;
}
.bubble-forward-btn svg { width: 14px; height: 14px; }
.bubble-row:hover .bubble-forward-btn,
.bubble-row:focus-within .bubble-forward-btn,
.bubble-forward-btn:focus-visible {
  opacity: 1;
  transform: scale(1);
}
.bubble-forward-btn:hover {
  color: #111114;
  background: rgba(255, 255, 255, 0.96);
  transform: scale(1.06);
}
@media (hover: none) {
  .bubble-forward-btn { opacity: 0.72; transform: scale(1); }
}

/* Gallery Upload Tabs & Dropzone inside #media-send-dialog */
.media-mode-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 4px;
  padding: 4px;
  border-radius: var(--r-pill);
  background: rgba(255, 255, 255, 0.52);
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.06);
}
.media-mode-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: var(--r-pill);
  background: transparent;
  color: var(--text-secondary);
  font-family: var(--font-display);
  font-size: var(--t-sub);
  font-weight: 560;
  transition: background-color 160ms ease, color 160ms ease, box-shadow 160ms ease;
}
.media-mode-tab svg { width: 15px; height: 15px; }
.media-mode-tab[aria-selected="true"] {
  background: linear-gradient(180deg, rgba(44, 46, 56, 0.96) 0%, rgba(18, 19, 24, 0.98) 100%);
  color: #ffffff;
  font-weight: 600;
  box-shadow: 0 6px 16px -6px rgba(10, 12, 24, 0.4), inset 0 1px 0.5px rgba(255, 255, 255, 0.22);
}
.media-gallery-panel { display: grid; gap: 10px; }
.media-dropzone {
  display: grid;
  justify-items: center;
  gap: 6px;
  width: 100%;
  padding: 22px 16px;
  border: 1.5px dashed rgba(20, 20, 23, 0.22);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.56);
  color: var(--ink);
  text-align: center;
  transition: background-color 160ms ease, border-color 160ms ease, transform 150ms var(--ease-out);
}
.media-dropzone:hover,
.media-dropzone.is-dragover {
  background: rgba(255, 255, 255, 0.88);
  border-color: #141417;
  transform: translateY(-1px);
}
.media-dropzone-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 50%;
  background: linear-gradient(180deg, rgba(44, 46, 56, 0.96) 0%, rgba(18, 19, 24, 0.98) 100%);
  color: #ffffff;
  box-shadow: 0 8px 20px -8px rgba(10, 12, 24, 0.4);
}
.media-dropzone-icon svg { width: 20px; height: 20px; }
.media-dropzone strong { font-family: var(--font-display); font-size: var(--t-body-sm); font-weight: 620; }
.media-dropzone small { font-size: var(--t-micro); color: var(--muted); line-height: 1.4; }
.media-gallery-preview {
  display: grid;
  grid-template-columns: 92px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  padding: 10px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid rgba(255, 255, 255, 0.9);
  outline: 1px solid rgba(15, 23, 42, 0.06);
}
#media-gallery-thumb {
  width: 92px;
  height: 92px;
  object-fit: cover;
  border-radius: 13px;
  background: #f1f2f6;
}
.media-gallery-meta { display: grid; gap: 3px; min-width: 0; }
.media-gallery-meta strong {
  font-size: var(--t-ui);
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.media-gallery-meta small { font-size: var(--t-micro); color: var(--muted); font-variant-numeric: tabular-nums; }
.media-gallery-actions { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.media-gallery-actions .text-button { min-height: 30px; padding: 0 11px; font-size: var(--t-micro); }

/* Forward Message Modal (#forward-dialog) */
.forward-dialog { width: min(460px, calc(100vw - 24px)); border-radius: 28px; }
.forward-body {
  padding: 14px 18px 18px;
  display: grid;
  grid-template-rows: auto auto minmax(180px, 1fr) auto auto;
  gap: 10px;
  min-height: 0;
  overflow: hidden;
}
.forward-preview {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.68);
  border: 1px solid rgba(255, 255, 255, 0.88);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  font-size: var(--t-sub);
  color: var(--text-secondary);
}
.forward-preview img { width: 42px; height: 42px; border-radius: 10px; object-fit: cover; flex-shrink: 0; }
.forward-preview-copy {
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  line-height: 1.4;
}
.forward-search-wrap input { min-height: 38px; padding: 6px 14px 6px 36px; border-radius: var(--r-pill); }
.forward-list {
  overflow-y: auto;
  display: grid;
  gap: 4px;
  align-content: start;
  max-height: 290px;
  padding-right: 2px;
}
.forward-row {
  display: grid;
  grid-template-columns: 20px 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.42);
  text-align: left;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.forward-row:hover:enabled { background: rgba(255, 255, 255, 0.78); border-color: rgba(255, 255, 255, 0.9); }
.forward-row[aria-selected="true"] {
  background: rgba(255, 255, 255, 0.92);
  border-color: rgba(20, 20, 23, 0.24);
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.14);
}
.forward-row:disabled { opacity: 0.52; cursor: not-allowed; }
.forward-check {
  width: 18px;
  height: 18px;
  border-radius: 50%;
  border: 1.5px solid rgba(20, 20, 23, 0.28);
  display: grid;
  place-items: center;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
}
.forward-row[aria-selected="true"] .forward-check {
  background: #141417;
  border-color: #141417;
}
.forward-row .avatar { width: 34px; height: 34px; font-size: var(--t-micro); }
.forward-row-copy { min-width: 0; display: grid; gap: 1px; }
.forward-row-copy strong {
  font-size: var(--t-ui);
  font-weight: 600;
  color: var(--ink);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forward-row-copy small {
  font-size: var(--t-micro);
  color: var(--muted);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.forward-row-tag {
  padding: 2px 8px;
  border-radius: var(--r-pill);
  background: rgba(15, 23, 42, 0.055);
  font-size: 0.65625rem;
  font-weight: 560;
  color: var(--muted);
  white-space: nowrap;
}
.forward-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding-top: 8px;
  border-top: 1px solid var(--line);
}
.forward-count { font-size: var(--t-meta); font-weight: 580; color: var(--text-secondary); font-variant-numeric: tabular-nums; }


/* ══════════════════════════════════════════════════════════════════════════
   17. SHOPEE DASHBOARD DIGITALKANAJA — FULL STRUCTURAL & UX UNIFICATION
   1:1 Parity with digitalkanaja-shopee-Gemini (App.tsx, InboxView.tsx,
   StoresView.tsx, AgentView.tsx, LoginGate.tsx, AnimatedSearchBar.tsx,
   CommandPalette.tsx, LiquidGlassNavBar.tsx) + WhatsApp QR Manager
   ══════════════════════════════════════════════════════════════════════════ */

@keyframes pingEmerald {
  0% {
    transform: scale(1);
    opacity: 0.65;
  }
  70% {
    transform: scale(2.1);
    opacity: 0;
  }
  100% {
    transform: scale(2.1);
    opacity: 0;
  }
}

@keyframes spinQr {
  to { transform: rotate(360deg); }
}

.no-scrollbar::-webkit-scrollbar { display: none; }
.no-scrollbar { -ms-overflow-style: none; scrollbar-width: none; }

.liquid-glass-pill {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.5) 0%, rgba(255, 255, 255, 0.28) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.82);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow:
    0 6px 18px -10px rgba(15, 23, 42, 0.1),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.95),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.36);
}

.liquid-glass-button {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.66) 0%, rgba(255, 255, 255, 0.4) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.88);
  outline: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow:
    0 6px 18px -8px rgba(15, 23, 42, 0.14),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 1),
    inset 0 -1px 0.5px rgba(15, 23, 42, 0.04);
}

.liquid-glass-lens {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.84) 0%, rgba(255, 255, 255, 0.52) 100%);
  border: 1px solid rgba(255, 255, 255, 0.92);
  box-shadow:
    0 6px 18px -5px rgba(15, 20, 38, 0.14),
    0 1px 2px rgba(15, 20, 38, 0.05),
    inset 0 1.5px 1px rgba(255, 255, 255, 1);
}

.hero-obsidian {
  background: radial-gradient(125% 105% at 14% 0%, rgba(56, 58, 72, 0.94) 0%, rgba(22, 23, 30, 0.94) 55%, rgba(13, 14, 19, 0.97) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: #ffffff;
  box-shadow:
    0 20px 46px -18px rgba(10, 12, 24, 0.58),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.28),
    inset 0 -1px 0.5px rgba(255, 255, 255, 0.06);
}

/* ─── A. LOGIN GATE (LoginGate.tsx 1:1 — zero black logo frame) ─── */
.login {
  min-height: 100dvh;
  padding: 20px 16px;
  background: #f5f6f8 !important;
}
.login-card {
  width: min(400px, 100%);
  padding: 28px;
  border-radius: 24px;
  background: #ffffff !important;
  border: 1px solid rgba(0, 0, 0, 0.08) !important;
  outline: none !important;
  box-shadow: 0 20px 50px -20px rgba(15, 23, 42, 0.16) !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  gap: 20px;
}
.login-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  gap: 4px;
}
.login-brand-logo {
  height: 76px;
  width: auto;
  max-width: 180px;
  object-fit: contain;
  display: block;
  margin-bottom: 4px;
  background: transparent;
  border: 0;
  box-shadow: none;
}
.login-hero h1 {
  font-size: 1.125rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111114;
  margin: 2px 0 0;
}
.login-hero p {
  font-size: 0.75rem;
  color: #71717a;
  margin: 0;
}
.login-form {
  display: grid;
  gap: 14px;
}
.login-field-label {
  display: grid;
  gap: 5px;
  font-size: 0.71875rem;
  font-weight: 600;
  color: #3f3f46;
}
.login-optional {
  font-weight: 400;
  color: #8e8e9c;
}
.login-input-shell {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 14px;
  min-height: 44px;
  border-radius: 16px;
  border: 1px solid rgba(0, 0, 0, 0.09);
  background: #f7f7f9;
  transition: border-color 150ms ease, background-color 150ms ease, box-shadow 150ms ease;
}
.login-input-shell:focus-within {
  background: #ffffff;
  border-color: #141417;
  box-shadow: none;
}
.login-field-icon { color: #8e8e9c; display: inline-flex; flex-shrink: 0; }
.login-field-icon svg { width: 16px; height: 16px; }
.login-input-shell input {
  flex: 1 1 auto;
  min-width: 0;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 42px;
  padding: 0;
  font-size: 0.84375rem;
  font-weight: 500;
  color: #111114;
}
.login-input-shell input::placeholder {
  font-weight: 400;
  color: #9a9aa8;
}
.login-eye-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 50%;
  background: transparent;
  color: #8e8e9c;
  padding: 0;
  flex-shrink: 0;
}
.login-eye-btn:hover { color: #111114; background: rgba(15, 23, 42, 0.05); }
.login-eye-btn svg { width: 16px; height: 16px; }
.login-error-box[hidden],
.login-error-box:empty {
  display: none !important;
}
.login-error-box {
  border-radius: 12px;
  border: 1px solid #fecdd3;
  background: #fff1f2;
  padding: 9px 12px;
  font-size: 0.75rem !important;
  font-weight: 500;
  color: #be123c;
  text-align: left;
}
.login-submit-btn {
  margin-top: 2px;
  border-radius: 16px;
  min-height: 46px;
  font-size: 0.84375rem;
  font-weight: 600;
  background: #141417 !important;
  color: #ffffff !important;
  border: 0 !important;
}
.login-submit-btn:hover:not(:disabled) {
  background: #27272a !important;
}
.login-footnote {
  margin: 2px 0 0;
  text-align: center;
  font-size: 0.6875rem;
  line-height: 1.5;
  color: #8e8e9c;
}

/* ─── B. DESKTOP SIDEBAR + MAIN LIQUID GLASS CANVAS SHEET (App.tsx 1:1) ─── */
.workspace,
.live-workspace {
  display: flex;
  flex-direction: row;
  width: 100%;
  height: 100dvh;
  overflow: hidden;
  background: transparent;
}

/* Desktop Sidebar (252px, >= 1024px) */
.desk-sidebar {
  display: flex;
  flex-direction: column;
  width: 252px;
  flex-shrink: 0;
  padding: 20px 16px 18px;
  background: transparent;
  z-index: 20;
  min-height: 0;
}
.workspace:not(.live-workspace) .desk-sidebar {
  display: none;
}

.sidebar-brand-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 0 4px;
}
.sidebar-brand-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sidebar-logo-wrap {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
  flex-shrink: 0;
}
.sidebar-logo-wrap .brand-logo-img { width: 22px; height: 22px; }
.sidebar-brand-copy { display: grid; min-width: 0; }
.sidebar-brand-title {
  font-family: var(--font-display);
  font-size: 0.84375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #141417;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.sidebar-brand-sub {
  font-size: 0.65625rem;
  font-weight: 500;
  color: #71717a;
}

.sidebar-channels-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px 6px 4px 4px;
  border: 0;
  border-radius: 999px;
  background: #ffffff;
  color: #71717a;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06), 0 0 0 1px rgba(15, 23, 42, 0.06);
  transition: color 140ms ease, transform 140ms var(--ease-out);
}
.sidebar-channels-pill:hover { color: #141417; transform: translateY(-1px); }
.sidebar-channel-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 20px;
  height: 20px;
  padding: 0 5px;
  border-radius: 999px;
  background: #0d9488;
  color: #ffffff;
  font-size: 0.625rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sidebar-chevrons svg { width: 13px; height: 13px; }

/* Quick Command Trigger (Lompat cepat... Ctrl K) */
.sidebar-command-btn {
  margin-top: 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 40px;
  padding: 0 12px;
  border-radius: 16px;
  color: #666672;
  font-size: 0.75rem;
  font-weight: 500;
  transition: color 140ms ease, background-color 150ms ease, transform 130ms var(--ease-out);
}
.sidebar-command-btn:hover { color: #111114; background: rgba(255, 255, 255, 0.72); }
.sidebar-command-btn:active { transform: scale(0.98); }
.sidebar-command-lead { display: inline-flex; align-items: center; gap: 8px; }
.sidebar-command-lead svg { width: 15px; height: 15px; color: #7a7a86; }
.sidebar-command-btn kbd {
  padding: 2px 6px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(15, 23, 42, 0.07);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65625rem;
  font-weight: 560;
  color: #52525b;
}

/* Desktop Sidebar Navigation List (>= 1024px) */
@media (min-width: 1024px) {
  .desk-sidebar .workspace-nav {
    position: relative;
    margin: 14px 0 0;
    padding: 0;
    width: 100%;
    flex: 1 1 auto;
    max-height: none;
    align-items: stretch;
    justify-content: flex-start;
    gap: 3px;
    background: transparent !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    overflow-y: auto;
    overflow-x: visible;
  }
  .desk-sidebar .workspace-nav::before { display: none; }
  .desk-sidebar .workspace-nav-secondary {
    margin-top: 6px;
    padding-top: 8px;
    width: 100%;
    align-items: stretch;
    gap: 3px;
  }
  .desk-sidebar .workspace-nav-secondary::before {
    width: calc(100% - 16px);
    background: rgba(15, 23, 42, 0.065);
  }
  .desk-sidebar .workspace-nav button[data-view] {
    flex-direction: row;
    justify-content: flex-start;
    gap: 11px;
    width: 100%;
    min-height: 41px;
    padding: 8px 13px;
    border-radius: 16px;
    font-size: 0.84375rem;
    font-weight: 520;
    color: #71717e;
    text-align: left;
  }
  .desk-sidebar .workspace-nav button[data-view]:hover:not([aria-current="page"]) {
    color: #141417;
    background: rgba(255, 255, 255, 0.34);
  }
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"] {
    color: #111114;
    font-weight: 620;
  }
  .desk-sidebar .workspace-nav .nav-caption { display: none; }
  .desk-sidebar .workspace-nav .nav-label-desk {
    display: inline-block;
    flex: 1 1 auto;
    min-width: 0;
    line-height: 1.38;
    padding-block: 1px;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
  .desk-sidebar .workspace-nav button[data-view] [data-icon],
  .desk-sidebar .workspace-nav button[data-view] svg {
    width: 19px;
    height: 19px;
  }
  .desk-sidebar .nav-glass-lens,
  .desk-sidebar .nav-glass-refract-lens {
    border-radius: 16px;
  }
  .nav-count-badge {
    position: relative;
    z-index: 2;
    margin-left: auto;
    padding: 2px 8px;
    border-radius: 999px;
    background: #e4e4ea;
    color: #3f3f46;
    font-size: 0.6875rem;
    font-weight: 620;
    font-variant-numeric: tabular-nums;
  }
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"] .nav-count-badge {
    background: #111114;
    color: #ffffff;
  }
}

/* Sidebar Bottom Stack (WA QR CTA + Wallpaper + Live System Status) */
.sidebar-bottom-stack {
  margin-top: auto;
  padding-top: 12px;
  display: grid;
  gap: 8px;
}
.sidebar-utility-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: 40px;
  padding: 0 13px;
  border-radius: 16px;
  font-size: 0.78125rem;
  font-weight: 560;
  color: #3f3f46;
  transition: color 140ms ease, background-color 150ms ease, transform 130ms var(--ease-out);
}
.sidebar-utility-row:hover { color: #111114; background: rgba(255, 255, 255, 0.74); }
.sidebar-utility-row:active { transform: scale(0.98); }
.sidebar-utility-row.is-qr-cta {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.74) 0%, rgba(255, 255, 255, 0.5) 100%);
  color: #111114;
  font-weight: 610;
}
.sidebar-utility-lead {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-width: 0;
  white-space: nowrap;
  text-align: left;
}
.sidebar-utility-lead svg { width: 17px; height: 17px; color: #27272a; }
.sidebar-utility-meta {
  font-size: 0.65625rem;
  font-weight: 580;
  color: #7a7a88;
  white-space: nowrap;
}
.sidebar-utility-row.is-qr-cta .sidebar-utility-meta {
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.14);
  color: #065f46;
}

.sidebar-live-card {
  padding: 12px 13px;
  border-radius: 16px;
  display: grid;
  gap: 4px;
}
.sidebar-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.sidebar-live-head strong {
  font-size: 0.71875rem;
  font-weight: 650;
  color: #18181b;
}
.sidebar-live-card p {
  font-size: 0.6875rem;
  line-height: 1.45;
  color: #6e6e7c;
}
.live-ping-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 8px;
  height: 8px;
  flex-shrink: 0;
  overflow: visible;
}
.live-ping-ring {
  position: absolute;
  top: 0;
  left: 0;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #34d399;
  transform-origin: center center;
  will-change: transform, opacity;
  animation: pingEmerald 2.2s ease-out infinite;
  pointer-events: none;
}
.live-ping-dot {
  position: relative;
  display: block;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #10b981;
}
@media (prefers-reduced-motion: reduce) {
  .live-ping-ring {
    animation: none;
    opacity: 0;
  }
}

/* Main Liquid Glass Canvas Sheet */
.desk-canvas {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.desk-sheet {
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
}
@media (min-width: 1024px) {
  .live-workspace .desk-canvas {
    padding: 12px 12px 12px 0;
  }
  .live-workspace .desk-sheet {
    border-radius: 28px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.34) 0%, rgba(255, 255, 255, 0.18) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.78);
    box-shadow:
      0 16px 44px -22px rgba(15, 23, 42, 0.12),
      inset 0 1.5px 0.5px rgba(255, 255, 255, 0.92);
  }
}

/* ─── C. CALM 2026 TOPBAR: BREADCRUMB + ANIMATED SEARCH + CHANNEL SWITCHER ─── */
.topbar {
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 18px 10px;
  background: transparent;
  min-width: 0;
}
.topbar-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex-shrink: 1;
}
.topbar-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
  flex: 1 1 auto;
}

/* 2-Bar Minimal Mobile Menu Trigger */
.mobile-menu-btn {
  display: none;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  align-items: center;
  justify-content: center;
  color: #18181b;
  flex-shrink: 0;
}
.two-bars {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}
.two-bars i:first-child { display: block; width: 15px; height: 1.75px; border-radius: 99px; background: #18181b; }
.two-bars i:last-child { display: block; width: 10px; height: 1.75px; border-radius: 99px; background: #71717a; }

/* Breadcrumb Pill */
.topbar .breadcrumb-pill {
  height: 36px;
  padding: 0 13px;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}
.breadcrumb-home-btn {
  border: 0;
  padding: 0;
  background: transparent;
  color: #71717a;
  font-size: 0.75rem;
  font-weight: 520;
  transition: color 140ms ease;
}
.breadcrumb-home-btn:hover { color: #111114; }
.breadcrumb-sep {
  color: #b4b4c0;
  font-size: 0.875rem;
  font-weight: 600;
  line-height: 1;
}
.live-workspace .breadcrumb-demo-icon { display: none; }
.workspace:not(.live-workspace) .breadcrumb-home-btn,
.workspace:not(.live-workspace) .breadcrumb-sep { display: none; }
#breadcrumb-current {
  font-family: var(--font-display);
  font-size: 0.8125rem;
  font-weight: 640;
  letter-spacing: -0.02em;
  color: #111114;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Tactile Expandable Pill Search Bar (AnimatedSearchBar.tsx 1:1) */
.anim-search {
  position: relative;
  display: inline-flex;
  align-items: center;
  width: 36px;
  height: 36px;
  flex-shrink: 0;
  transition: width 280ms var(--ease-out);
}
.anim-search[data-open="true"] {
  width: min(244px, 44vw);
}
.anim-search-trigger {
  position: absolute;
  inset: 0;
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: #141417;
  color: #ffffff;
  display: grid;
  place-items: center;
  box-shadow: 0 8px 20px -6px rgba(20, 20, 23, 0.45), inset 0 1px 0.5px rgba(255, 255, 255, 0.25);
  transition: transform 160ms var(--ease-out), opacity 160ms ease, background-color 150ms ease;
}
.anim-search-trigger:hover { background: #23242a; transform: scale(1.04); }
.anim-search-trigger:active { transform: scale(0.93); }
.anim-search-trigger svg { width: 15px; height: 15px; stroke-width: 2; }
.anim-search[data-open="true"] .anim-search-trigger {
  opacity: 0;
  pointer-events: none;
  transform: scale(0.82);
}
.anim-search-field {
  display: flex;
  align-items: center;
  gap: 6px;
  width: 100%;
  height: 36px;
  padding: 0 8px 0 11px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(255, 255, 255, 0.94);
  outline: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 8px 22px -10px rgba(15, 23, 42, 0.16), inset 0 1px 0.5px #ffffff;
  opacity: 0;
  pointer-events: none;
  transform: scaleX(0.88);
  transform-origin: right center;
  transition: opacity 180ms ease, transform 240ms var(--ease-out);
}
.anim-search[data-open="true"] .anim-search-field {
  opacity: 1;
  pointer-events: auto;
  transform: scaleX(1);
}
.anim-search-lead svg { width: 14px; height: 14px; color: #141417; }
.anim-search-field input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 32px;
  height: 32px;
  padding: 0;
  font-size: 0.78125rem;
  font-weight: 500;
}
.anim-search-kbd {
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.06);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  color: #71717a;
}
.anim-search-clear {
  width: 22px;
  height: 22px;
  padding: 0;
  border: 0;
  border-radius: 50%;
  background: rgba(15, 23, 42, 0.06);
  color: #52525b;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}
.anim-search-clear:hover { background: #141417; color: #ffffff; }
.anim-search-clear svg { width: 12px; height: 12px; }

/* Segmented Multi-Channel Liquid Glass Switcher */
.header-channel-switcher {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 2px;
  max-width: min(470px, 44vw);
  height: 36px;
  padding: 3px;
  border-radius: 999px;
  overflow-x: auto;
  overflow-y: hidden;
  flex-shrink: 1;
}
.workspace:not(.live-workspace) .header-channel-switcher { display: none; }
.channel-seg-lens {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  pointer-events: none;
  opacity: 0;
  transition: transform 280ms var(--ease-out), width 260ms var(--ease-out), height 260ms var(--ease-out), opacity 150ms ease;
}
.ch-seg-btn {
  position: relative;
  z-index: 1;
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #71717a;
  font-size: 0.71875rem;
  font-weight: 540;
  white-space: nowrap;
  flex-shrink: 0;
  transition: color 150ms ease;
}
.ch-seg-btn:hover { color: #27272a; }
.ch-seg-btn[aria-pressed="true"] {
  color: #141417;
  font-weight: 630;
}
.ch-seg-label {
  max-width: 118px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ch-seg-count {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65625rem;
  opacity: 0.76;
}

/* Colored Channel Dots (Teal = WA Cloud, Emerald = WA QR, Sky = Telegram) */
.ch-dot {
  display: inline-block;
  width: 6.5px;
  height: 6.5px;
  border-radius: 50%;
  background: #14b8a6;
  flex-shrink: 0;
}
.ch-dot.is-wacloud { background: #14b8a6; }
.ch-dot.is-waqr { background: #10b981; box-shadow: 0 0 0 2px rgba(16, 185, 129, 0.18); }
.ch-dot.is-telegram { background: #0ea5e9; }

/* Topbar Right Action Capsule */
.topbar .profile {
  height: 36px;
  padding: 3px;
  gap: 3px;
  flex-shrink: 0;
}
.topbar .profile .icon-button { width: 30px; height: 30px; }
.header-qr-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.71875rem;
  font-weight: 610;
  color: #141417;
}
.header-qr-pill svg { width: 14px; height: 14px; }
.header-qr-pill:hover { background: #ffffff; }
.workspace:not(.live-workspace) .header-qr-pill { display: none; }

/* ─── D. UNIFIED SINGLE-SURFACE 2-PANE SPLIT INBOX (InboxView.tsx 1:1) ─── */
.live-workspace .layout {
  grid-column: 1;
  grid-row: 2;
  display: grid;
  grid-template-columns: 376px minmax(0, 1fr);
  gap: 0;
  margin: 0 18px 16px;
  padding: 0;
  min-height: 0;
  border-radius: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.56) 0%, rgba(255, 255, 255, 0.36) 100%);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.84);
  outline: 1px solid rgba(15, 23, 42, 0.065);
  box-shadow:
    0 14px 36px -18px rgba(15, 23, 42, 0.16),
    inset 0 1.5px 0.5px rgba(255, 255, 255, 0.96);
  overflow: hidden;
}
.live-workspace .layout:has(#contact-panel:not([hidden])) {
  grid-template-columns: 332px minmax(0, 1fr) 292px;
}

.live-workspace .inbox {
  border-radius: 0;
  border: 0;
  border-right: 1px solid rgba(15, 23, 42, 0.065);
  outline: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.44);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.live-workspace .thread {
  border-radius: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: rgba(245, 246, 248, 0.82);
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
}
.live-workspace .contact-panel {
  border-radius: 0;
  border: 0;
  border-left: 1px solid rgba(15, 23, 42, 0.065);
  outline: 0;
  box-shadow: none;
  background: rgba(255, 255, 255, 0.78);
}

/* Inbox Left Pane Header + Segmented Quick Filter Pills */
.live-workspace .list-header {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 13px 12px 10px;
  background: rgba(255, 255, 255, 0.72);
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
}
.live-workspace .mobile-channel { display: none; }

.quick-filter-pills {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: rgba(241, 243, 247, 0.92);
  border: 1px solid rgba(15, 23, 42, 0.055);
  overflow-x: auto;
}
.workspace:not(.live-workspace) .quick-filter-pills { display: none; }
.quick-filter-lens {
  position: absolute;
  top: 0;
  left: 0;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12);
  pointer-events: none;
  opacity: 0;
  transition: transform 250ms var(--ease-out), width 240ms var(--ease-out), height 240ms var(--ease-out), opacity 140ms ease;
}
.qf-btn {
  position: relative;
  z-index: 1;
  flex: 1 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  min-height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #71717a;
  font-size: 0.6875rem;
  font-weight: 550;
  white-space: nowrap;
  transition: color 140ms ease;
}
.qf-btn:hover { color: #18181b; }
.qf-btn[aria-pressed="true"] {
  color: #111114;
  font-weight: 640;
}
.qf-btn small {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  color: #71717a;
}
.qf-btn[aria-pressed="true"] small { color: #111114; }
.qf-btn small:empty { display: none; }

.list-subtoolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
}
.list-subtoolbar .list-toolbar {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  margin-left: auto;
}

/* Elevated White Thread Cards on Soft #F3F4F7 Canvas (InboxView.tsx lines 1316-1492) */
.live-workspace .conversation-list {
  padding: 8px 9px 14px;
  gap: 6px;
  background: rgba(243, 244, 247, 0.82);
}
.live-workspace .conv-active-pill { display: none; }
.live-workspace .conversation {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 10px 12px;
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.055);
  box-shadow: 0 1px 4px -2px rgba(15, 23, 42, 0.08);
  transition: border-color 140ms ease, box-shadow 150ms ease, transform 130ms var(--ease-out);
}
.live-workspace .conversation:hover {
  background: #ffffff;
  border-color: rgba(15, 23, 42, 0.14);
}
.live-workspace .conversation[aria-current="true"] {
  background: #ffffff;
  border-color: rgba(20, 20, 23, 0.24);
  box-shadow: 0 0 0 1px rgba(20, 20, 23, 0.1), 0 6px 16px -6px rgba(15, 23, 42, 0.18);
}

.conv-avatar-wrap {
  position: relative;
  display: inline-flex;
  margin-top: 1px;
}
.conv-unreplied-dot {
  position: absolute;
  top: -1px;
  right: -1px;
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #f43f5e;
  box-shadow: 0 0 0 2px #ffffff;
}
.conv-unreplied-dot.is-failed { background: #dc2626; }

.conv-row-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
}
.conv-row-top strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.8125rem;
  font-weight: 620;
  color: #111114;
}
.live-workspace .row-end {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  flex-shrink: 0;
}
.conv-time {
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  color: #8e8e9c;
  font-variant-numeric: tabular-nums;
}
.conv-row-top .queue-waiting {
  padding: 1.5px 6px;
  border-radius: 999px;
  background: #fff1f2;
  border: 1px solid rgba(254, 205, 211, 0.9);
  color: #e11d48;
  font-size: 0.59375rem;
  font-weight: 640;
}

.conv-snippet-row {
  display: flex;
  align-items: center;
  gap: 4px;
  min-width: 0;
  margin-top: 2px;
}
.conv-out-tick {
  display: inline-flex;
  color: #8e8e9c;
  flex-shrink: 0;
}
.conv-out-tick.is-read { color: #0ea5e9; }
.conv-out-tick svg { width: 13px; height: 13px; }
.conv-snippet-row .snippet {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 0.71875rem;
  color: #52525b;
}

.live-workspace .conversation-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  margin-top: 4px;
}
.conv-meta-left {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  overflow: hidden;
}
.conv-meta-left .row-meta {
  font-size: 0.65625rem;
  font-weight: 540;
  color: #52525b;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-ai-tag {
  font-size: 0.625rem;
  font-weight: 600;
  color: #b45309;
  flex-shrink: 0;
}

/* Conversation Right Pane Header (InboxView.tsx lines 1524-1625) */
.live-workspace .thread-header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 16px;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  backdrop-filter:none;
}
.thread-header .contact {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.contact-title-row {
  display: flex;
  align-items: center;
  gap: 7px;
  min-width: 0;
}
.contact-title-row h2 {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-meta-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  min-width: 0;
}
.thread-channel-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 1.5px 8px;
  border-radius: 999px;
  background: #f4f5f8;
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.65625rem;
  font-weight: 600;
  color: #3f3f46;
}
.thread-channel-pill.is-waqr .ch-dot { background: #10b981; }
.thread-channel-pill.is-telegram .ch-dot { background: #0ea5e9; }
.thread-channel-pill.is-wacloud .ch-dot { background: #14b8a6; }
.thread-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.live-workspace .thread-footer {
  background: rgba(255, 255, 255, 0.9);
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}

/* ─── E. RESOURCE PAGES: RINGKASAN HERO, NOMOR & AKUN (StoresView), WA QR ─── */
.live-workspace .resource-page {
  grid-column: 1;
  grid-row: 2;
  margin: 0;
  padding: 8px 22px 44px;
  border-radius: 0;
  border: 0;
  outline: 0;
  box-shadow: none;
  background: transparent;
  backdrop-filter:none;
  -webkit-backdrop-filter:none;
  overflow-y: auto;
}

/* Ringkasan .hero-obsidian Banner */
.overview-hero {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 22px 24px;
  margin-bottom: 16px;
  border-radius: 24px;
}
.overview-hero-copy { display: grid; gap: 4px; }
.overview-hero-kicker {
  font-size: 0.65625rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  color: #5eead4;
}
.overview-hero-copy h2 {
  color: #ffffff;
  font-size: 1.25rem;
  font-weight: 680;
  letter-spacing: -0.022em;
}
.overview-hero-copy p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.8125rem;
}
.overview-hero-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}
.overview-hero-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 0 15px;
  border-radius: 999px;
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 620;
  transition: transform 140ms var(--ease-out), background-color 150ms ease;
}
.overview-hero-btn svg { width: 15px; height: 15px; }
.overview-hero-btn.is-light {
  border: 0;
  background: #ffffff;
  color: #141417;
}
.overview-hero-btn.is-light:hover { background: #f4f4f6; transform: translateY(-1px); }
.overview-hero-btn.is-glass {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}
.overview-hero-btn.is-glass:hover { background: rgba(255, 255, 255, 0.2); transform: translateY(-1px); }

/* StoresView-style Integration Summary Card */
.integration-summary-card {
  padding: 18px 20px;
  margin-bottom: 18px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.56) 100%);
  border: 1px solid rgba(255, 255, 255, 0.86);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.14), inset 0 1.5px 0.5px #ffffff;
}
.integration-summary-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
}
.integration-summary-head h2 {
  font-size: 0.9375rem;
  font-weight: 650;
  color: #111114;
}
.integration-summary-head p {
  font-size: 0.75rem;
  color: #71717a;
}
.integration-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
.integration-tile {
  display: grid;
  gap: 2px;
  padding: 12px 14px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid rgba(15, 23, 42, 0.06);
}
.integration-kicker {
  font-size: 0.65625rem;
  font-weight: 600;
  color: #71717a;
}
.integration-tile strong {
  font-size: 0.84375rem;
  font-weight: 660;
  color: #111114;
}
.integration-tile small {
  font-size: 0.6875rem;
  color: #8e8e9c;
}

/* Dedicated WhatsApp Unofficial QR Section (Nomor & Akun) */
.waqr-section {
  padding: 18px 20px;
  margin-bottom: 20px;
  border-radius: 22px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.8) 0%, rgba(255, 255, 255, 0.58) 100%);
  border: 1px solid rgba(255, 255, 255, 0.88);
  outline: 1px solid rgba(15, 23, 42, 0.06);
  box-shadow: 0 12px 28px -18px rgba(15, 23, 42, 0.14), inset 0 1.5px 0.5px #ffffff;
}
.waqr-section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}
.waqr-title-row {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 3px;
}
.waqr-title-row h2 {
  font-size: 0.9375rem !important;
  font-weight: 660 !important;
  letter-spacing: -0.016em !important;
  text-transform: none !important;
  color: #111114 !important;
}
.waqr-lib-pill {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(16, 185, 129, 0.12);
  border: 1px solid rgba(16, 185, 129, 0.3);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.65625rem;
  font-weight: 600;
  color: #065f46;
}
.waqr-sessions-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr));
  gap: 10px;
}
.waqr-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 15px;
  border-radius: 18px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.07);
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.08);
}
.waqr-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.waqr-card-lead {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.waqr-card-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  flex-shrink: 0;
}
.waqr-card-icon svg { width: 19px; height: 19px; }
.waqr-card-copy { display: grid; gap: 1px; min-width: 0; }
.waqr-card-copy strong {
  font-size: 0.84375rem;
  font-weight: 630;
  color: #111114;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.waqr-card-copy small {
  font-size: 0.71875rem;
  color: #71717a;
  font-variant-numeric: tabular-nums;
}
.waqr-card-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.055);
}
.waqr-card-actions .text-button {
  min-height: 32px;
  padding: 0 11px;
  font-size: 0.71875rem;
}
.waqr-empty-hint {
  padding: 18px;
  border-radius: 16px;
  border: 1px dashed rgba(15, 23, 42, 0.14);
  background: rgba(255, 255, 255, 0.6);
  text-align: center;
  font-size: 0.78125rem;
  color: #6e6e7c;
}

.telegram-account-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
}
.telegram-tile {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: rgba(14, 165, 233, 0.12);
  color: #0369a1;
}
.telegram-tile svg { width: 20px; height: 20px; }

/* ─── F. COMMAND PALETTE DIALOG (CommandPalette.tsx 1:1) ─── */
.command-palette-dialog {
  width: min(540px, calc(100vw - 24px));
  max-height: min(76dvh, 520px);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.94);
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}
.command-palette-dialog[open] {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.cmd-search-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px 16px;
  border-bottom: 1px solid rgba(15, 23, 42, 0.065);
}
.cmd-search-icon svg { width: 17px; height: 17px; color: #71717a; }
.cmd-search-bar input {
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  min-height: 32px;
  padding: 0;
  font-size: 0.875rem;
  font-weight: 500;
}
.cmd-esc-badge {
  padding: 2px 7px;
  border-radius: 6px;
  background: #f4f4f6;
  border: 1px solid rgba(15, 23, 42, 0.08);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
  font-weight: 600;
  color: #71717a;
}
.cmd-results {
  padding: 8px;
  overflow-y: auto;
  display: grid;
  gap: 2px;
  align-content: start;
}
.cmd-group-title {
  padding: 8px 10px 4px;
  font-size: 0.65625rem;
  font-weight: 680;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #8e8e9c;
}
.cmd-item {
  display: flex;
  align-items: center;
  gap: 11px;
  width: 100%;
  padding: 9px 11px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  text-align: left;
  transition: background-color 120ms ease;
}
.cmd-item.is-active,
.cmd-item:hover {
  background: #141417;
  color: #ffffff;
}
.cmd-item-icon {
  display: grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border-radius: 10px;
  background: #f4f5f8;
  color: #27272a;
  flex-shrink: 0;
}
.cmd-item.is-active .cmd-item-icon,
.cmd-item:hover .cmd-item-icon {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}
.cmd-item-icon svg { width: 16px; height: 16px; }
.cmd-item-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.cmd-item-copy strong {
  font-size: 0.8125rem;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmd-item-copy small {
  font-size: 0.6875rem;
  color: #71717a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.cmd-item.is-active .cmd-item-copy small,
.cmd-item:hover .cmd-item-copy small { color: rgba(255, 255, 255, 0.72); }
.cmd-item-badge {
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.06);
  font-size: 0.625rem;
  font-weight: 600;
  color: #52525b;
  flex-shrink: 0;
}
.cmd-item.is-active .cmd-item-badge,
.cmd-item:hover .cmd-item-badge {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}
.cmd-empty {
  padding: 28px 16px;
  text-align: center;
  font-size: 0.78125rem;
  color: #71717a;
}
.cmd-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 16px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
  background: rgba(247, 247, 249, 0.85);
  font-size: 0.6875rem;
  color: #71717a;
}
.cmd-footer kbd {
  padding: 1px 5px;
  border-radius: 4px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.1);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: 0.625rem;
}

/* ─── G. WHATSAPP QR PAIRING MODAL (#wa-qr-dialog) ─── */
.waqr-dialog {
  width: min(620px, calc(100vw - 24px));
  border-radius: 28px;
}
.waqr-dialog-body {
  padding: 16px 20px 20px;
  overflow-y: auto;
  display: grid;
  gap: 16px;
  align-content: start;
}
.waqr-create-form label {
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  font-weight: 620;
  color: #3f3f46;
}
.waqr-opt { font-weight: 450; color: #8e8e9c; }
.waqr-create-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}
.waqr-create-row input {
  flex: 1 1 200px;
  min-height: 40px;
}
.waqr-create-row .primary { min-height: 40px; padding: 0 16px; }

.waqr-stage {
  display: grid;
  grid-template-columns: 264px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
  padding: 16px;
  border-radius: 22px;
  background: #f5f6f8;
  border: 1px solid rgba(15, 23, 42, 0.07);
}
.waqr-qr-box {
  display: grid;
  place-items: center;
  width: 264px;
  height: 264px;
  padding: 8px;
  border-radius: 20px;
  background: #ffffff;
  border: 1px solid rgba(15, 23, 42, 0.08);
  box-shadow: 0 10px 26px -14px rgba(15, 23, 42, 0.18);
}
#wa-qr-image {
  width: 244px;
  height: 244px;
  object-fit: contain;
  border-radius: 12px;
}
.waqr-spinner-box {
  display: grid;
  justify-items: center;
  gap: 8px;
  padding: 16px;
  text-align: center;
}
.waqr-spinner {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  border: 3px solid rgba(20, 20, 23, 0.12);
  border-top-color: #141417;
  animation: spinQr 0.8s linear infinite;
}
.waqr-spinner.is-connected {
  width: 44px;
  height: 44px;
  border: 0;
  background: #ecfdf5;
  color: #059669;
  font-size: 1.25rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(16, 185, 129, 0.28);
  animation: none !important;
}
.waqr-spinner.is-error {
  width: 44px;
  height: 44px;
  border: 0;
  background: #fef2f2;
  color: #dc2626;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: inset 0 0 0 1.5px rgba(239, 68, 68, 0.28);
  animation: none !important;
}
.waqr-spinner-box strong { font-size: 0.8125rem; color: #111114; }
.waqr-spinner-box small { font-size: 0.71875rem; color: #71717a; line-height: 1.4; }
.waqr-steps { display: grid; gap: 8px; min-width: 0; }
.waqr-active-label {
  justify-self: start;
  padding: 2px 9px;
  border-radius: 999px;
  background: #141417;
  color: #ffffff;
  font-size: 0.65625rem;
  font-weight: 620;
}
.waqr-steps h3 { font-size: 0.875rem; font-weight: 650; color: #111114; }
.waqr-steps ol {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 6px;
  font-size: 0.75rem;
  line-height: 1.48;
  color: #3f3f46;
}
.waqr-modal-list-wrap { display: grid; gap: 8px; }
.waqr-modal-list-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.waqr-modal-list-head strong { font-size: 0.78125rem; font-weight: 640; color: #111114; }
.waqr-modal-list-head .text-button { min-height: 30px; padding: 0 11px; font-size: 0.71875rem; }
.waqr-modal-sessions { display: grid; gap: 8px; }

/* ─── H. FLOATING CRISP TOAST (App.tsx lines 2715-2736) ─── */
.workspace-toast {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 90;
  display: flex;
  align-items: center;
  gap: 9px;
  max-width: min(400px, calc(100vw - 32px));
  padding: 11px 16px;
  border-radius: 16px;
  background: rgba(20, 21, 27, 0.9);
  border: 1px solid rgba(255, 255, 255, 0.15);
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 540;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  box-shadow: 0 16px 40px -10px rgba(10, 12, 24, 0.48), inset 0 1px 0 rgba(255, 255, 255, 0.2);
}
.workspace-toast[data-tone="warn"] {
  background: rgba(254, 243, 199, 0.94);
  border-color: rgba(252, 211, 77, 0.7);
  color: #78350f;
}
.workspace-toast-icon {
  display: grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: rgba(16, 185, 129, 0.22);
  color: #34d399;
  font-size: 0.6875rem;
  font-weight: 800;
  flex-shrink: 0;
}
.workspace-toast[data-tone="warn"] .workspace-toast-icon {
  background: rgba(217, 119, 6, 0.18);
  color: #b45309;
}

/* ─── I. MOBILE & TABLET (< 1024px) — FLOATING BOTTOM DOCK + BOTTOM SHEET ─── */
@media (max-width: 1023px) {
  .desk-sidebar {
    display: contents;
  }
  .sidebar-brand-row,
  .sidebar-command-btn,
  .sidebar-bottom-stack,
  .nav-label-desk,
  .nav-count-badge.is-subtle {
    display: none !important;
  }
  .mobile-menu-btn {
    display: inline-flex;
  }
  .live-workspace .layout {
    margin: 0 10px 84px;
    border-radius: 22px;
  }
  .live-workspace .resource-page {
    padding: 8px 14px 104px;
  }
  .integration-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  /* Tablet & Mobile Floating Bottom Liquid Glass Bar (centered without transform) */
  .desk-sidebar .workspace-nav {
    position: fixed;
    left: 0;
    right: 0;
    bottom: max(12px, env(safe-area-inset-bottom));
    top: auto;
    margin-inline: auto;
    width: min(560px, calc(100vw - 24px));
    height: 60px;
    max-height: none;
    padding: 5px;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    gap: 2px;
    border-radius: 999px;
    z-index: 35;
  }
  .desk-sidebar .workspace-nav-secondary {
    display: contents;
  }
  .desk-sidebar .workspace-nav-secondary::before { display: none; }
  .desk-sidebar .workspace-nav button[data-view],
  .desk-sidebar .workspace-nav .mobile-nav-more {
    flex: 1 1 0;
    width: auto;
    height: 50px;
    min-height: 50px;
    padding: 4px 2px;
    border-radius: 999px;
  }
  .desk-sidebar .nav-glass-lens,
  .desk-sidebar .nav-glass-refract-lens {
    border-radius: 999px;
  }
  #nav-inbox-badge {
    position: absolute;
    top: 4px;
    right: max(14%, 8px);
    min-width: 16px;
    height: 16px;
    padding: 0 4px;
    border-radius: 999px;
    background: #ee4d2d;
    color: #ffffff;
    font-size: 0.59375rem;
    font-weight: 700;
    display: inline-flex;
    align-items: center;
    justify-content: center;
    box-shadow: 0 0 0 2px #ffffff;
  }

  /* Mobile Bottom Sheet Menu (#more-navigation-dialog) */
  .mobile-sheet-dialog {
    margin: auto auto 0 auto;
    width: min(460px, 100vw);
    max-width: 100vw;
    border-radius: 26px 26px 0 0;
    background: #ffffff;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .mobile-sheet-dialog[open] {
    display: grid;
    grid-template-rows: auto auto minmax(0, 1fr);
  }
}

.mobile-sheet-handle {
  width: 40px;
  height: 4px;
  margin: 10px auto 2px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.15);
}
.mobile-sheet-header {
  padding: 10px 18px 12px;
  background: transparent;
}
.mobile-sheet-brand {
  display: flex;
  align-items: center;
  gap: 10px;
}
.mobile-sheet-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.sheet-nav-btn {
  display: flex;
  align-items: center;
  gap: 9px;
  min-height: 44px;
  padding: 0 13px;
  border: 0;
  border-radius: 16px;
  background: #f5f6f8 !important;
  color: #27272a;
  font-family: var(--font-display);
  font-size: 0.78125rem;
  font-weight: 560;
}
.sheet-nav-btn svg { width: 17px; height: 17px; }
.sheet-nav-btn[aria-current="page"] {
  background: #181920 !important;
  color: #ffffff !important;
  font-weight: 630;
}
.sheet-nav-btn.is-accent {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #065f46;
  font-weight: 620;
}
.mobile-sheet-utilities {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid rgba(15, 23, 42, 0.06);
}
.mobile-sheet-utilities .text-button {
  min-height: 42px;
  border-radius: 15px;
  justify-content: center;
  font-size: 0.75rem;
}

@media (max-width: 767px) {
  .topbar {
    flex-wrap: wrap;
    padding: 8px 12px 6px;
    gap: 6px;
  }
  .breadcrumb-home-btn,
  .breadcrumb-sep,
  .header-qr-label {
    display: none;
  }
  .header-channel-switcher {
    order: 3;
    width: 100%;
    max-width: 100%;
  }
  .anim-search[data-open="true"] {
    width: min(190px, 52vw);
  }
  .desk-sidebar .workspace-nav {
    width: min(368px, calc(100vw - 24px));
  }
  .desk-sidebar .workspace-nav button[data-view="templates"],
  .desk-sidebar .workspace-nav button[data-view="ai"],
  .desk-sidebar .workspace-nav-secondary {
    display: none !important;
  }
  .desk-sidebar .workspace-nav .mobile-nav-more {
    display: flex !important;
  }
  .live-workspace .layout {
    grid-template-columns: minmax(0, 1fr);
    margin: 0;
    border-radius: 0;
    border-inline: 0;
    border-bottom: 0;
  }
  .live-workspace .conversation-list {
    padding-bottom: 96px;
  }
  #resource-view #resource-link {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.88) 0%, rgba(255, 255, 255, 0.66) 100%);
    border: 1px solid rgba(255, 255, 255, 0.94);
    outline: 1px solid rgba(15, 23, 42, 0.08);
    color: #18181b;
    box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.14), inset 0 1px 0.5px #ffffff;
  }
  #resource-view #resource-link:hover {
    background: #ffffff;
    color: #111114;
  }

  .workspace.thread-open:has(#inbox-layout:not([hidden])) .topbar,
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .desk-sidebar .workspace-nav {
    display: none !important;
  }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .desk-sheet {
    grid-template-rows: minmax(0, 1fr);
  }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .layout {
    grid-row: 1;
    margin: 0;
  }
  .waqr-stage {
    grid-template-columns: minmax(0, 1fr);
    justify-items: center;
  }
  .integration-summary-grid {
    grid-template-columns: minmax(0, 1fr);
  }
  .workspace-toast {
    left: 14px;
    right: 14px;
    bottom: 84px;
  }
}


#resource-view #resource-link {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.86) 0%, rgba(255, 255, 255, 0.62) 100%);
  border: 1px solid rgba(255, 255, 255, 0.94);
  outline: 1px solid rgba(15, 23, 42, 0.08);
  color: #18181b;
  box-shadow: 0 6px 18px -10px rgba(15, 23, 42, 0.14), inset 0 1px 0.5px #ffffff;
}
#resource-view #resource-link:hover {
  background: #ffffff;
  color: #111114;
}

/* ══════════════════════════════════════════════════════════════════════════
   18. 1:1 SHOPEE DASHBOARD TYPOGRAPHY (GEIST + JETBRAINS MONO), PHOSPHOR
       OPTICS & ZERO-OVERLAP RESPONSIVE PRECISION (ALL VIEWPORTS)
   ══════════════════════════════════════════════════════════════════════════ */

html, body {
  font-family: var(--font-sans);
  letter-spacing: -0.011em;
  font-feature-settings: normal;
}

h1, h2, h3, h4,
.sidebar-brand-title,
#breadcrumb-current,
.list-title h1,
.thread-header .contact h2,
.resource-header h1,
.dialog-header h2 {
  font-family: var(--font-display);
  letter-spacing: -0.024em;
}

code, pre, kbd,
.anim-search-kbd,
.cmd-esc-badge,
.cmd-footer kbd,
.sidebar-command-btn kbd,
.conv-time,
.ch-seg-count,
.qf-btn small,
#list-count,
.unread-count,
.nav-count-badge,
#nav-inbox-badge,
.sidebar-channel-badge,
.waqr-lib-pill,
.bubble .message-stamp time,
#contact-channel,
.contact-card-phone,
.account-card-identity,
.waqr-card-copy small,
.quick-template-code {
  font-family: var(--font-mono);
  font-variant-numeric: tabular-nums;
}

/* Strictly hide collapsed <details> content so hidden children never occupy layout boxes */
details:not([open]) > :not(summary) {
  display: none !important;
}

/* Remove redundant second filter bar in Live Workspace (#quick-filter-pills handles all live states) */
.live-workspace #filter-menu {
  display: none !important;
}

.live-workspace .list-subtoolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  min-height: 26px;
  min-width: 0;
}
.live-workspace .list-subtoolbar .list-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-width: 0;
  margin-left: 0;
}
.live-workspace #pilot-status {
  margin: 0;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.6875rem;
  color: #71717a;
}
.live-workspace #sort-conversations {
  flex-shrink: 0;
  margin-left: auto;
}
.live-workspace #sort-order {
  min-height: 28px;
  padding: 0 26px 0 10px;
  font-size: 0.6875rem;
  font-weight: 560;
}

/* Self-sizing Active Segmented Pills (never desyncs or clips dynamic counts like 3126) */
#quick-filter-lens,
.channel-seg-lens {
  display: none !important;
}
.qf-btn {
  flex: 1 0 auto;
  gap: 5px;
  padding: 0 9px;
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.qf-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #111114;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.12), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}
.qf-btn small {
  display: inline-block;
  flex-shrink: 0;
  min-width: max-content;
  font-size: 0.625rem;
}

.ch-seg-btn {
  transition: background-color 150ms ease, color 150ms ease, box-shadow 150ms ease;
}
.ch-seg-btn[aria-pressed="true"] {
  background: #ffffff;
  color: #141417;
  box-shadow: 0 2px 8px -2px rgba(15, 23, 42, 0.14), inset 0 0 0 1px rgba(15, 23, 42, 0.06);
}

/* Topbar Search & Multi-Channel Switcher Containment */
.anim-search {
  overflow: hidden;
}
.anim-search[data-open="false"] .anim-search-field {
  display: none !important;
}
.header-channel-switcher {
  max-width: min(440px, 38vw);
  padding: 3px 4px;
  scroll-padding-inline: 10px;
  clip-path: inset(0 round 999px);
}
.ch-seg-label {
  max-width: 108px;
}

/* Wrap Channel Switcher cleanly onto Row 2 below 1200px while keeping Search + WA QR flush right on Row 1 */
@media (max-width: 1200px) {
  .topbar {
    flex-wrap: wrap;
    gap: 6px 8px;
    padding: 10px 14px 8px;
  }
  .topbar-left {
    order: 1;
    flex: 1 1 auto;
    min-width: 0;
  }
  .topbar-right {
    display: contents;
  }
  #global-search-wrap {
    order: 2;
    margin-left: auto;
  }
  .topbar .profile {
    order: 3;
  }
  .header-channel-switcher {
    order: 4;
    flex: 1 1 100%;
    width: 100%;
    max-width: 100%;
  }
}

/* Explicit Grid Column Track on .inbox, .thread & .active-thread (prevents min-content bleed between panes) */
.inbox,
.thread,
.active-thread {
  grid-template-columns: minmax(0, 1fr);
  min-width: 0;
  max-width: 100%;
}
.list-header,
.inbox-controls,
.quick-filter-pills,
.conversation-list,
.conversation,
.thread-header,
.thread-search,
.messages,
.thread-footer,
.ai-inline,
.reply {
  min-width: 0;
  max-width: 100%;
}
.messages {
  min-height: 0;
  overflow-y: auto;
  padding: 14px 16px 16px;
}
#contact-channel:empty {
  display: none;
}

/* Clean 2-Line Thread Header (1:1 Shopee Dashboard InboxView.tsx — storage detail lives in Detail Kontak drawer) */
.live-workspace #contact-storage-status {
  display: none !important;
}
.contact-title-row {
  flex-wrap: nowrap;
}
.contact-title-row h2 {
  flex: 0 1 auto;
  min-width: 0;
}
.contact-meta-row {
  flex-wrap: nowrap;
  overflow: hidden;
}
.thread-channel-pill {
  flex-shrink: 0;
  max-width: 190px;
}
#thread-channel-name {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Responsive 2-Pane Split Widths (matching Shopee Dashboard InboxView.tsx) */
.live-workspace .layout {
  grid-template-columns: 356px minmax(0, 1fr);
}
@media (max-width: 1279px) and (min-width: 768px) {
  /* Compact icon-only edit-contact button in narrower split view so contact name always has room */
  .live-workspace .thread-header #save-contact {
    width: 34px;
    height: 34px;
    min-width: 34px;
    min-height: 34px;
    padding: 0;
    border-radius: 50%;
    justify-content: center;
  }
  .live-workspace .thread-header #save-contact #save-contact-label,
  .live-workspace .thread-header #save-contact .contact-compact-label {
    display: none !important;
  }
  .live-workspace .thread-header .resolve {
    min-height: 34px;
    padding: 0 11px;
    font-size: 0.75rem;
  }
  .live-workspace .list-header {
    padding: 11px 9px 9px;
  }
  .quick-filter-pills {
    padding: 2px;
    gap: 1px;
  }
  .qf-btn {
    padding: 0 5px;
    gap: 2.5px;
    font-size: 0.625rem;
  }
  .qf-btn small {
    font-size: 0.575rem;
  }
}
@media (max-width: 1279px) and (min-width: 1024px) {
  .live-workspace .layout {
    grid-template-columns: 320px minmax(0, 1fr);
    margin: 0 12px 12px;
  }
}
@media (max-width: 1023px) and (min-width: 768px) {
  .live-workspace .layout {
    grid-template-columns: 296px minmax(0, 1fr);
  }
  .live-workspace .contact-panel {
    display: none !important;
  }
}

/* Compact, Zero-Overlap AI Inline Suggestion Card & Flexible 2-Row Composer */
.thread-footer {
  padding: 8px 14px 12px;
}
.reply-source {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  margin-bottom: 6px;
  font-size: 0.6875rem;
}
.ai-inline {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  padding: 9px 12px;
  margin-bottom: 8px;
  border-radius: 18px;
  max-height: 188px;
  overflow-y: auto;
}
.ai-inline-top {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px 8px;
  min-width: 0;
}
.ai-inline-header {
  padding: 2px 9px;
  font-size: 0.71875rem;
}
.ai-inline-header svg {
  width: 14px;
  height: 14px;
}
.ai-inline-actions {
  margin-left: auto;
  flex-shrink: 0;
}
#ai-inline-insert {
  min-height: 30px;
  padding: 0 12px;
  font-size: 0.75rem;
}
#ai-inline-preview {
  width: 100%;
  min-height: 46px;
  max-height: 78px;
  padding: 7px 10px;
  border-radius: 12px;
  font-size: 0.8125rem;
  line-height: 1.44;
}
#ai-inline-status {
  margin: 0;
  font-size: 0.6875rem;
  line-height: 1.35;
}
.ai-inline-usage {
  font-size: 0.6875rem;
}
.ai-inline-usage summary {
  min-height: 24px;
  font-size: 0.6875rem;
}
.ai-inline-usage details[open] > div {
  margin-top: 4px;
  padding: 6px 9px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 23, 42, 0.06);
  font-size: 0.6875rem;
  line-height: 1.4;
}

.reply {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 5px 4px;
  padding: 7px 9px;
  border-radius: 20px;
}
.reply textarea {
  order: -1;
  flex: 1 1 100%;
  width: 100%;
  min-width: 0;
  min-height: 34px;
  max-height: 132px;
  padding: 4px 6px;
  font-size: 0.84375rem;
}
.reply > .icon-button {
  width: 34px;
  height: 34px;
  min-width: 34px;
  min-height: 34px;
  flex: 0 0 auto;
}
.reply .ai-composer-btn {
  margin-left: auto;
  min-height: 34px;
  padding: 0 11px;
  font-size: 0.75rem;
  flex: 0 0 auto;
}
.reply #send {
  min-height: 34px;
  padding: 0 14px;
  font-size: 0.75rem;
  flex: 0 0 auto;
}
@media (max-width: 960px) {
  .reply .ai-composer-btn .ai-btn-label { display: none; }
  .reply .ai-composer-btn .ai-btn-compact { display: inline; }
}

/* 1:1 Shopee Dashboard Solid Obsidian Floating Bottom Navbar (< 1024px)
   + Dedicated Bottom Safe Clearance on .desk-canvas so ZERO content passes behind navbar */
@media (max-width: 1023px) {
  .live-workspace .desk-canvas {
    padding: 6px 10px calc(78px + env(safe-area-inset-bottom));
  }
  .live-workspace .desk-sheet {
    border-radius: 24px;
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.44) 0%, rgba(255, 255, 255, 0.24) 100%);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border: 1px solid rgba(255, 255, 255, 0.82);
  }
  .live-workspace .layout {
    margin: 0 8px 8px;
    border-radius: 20px;
  }
  .live-workspace .resource-page {
    padding: 8px 16px 28px;
  }

  .desk-sidebar .workspace-nav {
    bottom: max(11px, env(safe-area-inset-bottom));
    height: 58px;
    padding: 5px;
    gap: 3px;
    background: #181920 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    outline: 0 !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow: 0 14px 34px -8px rgba(10, 12, 24, 0.45) !important;
  }
  .desk-sidebar .workspace-nav::before,
  .desk-sidebar .nav-glass-pill,
  .desk-sidebar .nav-glass-refract {
    display: none !important;
  }
  .desk-sidebar .workspace-nav button[data-view],
  .desk-sidebar .workspace-nav .mobile-nav-more {
    height: 48px;
    min-height: 48px;
    padding: 4px 6px;
    gap: 3px;
    border-radius: 999px;
    background: transparent;
    color: rgba(255, 255, 255, 0.68) !important;
    transition: background-color 150ms ease, color 150ms ease, transform 130ms var(--ease-out);
  }
  .desk-sidebar .workspace-nav button[data-view]:hover:not([aria-current="page"]),
  .desk-sidebar .workspace-nav .mobile-nav-more:hover:not([data-active]) {
    color: #ffffff !important;
  }
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"],
  .desk-sidebar .workspace-nav .mobile-nav-more[data-active] {
    background: #ffffff !important;
    color: #141417 !important;
    font-weight: 650;
    box-shadow: 0 2px 10px -2px rgba(0, 0, 0, 0.28);
  }
  .desk-sidebar .workspace-nav button[data-view] [data-icon],
  .desk-sidebar .workspace-nav .mobile-nav-more [data-icon],
  .desk-sidebar .workspace-nav button[data-view] svg,
  .desk-sidebar .workspace-nav .mobile-nav-more svg {
    width: 20px;
    height: 20px;
    filter: none !important;
  }
  .desk-sidebar .workspace-nav .nav-caption {
    display: inline-block;
    min-width: 30px;
    text-align: center;
    font-size: 0.625rem;
    line-height: 1.1;
    letter-spacing: -0.01em;
  }
  #nav-inbox-badge {
    top: 3px;
    right: max(12%, 6px);
    background: #ee4d2d;
    color: #ffffff;
    box-shadow: 0 0 0 2px #181920;
  }
  .desk-sidebar .workspace-nav button[data-view="inbox"][aria-current="page"] #nav-inbox-badge {
    box-shadow: 0 0 0 2px #ffffff;
  }
}

@media (max-width: 767px) {
  .topbar {
    padding: 8px 12px 6px;
  }
  .live-workspace .desk-canvas {
    padding: 0 0 calc(76px + env(safe-area-inset-bottom));
  }
  .live-workspace .desk-sheet {
    border-radius: 0;
    border: 0;
  }
  .live-workspace .layout {
    grid-template-columns: minmax(0, 1fr) !important;
    margin: 0;
    border-radius: 0;
  }
  .live-workspace .conversation-list {
    padding-bottom: 14px;
  }
  .live-workspace .resource-page {
    padding: 8px 14px 24px;
  }
  .workspace.thread-open:has(#inbox-layout:not([hidden])) .desk-canvas {
    padding: 0 !important;
  }
  .reply #send {
    width: 38px;
    height: 38px;
    min-height: 38px;
    padding: 0;
    justify-content: center;
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   19. MOBILE-NATIVE PLATFORM LAYER, GPU FRAME BUDGET & EXECUTIVE MOBILE UI
   - Zero tap flash, zero 300ms click delay, zero iOS/Android input auto-zoom
   - Content-visibility offscreen skipping & GPU-light single-pass mobile cards
   - Calm architectural mobile header, 3-col KPI strip, 2x2 integration grid
   ══════════════════════════════════════════════════════════════════════════ */

html {
  -webkit-tap-highlight-color: transparent;
  -webkit-text-size-adjust: 100%;
  overscroll-behavior: none;
}

body {
  overscroll-behavior: none;
}

button,
a,
summary,
[role="button"],
select {
  touch-action: manipulation;
  user-select: none;
  -webkit-user-select: none;
  -webkit-touch-callout: none;
}

.quick-filter-pills,
.header-channel-switcher {
  touch-action: pan-x;
}

.conversation-list,
.messages,
.resource-page,
.more-navigation-list,
.cmd-results,
.waqr-dialog-body,
.thread-detail-body {
  overscroll-behavior: contain;
}

/* Skip layout & paint for off-screen rows in long lists */
.live-workspace .conversation,
.recent-row,
.contact-card {
  content-visibility: auto;
  contain-intrinsic-size: auto 74px;
}

.conv-scroll-sentinel {
  width: 100%;
  height: 1px;
  pointer-events: none;
}

/* Crisp tactile press feedback on touch without sticky hover */
@media (hover: none) {
  .live-workspace .conversation:hover {
    border-color: rgba(15, 23, 42, 0.055);
  }
  .live-workspace .conversation:active {
    transform: scale(0.986);
    background: #fafafc;
  }
  .overview-stat:active,
  .account-card:active,
  .sheet-nav-btn:active {
    transform: scale(0.98);
  }
}

/* ─── EXECUTIVE MOBILE EXPERIENCE (< 768px) ─── */
@media (max-width: 767px) {
  html, body {
    background-color: #f4f5f8;
    background-attachment: scroll !important;
  }

  /* 1. Unified Calm Architectural Topbar (replaces 4 crowded floating pills) */
  .live-workspace .topbar {
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
    padding: calc(8px + env(safe-area-inset-top, 0px)) 14px 9px;
    gap: 8px;
  }
  .live-workspace .mobile-menu-btn {
    width: 34px;
    height: 34px;
    background: #f4f5f8 !important;
    border: 1px solid rgba(15, 23, 42, 0.06) !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .live-workspace .mobile-menu-btn:active {
    transform: scale(0.93);
    background: #eceef3 !important;
  }
  .live-workspace .topbar .breadcrumb-pill {
    height: auto;
    padding: 0 2px;
    gap: 7px;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .live-workspace #breadcrumb-current {
    font-size: 1.0625rem;
    font-weight: 700;
    letter-spacing: -0.025em;
    color: #111114;
  }

  /* Calm Right Action Cluster: Soft Search + Crisp Obsidian QR Pill (Refresh/Logout live in Menu Sheet) */
  .live-workspace .anim-search {
    width: 34px;
    height: 34px;
  }
  .live-workspace .anim-search[data-open="true"] {
    width: min(204px, 54vw);
  }
  .live-workspace .anim-search-trigger {
    width: 34px;
    height: 34px;
    background: #f4f5f8;
    color: #18181b;
    border: 1px solid rgba(15, 23, 42, 0.065);
    box-shadow: none;
  }
  .live-workspace .anim-search-field {
    height: 34px;
    background: #f4f5f8;
    border: 1px solid rgba(20, 20, 23, 0.16);
    outline: 0;
    box-shadow: none;
  }
  .live-workspace .topbar .profile {
    height: auto;
    padding: 0;
    gap: 6px;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .live-workspace .topbar .profile #refresh,
  .live-workspace .topbar .profile #logout {
    display: none !important;
  }
  .live-workspace .header-qr-pill {
    height: 34px;
    padding: 0 11px;
    gap: 5px;
    border-radius: 999px;
    background: #141417 !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    outline: 0 !important;
    color: #ffffff !important;
    box-shadow: 0 4px 12px -4px rgba(15, 20, 32, 0.35) !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .live-workspace .header-qr-pill:active {
    transform: scale(0.95);
  }
  .live-workspace .header-qr-label {
    display: inline !important;
    font-size: 0.6875rem;
    font-weight: 640;
    letter-spacing: -0.01em;
  }
  /* Show compact "QR" instead of wide "WA QR" via clean font sizing */
  .live-workspace .header-channel-switcher {
    height: 32px;
    padding: 2px;
    background: #f1f2f6 !important;
    border: 1px solid rgba(15, 23, 42, 0.045) !important;
    outline: 0 !important;
    box-shadow: none !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .live-workspace .ch-seg-btn {
    height: 26px;
    padding: 0 10px;
    font-size: 0.6875rem;
  }

  /* 2. Single-Title Clean Inbox Header & GPU-Light Luxury Conversation Cards */
  .live-workspace .desk-sheet,
  .live-workspace .layout,
  .live-workspace .inbox,
  .live-workspace .thread {
    background: #f4f5f8 !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    box-shadow: none !important;
  }
  .live-workspace .list-title {
    display: none !important;
  }
  .live-workspace .list-header {
    padding: 9px 14px 9px;
    gap: 7px;
    background: #ffffff;
    border-bottom: 1px solid rgba(15, 23, 42, 0.055);
  }
  .live-workspace .inbox .search input {
    min-height: 38px;
    padding: 6px 34px 6px 36px;
    background: #f4f5f8;
    border: 1px solid rgba(15, 23, 42, 0.055);
    box-shadow: none;
  }
  .live-workspace .inbox .search input:focus {
    background: #ffffff;
    border-color: rgba(20, 20, 23, 0.25);
  }
  .live-workspace .quick-filter-pills {
    padding: 2.5px;
    background: #f1f2f6;
    border: 1px solid rgba(15, 23, 42, 0.045);
  }
  .live-workspace .qf-btn {
    min-height: 29px;
    padding: 0 7px;
    font-size: 0.6875rem;
  }
  .live-workspace #sort-order {
    min-height: 26px;
    padding: 0 24px 0 9px;
    font-size: 0.6875rem !important;
    background-color: #f4f5f8;
    border: 1px solid rgba(15, 23, 42, 0.06);
    outline: 0;
    box-shadow: none;
  }

  .live-workspace .conversation-list {
    padding: 10px 12px 16px;
    gap: 7px;
    background: #f4f5f8;
  }
  .live-workspace .conversation {
    grid-template-columns: 42px minmax(0, 1fr);
    gap: 11px;
    padding: 12px 13px;
    border-radius: 18px;
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.055);
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.035);
    transition: transform 110ms var(--ease-out), background-color 110ms ease;
  }
  .live-workspace .conversation .avatar {
    width: 42px;
    height: 42px;
    font-size: 0.8125rem;
    backdrop-filter:none;
  }
  .live-workspace .conv-row-top strong {
    font-size: 0.875rem;
    font-weight: 630;
    letter-spacing: -0.014em;
  }
  .live-workspace .conv-snippet-row .snippet {
    font-size: 0.78125rem;
    color: #52525e;
  }

  /* 3. Executive Mobile Active Thread & Lightweight Native Composer */
  .live-workspace .thread-header {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 9px;
    gap: 9px;
    background: rgba(255, 255, 255, 0.95);
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    border-bottom: 1px solid rgba(15, 23, 42, 0.06);
  }
  .live-workspace .thread-header :is(#back, #save-contact, #thread-details) {
    width: 36px;
    height: 36px;
    min-width: 36px;
    min-height: 36px;
    background: #f4f5f8;
    border: 1px solid rgba(15, 23, 42, 0.06);
    outline: 0;
    box-shadow: none;
    color: #18181b;
  }
  .live-workspace .thread-header .avatar {
    width: 38px;
    height: 38px;
    backdrop-filter:none;
  }
  .live-workspace .thread-header .contact h2 {
    font-size: 0.90625rem;
    font-weight: 660;
  }

  .live-workspace .messages {
    padding: 12px 12px 14px;
    gap: 7px;
    background: #f4f5f8;
  }
  .live-workspace .day-label {
    background: rgba(255, 255, 255, 0.88);
    border: 1px solid rgba(15, 23, 42, 0.055);
    outline: 0;
    box-shadow: none;
    font-size: 0.65625rem;
  }
  .live-workspace .bubble {
    max-width: 85%;
    padding: 9px 13px 7px;
    border-radius: 18px 18px 18px 5px;
    background: #ffffff;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border: 1px solid rgba(15, 23, 42, 0.055);
    outline: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }
  .live-workspace .bubble.out {
    border-radius: 18px 18px 5px 18px;
    background: linear-gradient(180deg, #23252f 0%, #15161c 100%);
    border: 1px solid rgba(255, 255, 255, 0.12);
    box-shadow: 0 4px 12px -6px rgba(15, 20, 32, 0.3);
  }
  .live-workspace .bubble-forward-btn {
    width: 26px;
    height: 26px;
    background: transparent;
    border: 0;
    outline: 0;
    box-shadow: none;
    backdrop-filter:none;
    opacity: 0.34;
  }

  .live-workspace .thread-footer {
    padding: 6px 10px max(10px, env(safe-area-inset-bottom, 0px));
    background: #ffffff;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border-top: 1px solid rgba(15, 23, 42, 0.06);
    box-shadow: none;
  }
  .live-workspace .reply-source {
    display: block;
    margin-bottom: 4px;
    padding: 0 4px;
    background: transparent !important;
    border: 0 !important;
    outline: 0 !important;
    box-shadow: none !important;
    font-size: 0.65625rem;
    font-weight: 520;
    color: #7a7a88;
  }
  .live-workspace .reply {
    padding: 6px 8px;
    border-radius: 22px;
    background: #f5f6fa;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border: 1px solid rgba(15, 23, 42, 0.075);
    outline: 0;
    box-shadow: none;
  }
  .live-workspace .reply:focus-within {
    background: #ffffff;
    border-color: rgba(20, 20, 23, 0.24);
    box-shadow: 0 4px 16px -8px rgba(15, 23, 42, 0.14);
  }
  .live-workspace .reply .ai-composer-btn {
    background: #ffffff;
    border: 1px solid rgba(15, 23, 42, 0.08);
    outline: 0;
    box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
  }

  /* 4. Executive Mobile Resource Pages: Compact Editorial Header, 3-Col KPI Strip & 2x2 Integration Grid */
  .live-workspace .resource-page {
    padding: 12px 14px 24px;
    background: #f4f5f8;
  }
  .live-workspace .resource-header {
    padding: 0 2px 10px;
    margin-bottom: 12px;
    gap: 8px;
  }
  .live-workspace .resource-header h1 {
    display: none;
  }
  .live-workspace .resource-header p {
    margin-top: 0;
    font-size: 0.78125rem;
    line-height: 1.45;
    color: #666674;
  }
  .waqr-title-row {
    flex-wrap: wrap;
  }
  .waqr-lib-pill {
    white-space: nowrap;
    flex-shrink: 0;
  }
  .mobile-sheet-utilities .is-sheet-danger {
    color: #be123c;
  }
  .live-workspace .resource-actions .primary,
  .live-workspace .resource-actions .text-button {
    min-height: 38px;
    padding: 0 14px;
    font-size: 0.78125rem;
  }

  /* GPU-light crisp white surfaces across all mobile resource cards */
  .live-workspace .overview-stat,
  .live-workspace .account-card,
  .live-workspace .template-card,
  .live-workspace .broadcast-card,
  .live-workspace .recent-list,
  .live-workspace .contact-directory,
  .live-workspace .resource-filter,
  .live-workspace .integration-summary-card,
  .live-workspace .waqr-section,
  .live-workspace .ai-studio-bar,
  .live-workspace .ai-settings-form,
  .live-workspace .ai-bento-section,
  .live-workspace .ai-studio-preview {
    background: #ffffff !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border: 1px solid rgba(15, 23, 42, 0.055) !important;
    outline: 0 !important;
    border-radius: 20px;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  }

  /* Ringkasan Live: Sleek Hero + 3-Column Above-the-Fold Executive KPI Strip */
  .live-workspace .overview-hero {
    padding: 16px 18px;
    margin-bottom: 10px;
    border-radius: 20px;
    backdrop-filter:none;
    -webkit-backdrop-filter:none;
  }
  .live-workspace .overview-hero-copy h2 {
    font-size: 1.0625rem;
  }
  .live-workspace .overview-hero-copy p {
    font-size: 0.75rem;
  }
  .live-workspace .overview-hero-btn {
    min-height: 34px;
    padding: 0 13px;
    font-size: 0.75rem;
  }
  .live-workspace .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px;
    margin-bottom: 16px;
  }
  .live-workspace .overview-stat {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: space-between;
    gap: 8px;
    padding: 12px 11px;
    border-radius: 16px;
  }
  .live-workspace .overview-stat-head {
    flex-direction: column;
    align-items: flex-start;
    gap: 6px;
    width: 100%;
  }
  .live-workspace .overview-stat-icon {
    width: 30px;
    height: 30px;
    background: #f4f5f8;
    box-shadow: none;
  }
  .live-workspace .overview-stat-icon svg {
    width: 15px;
    height: 15px;
  }
  .live-workspace .overview-stat-label {
    font-size: 0.6875rem;
    font-weight: 560;
    line-height: 1.25;
    color: #666674;
  }
  .live-workspace .overview-stat strong {
    font-family: var(--font-display);
    font-size: 1.3125rem;
    font-weight: 700;
    letter-spacing: -0.03em;
    line-height: 1;
  }

  /* Nomor & Akun: Crisp 2x2 Bento Grid so WhatsApp QR Card Sits Above the Fold */
  .live-workspace .integration-summary-card,
  .live-workspace .waqr-section {
    padding: 14px 15px;
    margin-bottom: 12px;
  }
  .live-workspace .integration-summary-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px;
  }
  .live-workspace .integration-tile {
    padding: 10px 12px;
    border-radius: 14px;
    background: #f7f8fb;
    border: 1px solid rgba(15, 23, 42, 0.05);
  }
  .live-workspace .integration-tile strong {
    font-size: 0.8125rem;
  }
  .live-workspace .integration-tile small {
    font-size: 0.65625rem;
  }

  /* 5. Refined Floating Obsidian Dock & Native Slide-Up Sheet */
  .desk-sidebar .workspace-nav {
    width: min(344px, calc(100vw - 28px));
    height: 56px;
    padding: 4px;
    bottom: max(10px, env(safe-area-inset-bottom, 0px));
    box-shadow:
      0 14px 32px -8px rgba(10, 12, 24, 0.44),
      inset 0 1px 0 rgba(255, 255, 255, 0.14) !important;
  }
  .desk-sidebar .workspace-nav button[data-view],
  .desk-sidebar .workspace-nav .mobile-nav-more {
    height: 48px;
    min-height: 48px;
  }
  .desk-sidebar .workspace-nav button[data-view] [data-icon],
  .desk-sidebar .workspace-nav .mobile-nav-more [data-icon],
  .desk-sidebar .workspace-nav button[data-view] svg,
  .desk-sidebar .workspace-nav .mobile-nav-more svg {
    width: 19px;
    height: 19px;
  }

  .mobile-sheet-dialog {
    padding-bottom: env(safe-area-inset-bottom, 0px);
    box-shadow: 0 -18px 48px -12px rgba(15, 20, 38, 0.28);
    transition: transform 220ms cubic-bezier(0.32, 0.72, 0, 1), opacity 180ms ease;
  }
  @starting-style {
    .mobile-sheet-dialog[open] {
      opacity: 0;
      transform: translateY(28px);
    }
  }
}

/* ══════════════════════════════════════════════════════════════════════════
   20. 1:1 SHOPEE DASHBOARD EXACT PIXEL TYPE SCALE & DENSE CONTROL PROPORTIONS
   Matches C:\Users\User\dev\digitalkanaja-shopee-Gemini pixel-for-pixel across
   App.tsx, InboxView.tsx, StoresView.tsx, AgentView.tsx, ActivityView.tsx,
   LoginGate.tsx, CommandPalette.tsx, and LiquidGlassNavBar.tsx (Mobile + Desktop)
   ══════════════════════════════════════════════════════════════════════════ */

/* 1. Login Gate (LoginGate.tsx: h1=18px, sub=12px, label=11.5px, input=13.5px, btn=13.5px, note=11px) */
.login-hero h1 { font-size: 1.125rem !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.login-hero p { font-size: 0.75rem !important; line-height: 1.45; }
.login-field-label { font-size: 0.71875rem !important; font-weight: 600 !important; }
.login-input-shell { min-height: 42px; }
.login-input-shell input { font-size: 0.84375rem !important; font-weight: 500 !important; min-height: 40px; }
.login-submit-btn { font-size: 0.84375rem !important; font-weight: 600 !important; min-height: 44px !important; }
.login-footnote, #pilot-login-status, #setup-notice { font-size: 0.6875rem !important; }

/* 2. Desktop Left Sidebar (App.tsx: title=13.5px, sub=10.5px, cmd=12px/10.5px, nav=13.5px/11px, util=12.5px/10.5px, live=11.5px) */
.sidebar-brand-title { font-size: 0.84375rem !important; font-weight: 700 !important; letter-spacing: -0.02em; }
.sidebar-brand-sub { font-size: 0.65625rem !important; font-weight: 500 !important; }
.sidebar-channel-badge { font-size: 0.625rem !important; font-weight: 600 !important; }
.sidebar-command-btn { min-height: 38px !important; padding: 0 14px !important; font-size: 0.75rem !important; }
.sidebar-command-btn kbd { font-size: 0.65625rem !important; font-weight: 500 !important; }
@media (min-width: 1024px) {
  .desk-sidebar .workspace-nav button[data-view] {
    min-height: 40px !important;
    padding: 8px 14px !important;
    font-size: 0.84375rem !important;
    font-weight: 500 !important;
  }
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"] {
    font-weight: 600 !important;
  }
  .nav-count-badge {
    font-size: 0.6875rem !important;
    font-weight: 500 !important;
    padding: 2px 8px !important;
  }
}
.sidebar-utility-row { min-height: 38px !important; padding: 0 14px !important; font-size: 0.78125rem !important; font-weight: 500 !important; }
.sidebar-utility-meta { font-size: 0.65625rem !important; }
.sidebar-live-card { padding: 12px 14px !important; font-size: 0.71875rem !important; }
.sidebar-live-head strong { font-size: 0.71875rem !important; font-weight: 600 !important; }
.sidebar-live-card p { font-size: 0.6875rem !important; line-height: 1.5 !important; }

/* 3. Calm 2026 Topbar (App.tsx lines 2411-2553: h-9=36px pills, Home=12px, Breadcrumb=13px, QR=11.5px, Switcher=11px/12px) */
.live-workspace .mobile-menu-btn {
  width: 36px !important;
  height: 36px !important;
}
.live-workspace .topbar .breadcrumb-pill {
  height: 36px !important;
  padding: 0 12px !important;
  gap: 6px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.76) 0%, rgba(255, 255, 255, 0.52) 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.9) !important;
  outline: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: 0 4px 14px -8px rgba(15, 23, 42, 0.1), inset 0 1px 0.5px #ffffff !important;
}
.breadcrumb-home-btn { font-size: 0.75rem !important; font-weight: 500 !important; }
.breadcrumb-sep { font-size: 0.75rem !important; }
.live-workspace #breadcrumb-current {
  font-size: 0.8125rem !important; /* 13px exact App.tsx line 2437 */
  font-weight: 600 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.2 !important;
}
.brand-live-dot { width: 6px !important; height: 6px !important; }

.live-workspace .anim-search { width: 36px !important; height: 36px !important; }
.live-workspace .anim-search[data-open="true"] { width: min(228px, 50vw) !important; }
.live-workspace .anim-search-trigger { width: 36px !important; height: 36px !important; }
.live-workspace .anim-search-field { height: 36px !important; }
.live-workspace .anim-search-field input {
  font-size: 0.75rem !important; /* 12px */
  font-weight: 500 !important;
  min-height: 30px !important;
  height: 30px !important;
}
.live-workspace .anim-search-field input::placeholder { font-size: 0.75rem !important; font-weight: 400 !important; }
.anim-search-kbd { font-size: 0.65625rem !important; }

.live-workspace .header-qr-pill {
  height: 32px !important;
  padding: 0 11px !important;
  font-size: 0.71875rem !important; /* 11.5px exact App.tsx line 2481 */
  font-weight: 600 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  color: #141417 !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06) !important;
}
.live-workspace .header-qr-pill:hover {
  background: #f8fafc !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
}
.live-workspace .header-qr-pill svg { color: #059669 !important; }
.live-workspace .header-qr-label { font-size: 0.71875rem !important; font-weight: 600 !important; color: #141417 !important; }

/* Tactile Multi-Channel Bento Pill Switcher — Zero-Collision Responsive Architecture */
.live-workspace .header-channel-switcher {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  height: auto !important;
  min-height: 0 !important;
  max-width: none !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  clip-path: none !important;
  overflow: visible !important;
}
.live-workspace .ch-seg-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 7px !important;
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 6px 0 10px !important;
  border-radius: 999px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  color: #3f3f46 !important;
  font-size: 0.71875rem !important; /* 11.5px desktop/tablet */
  font-weight: 500 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  transition: background-color 150ms ease, border-color 150ms ease, color 150ms ease, transform 120ms ease, box-shadow 150ms ease !important;
}
.live-workspace .ch-seg-btn:hover {
  background: #eceef3 !important;
  border-color: rgba(15, 23, 42, 0.13) !important;
  color: #141417 !important;
}
.live-workspace .ch-seg-btn:active {
  transform: scale(0.975) !important;
}
.live-workspace .ch-seg-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.live-workspace .ch-dot.is-all {
  background: #9ca3af !important;
}
.live-workspace .ch-seg-label {
  max-width: 140px !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
  letter-spacing: -0.01em !important;
}
.live-workspace .ch-seg-count {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-width: 24px !important;
  height: 19px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.065) !important;
  color: #52525b !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 600 !important;
  line-height: 1 !important;
  opacity: 1 !important;
  flex-shrink: 0 !important;
}
.live-workspace .ch-seg-btn[aria-pressed="true"] {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
  font-weight: 600 !important;
  box-shadow: 0 4px 12px -3px rgba(15, 20, 32, 0.25) !important;
}
.live-workspace .ch-seg-btn[aria-pressed="true"] .ch-seg-count {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  color: #ffffff !important;
}
.live-workspace .ch-seg-btn[aria-pressed="true"] .ch-dot.is-all {
  background: #34d399 !important;
  box-shadow: 0 0 0 2px rgba(52, 211, 153, 0.22) !important;
}
@media (max-width: 1200px) {
  .live-workspace .header-channel-switcher {
    justify-content: flex-start !important;
    width: 100% !important;
  }
}
@media (max-width: 639px) {
  .live-workspace .header-channel-switcher {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 6px !important;
    width: 100% !important;
  }
  .live-workspace .header-channel-switcher[data-count="3"] {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  }
  .live-workspace .header-channel-switcher[data-odd="true"] .ch-seg-btn:first-child {
    grid-column: 1 / -1 !important;
  }
  .live-workspace .ch-seg-btn {
    width: 100% !important;
    min-width: 0 !important;
    height: 31px !important;
    min-height: 31px !important;
    padding: 0 7px 0 10px !important;
    border-radius: 11px !important;
    font-size: 0.6875rem !important; /* 11px mobile App.tsx line 2501 */
  }
  .live-workspace .ch-seg-label {
    max-width: none !important;
  }
}

/* 4. Inbox Left Pane Header, Search, Filter Pills & Cards (InboxView.tsx lines 1236-1505) */
.live-workspace .list-header {
  padding: 12px 14px 10px !important;
  gap: 8px !important;
}
.live-workspace .list-title {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
}
.live-workspace .inbox-title-logo {
  width: 22px !important;
  height: 22px !important;
  object-fit: contain !important;
  flex-shrink: 0 !important;
  display: block !important;
}
.live-workspace .list-title h1 {
  font-size: 0.9375rem !important; /* 15px crisp title */
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
  color: #0f172a !important;
}
.live-workspace #list-count {
  display: none !important;
}

.live-workspace .inbox .search > [data-icon="search"] { left: 11px !important; }
.live-workspace .inbox .search > [data-icon="search"] svg { width: 14px !important; height: 14px !important; }
.live-workspace .inbox .search input {
  min-height: 32px !important; /* px-3 py-1.5 exact InboxView.tsx line 1250 */
  height: 32px !important;
  padding: 0 28px 0 31px !important;
  font-size: 0.75rem !important; /* 12px exact InboxView.tsx line 1260 */
  font-weight: 500 !important;
}
.live-workspace .inbox .search input::placeholder {
  font-size: 0.75rem !important;
  font-weight: 400 !important;
  color: #8e8e9c !important;
}
#search-clear { width: 24px !important; height: 24px !important; right: 4px !important; }
#search-clear svg { width: 12px !important; height: 12px !important; }

.live-workspace .quick-filter-pills { padding: 3px !important; gap: 2px !important; }
.live-workspace .qf-btn {
  min-height: 27px !important;
  height: 27px !important;
  padding: 0 6px !important;
  gap: 3.5px !important;
  font-size: 0.6875rem !important; /* 11px exact InboxView.tsx line 1293 */
  font-weight: 500 !important;
}
.live-workspace .qf-btn[aria-pressed="true"] { font-weight: 600 !important; }
.live-workspace .qf-btn small { font-size: 0.625rem !important; /* 10px */ }

.live-workspace .list-subtoolbar { min-height: 24px !important; }
.live-workspace #pilot-status { font-size: 0.65625rem !important; /* 10.5px */ }
.live-workspace #sort-order {
  min-height: 25px !important;
  height: 25px !important;
  padding: 0 22px 0 9px !important;
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 500 !important;
  background-size: 12px 12px !important;
  background-position: right 7px center !important;
}

/* Conversation List Cards (InboxView.tsx lines 1397-1491: h-9=36px avatar 11.5px, buyer=13px, pill=9.5px, time=10px, snippet=11.5px, meta=10px) */
.live-workspace .conversation-list {
  padding: 8px 10px 14px !important;
  gap: 6px !important;
}
.live-workspace .conversation {
  grid-template-columns: 36px minmax(0, 1fr) !important;
  gap: 10px !important;
  padding: 10px 12px !important;
  border-radius: 16px !important;
}
.live-workspace .conversation .avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.71875rem !important; /* 11.5px exact InboxView.tsx line 1406 */
  font-weight: 600 !important;
}
.conv-unreplied-dot { width: 9px !important; height: 9px !important; }
.live-workspace .conv-row-top strong {
  font-size: 0.8125rem !important; /* 13px exact InboxView.tsx line 1426 */
  font-weight: 600 !important;
  line-height: 1.3 !important;
  letter-spacing: -0.01em !important;
}
.live-workspace .conv-row-top .queue-waiting,
.live-workspace .conv-row-top .queue-status {
  padding: 1.5px 6px !important;
  font-size: 0.59375rem !important; /* 9.5px exact InboxView.tsx line 1437 */
  font-weight: 600 !important;
}
.live-workspace .conv-time {
  font-size: 0.625rem !important; /* 10px exact InboxView.tsx line 1441 */
}
.live-workspace .conv-snippet-row { margin-top: 2px !important; }
.live-workspace .conv-out-tick svg { width: 12px !important; height: 12px !important; }
.live-workspace .conv-snippet-row .snippet {
  font-size: 0.71875rem !important; /* 11.5px exact InboxView.tsx line 1448 */
  line-height: 1.375 !important;
  font-weight: 400 !important;
}
.live-workspace .conversation-meta { margin-top: 5px !important; font-size: 0.625rem !important; }
.live-workspace .conv-meta-left .row-meta,
.live-workspace .conv-ai-tag {
  font-size: 0.625rem !important; /* 10px exact InboxView.tsx line 1458 */
}
.live-workspace .unread-count {
  min-width: 17px !important;
  height: 17px !important;
  padding: 0 5px !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 650 !important;
}
.load-more, .older-messages {
  min-height: 30px !important;
  padding: 0 13px !important;
  font-size: 0.6875rem !important; /* 11px exact InboxView.tsx line 1499 */
  font-weight: 600 !important;
}

/* 5. Active Conversation Pane (InboxView.tsx lines 1517-3019) */
.empty h2 { font-size: 0.84375rem !important; font-weight: 600 !important; }
.empty p { font-size: 0.75rem !important; /* 12px exact InboxView.tsx line 1519 */ }
.empty-thread-icon { width: 42px !important; height: 42px !important; }
.empty-thread-icon svg { width: 19px !important; height: 19px !important; }

.live-workspace .thread-header {
  padding: 10px 14px !important;
  gap: 9px !important;
}
.live-workspace .thread-header .avatar {
  width: 36px !important;
  height: 36px !important;
  font-size: 0.75rem !important; /* 12px exact InboxView.tsx line 1537 */
  font-weight: 600 !important;
}
.live-workspace .thread-header .contact h2 {
  font-size: 0.90625rem !important; /* 14.5px desktop exact InboxView.tsx line 1545 */
  font-weight: 600 !important;
  line-height: 1.25 !important;
}
@media (max-width: 639px) {
  .live-workspace .thread-header {
    padding: calc(8px + env(safe-area-inset-top, 0px)) 12px 9px !important;
  }
  .live-workspace .thread-header .contact h2 {
    font-size: 0.84375rem !important; /* 13.5px mobile exact InboxView.tsx line 1545 */
  }
}
.thread-header #thread-queue-status {
  padding: 1.5px 7px !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 600 !important;
}
.thread-channel-pill {
  padding: 1px 7px !important;
  font-size: 0.65625rem !important; /* 10.5px exact InboxView.tsx line 1552 */
  font-weight: 550 !important;
}
#contact-channel {
  font-size: 0.625rem !important; /* 10px exact InboxView.tsx line 1564 */
  color: #7a7a88 !important;
}
.live-workspace .thread-header :is(#save-contact, .resolve, #assign) {
  min-height: 32px !important; /* h-8 exact InboxView.tsx line 1582/1604 */
  height: 32px !important;
  padding: 0 11px !important;
  font-size: 0.6875rem !important; /* 11px exact InboxView.tsx line 1582/1604 */
  font-weight: 600 !important;
}
.live-workspace .thread-header :is(#back, #mark-read, #thread-details) {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
}
.live-workspace .thread-header :is(#back, #mark-read, #thread-details, #save-contact, .resolve) svg {
  width: 15px !important;
  height: 15px !important;
}
@media (max-width: 1279px) {
  .live-workspace .thread-header #save-contact {
    width: 32px !important;
    height: 32px !important;
    min-width: 32px !important;
    min-height: 32px !important;
    padding: 0 !important;
  }
}

/* Message Bubbles & Timestamps (InboxView.tsx lines 2198-2248: text-[13px] leading-[1.55], stamp text-[10.5px]) */
.day-label {
  padding: 3px 10px !important;
  font-size: 0.65625rem !important; /* 10.5px */
  font-weight: 560 !important;
}
.bubble {
  padding: 9px 13px 7px !important;
  border-radius: 19px 19px 19px 6px !important;
}
.bubble.out {
  border-radius: 19px 19px 6px 19px !important;
}
.bubble p {
  font-size: 0.8125rem !important; /* 13px exact InboxView.tsx line 2198 */
  line-height: 1.55 !important;
  font-weight: 400 !important;
  letter-spacing: -0.006em !important;
}
.bubble .message-stamp {
  margin-top: 4px !important;
  font-size: 0.65625rem !important; /* 10.5px exact InboxView.tsx line 2229 */
}
.message-delivery svg { width: 13px !important; height: 13px !important; }

/* AI Inline Suggestion Card & AI Helper Modal — 1:1 Shopee Dashboard (InboxView.tsx lines 2289-2361) */
#ai-inline[hidden],
#ai-inline [hidden],
#ai-dialog [hidden] {
  display: none !important;
}
#ai-inline:not([hidden]) {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 8px !important;
  padding: 11px 12px !important;
  margin: 0 0 8px !important;
  border-radius: 20px !important;
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(241, 245, 249, 0.93) 100%) !important;
  border: 1px solid rgba(15, 23, 42, 0.085) !important;
  box-shadow: 0 10px 26px -12px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.94) !important;
  max-height: none !important;
  overflow: visible !important;
}
.ai-inline-top {
  display: flex !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
}
.ai-inline-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0 !important;
  font-size: 0.75rem !important; /* 12px exact InboxView.tsx line 2292 */
  font-weight: 600 !important;
  color: #111114 !important;
  letter-spacing: -0.01em !important;
  min-width: 0 !important;
}
.ai-inline-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
}
.ai-inline-header svg {
  width: 15px !important;
  height: 15px !important;
  flex-shrink: 0 !important;
}
.ai-inline-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  flex-shrink: 0 !important;
}
.ai-inline-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.65625rem !important; /* 10.5px exact InboxView.tsx line 2303 */
  font-weight: 600 !important;
  line-height: 1 !important;
  white-space: nowrap !important;
}
.ai-inline-badge[data-tone="ready"] {
  background: rgba(16, 185, 129, 0.12) !important;
  color: #065f46 !important;
  border: 1px solid rgba(110, 231, 183, 0.65) !important;
}
.ai-inline-badge[data-tone="loading"] {
  background: rgba(245, 158, 11, 0.12) !important;
  color: #92400e !important;
  border: 1px solid rgba(252, 211, 77, 0.65) !important;
}
.ai-inline-badge[data-tone="muted"] {
  background: rgba(113, 113, 122, 0.1) !important;
  color: #52525b !important;
  border: 1px solid rgba(113, 113, 122, 0.22) !important;
}
.ai-inline-usage:not([hidden]) {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
}
.ai-inline-usage details { position: relative !important; }
.ai-inline-usage summary {
  list-style: none !important;
  display: inline-flex !important;
  align-items: center !important;
  height: 20px !important;
  min-height: 20px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.88) !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #52525b !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 600 !important;
  line-height: 1 !important;
  cursor: pointer !important;
}
.ai-inline-usage summary::-webkit-details-marker { display: none !important; }
.ai-inline-usage details[open] > .ai-usage-popover {
  position: absolute !important;
  right: 0 !important;
  top: calc(100% + 6px) !important;
  z-index: 35 !important;
  width: max-content !important;
  max-width: min(260px, 78vw) !important;
  margin: 0 !important;
  padding: 8px 10px !important;
  border-radius: 12px !important;
  background: #181920 !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #f4f4f5 !important;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.35) !important;
  font-size: 0.65625rem !important;
  line-height: 1.45 !important;
}
.ai-inline-usage .ai-usage-popover p { margin: 0 !important; color: #f4f4f5 !important; }
.ai-inline-usage .ai-usage-popover ul { margin: 4px 0 0 !important; padding-left: 14px !important; color: #d4d4d8 !important; }
.ai-inline-dismiss {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 22px !important;
  height: 22px !important;
  min-height: 22px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 50% !important;
  background: rgba(15, 23, 42, 0.055) !important;
  color: #71717a !important;
  cursor: pointer !important;
  transition: background-color 140ms ease, color 140ms ease !important;
}
.ai-inline-dismiss:hover { background: rgba(15, 23, 42, 0.11) !important; color: #141417 !important; }
.ai-inline-dismiss svg { width: 11px !important; height: 11px !important; }
#ai-inline-status:not([hidden]) {
  margin: 0 !important;
  font-size: 0.6875rem !important; /* 11px exact InboxView.tsx line 2319 */
  line-height: 1.42 !important;
  color: #646472 !important;
}
#ai-inline-preview:not([hidden]) {
  display: block !important;
  width: 100% !important;
  min-height: 40px !important;
  max-height: 104px !important;
  padding: 8px 11px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.9) !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  box-shadow: inset 0 1px 0.5px rgba(255, 255, 255, 0.96), 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  color: #141417 !important;
  font-size: 0.78125rem !important; /* 12.5px desktop exact InboxView.tsx line 2331 */
  line-height: 1.5 !important;
  resize: none !important;
}
@media (max-width: 639px) {
  #ai-inline-preview:not([hidden]) { font-size: 0.75rem !important; /* 12px mobile exact InboxView.tsx line 2331 */ }
}
#ai-inline-footer:not([hidden]) {
  display: block !important;
}
.ai-inline .ai-inline-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 6px !important;
  margin: 0 !important;
}
.ai-inline-btn-secondary:not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 11px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: #27272a !important;
  font-size: 0.71875rem !important; /* 11.5px */
  font-weight: 550 !important;
  cursor: pointer !important;
  transition: background-color 140ms ease, transform 120ms ease !important;
}
.ai-inline-btn-secondary:hover:enabled { background: #f8fafc !important; border-color: rgba(15, 23, 42, 0.15) !important; }
.ai-inline-btn-secondary:active:enabled { transform: scale(0.96) !important; }
.ai-inline-btn-secondary:disabled { opacity: 0.55 !important; cursor: wait !important; }
.ai-inline-btn-primary:not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
  height: 29px !important;
  min-height: 29px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  background: linear-gradient(180deg, #2a2c36 0%, #121318 100%) !important;
  color: #ffffff !important;
  box-shadow: 0 6px 16px -6px rgba(10, 12, 24, 0.42), inset 0 1px 0.5px rgba(255, 255, 255, 0.22) !important;
  font-size: 0.71875rem !important; /* 11.5px */
  font-weight: 600 !important;
  cursor: pointer !important;
  transition: filter 140ms ease, transform 120ms ease !important;
}
.ai-inline-btn-primary:hover:enabled { filter: brightness(1.07) !important; }
.ai-inline-btn-primary:active:enabled { transform: scale(0.96) !important; }
.ai-inline-btn-primary svg {
  width: 13px !important;
  height: 13px !important;
  color: #fcd34d !important;
  flex-shrink: 0 !important;
}

/* AI Helper Dialog (#ai-dialog) — Clean Proportions & Fixed Brain Pill SVG */
#ai-dialog .ai-body {
  display: grid !important;
  gap: 10px !important;
  padding: 14px 18px 18px !important;
}
#ai-recipient {
  margin: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  color: #18181b !important;
}
.ai-memory-banner:not([hidden]) {
  display: grid !important;
  gap: 6px !important;
  padding: 9px 11px !important;
  border-radius: 14px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.07) !important;
}
.ai-memory-pills {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 6px !important;
  margin: 0 !important;
}
.ai-mem-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  height: 24px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  font-size: 0.65625rem !important; /* 10.5px */
  font-weight: 600 !important;
  color: #3f3f46 !important;
  line-height: 1 !important;
}
.ai-mem-pill.is-active {
  background: rgba(16, 185, 129, 0.12) !important;
  border-color: rgba(110, 231, 183, 0.65) !important;
  color: #065f46 !important;
}
.ai-mem-pill svg {
  width: 13px !important;
  height: 13px !important;
  flex-shrink: 0 !important;
  color: #059669 !important;
}
.ai-memory-summary {
  margin: 0 !important;
  font-size: 0.6875rem !important;
  line-height: 1.45 !important;
  color: #52525b !important;
}
#ai-status:not(:empty) {
  margin: 0 !important;
  padding: 7px 11px !important;
  border-radius: 11px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  font-size: 0.71875rem !important;
  font-weight: 500 !important;
  color: #27272a !important;
  line-height: 1.42 !important;
}
#ai-preview-label:not([hidden]) {
  display: grid !important;
  gap: 5px !important;
  font-size: 0.71875rem !important;
  font-weight: 600 !important;
  color: #18181b !important;
}
#ai-preview {
  min-height: 92px !important;
  padding: 9px 11px !important;
  border-radius: 13px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
  font-size: 0.78125rem !important;
  line-height: 1.5 !important;
}
#ai-dialog .ai-secondary-actions,
#ai-dialog .ai-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}
#ai-dialog .ai-secondary-actions > button,
#ai-dialog .ai-actions > button {
  flex: 1 1 140px !important;
  min-height: 34px !important;
  height: 34px !important;
  padding: 0 12px !important;
  border-radius: 999px !important;
  font-size: 0.75rem !important;
  font-weight: 550 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 5px !important;
}
#ai-dialog .ai-secondary-actions svg,
#ai-dialog .ai-actions svg {
  width: 14px !important;
  height: 14px !important;
  flex-shrink: 0 !important;
}

/* Composer (#reply, InboxView.tsx lines 2889-3018: textarea=13px, placeholder=12.5px/13px, tools=28px/32px, send=32px/36px) */
.reply-source {
  font-size: 0.65625rem !important; /* 10.5px */
  padding: 2px 9px !important;
  margin-bottom: 5px !important;
}
.reply {
  padding: 6px 8px !important;
  gap: 4px !important;
  border-radius: 22px !important;
}
.reply textarea {
  min-height: 30px !important;
  padding: 3px 6px !important;
  font-size: 0.8125rem !important; /* 13px exact InboxView.tsx line 2999 */
  font-weight: 500 !important;
  line-height: 1.4 !important;
  letter-spacing: -0.01em !important;
}
.reply textarea::placeholder {
  font-size: 0.8125rem !important; /* 13px desktop */
  font-weight: 400 !important;
  color: #8e8e9c !important;
}
@media (max-width: 639px) {
  .reply textarea::placeholder { font-size: 0.78125rem !important; /* 12.5px mobile exact InboxView.tsx line 2999 */ }
}
.reply > .icon-button {
  width: 32px !important;
  height: 32px !important;
  min-width: 32px !important;
  min-height: 32px !important;
}
.reply > .icon-button svg { width: 16px !important; height: 16px !important; }
.reply .ai-composer-btn {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 11px !important;
  font-size: 0.75rem !important; /* 12px */
  font-weight: 550 !important;
}
.reply .ai-composer-btn svg { width: 14px !important; height: 14px !important; }
.reply #send {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 13px !important;
  font-size: 0.75rem !important; /* 12px */
  font-weight: 600 !important;
}
.reply #send svg { width: 14px !important; height: 14px !important; }
@media (max-width: 767px) {
  .reply > .icon-button {
    width: 30px !important;
    height: 30px !important;
    min-width: 30px !important;
    min-height: 30px !important;
  }
  .reply > .icon-button svg { width: 15px !important; height: 15px !important; }
  .reply #send {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
  }
}
.reply-status:not(:empty) { font-size: 0.6875rem !important; }

/* 6. Global Buttons, Badges, Inputs, Selects, & Resource Pages (StoresView/AgentView/ActivityView 1:1) */
.primary,
.text-button,
#resource-link {
  min-height: 34px !important;
  padding: 0 14px !important;
  font-size: 0.75rem !important; /* 12px exact StoresView/AgentView text-xs */
  font-weight: 560 !important;
}
.primary svg,
.text-button svg,
#resource-link svg {
  width: 14px !important;
  height: 14px !important;
}
.resource-badge {
  padding: 2px 9px !important;
  font-size: 0.6875rem !important; /* 11px exact Badges.tsx */
  font-weight: 560 !important;
}

input:not([type="checkbox"]):not([type="file"]),
select,
textarea {
  min-height: 36px;
  padding: 7px 12px;
  font-size: 0.75rem; /* 12px exact StoresView/AgentView */
  line-height: 1.5;
}
select { padding-right: 32px; }
select option { font-size: 0.75rem !important; min-height: 34px !important; }

.tool-form label,
.resource-filter label,
.ai-studio-account,
.ai-settings-form label:not(.ai-toggle-row),
.ai-bento-section label:not(.ai-toggle-row) {
  font-size: 0.71875rem !important; /* 11.5px exact LoginGate/AgentView */
  font-weight: 600 !important;
  gap: 5px !important;
}
.tool-note { font-size: 0.6875rem !important; /* 11px */ line-height: 1.48 !important; }

/* Resource Page Subheader Bar (Single Title lives in #breadcrumb-current — 1:1 Shopee Dashboard) */
.live-workspace .resource-page { padding: 10px 20px 36px; }
.live-workspace .resource-header {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 0 0 11px !important;
  margin-bottom: 12px !important;
  gap: 8px 16px !important;
}
.live-workspace .resource-header h1 {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}
.live-workspace .resource-header p {
  margin: 0 !important;
  font-size: 0.78125rem !important; /* 12.5px */
  line-height: 1.48 !important;
  color: #646472 !important;
}
@media (max-width: 767px) {
  .live-workspace .resource-page { padding: 8px 14px 24px !important; }
  .live-workspace .resource-header { padding: 0 2px 10px !important; margin-bottom: 12px !important; }
}

.account-section h2,
#whatsapp-accounts-title,
.resource-subheading {
  font-size: 0.65625rem !important; /* 10.5px */
  font-weight: 650 !important;
  letter-spacing: 0.06em !important;
  margin-bottom: 8px !important;
}

/* Ringkasan Hero & KPI Cards (StoresView text-xl=20px, label=11px) */
.overview-hero { padding: 18px 20px !important; margin-bottom: 14px !important; border-radius: 22px !important; }
.overview-hero-kicker { font-size: 0.625rem !important; /* 10px */ }
.overview-hero-copy h2 { font-size: 1rem !important; /* 16px */ font-weight: 680 !important; }
.overview-hero-copy p { font-size: 0.75rem !important; /* 12px */ }
.overview-hero-btn { min-height: 34px !important; padding: 0 14px !important; font-size: 0.75rem !important; /* 12px */ }

.overview-grid { gap: 12px !important; margin-bottom: 20px !important; }
.overview-stat { padding: 15px 16px !important; gap: 10px !important; border-radius: 18px !important; }
.overview-stat-icon { width: 34px !important; height: 34px !important; }
.overview-stat-icon svg { width: 16px !important; height: 16px !important; }
.overview-stat-label { font-size: 0.6875rem !important; /* 11px exact StoresView.tsx line 380 */ font-weight: 540 !important; }
.overview-stat strong {
  font-size: 1.25rem !important; /* 20px exact StoresView.tsx text-xl line 381 */
  font-weight: 650 !important;
  letter-spacing: -0.025em !important;
}
.overview-stat::after { width: 26px !important; height: 26px !important; top: 14px !important; right: 14px !important; font-size: 0.75rem !important; }
@media (max-width: 767px) {
  .overview-grid { gap: 8px !important; margin-bottom: 14px !important; }
  .live-workspace .overview-stat { padding: 11px 10px !important; gap: 6px !important; }
  .live-workspace .overview-stat-icon { width: 28px !important; height: 28px !important; }
  .live-workspace .overview-stat-icon svg { width: 14px !important; height: 14px !important; }
  .live-workspace .overview-stat-label { font-size: 0.65625rem !important; /* 10.5px */ }
  .live-workspace .overview-stat strong { font-size: 1.1875rem !important; /* 19px */ }
}

/* Accounts, Contacts, Templates, Broadcasts & Recent Rows (13px-13.5px titles, 11.5px sub) */
.integration-summary-card,
.waqr-section { padding: 15px 16px !important; margin-bottom: 14px !important; border-radius: 20px !important; }
.integration-summary-head h2,
.waqr-title-row h2 { font-size: 0.9375rem !important; /* 15px exact StoresView.tsx line 174 */ font-weight: 620 !important; }
.integration-summary-head p { font-size: 0.75rem !important; /* 12px */ }
.integration-kicker { font-size: 0.65625rem !important; /* 10.5px */ }
.integration-tile strong { font-size: 0.78125rem !important; /* 12.5px */ font-weight: 640 !important; }
.integration-tile small { font-size: 0.65625rem !important; /* 10.5px */ }
.waqr-lib-pill { font-size: 0.65625rem !important; /* 10.5px */ }
.waqr-card-copy strong { font-size: 0.8125rem !important; /* 13px */ }
.waqr-card-copy small { font-size: 0.6875rem !important; /* 11px */ }
.waqr-empty-hint { font-size: 0.75rem !important; /* 12px */ padding: 14px !important; }

.account-card, .broadcast-card { padding: 13px 15px !important; gap: 12px !important; border-radius: 18px !important; }
.account-icon-tile, .broadcast-tile, .telegram-tile { width: 38px !important; height: 38px !important; }
.account-icon-tile svg, .telegram-tile svg { width: 18px !important; height: 18px !important; }
.account-card-name,
.broadcast-card-name,
.template-card-name,
.contact-card-name {
  font-size: 0.84375rem !important; /* 13.5px exact ActivityView.tsx line 99 */
  font-weight: 600 !important;
}
.account-card-identity,
.broadcast-card-date,
.contact-card-phone {
  font-size: 0.71875rem !important; /* 11.5px exact StoresView.tsx line 369 */
}
.template-card { padding: 14px 15px !important; gap: 9px !important; border-radius: 18px !important; }
.template-card-body { font-size: 0.75rem !important; /* 12px */ line-height: 1.52 !important; }
.recent-row, .contact-card {
  grid-template-columns: 36px minmax(0, 1fr) auto !important;
  padding: 10px 14px !important;
  gap: 10px !important;
}
.recent-row .avatar, .contact-card .avatar { width: 36px !important; height: 36px !important; font-size: 0.71875rem !important; }

/* AI Studio (AgentView.tsx lines 284-652: h3=15px, prompt=12px mono, tabs=12px, sim=12.5px-13px) */
.ai-provider-status { font-size: 0.6875rem !important; /* 11px */ padding: 3px 10px !important; }
.ai-seg-tab { min-height: 31px !important; padding: 0 13px !important; font-size: 0.75rem !important; /* 12px */ }
.ai-settings-form, .ai-bento-section { padding: 16px !important; gap: 13px !important; border-radius: 20px !important; }
#ai-business, #ai-style {
  font-family: var(--font-mono) !important;
  font-size: 0.75rem !important; /* 12px exact AgentView.tsx line 453 */
  line-height: 1.62 !important;
}
.ai-toggle-row { padding: 11px 13px !important; border-radius: 15px !important; }
.ai-toggle-row strong { font-size: 0.75rem !important; /* 12px */ }
.ai-toggle-row small { font-size: 0.6875rem !important; /* 11px */ line-height: 1.45 !important; }
.ai-memory-card-title { font-size: 0.8125rem !important; /* 13px */ }
.ai-memory-card-body { font-size: 0.75rem !important; /* 12px */ }
.ai-sim-title-copy strong { font-size: 0.8125rem !important; /* 13px */ }
.ai-sim-title-copy small { font-size: 0.6875rem !important; /* 11px */ }
.ai-sim-welcome strong { font-size: 0.84375rem !important; /* 13.5px */ }
.ai-sim-welcome p, .ai-sim-chip, .ai-teaching-msg { font-size: 0.75rem !important; /* 12px */ }
.ai-sim-msg { font-size: 0.78125rem !important; /* 12.5px exact AgentView.tsx line 640 */ line-height: 1.55 !important; }
.ai-sim-input { min-height: 36px !important; font-size: 0.8125rem !important; /* 13px exact AgentView.tsx line 588 */ }
.ai-usage-chip { font-size: 0.65625rem !important; /* 10.5px */ }

/* 7. Contact Detail Drawer, Modals, Command Palette & Mobile Sheet */
.contact-panel-header h2,
.dialog-header h2 {
  font-size: 0.90625rem !important; /* 14.5px */
  font-weight: 620 !important;
}
.contact-identity h2 { font-size: 0.875rem !important; /* 14px */ }
.contact-identity p { font-size: 0.71875rem !important; /* 11.5px */ }
.detail-field dt { font-size: 0.65625rem !important; /* 10.5px */ }
.detail-field dd { font-size: 0.75rem !important; /* 12px */ }
.contact-memory-title { font-size: 0.75rem !important; /* 12px */ }
.contact-memory-summary, .contact-memory-empty, .contact-memory-facts { font-size: 0.71875rem !important; /* 11.5px */ }

.cmd-search-bar input { font-size: 0.8125rem !important; /* 13px */ }
.cmd-item-copy strong { font-size: 0.78125rem !important; /* 12.5px */ }
.cmd-item-copy small { font-size: 0.6875rem !important; /* 11px */ }
.cmd-item-badge, .cmd-esc-badge, .cmd-footer kbd { font-size: 0.625rem !important; /* 10px */ }

/* Mobile Bottom Sheet (App.tsx lines 2297-2385: title=14px, sub=11px, nav=12.5px, util=12px) */
#more-navigation-title { font-size: 0.875rem !important; /* 14px exact App.tsx line 2297 */ font-weight: 700 !important; }
#mobile-sheet-sub { font-size: 0.6875rem !important; /* 11px exact App.tsx line 2300 */ }
.sheet-nav-btn {
  min-height: 40px !important;
  padding: 0 12px !important;
  font-size: 0.78125rem !important; /* 12.5px exact App.tsx line 2333 */
  font-weight: 550 !important;
}
.sheet-nav-btn svg { width: 16px !important; height: 16px !important; }
.mobile-sheet-utilities .text-button {
  min-height: 38px !important;
  font-size: 0.75rem !important; /* 12px exact App.tsx line 2366/2379 */
  font-weight: 540 !important;
}
.more-wallpaper-badge { font-size: 0.65625rem !important; /* 10.5px exact App.tsx line 2385 */ }

/* Mobile & Tablet Floating Bottom Navbar (LiquidGlassNavBar.tsx: label=10px, badge=9.5px) */
@media (max-width: 1023px) {
  .desk-sidebar .workspace-nav .nav-caption {
    font-size: 0.625rem !important; /* 10px exact LiquidGlassNavBar.tsx line 81 */
    line-height: 1 !important;
    letter-spacing: -0.01em !important;
  }
  #nav-inbox-badge {
    font-size: 0.59375rem !important; /* 9.5px exact LiquidGlassNavBar.tsx line 70 */
    font-weight: 700 !important;
  }
}

/* Suppress raw browser ring on programmatic heading focus while keeping keyboard :focus-visible */
[tabindex="-1"]:focus {
  outline: none !important;
}


/* ==========================================================================
   21. 1:1 SHOPEE DASHBOARD ALL-MENUS POLISH (StoresView / AgentView / ActivityView)
   Keeps exact Shopee Dashboard Obsidian (#141417) + Porcelain (#F5F6F8) theme,
   clean flat non-3D buttons, and tidy alignment across all 7 menus.
   ========================================================================== */

/* 1. Strict [hidden] Enforcement & Duplicate Button Cleanup */
.live-workspace .header-channel-switcher[hidden],
#header-channel-switcher[hidden],
#wa-qr-open-add {
  display: none !important;
}

/* 2. Fix Monospace Font Leak in Textareas/Inputs & Account Subtitles */
input,
select,
textarea,
textarea::placeholder,
input::placeholder,
.account-card-identity,
.contact-card-phone,
.waqr-session-sub {
  font-family: var(--font-sans) !important;
}

/* 3. Clean Flat Shopee Dashboard Buttons (StoresView.tsx line 250 — No 3D Gradients) */
.primary:not([hidden]),
#send:not([hidden]),
#ai-inline-send:not([hidden]),
#pilot-login button[type="submit"] {
  background: #141417 !important;
  background-image: none !important;
  border: 1px solid #141417 !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
  outline: 0 !important;
}
.primary:hover:enabled,
#send:hover:enabled,
#ai-inline-send:hover:enabled,
#pilot-login button[type="submit"]:hover:enabled {
  background: #27272a !important;
  border-color: #27272a !important;
  filter: none !important;
}
#ai-inline-send svg {
  color: #fcd34d !important;
}

.text-button:not([hidden]),
.liquid-glass-button:not(.mobile-menu-btn):not([hidden]),
.ai-inline-btn-secondary:not([hidden]) {
  background: #ffffff !important;
  background-image: none !important;
  border: 1px solid rgba(15, 23, 42, 0.085) !important;
  outline: 0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  color: #18181b !important;
}
.text-button:hover:enabled,
a.text-button:hover,
.liquid-glass-button:not(.mobile-menu-btn):hover:enabled,
.ai-inline-btn-secondary:hover:enabled {
  background: #f8f8fa !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}

.resource-delete:not([hidden]),
.waqr-btn-danger:not([hidden]) {
  color: #be123c !important;
  border-color: rgba(244, 63, 94, 0.25) !important;
  background: #ffffff !important;
}
.resource-delete:hover:enabled,
.waqr-btn-danger:hover:enabled {
  background: #fff1f2 !important;
  border-color: rgba(244, 63, 94, 0.4) !important;
}

/* 4. Shopee Dashboard StoresView / AgentView / ActivityView Card Consistency */
.live-workspace .resource-page > * {
  max-width: 1080px;
  margin-left: auto;
  margin-right: auto;
}

.resource-filter:not([hidden]) {
  display: grid !important;
  grid-template-columns: minmax(200px, 270px) minmax(0, 1fr) auto !important;
  align-items: end !important;
  gap: 12px !important;
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 20px !important;
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid rgba(15, 23, 42, 0.065) !important;
  outline: 0 !important;
  box-shadow: 0 4px 16px -10px rgba(15, 23, 42, 0.08) !important;
}
@media (max-width: 767px) {
  .resource-filter:not([hidden]) {
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 10px !important;
    padding: 12px 14px !important;
  }
}
.resource-status {
  margin: 0 0 10px !important;
  font-size: 0.71875rem !important;
  color: #71717a !important;
}
.resource-status:empty { display: none !important; }

/* ActivityView.tsx Clean Divided Card List for Contacts & Recent Chats */
.contact-directory,
.recent-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 0 !important;
  border-radius: 22px !important;
  border: 1px solid rgba(15, 23, 42, 0.065) !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.1) !important;
  overflow: hidden !important;
}
.contact-card,
.recent-row {
  margin: 0 !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.045) !important;
  background: transparent !important;
  box-shadow: none !important;
  padding: 12px 18px !important;
}
.contact-card:last-child,
.recent-row:last-child {
  border-bottom: 0 !important;
}
.contact-card:hover,
.recent-row:hover {
  background: #f9f9fb !important;
}

/* StoresView.tsx Spacious Session & Account Cards */
.waqr-sessions-grid {
  display: grid !important;
  grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)) !important;
  gap: 12px !important;
}
.integration-summary-card,
.waqr-section,
.ai-studio-bar,
.ai-settings-form,
.ai-bento-section,
.ai-studio-preview,
.template-card,
.account-card,
.broadcast-card {
  border-radius: 22px !important;
  border: 1px solid rgba(15, 23, 42, 0.065) !important;
  outline: 0 !important;
  background: rgba(255, 255, 255, 0.94) !important;
  box-shadow: 0 8px 24px -16px rgba(15, 23, 42, 0.1) !important;
}

/* ActivityView.tsx Clean Flat Segmented Tabs in AI Studio (replaces 3D black orb) */
.ai-seg-pill,
.ai-cat-active-pill {
  display: none !important;
}
.ai-segmented-tabs,
.ai-cat-pills {
  display: inline-flex !important;
  flex-wrap: wrap !important;
  gap: 4px !important;
  padding: 4px !important;
  border-radius: 14px !important;
  background: #f2f2f5 !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
}
.ai-seg-tab,
.ai-cat-pill {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 12px !important;
  border-radius: 10px !important;
  border: 0 !important;
  background: transparent !important;
  color: #71717a !important;
  font-size: 0.75rem !important; /* 12px exact ActivityView.tsx line 55 */
  font-weight: 500 !important;
  box-shadow: none !important;
}
.ai-seg-tab:hover,
.ai-cat-pill:hover {
  color: #27272a !important;
}
.ai-seg-tab[aria-pressed="true"],
.ai-cat-pill[aria-pressed="true"] {
  background: #ffffff !important;
  color: #141417 !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06), inset 0 0 0 1px rgba(15, 23, 42, 0.04) !important;
}

/* Clean Shopee Empty State Icon Badge (replaces 3D glossy black sphere) */
.empty-thread-icon,
.resource-empty-icon {
  width: 44px !important;
  height: 44px !important;
  border-radius: 14px !important;
  background: #f2f2f5 !important;
  background-image: none !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  box-shadow: none !important;
  color: #3f3f46 !important;
}
.empty-thread-icon svg,
.resource-empty-icon svg {
  width: 20px !important;
  height: 20px !important;
  color: #3f3f46 !important;
}

.ai-settings-form textarea,
.ai-bento-section textarea,
#ai-business,
#ai-style,
#ai-handoff-rules {
  font-family: var(--font-sans) !important;
}


/* ==========================================================================
   22. MODERN 2026 ARCHITECTURAL HEADER & UNIFIED SEGMENTED CHANNEL TRAY
   Eliminates pill-soup borders; crisp editorial title + single recessed
   channel tray with elevated pure-white active surface (Shopee 2026 parity).
   ========================================================================== */

/* 1. Clean Architectural Topbar Surface */
.live-workspace .topbar {
  background: rgba(255, 255, 255, 0.96) !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.06) !important;
  padding: 10px 18px !important;
  gap: 10px 12px !important;
  min-height: 54px !important;
  box-shadow: none !important;
}

/* Borderless Editorial Title / Breadcrumb (removes unnecessary oval pill border) */
.live-workspace .topbar .breadcrumb-pill {
  height: auto !important;
  padding: 2px 4px 2px 0 !important;
  gap: 7px !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.live-workspace .breadcrumb-home-btn {
  font-size: 0.75rem !important; /* 12px */
  font-weight: 500 !important;
  color: #8e8e9c !important;
}
.live-workspace .breadcrumb-home-btn:hover { color: #141417 !important; }
.live-workspace .breadcrumb-sep { color: #c7c7d1 !important; font-size: 0.75rem !important; }
.live-workspace #breadcrumb-current {
  font-family: var(--font-display) !important;
  font-size: 0.9375rem !important; /* 15px crisp editorial header */
  font-weight: 680 !important;
  letter-spacing: -0.024em !important;
  color: #111114 !important;
}
.live-workspace .brand-live-dot {
  width: 6.5px !important;
  height: 6.5px !important;
  background: #10b981 !important;
  box-shadow: 0 0 0 3px rgba(16, 185, 129, 0.16) !important;
}

/* Minimal Borderless Menu Trigger & Soft Search Button (no heavy black/bordered circles) */
.live-workspace .mobile-menu-btn {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  transition: background-color 140ms ease, transform 120ms ease !important;
}
.live-workspace .mobile-menu-btn:hover,
.live-workspace .mobile-menu-btn:active {
  background: #f2f3f7 !important;
}
.live-workspace .two-bars { gap: 4.5px !important; }
.live-workspace .two-bars i:first-child { width: 16px !important; height: 1.75px !important; background: #141417 !important; }
.live-workspace .two-bars i:last-child { width: 10px !important; height: 1.75px !important; background: #71717a !important; }

.live-workspace .anim-search {
  width: 32px !important;
  height: 32px !important;
}
.live-workspace .anim-search[data-open="true"] {
  width: min(210px, 54vw) !important;
}
.live-workspace .anim-search-trigger {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  color: #3f3f46 !important;
  transition: background-color 140ms ease, color 140ms ease !important;
}
.live-workspace .anim-search-trigger:hover {
  background: #f2f3f7 !important;
  color: #111114 !important;
}
.live-workspace .anim-search-trigger svg {
  width: 17px !important;
  height: 17px !important;
}
.live-workspace .anim-search-field {
  height: 32px !important;
  border-radius: 10px !important;
  background: #f2f3f7 !important;
  border: 1px solid rgba(15, 23, 42, 0.14) !important;
  box-shadow: none !important;
}

/* Clean Right Profile Cluster (single calm WA QR pill, no pill-inside-pill) */
.live-workspace .topbar .profile {
  height: auto !important;
  padding: 0 !important;
  gap: 4px !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.live-workspace .topbar .profile .icon-button {
  width: 32px !important;
  height: 32px !important;
  min-height: 32px !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 0 !important;
  color: #52525b !important;
  box-shadow: none !important;
}
.live-workspace .topbar .profile .icon-button:hover {
  background: #f2f3f7 !important;
  color: #111114 !important;
}
.live-workspace .header-qr-pill:not([hidden]) {
  height: 30px !important;
  min-height: 30px !important;
  padding: 0 11px !important;
  gap: 5.5px !important;
  border-radius: 10px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.075) !important;
  box-shadow: none !important;
  color: #18181b !important;
  font-size: 0.71875rem !important; /* 11.5px */
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease !important;
}
.live-workspace .header-qr-pill:hover {
  background: #eceef3 !important;
  border-color: rgba(15, 23, 42, 0.14) !important;
}
.live-workspace .header-qr-pill:active {
  transform: scale(0.96) !important;
}
.live-workspace .header-qr-pill svg {
  width: 14px !important;
  height: 14px !important;
  color: #059669 !important;
}
.live-workspace .header-qr-label {
  font-size: 0.71875rem !important;
  font-weight: 600 !important;
  color: #18181b !important;
}

/* 2. Compact Single-Row 2026 Channel Dropdown Switcher (saves 66px+ vertical space!) */
.live-workspace .topbar {
  position: relative !important;
  z-index: 45 !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 50px !important;
  padding: 8px 16px !important;
}
.live-workspace .topbar-left {
  order: 0 !important;
  flex: 1 1 auto !important;
  min-width: 0 !important;
  overflow: hidden !important;
}
.live-workspace .topbar-right {
  order: 1 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  flex: 0 0 auto !important;
  gap: 6px !important;
}

.live-workspace .header-channel-switcher:not([hidden]) {
  position: relative !important;
  order: 0 !important;
  flex: 0 0 auto !important;
  width: auto !important;
  max-width: none !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  background: transparent !important;
  border: 0 !important;
  outline: 0 !important;
  box-shadow: none !important;
  clip-path: none !important;
  overflow: visible !important;
}
.live-workspace .ch-dd-trigger {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 30px !important;
  min-height: 30px !important;
  max-width: 176px !important;
  padding: 0 9px 0 10px !important;
  border-radius: 10px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #141417 !important;
  font-size: 0.71875rem !important; /* 11.5px */
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  cursor: pointer !important;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease !important;
}
.live-workspace .ch-dd-trigger:hover {
  background: #eceef3 !important;
  border-color: rgba(15, 23, 42, 0.15) !important;
}
.live-workspace .ch-dd-trigger:active {
  transform: scale(0.97) !important;
}
.live-workspace .header-channel-switcher[data-open="true"] .ch-dd-trigger {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
}
.live-workspace .ch-dd-trigger .ch-dot {
  width: 6.5px !important;
  height: 6.5px !important;
  flex-shrink: 0 !important;
}
.live-workspace .ch-dd-trigger .ch-dot.is-all {
  background: #141417 !important;
}
.live-workspace .header-channel-switcher[data-open="true"] .ch-dd-trigger .ch-dot.is-all {
  background: #34d399 !important;
}
.live-workspace .ch-dd-label {
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.live-workspace .ch-dd-count {
  padding: 1.5px 5.5px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.06) !important;
  color: #52525b !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 600 !important;
  line-height: 1.1 !important;
  flex-shrink: 0 !important;
}
.live-workspace .header-channel-switcher[data-open="true"] .ch-dd-count {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.live-workspace .ch-dd-caret {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 12px !important;
  height: 12px !important;
  color: #71717a !important;
  flex-shrink: 0 !important;
  transition: transform 160ms ease, color 140ms ease !important;
}
.live-workspace .ch-dd-caret svg { width: 12px !important; height: 12px !important; }
.live-workspace .header-channel-switcher[data-open="true"] .ch-dd-caret {
  transform: rotate(180deg) !important;
  color: #ffffff !important;
}

/* Floating Crisp 2026 Popover Menu */
.live-workspace .ch-dd-menu[hidden] { display: none !important; }
.live-workspace .ch-dd-menu:not([hidden]) {
  position: absolute !important;
  top: calc(100% + 7px) !important;
  right: 0 !important;
  z-index: 80 !important;
  display: flex !important;
  flex-direction: column !important;
  gap: 2px !important;
  width: min(272px, calc(100vw - 24px)) !important;
  max-height: min(360px, 60dvh) !important;
  overflow-y: auto !important;
  padding: 6px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.085) !important;
  box-shadow: 0 20px 44px -14px rgba(15, 23, 42, 0.22), 0 4px 12px -4px rgba(15, 23, 42, 0.08) !important;
}
.live-workspace .ch-dd-head {
  padding: 5px 10px 4px !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
  text-transform: uppercase !important;
  color: #8e8e9c !important;
}
.live-workspace .ch-dd-item {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
  width: 100% !important;
  min-height: 42px !important;
  padding: 7px 10px !important;
  border: 0 !important;
  border-radius: 11px !important;
  background: transparent !important;
  color: #18181b !important;
  text-align: left !important;
  cursor: pointer !important;
  transition: background-color 120ms ease !important;
}
.live-workspace .ch-dd-item:hover {
  background: #f4f5f8 !important;
}
.live-workspace .ch-dd-item[aria-selected="true"] {
  background: #f2f3f7 !important;
}
.live-workspace .ch-dd-item-lead {
  display: inline-flex !important;
  align-items: center !important;
  gap: 9px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.live-workspace .ch-dd-item-lead .ch-dot {
  width: 7px !important;
  height: 7px !important;
  flex-shrink: 0 !important;
}
.live-workspace .ch-dd-item-lead .ch-dot.is-all { background: #141417 !important; }
.live-workspace .ch-dd-item-copy {
  display: flex !important;
  flex-direction: column !important;
  min-width: 0 !important;
  gap: 1px !important;
}
.live-workspace .ch-dd-item-copy .ch-seg-label {
  max-width: none !important;
  font-size: 0.78125rem !important; /* 12.5px */
  font-weight: 600 !important;
  color: #111114 !important;
  line-height: 1.25 !important;
}
.live-workspace .ch-dd-item-copy small {
  font-size: 0.65625rem !important; /* 10.5px */
  color: #71717a !important;
  line-height: 1.25 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.live-workspace .ch-dd-item-end {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  flex-shrink: 0 !important;
}
.live-workspace .ch-dd-item-end .ch-seg-count {
  padding: 2px 7px !important;
  border-radius: 999px !important;
  background: #f4f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.05) !important;
  color: #52525b !important;
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
}
.live-workspace .ch-dd-item[aria-selected="true"] .ch-seg-count {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
}
.live-workspace .ch-dd-check {
  width: 14px !important;
  font-size: 0.75rem !important;
  font-weight: 700 !important;
  color: #141417 !important;
  text-align: center !important;
  opacity: 0 !important;
}
.live-workspace .ch-dd-item[aria-selected="true"] .ch-dd-check {
  opacity: 1 !important;
}

/* Single-Row Compact Mobile & Tablet Precision */
@media (max-width: 1200px) {
  .live-workspace .topbar {
    flex-wrap: nowrap !important;
    padding: 8px 14px !important;
    gap: 6px !important;
  }
  .live-workspace .topbar-right {
    display: inline-flex !important;
    gap: 5px !important;
  }
  .live-workspace #global-search-wrap,
  .live-workspace .topbar .profile,
  .live-workspace .header-channel-switcher {
    order: 0 !important;
    margin-left: 0 !important;
  }
}

@media (max-width: 639px) {
  .live-workspace .topbar {
    padding: calc(7px + env(safe-area-inset-top, 0px)) 12px 8px !important;
    gap: 6px !important;
    min-height: 48px !important;
  }
  .live-workspace #breadcrumb-current {
    font-size: 0.875rem !important; /* 14px crisp single-row mobile title */
    font-weight: 700 !important;
  }
  .live-workspace .ch-dd-trigger {
    height: 29px !important;
    min-height: 29px !important;
    max-width: 136px !important;
    padding: 0 7px 0 8px !important;
    gap: 5px !important;
    font-size: 0.6875rem !important; /* 11px */
  }
  .live-workspace .header-qr-pill:not([hidden]) {
    height: 29px !important;
    min-height: 29px !important;
    padding: 0 8px !important;
    gap: 4px !important;
  }
  .live-workspace .ch-dd-menu:not([hidden]) {
    right: -64px !important;
  }
}
@media (max-width: 410px) {
  .live-workspace .header-qr-label {
    display: none !important;
  }
  .live-workspace .header-qr-pill:not([hidden]) {
    width: 29px !important;
    padding: 0 !important;
    justify-content: center !important;
  }
  .live-workspace .ch-dd-menu:not([hidden]) {
    right: -34px !important;
  }
}


/* ==========================================================================
   23. TRANSPARENT WORKSPACE CANVAS & CRYSTAL-CLEAR NOMOR & AKUN LAYOUT
   Transparent #workspace > div sheet letting wallpaper/backdrop breathe
   through with frosted Liquid Glass cards and scannable 1-2-3 hierarchy.
   ========================================================================== */

#workspace,
#workspace > .desk-canvas,
.live-workspace .desk-canvas,
.live-workspace .desk-sheet,
.live-workspace .resource-page {
  background: transparent !important;
  box-shadow: none !important;
}

@media (min-width: 1024px) {
  .live-workspace .desk-sheet {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.24) 0%, rgba(255, 255, 255, 0.12) 100%) !important;
    backdrop-filter: none!important;
    -webkit-backdrop-filter: none!important;
    border: 1px solid rgba(255, 255, 255, 0.65) !important;
  }
}

@media (max-width: 1023px) {
  .live-workspace .desk-sheet {
    background: transparent !important;
    border: 0 !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}

.live-workspace .topbar {
  background: rgba(255, 255, 255, 0.42) !important;
  backdrop-filter: none!important;
  -webkit-backdrop-filter: none!important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.52) !important;
}

/* Transparent Frosted Liquid Glass for Kontak Pelanggan & Directory Surfaces */
.live-workspace .contact-directory,
.live-workspace .resource-filter,
.live-workspace .recent-list {
  background: rgba(255, 255, 255, 0.36) !important;
  backdrop-filter: none!important;
  -webkit-backdrop-filter: none!important;
  border: 1px solid rgba(255, 255, 255, 0.68) !important;
  box-shadow: 0 10px 28px -16px rgba(15, 23, 42, 0.14), 0 0 0 1px rgba(15, 23, 42, 0.055), inset 0 1px 0 rgba(255, 255, 255, 0.85) !important;
}
.live-workspace .resource-filter select,
.live-workspace .resource-filter input,
.live-workspace .resource-filter button[type="submit"] {
  background: rgba(255, 255, 255, 0.56) !important;
  border: 1px solid rgba(15, 23, 42, 0.1) !important;
}
.live-workspace .contact-card,
.live-workspace .recent-row {
  background: transparent !important;
  border-bottom: 1px solid rgba(15, 23, 42, 0.065) !important;
}
.live-workspace .contact-card:hover,
.live-workspace .recent-row:hover {
  background: rgba(255, 255, 255, 0.34) !important;
}
.live-workspace .contact-open-chat,
.live-workspace .contact-card .resource-edit {
  background: rgba(255, 255, 255, 0.64) !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  backdrop-filter: none!important;
  -webkit-backdrop-filter: none!important;
}
.live-workspace .contact-open-chat:hover,
.live-workspace .contact-card .resource-edit:hover {
  background: rgba(255, 255, 255, 0.88) !important;
}

/* Frosted Translucent Liquid Glass Cards with Crisp Contrast Borders */
.live-workspace .surface-card,
.live-workspace .integration-summary-card,
.live-workspace .waqr-section,
.live-workspace .account-card,
.live-workspace .template-card,
.live-workspace .ai-studio-bar,
.live-workspace .ai-settings-form,
.live-workspace .ai-bento-section,
.live-workspace .ai-studio-preview,
.live-workspace .broadcast-card {
  background: rgba(255, 255, 255, 0.78) !important;
  backdrop-filter: none!important;
  -webkit-backdrop-filter: none!important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: 0 10px 26px -16px rgba(15, 23, 42, 0.14), inset 0 1px 0 rgba(255, 255, 255, 0.96) !important;
}

/* Compact, Scannable Nomor & Akun Proportions */
.live-workspace .resource-header {
  border-bottom: 1px solid rgba(15, 23, 42, 0.07) !important;
  padding-bottom: 12px !important;
  margin-bottom: 12px !important;
}
.integration-summary-card {
  padding: 14px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 20px !important;
}
.integration-summary-head {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 11px !important;
}
.integration-summary-head h2 {
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #0f172a !important;
}
.integration-summary-grid {
  gap: 9px !important;
}
.integration-tile {
  padding: 11px 13px !important;
  border-radius: 14px !important;
  background: #f3f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7) !important;
}
.integration-kicker {
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 600 !important;
  color: #64748b !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
}
.integration-tile strong {
  font-size: 0.9375rem !important; /* 15px */
  font-weight: 700 !important;
  color: #0f172a !important;
  margin: 3px 0 2px !important;
}
.integration-tile small {
  font-size: 0.71875rem !important; /* 11.5px */
  color: #475569 !important;
}

.waqr-section {
  padding: 15px 16px !important;
  margin-bottom: 14px !important;
  border-radius: 20px !important;
}
.waqr-section-head {
  margin-bottom: 12px !important;
}
.waqr-title-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
  margin-bottom: 4px !important;
}
.waqr-title-row h2,
.account-section > h2,
#whatsapp-accounts-title {
  font-size: 0.9375rem !important; /* 15px clean numbered section heading */
  font-weight: 700 !important;
  color: #0f172a !important;
  text-transform: none !important;
  letter-spacing: -0.015em !important;
}
.account-section > h2,
#whatsapp-accounts-title {
  margin: 14px 0 8px !important;
}
.waqr-lib-pill {
  font-family: var(--font-sans) !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
}

.waqr-card {
  padding: 14px 15px !important;
  border-radius: 16px !important;
  background: #f4f6f9 !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.09), inset 0 1px 0 rgba(255, 255, 255, 0.75) !important;
}
.waqr-card-copy strong {
  font-family: var(--font-sans) !important;
  font-size: 0.875rem !important; /* 14px */
  font-weight: 700 !important;
  color: #0f172a !important;
}
.waqr-card-copy small {
  font-family: var(--font-sans) !important;
  font-size: 0.75rem !important; /* 12px high-contrast metadata */
  font-weight: 500 !important;
  color: #475569 !important;
  line-height: 1.45 !important;
}
.waqr-card-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 11px !important;
  padding-top: 11px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.09) !important;
}
.waqr-card-actions .primary,
.waqr-card-actions .text-button {
  min-height: 32px !important;
  height: 32px !important;
  padding: 0 14px !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
}
.waqr-card-actions .text-button:not(.resource-delete) {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.16) !important;
  color: #0f172a !important;
}
.waqr-card-actions .text-button:not(.resource-delete):hover {
  background: #eef1f6 !important;
  border-color: rgba(15, 23, 42, 0.24) !important;
}
.waqr-card-actions .text-button.resource-delete {
  background: #fff5f6 !important;
  border: 1px solid rgba(225, 29, 72, 0.28) !important;
  color: #be123c !important;
}
.waqr-card-actions .text-button.resource-delete:hover {
  background: #ffe4e6 !important;
  border-color: rgba(225, 29, 72, 0.42) !important;
}


/* ==========================================================================
   24. 1:1 SHOPEE DASHBOARD AI MODE PANEL (Mode Saran & Auto-Reply Chat)
   + Per-Chat Ambil Alih Admin Toggle in Thread Header
   ========================================================================== */

.live-workspace .ai-mode-card {
  display: flex !important;
  flex-direction: column !important;
  gap: 14px !important;
  padding: 16px 18px !important;
  border-radius: 22px !important;
  margin-bottom: 14px !important;
  width: 100% !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
  overflow: hidden !important;
}
@media (max-width: 639px) {
  .live-workspace .ai-mode-card {
    padding: 14px !important;
    border-radius: 18px !important;
  }
}
.ai-mode-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  min-width: 0 !important;
  max-width: 100% !important;
}
.ai-mode-identity {
  display: flex !important;
  align-items: flex-start !important;
  gap: 12px !important;
  min-width: 0 !important;
}
.ai-mode-spark-tile {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 38px !important;
  height: 38px !important;
  border-radius: 14px !important;
  background: rgba(254, 243, 199, 0.92) !important;
  color: #92400e !important;
  flex-shrink: 0 !important;
}
.ai-mode-spark-tile svg { width: 18px !important; height: 18px !important; }
.ai-mode-title-copy { min-width: 0 !important; }
.ai-mode-heading-row {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  gap: 7px !important;
}
.ai-mode-heading-row h2 {
  margin: 0 !important;
  font-size: 1rem !important; /* 16px clear card title */
  font-weight: 700 !important;
  color: #0f172a !important;
  letter-spacing: -0.02em !important;
  line-height: 1.25 !important;
}
.ai-mode-conn-badge {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  font-size: 0.6875rem !important; /* 11px */
  font-weight: 600 !important;
  background: #f4f4f6 !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  color: #52525b !important;
}
.ai-mode-conn-badge.is-ready {
  background: #ecfdf5 !important;
  border-color: rgba(167, 243, 208, 0.9) !important;
  color: #047857 !important;
}
.ai-mode-dot {
  display: inline-block !important;
  width: 6px !important;
  height: 6px !important;
  border-radius: 50% !important;
  background: #f59e0b !important;
}
.ai-mode-conn-badge.is-ready .ai-mode-dot { background: #10b981 !important; }
.ai-mode-title-copy p {
  margin: 6px 0 0 !important;
  font-size: 0.78125rem !important; /* 12.5px body copy */
  font-weight: 420 !important;
  line-height: 1.55 !important;
  color: #52525b !important;
}

/* Tactile Switch (AgentView.tsx line 311) */
.ai-mode-switch {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  width: 46px !important;
  height: 26px !important;
  min-height: 26px !important;
  padding: 3px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: #e4e4ea !important;
  flex-shrink: 0 !important;
  cursor: pointer !important;
  transition: background-color 180ms ease !important;
}
.ai-mode-switch.is-on { background: #141417 !important; }
.ai-mode-switch-thumb {
  width: 20px !important;
  height: 20px !important;
  border-radius: 50% !important;
  background: #ffffff !important;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.18) !important;
  transform: translateX(0) !important;
  transition: transform 200ms cubic-bezier(0.22, 1, 0.36, 1) !important;
}
.ai-mode-switch.is-on .ai-mode-switch-thumb { transform: translateX(20px) !important; }

.ai-mode-metabar {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 6px !important;
  padding-top: 13px !important;
  border-top: 1px solid rgba(15, 23, 42, 0.08) !important;
}
.ai-mode-metabar-title {
  font-size: 0.6875rem !important; /* 11px uppercase section kicker */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.055em !important;
  color: #475569 !important;
}
.ai-mode-counter {
  font-size: 0.71875rem !important; /* 11.5px */
  font-weight: 500 !important;
  color: #64748b !important;
}
.ai-mode-counter strong {
  font-family: var(--font-mono) !important;
  font-variant-numeric: tabular-nums !important;
  font-weight: 700 !important;
  color: #0f172a !important;
}

/* 2-Mode Selector Grid (Mode Saran | Auto-Reply Chat) */
.ai-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 11px !important;
}
@media (max-width: 639px) {
  .ai-mode-grid { grid-template-columns: minmax(0, 1fr) !important; }
}
.ai-mode-option {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  text-align: left !important;
  padding: 15px 16px !important;
  border-radius: 16px !important;
  border: 1px solid rgba(15, 23, 42, 0.11) !important;
  background: #f3f5f8 !important;
  color: #0f172a !important;
  cursor: pointer !important;
  transition: background-color 150ms ease, border-color 150ms ease, transform 120ms ease, box-shadow 150ms ease !important;
}
.ai-mode-option:hover:not(.is-selected):enabled {
  background: #ffffff !important;
  border-color: rgba(15, 23, 42, 0.18) !important;
}
.ai-mode-option:active:enabled { transform: scale(0.985) !important; }
.ai-mode-option.is-suggest.is-selected {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -10px rgba(15, 20, 32, 0.4) !important;
}
.ai-mode-option.is-auto_reply.is-selected {
  background: #047857 !important;
  border-color: #047857 !important;
  color: #ffffff !important;
  box-shadow: 0 8px 20px -10px rgba(4, 120, 87, 0.45) !important;
}
.ai-mode-opt-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.ai-mode-opt-head strong {
  font-size: 0.90625rem !important; /* 14.5px crisp mode title */
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  line-height: 1.25 !important;
  color: inherit !important;
}
.ai-mode-opt-badge {
  padding: 3px 9px !important;
  border-radius: 999px !important;
  background: rgba(15, 23, 42, 0.08) !important;
  color: #334155 !important;
  font-size: 0.625rem !important; /* 10px */
  font-weight: 700 !important;
  letter-spacing: 0.03em !important;
  flex-shrink: 0 !important;
}
.ai-mode-option.is-selected .ai-mode-opt-badge {
  background: rgba(255, 255, 255, 0.2) !important;
  color: #ffffff !important;
}
.ai-mode-opt-sub {
  margin-top: 4px !important;
  font-size: 0.65625rem !important; /* 10.5px distinct uppercase subtitle */
  font-weight: 650 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #64748b !important;
}
.ai-mode-option.is-selected .ai-mode-opt-sub { color: rgba(255, 255, 255, 0.68) !important; }
.ai-mode-opt-desc {
  margin: 10px 0 0 !important;
  font-size: 0.78125rem !important; /* 12.5px clear body copy */
  font-weight: 420 !important;
  line-height: 1.55 !important;
  color: #334155 !important;
}
.ai-mode-option.is-selected .ai-mode-opt-desc { color: rgba(255, 255, 255, 0.92) !important; }

/* Automation Log Panel */
.ai-mode-logs[hidden] { display: none !important; }
.ai-mode-logs:not([hidden]) {
  padding: 12px 13px !important;
  border-radius: 16px !important;
  background: #f3f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ai-mode-logs-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin-bottom: 9px !important;
  font-size: 0.6875rem !important; /* 11px uppercase subheader */
  font-weight: 700 !important;
  text-transform: uppercase !important;
  letter-spacing: 0.05em !important;
  color: #475569 !important;
}
.ai-mode-logs-sync {
  font-family: var(--font-mono) !important;
  font-size: 0.65625rem !important;
  font-weight: 500 !important;
  text-transform: none !important;
  letter-spacing: 0 !important;
  color: #64748b !important;
}
.ai-mode-logs-list {
  display: flex !important;
  flex-direction: column !important;
  gap: 7px !important;
  max-height: 168px !important;
  overflow-y: auto !important;
  min-width: 0 !important;
}
.ai-mode-log-row {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding: 9px 12px !important;
  border-radius: 12px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.085) !important;
  min-width: 0 !important;
  max-width: 100% !important;
  box-sizing: border-box !important;
}
.ai-mode-log-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
}
.ai-mode-log-copy strong {
  display: block !important;
  font-size: 0.78125rem !important; /* 12.5px clear log title */
  font-weight: 650 !important;
  line-height: 1.35 !important;
  color: #0f172a !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.ai-mode-log-copy p {
  margin: 3px 0 0 !important;
  font-size: 0.71875rem !important; /* 11.5px log body */
  font-weight: 420 !important;
  line-height: 1.5 !important;
  color: #475569 !important;
  overflow-wrap: anywhere !important;
  word-break: break-word !important;
}
.ai-mode-log-row time {
  flex-shrink: 0 !important;
  font-family: var(--font-mono) !important;
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  color: #64748b !important;
}

/* Per-Chat Ambil Alih Admin / AI Aktif Toggle in Thread Header */
.live-workspace .ai-takeover-btn:not([hidden]) {
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 10px !important;
  gap: 5px !important;
  font-size: 0.71875rem !important;
  font-weight: 600 !important;
  background: rgba(16, 185, 129, 0.1) !important;
  border-color: rgba(16, 185, 129, 0.28) !important;
  color: #065f46 !important;
}
.live-workspace .ai-takeover-btn svg {
  width: 13px !important;
  height: 13px !important;
  color: #059669 !important;
}
.live-workspace .ai-takeover-btn.is-taken-over:not([hidden]) {
  background: rgba(245, 158, 11, 0.14) !important;
  border-color: rgba(245, 158, 11, 0.35) !important;
  color: #92400e !important;
}
.live-workspace .ai-takeover-btn.is-taken-over svg {
  color: #d97706 !important;
}
@media (max-width: 460px) {
  .live-workspace .ai-takeover-btn:not([hidden]) {
    padding: 0 8px !important;
    font-size: 0.65625rem !important;
  }
}

/* Omnichannel Contact Directory Actions & Channel Chips */
.contact-card-actions {
  display: flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.contact-open-chat {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-height: 30px !important;
  height: 30px !important;
  padding: 0 11px !important;
  font-size: 0.71875rem !important;
  font-weight: 600 !important;
  background: #f3f5f8 !important;
  border: 1px solid rgba(15, 23, 42, 0.12) !important;
  color: #0f172a !important;
}
.contact-open-chat:hover {
  background: #e9edf4 !important;
}
.contact-open-chat svg {
  width: 13px !important;
  height: 13px !important;
}
.contact-card-labels {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 5px !important;
  margin-top: 4px !important;
}
.contact-card-labels .resource-badge {
  font-size: 0.625rem !important;
  padding: 1.5px 7px !important;
}
#resource-sync:not([hidden]) {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
}
#resource-sync svg {
  width: 14px !important;
  height: 14px !important;
}
@media (max-width: 460px) {
  .contact-card-actions {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 5px !important;
  }
}

/* 25. Clean Flat Ringkasan Live (Zero Apple Glass / Zero Glossy Bevel) */
.live-workspace .overview-hero {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 18px !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
  padding: 18px 20px !important;
  margin-bottom: 14px !important;
}
.live-workspace .overview-hero::before,
.live-workspace .overview-hero::after {
  display: none !important;
}
.live-workspace .overview-hero-kicker {
  color: #059669 !important;
  font-size: 0.65625rem !important;
  font-weight: 700 !important;
  letter-spacing: 0.06em !important;
}
.live-workspace .overview-hero-copy h2 {
  color: #0f172a !important;
  font-size: 1.0625rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  margin: 4px 0 3px !important;
}
.live-workspace .overview-hero-copy p {
  color: #64748b !important;
  font-size: 0.78125rem !important;
  line-height: 1.45 !important;
  margin: 0 !important;
}
.live-workspace .overview-hero-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 8px !important;
}
.live-workspace .overview-hero-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 36px !important;
  padding: 0 16px !important;
  border-radius: 999px !important;
  font-size: 0.78125rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.live-workspace .overview-hero-btn.is-primary {
  background: #141417 !important;
  color: #ffffff !important;
  border: 1px solid #141417 !important;
}
.live-workspace .overview-hero-btn.is-primary:hover {
  background: #27272a !important;
}
.live-workspace .overview-hero-btn.is-outline {
  background: #ffffff !important;
  color: #0f172a !important;
  border: 1px solid rgba(15, 23, 42, 0.15) !important;
}
.live-workspace .overview-hero-btn.is-outline:hover {
  background: #f4f5f8 !important;
}
.live-workspace .overview-hero-btn svg {
  width: 15px !important;
  height: 15px !important;
}

.live-workspace .overview-stat {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.live-workspace .overview-stat:hover {
  background: #fafbfc !important;
  border-color: rgba(15, 23, 42, 0.16) !important;
  box-shadow: 0 4px 12px -6px rgba(15, 23, 42, 0.1) !important;
  transform: none !important;
}
.live-workspace .overview-stat-icon {
  background: #f3f5f8 !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 10px !important;
  color: #0f172a !important;
}
.live-workspace .overview-stat-label {
  color: #64748b !important;
  font-weight: 550 !important;
}
.live-workspace .overview-stat strong {
  color: #0f172a !important;
  font-weight: 700 !important;
}
.live-workspace .recent-list {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 16px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.live-workspace .recent-row:hover {
  background: #f8fafc !important;
}

/* 26. Clean Solid Floating Mobile Navbar + Flat Desktop Sidebar Nav (Zero Liquid Glass) */
.desk-sidebar .nav-glass-pill,
.desk-sidebar .nav-glass-refract {
  display: none !important;
}
@media (min-width: 1024px) {
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"] {
    background: #ffffff !important;
    color: #0f172a !important;
    border: 1px solid rgba(15, 23, 42, 0.08) !important;
    box-shadow: 0 2px 6px -2px rgba(15, 23, 42, 0.08) !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
}
@media (max-width: 1023px) {
  .live-workspace .desk-canvas {
    padding: 0 !important;
  }
  .live-workspace .layout {
    margin: 0 !important;
    border-radius: 0 !important;
  }
  .live-workspace .conversation-list {
    padding-bottom: calc(92px + env(safe-area-inset-bottom)) !important;
  }
  .live-workspace .resource-page {
    padding-bottom: calc(96px + env(safe-area-inset-bottom)) !important;
  }
  .desk-sidebar .workspace-nav {
    bottom: max(12px, env(safe-area-inset-bottom)) !important;
    height: 58px !important;
    padding: 5px !important;
    gap: 4px !important;
    background: #181920 !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
    border: 1px solid rgba(255, 255, 255, 0.1) !important;
    box-shadow: 0 12px 28px -8px rgba(10, 12, 24, 0.42) !important;
  }
  .desk-sidebar .workspace-nav button[data-view],
  .desk-sidebar .workspace-nav .mobile-nav-more {
    height: 48px !important;
    min-height: 48px !important;
    color: rgba(255, 255, 255, 0.68) !important;
    backdrop-filter:none!important;
    -webkit-backdrop-filter:none!important;
  }
  .desk-sidebar .workspace-nav button[data-view]:hover:not([aria-current="page"]),
  .desk-sidebar .workspace-nav .mobile-nav-more:hover:not([data-active]) {
    background: rgba(255, 255, 255, 0.08) !important;
    color: #ffffff !important;
  }
  .desk-sidebar .workspace-nav button[data-view][aria-current="page"],
  .desk-sidebar .workspace-nav .mobile-nav-more[data-active] {
    background: #ffffff !important;
    color: #141417 !important;
    box-shadow: 0 2px 8px -2px rgba(0, 0, 0, 0.24) !important;
  }
  #nav-inbox-badge {
    box-shadow: 0 0 0 2px #181920 !important;
  }
  .desk-sidebar .workspace-nav button[data-view="inbox"][aria-current="page"] #nav-inbox-badge {
    box-shadow: 0 0 0 2px #ffffff !important;
  }
}

/* ==========================================================================
   27. MODERN 2026 SOLID FLAT DESIGN SYSTEM — ZERO LIQUID GLASS
   Removes every backdrop-filter blur, specular rim, translucent milky sheet,
   and glass refraction lens across the entire ChatHub Digitalkanaja app.
   Palette: Porcelain #F4F5F7 + Pure White #FFFFFF + Slate Border #E5E7EB
   + Flat Obsidian #141417 + Emerald #059669.
   ========================================================================== */

/* 1. Kill ALL backdrop-filter & glass lens primitives globally */
*,
*::before,
*::after {
  backdrop-filter:none!important;
  -webkit-backdrop-filter:none!important;
}
.nav-glass-pill,
.nav-glass-refract,
.conv-active-pill,
.liquid-glass-lens {
  display: none !important;
}

/* 2. Clean Solid Workspace Shell & Desktop Sidebar */
html,
body {
  background-color: #f4f5f7 !important;
}
#workspace,
.live-workspace {
  background: #f4f5f7 !important;
}
.live-workspace .desk-sidebar {
  background: #f4f5f7 !important;
  border-right: 1px solid #e6e8ee !important;
  box-shadow: none !important;
}
.live-workspace .desk-canvas {
  background: #f4f5f7 !important;
}
@media (min-width: 1024px) {
  .live-workspace .desk-canvas {
    padding: 12px 12px 12px 0 !important;
  }
  .live-workspace .desk-sheet,
  .live-workspace .liquid-glass-sheet {
    background: #ffffff !important;
    border: 1px solid #e5e7eb !important;
    border-radius: 20px !important;
    box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  }
}
@media (max-width: 1023px) {
  .live-workspace .desk-sheet,
  .live-workspace .liquid-glass-sheet {
    background: #f4f5f7 !important;
    border: 0 !important;
    box-shadow: none !important;
  }
}

/* 3. Crisp Solid Topbar & Flat Pills (Zero Glass) */
.live-workspace .topbar {
  background: #ffffff !important;
  border-bottom: 1px solid #eaecf0 !important;
  box-shadow: none !important;
}
.liquid-glass-pill,
.liquid-glass-button,
.live-workspace .breadcrumb-pill,
.live-workspace .sidebar-command-btn,
.live-workspace .sidebar-utility-row,
.live-workspace .sidebar-live-card,
.live-workspace .header-qr-pill,
.live-workspace .mobile-menu-btn,
.live-workspace .anim-search-trigger,
.live-workspace .ch-dd-trigger {
  background: #ffffff !important;
  border: 1px solid #e2e5ec !important;
  outline: none !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .breadcrumb-pill {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding-left: 2px !important;
}
.liquid-glass-button:hover:enabled,
.live-workspace .sidebar-command-btn:hover,
.live-workspace .sidebar-utility-row:hover,
.live-workspace .header-qr-pill:hover,
.live-workspace .ch-dd-trigger:hover {
  background: #f8f9fb !important;
  border-color: #cfd5e0 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06) !important;
}
.live-workspace .ch-dd-menu:not([hidden]) {
  background: #ffffff !important;
  border: 1px solid #e2e5ec !important;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.14) !important;
}

/* 4. Crisp Solid Flat Inbox Split View, Conversations & Chat Bubbles */
.live-workspace .layout {
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
}
.live-workspace .inbox {
  background: #ffffff !important;
  border: 0 !important;
  border-right: 1px solid #eaecf0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.live-workspace .thread {
  background: #f8f9fb !important;
  border: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  outline: none !important;
}
.live-workspace .thread-header {
  background: #ffffff !important;
  border-bottom: 1px solid #eaecf0 !important;
  box-shadow: none !important;
}
.live-workspace .thread-footer {
  background: #ffffff !important;
  border-top: 1px solid #eaecf0 !important;
  box-shadow: none !important;
}
.live-workspace .messages {
  background: #f7f8fa !important;
}
.live-workspace .quick-filter-pills {
  background: #f1f3f6 !important;
  border: 1px solid #e6e8ee !important;
  box-shadow: none !important;
}
.live-workspace .qf-btn[aria-pressed="true"] {
  background: #ffffff !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}
.live-workspace .conversation {
  background: #ffffff !important;
  border: 1px solid #eaecf0 !important;
  box-shadow: none !important;
  transition: background-color 140ms ease, border-color 140ms ease !important;
}
.live-workspace .conversation:hover {
  background: #f8f9fb !important;
  border-color: #d8dce4 !important;
}
.live-workspace .conversation.active {
  background: #f3f5f9 !important;
  border-color: #141417 !important;
  box-shadow: none !important;
}
.live-workspace .bubble.in {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .bubble.out {
  background: #141417 !important;
  border: 1px solid #141417 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.live-workspace .ai-inline:not([hidden]) {
  background: #ffffff !important;
  border: 1px solid #e2e5ec !important;
  box-shadow: 0 2px 8px -4px rgba(15, 23, 42, 0.08) !important;
}
.live-workspace #ai-inline-preview {
  background: #f8f9fb !important;
  border: 1px solid #e5e7eb !important;
}
.live-workspace .reply {
  background: #ffffff !important;
  border: 1px solid #d8dce4 !important;
  box-shadow: none !important;
}
.live-workspace .reply:focus-within {
  border-color: #141417 !important;
  box-shadow: 0 0 0 3px rgba(20, 20, 23, 0.06) !important;
}
.live-workspace .reply-source {
  background: #f3f5f8 !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}

/* 5. Flat Solid Primary & Secondary Buttons (Zero 3D / Zero Specular Shine) */
.primary,
#ai-inline-insert,
.live-workspace #send {
  background: #141417 !important;
  color: #ffffff !important;
  border: 1px solid #141417 !important;
  box-shadow: none !important;
}
.primary:hover:enabled,
#ai-inline-insert:hover:enabled,
.live-workspace #send:hover:enabled {
  background: #27272a !important;
  border-color: #27272a !important;
  box-shadow: none !important;
}

/* 6. Crisp Solid Modern Cards Across ALL Resource Pages */
.live-workspace .resource-page {
  background: #f4f5f7 !important;
}
@media (min-width: 1024px) {
  .live-workspace .resource-page {
    background: #f8f9fb !important;
  }
}
.live-workspace .surface-card,
.live-workspace .integration-summary-card,
.live-workspace .waqr-section,
.live-workspace .account-card,
.live-workspace .contact-directory,
.live-workspace .resource-filter,
.live-workspace .recent-list,
.live-workspace .template-card,
.live-workspace .ai-mode-card,
.live-workspace .ai-studio-bar,
.live-workspace .ai-settings-form,
.live-workspace .ai-bento-section,
.live-workspace .ai-studio-preview,
.live-workspace .broadcast-card,
.live-workspace .overview-hero,
.live-workspace .overview-stat,
.live-workspace .contact-panel {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  outline: none !important;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .resource-filter select,
.live-workspace .resource-filter input,
.live-workspace .resource-filter button[type="submit"] {
  background: #f8f9fb !important;
  border: 1px solid #dfe3ea !important;
  box-shadow: none !important;
}
.live-workspace .resource-filter button[type="submit"]:hover {
  background: #eff1f5 !important;
}
.live-workspace .contact-card:hover {
  background: #f8f9fb !important;
}
.live-workspace .contact-open-chat,
.live-workspace .contact-card .resource-edit {
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  box-shadow: none !important;
}
.live-workspace .contact-open-chat:hover,
.live-workspace .contact-card .resource-edit:hover {
  background: #f3f5f8 !important;
}

/* 7. Solid Crisp Dialogs, Drawers & Modals */
dialog,
.waqr-dialog,
.command-palette-dialog,
.mobile-sheet-dialog,
.filter-panel {
  background: #ffffff !important;
  border: 1px solid #e2e5ec !important;
  box-shadow: 0 20px 50px -16px rgba(15, 23, 42, 0.22) !important;
}
dialog::backdrop {
  background: rgba(15, 23, 42, 0.42) !important;
}

/* 8. Solid Crisp Mobile Floating Dock */
@media (max-width: 1023px) {
  .desk-sidebar .workspace-nav {
    background: #141417 !important;
    border: 1px solid #27272a !important;
    box-shadow: 0 10px 24px -8px rgba(15, 23, 42, 0.36) !important;
  }
}


/* ============================================================================
   SECTION 28: WEB-NATIVE MODERN CHAT UI (ZERO LIQUID GLASS)
   ============================================================================ */

/* 1. Messages Stage Wrapper + Scroll-to-Bottom FAB + Drag-Drop Overlay */
.messages-stage {
  position: relative;
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.messages-stage > #messages {
  flex: 1 1 auto;
  min-height: 0;
}
.scroll-bottom-btn {
  position: absolute;
  right: 18px;
  bottom: 16px;
  z-index: 12;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #ffffff;
  color: #141417;
  border: 1px solid #dfe3ea;
  box-shadow: 0 6px 18px -6px rgba(15, 23, 42, 0.24);
  cursor: pointer;
  transition: transform 140ms ease, background-color 140ms ease;
}
.scroll-bottom-btn:hover {
  background: #f4f5f7;
  transform: translateY(-1px);
}
.scroll-bottom-btn svg {
  width: 18px;
  height: 18px;
}
.scroll-bottom-btn[hidden] {
  display: none !important;
}

.thread-drop-overlay {
  position: absolute;
  inset: 12px;
  z-index: 20;
  border-radius: 18px;
  background: rgba(248, 249, 251, 0.96);
  border: 2px dashed #141417;
  display: flex;
  align-items: center;
  justify-content: center;
  pointer-events: none;
}
.thread-drop-overlay[hidden] {
  display: none !important;
}
.thread-drop-box {
  display: grid;
  justify-items: center;
  gap: 6px;
  text-align: center;
  color: #141417;
}
.thread-drop-box svg {
  width: 34px;
  height: 34px;
}
.thread-drop-box strong {
  font-size: 0.9375rem;
  font-weight: 650;
}
.thread-drop-box small {
  font-size: 0.75rem;
  color: #64748b;
}

/* 2. Crisp Modern Chat Bubbles, Consecutive Grouping & Rich Text */
.live-workspace .messages {
  padding: 16px 20px 18px !important;
  gap: 6px !important;
  background: #f7f8fa !important;
}
.live-workspace .day-label {
  align-self: center;
  margin: 10px 0 8px !important;
  padding: 4px 12px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #64748b !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .bubble-row {
  display: flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
  margin-top: 6px;
}
.live-workspace .bubble-row.bubble-continuation {
  margin-top: 2px !important;
}
.live-workspace .bubble-row.in {
  justify-content: flex-start;
}
.live-workspace .bubble-row.out {
  flex-direction: row-reverse;
  justify-content: flex-start;
}
.live-workspace .bubble {
  max-width: min(76%, 540px) !important;
  padding: 9px 13px 7px !important;
  border-radius: 16px !important;
  font-size: 0.875rem !important;
  line-height: 1.5 !important;
  word-break: break-word;
}
.live-workspace .bubble.in {
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #0f172a !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .bubble.in.group-start { border-bottom-left-radius: 5px !important; }
.live-workspace .bubble.in.group-mid { border-top-left-radius: 5px !important; border-bottom-left-radius: 5px !important; }
.live-workspace .bubble.in.group-end { border-top-left-radius: 5px !important; }

.live-workspace .bubble.out {
  background: #141417 !important;
  border: 1px solid #141417 !important;
  color: #ffffff !important;
  box-shadow: none !important;
}
.live-workspace .bubble.out.group-start { border-bottom-right-radius: 5px !important; }
.live-workspace .bubble.out.group-mid { border-top-right-radius: 5px !important; border-bottom-right-radius: 5px !important; }
.live-workspace .bubble.out.group-end { border-top-right-radius: 5px !important; }

.live-workspace .bubble-text {
  margin: 0;
  white-space: pre-wrap;
}
.live-workspace .bubble-text strong {
  font-weight: 680;
}
.live-workspace .bubble-text em {
  font-style: italic;
}
.live-workspace .bubble-text del {
  opacity: 0.72;
  text-decoration: line-through;
}
.live-workspace .bubble-text .msg-code {
  font-family: var(--font-mono, ui-monospace, monospace);
  font-size: 0.82em;
  padding: 1px 5px;
  border-radius: 5px;
  background: rgba(15, 23, 42, 0.07);
}
.live-workspace .bubble.out .bubble-text .msg-code {
  background: rgba(255, 255, 255, 0.14);
}
.live-workspace .bubble-text .msg-link {
  color: #0284c7;
  text-decoration: underline;
  text-underline-offset: 2px;
  word-break: break-all;
}
.live-workspace .bubble.out .bubble-text .msg-link {
  color: #7dd3fc;
}
.live-workspace .bubble-text .msg-highlight {
  background: #fef08a;
  color: #141417;
  padding: 0 2px;
  border-radius: 3px;
}

/* Quoted Message Box inside Bubble */
.bubble-quote {
  margin-bottom: 6px;
  padding: 6px 10px;
  border-radius: 10px;
  border-left: 3px solid #141417;
  background: #f3f5f8;
  font-size: 0.78rem;
  line-height: 1.38;
  color: #475569;
}
.bubble.out .bubble-quote {
  border-left-color: #34d399;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.82);
}
.bubble-quote-text {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

/* Delivery Ticks & Timestamp inside Bubble */
.live-workspace .bubble .message-stamp {
  margin-top: 4px;
  font-size: 0.6875rem;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 4px;
  width: 100%;
  white-space: nowrap;
  opacity: 0.72;
}
.live-workspace .bubble.out .message-delivery.delivery-read {
  color: #38bdf8 !important;
  opacity: 1;
}
.live-workspace .bubble.out .message-delivery.delivery-failed {
  color: #fca5a5 !important;
}

/* 3. Per-Message Hover Action Bar (Reply / Copy / Forward) */
.bubble-actions {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  padding: 3px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e5ec;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.12);
  opacity: 0;
  pointer-events: none;
  transform: translateY(2px);
  transition: opacity 130ms ease, transform 130ms ease;
  flex-shrink: 0;
}
.bubble-row:hover .bubble-actions,
.bubble-row:focus-within .bubble-actions,
.bubble-row.is-actions-open .bubble-actions {
  opacity: 1;
  pointer-events: auto;
  transform: translateY(0);
}
.bubble-action-btn {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: #475569;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background-color 120ms ease, color 120ms ease;
}
.bubble-action-btn:hover {
  background: #f1f5f9;
  color: #0f172a;
}
.bubble-action-btn.is-copied {
  background: #ecfdf5 !important;
  color: #059669 !important;
}
.bubble-action-btn svg {
  width: 15px;
  height: 15px;
}
@media (max-width: 680px) {
  .live-workspace .bubble-row {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px;
  }
  .live-workspace .bubble-row.out {
    align-items: flex-end !important;
  }
  .live-workspace .bubble-row .bubble-actions {
    display: none;
  }
  .live-workspace .bubble-row:hover .bubble-actions,
  .live-workspace .bubble-row:focus-within .bubble-actions,
  .live-workspace .bubble-row.is-actions-open .bubble-actions {
    display: inline-flex;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }
}

/* 4. Quote Reply Preview Bar Above Composer */
.reply-quote-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  padding: 8px 10px 8px 12px;
  border-radius: 12px;
  background: #f4f5f8;
  border: 1px solid #e2e5ec;
  border-left: 3px solid #141417;
}
.reply-quote-bar[hidden] {
  display: none !important;
}
.reply-quote-copy {
  min-width: 0;
  display: grid;
  gap: 2px;
}
.reply-quote-copy strong {
  font-size: 0.72rem;
  font-weight: 680;
  color: #141417;
}
.reply-quote-copy span {
  font-size: 0.78rem;
  color: #475569;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* 5. Thread Header Web Controls (Status Select, Pin, Thread Search, Compact Contact Edit) */
.live-workspace .thread-header {
  gap: 10px !important;
  padding: 10px 14px !important;
}
.live-workspace .thread-header .contact {
  min-width: 130px !important;
  flex: 1 1 160px !important;
  overflow: hidden;
}
.live-workspace .thread-header .contact-title-row {
  overflow: hidden;
}
.live-workspace .thread-header .contact-title-row .queue-status {
  display: none !important;
}
.live-workspace .thread-header-actions {
  gap: 5px !important;
  flex-shrink: 0;
}
.live-workspace .thread-header-actions #save-contact {
  width: 34px !important;
  min-width: 34px !important;
  height: 34px !important;
  padding: 0 !important;
  justify-content: center !important;
}
.live-workspace .thread-header-actions #save-contact #save-contact-label,
.live-workspace .thread-header-actions #save-contact .contact-compact-label {
  display: none !important;
}
.live-workspace .bubble.sticker-bubble {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px !important;
}
.live-workspace .bubble.sticker-bubble .message-stamp {
  width: auto !important;
  align-self: flex-end;
  padding: 2px 8px;
  border-radius: 999px;
  background: rgba(20, 20, 23, 0.72);
  color: #ffffff;
  opacity: 1;
}
.thread-status-wrap {
  display: inline-flex;
  align-items: center;
}
.thread-status-wrap[hidden] {
  display: none !important;
}
.thread-status-select {
  height: 32px;
  padding: 0 26px 0 10px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #f8f9fb;
  color: #141417;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
}
.thread-status-select[data-status="waiting"] {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}
.thread-status-select[data-status="hold"] {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}
.thread-status-select[data-status="closed"] {
  background: #ecfdf5;
  border-color: #a7f3d0;
  color: #047857;
}
.thread-status-select[data-status="blocked"] {
  background: #fef2f2;
  border-color: #fecaca;
  color: #b91c1c;
}
.pin-chat-btn.is-pinned,
#thread-search-toggle.is-active {
  background: #141417 !important;
  color: #ffffff !important;
  border-color: #141417 !important;
}

/* 6. Conversation Row Web Badges (Pin, Status, Labels) */
.conv-name-wrap {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
  flex: 1 1 auto;
}
.conv-name-wrap strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.conv-pin-icon {
  display: inline-flex;
  align-items: center;
  color: #141417;
  flex-shrink: 0;
}
.conv-pin-icon svg {
  width: 12px;
  height: 12px;
}
.conversation.is-pinned {
  background: #fafbfc;
}
.conv-web-status,
.queue-status.queue-web-waiting,
.queue-status.queue-web-hold,
.queue-status.queue-web-blocked {
  display: inline-flex;
  align-items: center;
  padding: 1.5px 7px;
  border-radius: 999px;
  font-size: 0.65rem;
  font-weight: 650;
  white-space: nowrap;
}
.conv-web-status.is-waiting,
.queue-status.queue-web-waiting {
  background: #fef3c7;
  color: #b45309;
}
.conv-web-status.is-hold,
.queue-status.queue-web-hold {
  background: #e0e7ff;
  color: #3730a3;
}
.conv-web-status.is-blocked,
.queue-status.queue-web-blocked {
  background: #fee2e2;
  color: #b91c1c;
}
.conv-label-chip {
  display: inline-flex;
  align-items: center;
  padding: 1px 6px;
  border-radius: 6px;
  background: #eff1f5;
  color: #334155;
  font-size: 0.65rem;
  font-weight: 600;
  max-width: 92px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* 7. Contact Detail Panel: Web-Native Label & Note Card */
.contact-web-meta {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
}
.contact-web-meta[hidden] {
  display: none !important;
}
.web-meta-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.web-meta-head strong {
  font-size: 0.8125rem;
  font-weight: 660;
  color: #0f172a;
}
.web-meta-badge {
  font-size: 0.65rem;
  font-weight: 600;
  padding: 2px 7px;
  border-radius: 999px;
  background: #ffffff;
  border: 1px solid #e2e5ec;
  color: #475569;
}
.web-meta-labels {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.web-meta-empty {
  font-size: 0.75rem;
  color: #64748b;
}
.web-meta-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 8px;
  border-radius: 999px;
  background: #141417;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 600;
}
.web-meta-chip-rm {
  border: 0;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.85rem;
  line-height: 1;
  cursor: pointer;
  padding: 0 2px;
}
.web-meta-chip-rm:hover {
  color: #ffffff;
}
.web-meta-label-form {
  display: flex;
  gap: 6px;
}
.web-meta-label-form input {
  flex: 1 1 auto;
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border-radius: 10px;
  border: 1px solid #dfe3ea;
  background: #ffffff;
  font-size: 0.78rem;
}
.web-meta-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.web-meta-presets button {
  padding: 3px 9px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #ffffff;
  color: #334155;
  font-size: 0.7rem;
  font-weight: 600;
  cursor: pointer;
}
.web-meta-presets button:hover {
  background: #eff1f5;
  border-color: #cbd5e1;
}
.web-meta-note-field {
  display: grid;
  gap: 5px;
}
.web-meta-note-field span {
  font-size: 0.72rem;
  font-weight: 600;
  color: #475569;
}
.web-meta-note-field textarea {
  width: 100%;
  padding: 8px 10px;
  border-radius: 10px;
  border: 1px solid #dfe3ea;
  background: #ffffff;
  font-size: 0.78rem;
  resize: vertical;
}

/* 8. Lightweight Web Toast Notification */
.web-toast {
  position: fixed;
  left: 50%;
  bottom: 24px;
  z-index: 9999;
  transform: translate(-50%, 8px);
  opacity: 0;
  padding: 9px 16px;
  border-radius: 999px;
  background: #141417;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 600;
  box-shadow: 0 12px 28px -10px rgba(15, 23, 42, 0.36);
  pointer-events: none;
  transition: opacity 160ms ease, transform 160ms ease;
}
.web-toast.is-visible {
  opacity: 1;
  transform: translate(-50%, 0);
}
.web-toast[hidden] {
  display: none !important;
}

/* 9. Mobile Responsive Thread Header Polish (<= 680px) */
@media (max-width: 680px) {
  .live-workspace .thread-header {
    gap: 6px !important;
    padding: 8px 10px !important;
  }
  .live-workspace .thread-header .contact {
    min-width: 0 !important;
    flex: 1 1 70px !important;
  }
  .thread-header-actions {
    gap: 3px !important;
  }
  .thread-status-wrap,
  #resolve,
  .live-workspace .thread-header-actions #save-contact {
    display: none !important;
  }
  .live-workspace .messages {
    padding: 12px 12px 14px !important;
  }
  .live-workspace .bubble {
    max-width: 86% !important;
  }
  .web-toast {
    bottom: 92px;
  }
}


/* ============================================================================
   SECTION 29: JACKIES CHATHUB 1:1 UI OVERHAUL (4-SCREEN MODERN FLAT SYSTEM)
   ============================================================================ */

/* 1. Top Brand Header: // Jackies ChatHub | ● Online + [QR] Button */
.live-workspace .topbar {
  height: 54px !important;
  min-height: 54px !important;
  padding: 0 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f0f1f4 !important;
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
}
.chathub-top-brand {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}
.chathub-slash-logo {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #111114;
  flex-shrink: 0;
}
.chathub-slash-logo svg {
  width: 20px;
  height: 20px;
}
.sidebar-logo-wrap.chathub-slash-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  background: #111114;
  color: #ffffff;
}
.sidebar-logo-wrap.chathub-slash-logo svg {
  width: 17px;
  height: 17px;
}
.chathub-brand-title {
  font-size: 0.9375rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: #111114;
  white-space: nowrap;
}
.chathub-brand-sep {
  color: #d1d5db;
  font-weight: 400;
  font-size: 0.875rem;
}
.chathub-online-status {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.78rem;
  font-weight: 550;
  color: #6b7280;
  white-space: nowrap;
}
.chathub-online-dot,
.status-mini-dot {
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: #16a34a;
  display: inline-block;
  flex-shrink: 0;
}
.chathub-qr-topbtn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 36px;
  padding: 0 11px;
  border-radius: 11px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  color: #111114;
  font-size: 0.78rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease, transform 120ms ease;
}
.chathub-qr-topbtn:hover {
  background: #f8f9fb;
  border-color: #d1d5db;
}
.chathub-qr-topbtn:active {
  transform: scale(0.97);
}
.chathub-qr-topbtn svg {
  width: 18px;
  height: 18px;
}

@media (max-width: 1023px) {
  .topbar-desk-only,
  #global-search-wrap,
  #header-channel-switcher,
  .chathub-qr-topbtn .header-qr-label {
    display: none !important;
  }
  .chathub-qr-topbtn {
    width: 36px;
    padding: 0;
  }
  /* Hide topbar & floating bottom dock when mobile chat thread is open (Screen 4 full-height) */
  .live-workspace.thread-open .topbar {
    display: none !important;
  }
  .live-workspace.thread-open .desk-sidebar {
    display: none !important;
  }
  .live-workspace .desk-sheet,
  .live-workspace .liquid-glass-sheet,
  .live-workspace .resource-page {
    background: #ffffff !important;
  }
}

/* 2. Universal WhatsApp (#25D366) & Telegram (#2AABEE) Corner & Mini Badges */
.conv-avatar-wrap {
  position: relative !important;
  width: 44px !important;
  height: 44px !important;
  flex: 0 0 44px !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.conv-avatar-wrap > .avatar {
  width: 44px !important;
  height: 44px !important;
  border-radius: 999px !important;
  font-size: 0.875rem !important;
  font-weight: 680 !important;
}
.thread-avatar-wrap {
  width: 38px !important;
  height: 38px !important;
  flex: 0 0 38px !important;
}
.thread-avatar-wrap > .avatar {
  width: 38px !important;
  height: 38px !important;
  font-size: 0.8125rem !important;
}
.ch-corner-badge {
  position: absolute;
  right: -2px;
  bottom: -2px;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid #ffffff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #ffffff;
  z-index: 2;
}
.ch-corner-badge svg {
  width: 10px;
  height: 10px;
}
.ch-corner-badge.is-wa,
.ch-mini-badge.is-wa {
  background: #22c55e;
  color: #ffffff;
}
.ch-corner-badge.is-tg,
.ch-mini-badge.is-tg {
  background: #2aabee;
  color: #ffffff;
}
.ch-mini-badge {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.ch-mini-badge svg {
  width: 10px;
  height: 10px;
}

/* 3. Screen 1 — Inbox Header, Account Pill, Gray Search+Sliders, Underline Tabs, Rows */
.live-workspace .list-header {
  padding: 14px 16px 8px !important;
  gap: 10px !important;
  background: #ffffff !important;
  border-bottom: 0 !important;
}
.live-workspace .list-title {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 10px !important;
}
.live-workspace #inbox-title {
  font-size: 1.5rem !important;
  font-weight: 720 !important;
  letter-spacing: -0.028em !important;
  color: #111114 !important;
  margin: 0 !important;
}
.live-workspace .inbox-account-pill {
  display: inline-flex !important;
  position: relative;
}
.live-workspace .inbox-account-pill select {
  height: 34px !important;
  padding: 0 28px 0 12px !important;
  border-radius: 999px !important;
  border: 1px solid #e5e7eb !important;
  background-color: #ffffff !important;
  color: #111114 !important;
  font-size: 0.78rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Soft Gray Search Bar with Integrated Vertical Divider + Sliders Button */
.live-workspace .inbox-search,
.live-workspace .chathub-gray-search {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  height: 42px !important;
  padding: 0 10px 0 13px !important;
  border-radius: 13px !important;
  background: #f3f4f6 !important;
  border: 1px solid transparent !important;
  box-shadow: none !important;
}
.live-workspace .inbox-search:focus-within,
.live-workspace .chathub-gray-search:focus-within {
  background: #ffffff !important;
  border-color: #d1d5db !important;
}
.live-workspace .inbox-search input,
.live-workspace .chathub-gray-search input {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  border: 0 !important;
  background: transparent !important;
  font-size: 0.84375rem !important;
  color: #111114 !important;
  outline: none !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.chathub-search-grow {
  flex: 1 1 auto;
  display: flex;
  min-width: 0;
  margin: 0 !important;
}
.search-divider {
  width: 1px;
  height: 18px;
  background: #d1d5db;
  flex-shrink: 0;
}
.search-filter-trigger {
  width: 30px;
  height: 30px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
}
.search-filter-trigger:hover {
  background: rgba(15, 23, 42, 0.06);
}
.search-filter-trigger svg {
  width: 17px;
  height: 17px;
}

/* Clean 3-Tab Underline Bar: Semua | Belum dibalas | Selesai */
.live-workspace .chathub-underline-tabs {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  padding: 0 !important;
  gap: 0 !important;
  background: transparent !important;
  border: 0 !important;
  border-bottom: 1px solid #eaecf0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
}
.live-workspace .chathub-underline-tabs .qf-btn {
  position: relative;
  height: 38px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  color: #6b7280 !important;
  font-size: 0.84375rem !important;
  font-weight: 560 !important;
  justify-content: center !important;
}
.live-workspace .chathub-underline-tabs .qf-btn[aria-pressed="true"] {
  background: transparent !important;
  color: #111114 !important;
  font-weight: 680 !important;
  box-shadow: none !important;
}
.live-workspace .chathub-underline-tabs .qf-btn[aria-pressed="true"]::after {
  content: "";
  position: absolute;
  left: 14px;
  right: 14px;
  bottom: -1px;
  height: 2px;
  border-radius: 2px;
  background: #111114;
}

/* Count & Sort Row: "1.091 percakapan" ... "≡ Terbaru v" */
.live-workspace .list-subtoolbar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  padding: 2px 2px 0 !important;
  min-height: 28px !important;
}
.inbox-count-wrap {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
}
.inbox-count-text,
.chathub-count-caption {
  font-size: 0.78125rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}
.chathub-sort-label {
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  color: #111114 !important;
}
.chathub-sort-label .sort-icon {
  display: inline-flex;
  color: #374151;
}
.chathub-sort-label .sort-icon svg {
  width: 14px;
  height: 14px;
}
.chathub-sort-label select {
  border: 0 !important;
  background-color: transparent !important;
  font-size: 0.78125rem !important;
  font-weight: 650 !important;
  color: #111114 !important;
  padding: 2px 20px 2px 2px !important;
  box-shadow: none !important;
  cursor: pointer;
}

/* Clean Conversation Rows with Left Vertical Black Active Bar */
.live-workspace .conversation-list {
  padding: 4px 10px 18px !important;
  gap: 2px !important;
  background: #ffffff !important;
}
.live-workspace .conversation {
  position: relative !important;
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 12px 11px 14px !important;
  border-radius: 14px !important;
  border: 0 !important;
  border-bottom: 1px solid #f3f4f6 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.live-workspace .conversation:hover {
  background: #f9fafb !important;
}
.live-workspace .conversation[aria-current="true"] {
  background: #f3f4f6 !important;
  border-bottom-color: transparent !important;
}
.conv-active-bar {
  position: absolute;
  left: 3px;
  top: 50%;
  transform: translateY(-50%) scaleY(0);
  width: 3px;
  height: 24px;
  border-radius: 999px;
  background: #111114;
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1);
}
.live-workspace .conversation[aria-current="true"] .conv-active-bar {
  transform: translateY(-50%) scaleY(1);
}
.live-workspace .conversation .conv-row-top strong {
  font-size: 0.90625rem !important;
  font-weight: 680 !important;
  color: #111114 !important;
}
.live-workspace .conversation .conv-time {
  font-size: 0.75rem !important;
  color: #6b7280 !important;
  font-weight: 500 !important;
}
.live-workspace .conversation .snippet {
  font-size: 0.8125rem !important;
  color: #374151 !important;
}
.live-workspace .conversation .row-meta {
  font-size: 0.75rem !important;
  color: #6b7280 !important;
}
.conv-ai-pill {
  display: inline-flex;
  align-items: center;
  padding: 1px 7px;
  border-radius: 6px;
  background: #f3f4f6;
  border: 1px solid #e5e7eb;
  color: #374151;
  font-size: 0.65625rem;
  font-weight: 620;
  margin-left: 4px;
}
.live-workspace .conversation[aria-current="true"] .conv-ai-pill {
  background: #ffffff;
}
.chathub-unread-badge {
  min-width: 20px !important;
  height: 20px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #111114 !important;
  color: #ffffff !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}

/* 4. Screen 2 & Screen 3 — Resource Pages (Kontak & Nomor & akun) */
.live-workspace .resource-page {
  background: #ffffff !important;
  padding: 14px 16px 36px !important;
}
@media (min-width: 1024px) {
  .live-workspace .resource-page {
    padding: 20px 28px 44px !important;
    max-width: 880px;
  }
}
.chathub-page-header {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 14px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
}
.chathub-page-heading {
  display: grid !important;
  gap: 2px !important;
}
/* Unhide #resource-title so Kontak and Nomor & akun display bold 24px headings */
.live-workspace #resource-title {
  position: static !important;
  width: auto !important;
  height: auto !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: visible !important;
  clip: auto !important;
  clip-path: none !important;
  white-space: normal !important;
  font-size: 1.5rem !important;
  font-weight: 720 !important;
  letter-spacing: -0.028em !important;
  color: #111114 !important;
  line-height: 1.2 !important;
}
.live-workspace #resource-description {
  font-size: 0.8125rem !important;
  color: #6b7280 !important;
  margin: 0 !important;
}

/* "+ Tambah" Button on Kontak */
.chathub-add-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  height: 36px !important;
  padding: 0 4px !important;
  border: 0 !important;
  background: transparent !important;
  color: #111114 !important;
  font-size: 0.875rem !important;
  font-weight: 660 !important;
  cursor: pointer;
}
.chathub-add-btn[hidden] {
  display: none !important;
}
.chathub-add-btn .add-plus-circle {
  display: inline-flex;
  color: #111114;
}
.chathub-add-btn .add-plus-circle svg {
  width: 24px;
  height: 24px;
}

/* Kontak Search + Channel Filter Pills + Sync Banner */
.live-workspace .chathub-resource-search {
  display: grid !important;
  gap: 8px !important;
  padding: 0 !important;
  margin-bottom: 12px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.live-workspace .chathub-resource-search[hidden] {
  display: none !important;
}
.resource-account-drawer {
  padding: 10px 12px;
  border-radius: 12px;
  background: #f8f9fb;
  border: 1px solid #e5e7eb;
}
.resource-account-drawer[hidden] {
  display: none !important;
}

.contacts-channel-pills {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}
.contacts-channel-pills[hidden] {
  display: none !important;
}
.ch-pill-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 14px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111114;
  font-size: 0.8125rem;
  font-weight: 600;
  cursor: pointer;
  transition: background-color 130ms ease, color 130ms ease, border-color 130ms ease;
}
.ch-pill-filter[aria-pressed="true"] {
  background: #111114;
  border-color: #111114;
  color: #ffffff;
}
.pill-ch-ico {
  width: 16px;
  height: 16px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}
.pill-ch-ico.is-wa { color: #16a34a; }
.pill-ch-ico.is-tg { color: #2aabee; }
.ch-pill-filter[aria-pressed="true"] .pill-ch-ico { color: #ffffff; }
.pill-ch-ico svg { width: 15px; height: 15px; }

.contacts-sync-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  margin-bottom: 12px;
  border-radius: 14px;
  background: #f8f9fb;
  border: 1px solid #eef0f4;
}
.contacts-sync-banner[hidden] {
  display: none !important;
}
.sync-banner-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.sync-check-ico {
  display: inline-flex;
  color: #16a34a;
  flex-shrink: 0;
}
.sync-check-ico svg {
  width: 22px;
  height: 22px;
}
.sync-banner-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.sync-banner-copy strong {
  font-size: 0.8125rem;
  font-weight: 660;
  color: #111114;
}
.sync-banner-copy small {
  font-size: 0.75rem;
  color: #6b7280;
}
.chathub-sync-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 34px;
  padding: 0 13px;
  border-radius: 999px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111114;
  font-size: 0.78125rem;
  font-weight: 620;
  cursor: pointer;
  flex-shrink: 0;
}
.chathub-sync-pill:hover {
  background: #f3f4f6;
}
.chathub-sync-pill svg {
  width: 14px;
  height: 14px;
}

/* Clean Contact Rows (Screen 2) */
.live-workspace .chathub-contact-list {
  display: grid !important;
  gap: 0 !important;
  background: #ffffff !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
}
.live-workspace .chathub-contact-row {
  display: flex !important;
  align-items: center !important;
  gap: 12px !important;
  padding: 11px 2px !important;
  border: 0 !important;
  border-bottom: 1px solid #f1f5f9 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
}
.live-workspace .chathub-contact-row .contact-card-info {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.live-workspace .chathub-contact-row .contact-card-info.is-editable {
  cursor: pointer;
}
.live-workspace .chathub-contact-row .contact-card-name {
  font-size: 0.90625rem !important;
  font-weight: 660 !important;
  color: #111114 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.live-workspace .chathub-contact-row .contact-card-sub {
  font-size: 0.78125rem !important;
  color: #6b7280 !important;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.contact-chat-circle {
  width: 36px;
  height: 36px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: #ffffff;
  color: #111114;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background-color 130ms ease, transform 120ms ease;
}
.contact-chat-circle:hover {
  background: #f3f4f6;
}
.contact-chat-circle:active {
  transform: scale(0.95);
}
.contact-chat-circle svg {
  width: 18px;
  height: 18px;
}

/* 5. Screen 3 — Nomor & akun (Action Row, 3-Tile Strip, WA QR Card, Chevron Cards) */
.accounts-top-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr);
  gap: 8px;
  margin-bottom: 14px;
}
.accounts-top-actions[hidden] {
  display: none !important;
}
.chathub-btn-dark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #141417;
  background: #141417;
  color: #ffffff;
  font-size: 0.8125rem;
  font-weight: 640;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.chathub-btn-dark:hover {
  background: #27272a;
}
.chathub-btn-dark svg {
  width: 16px;
  height: 16px;
}
.chathub-btn-outline {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  height: 40px;
  padding: 0 14px;
  border-radius: 12px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #111114;
  font-size: 0.8125rem;
  font-weight: 620;
  cursor: pointer;
  text-decoration: none;
  white-space: nowrap;
}
.chathub-btn-outline:hover {
  background: #f8f9fb;
}
.chathub-btn-outline svg {
  width: 15px;
  height: 15px;
}

.live-workspace .chathub-status-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  padding: 0 !important;
  margin-bottom: 18px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.live-workspace .chathub-status-strip[hidden] {
  display: none !important;
}
.chathub-status-tile {
  display: grid;
  gap: 3px;
  padding: 10px 11px;
  border-radius: 13px;
  background: #f8f9fb;
  border: 1px solid #eceef2;
}
.chathub-status-kicker {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.6875rem;
  font-weight: 550;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.chathub-status-tile strong {
  font-size: 0.84375rem;
  font-weight: 700;
  color: #111114;
}

.chathub-acc-block {
  margin-bottom: 18px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}
.chathub-acc-block[hidden] {
  display: none !important;
}
.chathub-acc-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.chathub-acc-head h2 {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #111114 !important;
  margin: 0 !important;
}
.chathub-acc-head p {
  font-size: 0.78125rem !important;
  color: #6b7280 !important;
  margin: 2px 0 0 !important;
}

.chathub-acc-icon {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}
.chathub-acc-icon svg {
  width: 20px;
  height: 20px;
}
.chathub-acc-icon.is-wa {
  background: #dcfce7;
  color: #16a34a;
}
.chathub-acc-icon.is-tg {
  background: #e0f2fe;
  color: #0284c7;
}
.chathub-acc-icon.is-ai {
  background: #f3f4f6;
  color: #111114;
}

/* WA QR Card (Screen 3) */
.live-workspace .chathub-waqr-card {
  display: grid !important;
  gap: 12px !important;
  padding: 14px !important;
  border-radius: 16px !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
.chathub-waqr-card .waqr-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.chathub-waqr-card .waqr-card-lead {
  display: flex;
  align-items: flex-start;
  gap: 11px;
  min-width: 0;
}
.chathub-waqr-card .waqr-card-copy {
  display: grid;
  gap: 1px;
  min-width: 0;
}
.chathub-waqr-card .waqr-card-copy strong {
  font-size: 0.875rem;
  font-weight: 680;
  color: #111114;
}
.waqr-phone-text {
  font-size: 0.78125rem;
  color: #374151;
  font-variant-numeric: tabular-nums;
}
.waqr-push-text {
  font-size: 0.75rem;
  color: #6b7280;
}
.chathub-waqr-actions {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  padding-top: 0 !important;
  border-top: 0 !important;
}
.waqr-primary-cta {
  flex: 1 1 auto;
}
.waqr-more-menu {
  position: relative;
  flex-shrink: 0;
}
.waqr-more-trigger {
  list-style: none;
  width: 40px;
  height: 40px;
  border-radius: 11px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  color: #374151;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
}
.waqr-more-trigger::-webkit-details-marker {
  display: none;
}
.waqr-more-trigger svg {
  width: 18px;
  height: 18px;
}
.waqr-more-popover {
  position: absolute;
  right: 0;
  bottom: calc(100% + 6px);
  min-width: 150px;
  padding: 5px;
  border-radius: 12px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 12px 28px -8px rgba(15, 23, 42, 0.18);
  display: grid;
  gap: 2px;
  z-index: 30;
}
.waqr-menu-item {
  width: 100%;
  text-align: left;
  padding: 8px 10px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #111114;
  font-size: 0.78125rem;
  font-weight: 560;
  cursor: pointer;
}
.waqr-menu-item:hover {
  background: #f3f4f6;
}
.waqr-menu-item.is-danger {
  color: #dc2626;
}

/* Chevron Account Cards (WhatsApp Resmi, Telegram, Asisten AI) */
.chathub-chevron-stack {
  display: grid;
  gap: 8px;
}
.chathub-chevron-card {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 15px;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  text-align: left;
  cursor: pointer;
  transition: background-color 130ms ease, border-color 130ms ease;
}
.chathub-chevron-card:hover {
  background: #f9fafb;
  border-color: #d1d5db;
}
.chathub-chevron-copy {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 1px;
}
.chathub-chevron-copy strong {
  font-size: 0.875rem;
  font-weight: 670;
  color: #111114;
}
.chathub-chevron-copy small {
  font-size: 0.75rem;
  color: #6b7280;
}
.chathub-chevron-right {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: #9ca3af;
  flex-shrink: 0;
}
.chathub-chevron-right svg {
  width: 15px;
  height: 15px;
}
.chathub-conn-inline {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 0.75rem;
  font-weight: 620;
  color: #6b7280;
}
.chathub-conn-inline.is-online {
  color: #16a34a;
}

/* 6. Screen 4 — Chat Thread Header, Subbar, Canvas, Collapsible AI Bar & 2-Row Composer */
.live-workspace .thread-header {
  min-height: 58px !important;
  padding: 9px 14px !important;
  gap: 10px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #f0f1f4 !important;
}
.live-workspace .thread-header #contact-name {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  color: #111114 !important;
}
.thread-subline {
  margin: 0;
  font-size: 0.75rem;
  color: #6b7280;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Secondary Context Strip (.thread-subbar: "✦ AI aktif" ... "📌 Pesan disematkan") */
.thread-subbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 14px;
  background: #ffffff;
  border-bottom: 1px solid #eceef2;
}
.subbar-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  height: 26px !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #374151 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  box-shadow: none !important;
  cursor: pointer;
}
.subbar-btn:hover {
  background: #f3f4f6 !important;
  color: #111114 !important;
}
.subbar-btn[hidden] {
  display: none !important;
}
.subbar-btn svg {
  width: 14px;
  height: 14px;
}
.subbar-btn.ai-takeover-btn:not(.is-taken-over) {
  color: #111114 !important;
}
.subbar-btn.ai-takeover-btn.is-taken-over {
  color: #b45309 !important;
  background: #fef3c7 !important;
}
.subbar-btn.pin-chat-btn.is-pinned {
  background: #f3f4f6 !important;
  color: #111114 !important;
}

.live-workspace .messages {
  background: #f3f4f6 !important;
}
.live-workspace .day-label {
  background: #e5e7eb !important;
  border: 0 !important;
  color: #4b5563 !important;
  box-shadow: none !important;
}

/* Thread Footer Stack (Screen 4) */
.live-workspace .thread-footer {
  padding: 8px 12px 12px !important;
  gap: 6px !important;
  background: #ffffff !important;
  border-top: 1px solid #eceef2 !important;
}

/* Row 1: Compact Collapsible AI Suggestion Strip */
.live-workspace .ai-inline:not([hidden]) {
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 12px !important;
  background: #f8f9fb !important;
  border: 1px solid #eceef2 !important;
  box-shadow: none !important;
}
.live-workspace .ai-inline-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 7px 10px !important;
  cursor: pointer;
}
.live-workspace .ai-inline-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 7px !important;
  font-size: 0.78125rem !important;
  color: #111114 !important;
  min-width: 0;
}
.live-workspace .ai-inline-header strong {
  font-weight: 660;
  white-space: nowrap;
}
.ai-inline-sep {
  color: #d1d5db;
}
.live-workspace #ai-inline-badge {
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  font-size: 0.75rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}
.live-workspace #ai-inline-badge[data-tone="ready"] {
  color: #059669 !important;
  font-weight: 620 !important;
}
.ai-inline-expand {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  background: transparent !important;
  color: #6b7280 !important;
}
.ai-inline[data-expanded="true"] .ai-inline-expand svg {
  transform: rotate(180deg);
}
.ai-inline-body {
  padding: 0 10px 10px !important;
  display: grid;
  gap: 8px;
}
.ai-inline-body[hidden] {
  display: none !important;
}

/* Row 2: Channel Reply Source Row ("Balas melalui Admin Digitalkanaja v") */
.reply-source-row {
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 3px 4px;
}
.live-workspace .reply-source-row .reply-source {
  flex: 1 1 auto;
  margin: 0 !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  font-size: 0.75rem !important;
  font-weight: 560 !important;
  color: #4b5563 !important;
}
.reply-source-caret {
  display: inline-flex;
  color: #9ca3af;
}
.reply-source-caret svg {
  width: 13px;
  height: 13px;
}

/* Row 3: 2-Row Unified Composer Card ("Tulis balasan..." + Bottom Toolbar) */
.live-workspace form.chathub-composer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
  padding: 10px 10px 8px 12px !important;
  border-radius: 18px !important;
  background: #f8f9fb !important;
  border: 1px solid #e5e7eb !important;
  box-shadow: none !important;
}
.live-workspace form.chathub-composer:focus-within {
  background: #ffffff !important;
  border-color: #141417 !important;
  box-shadow: 0 0 0 3px rgba(20, 20, 23, 0.05) !important;
}
.live-workspace form.chathub-composer #reply-text {
  width: 100% !important;
  min-height: 26px !important;
  max-height: 120px !important;
  padding: 2px 2px !important;
  border: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  outline: none !important;
  font-size: 0.875rem !important;
  color: #111114 !important;
  resize: none !important;
}
.composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.composer-tools-left,
.composer-tools-right {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}
.live-workspace .composer-tools-left .composer-tool {
  width: 30px !important;
  height: 30px !important;
  min-width: 30px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 8px !important;
  background: transparent !important;
  color: #6b7280 !important;
  box-shadow: none !important;
}
.live-workspace .composer-tools-left .composer-tool:hover:enabled {
  background: #eef0f4 !important;
  color: #111114 !important;
}
.composer-slash-btn {
  height: 28px;
  padding: 0 8px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #6b7280;
  font-size: 0.78125rem;
  font-weight: 560;
  cursor: pointer;
  white-space: nowrap;
}
.composer-slash-btn:hover:enabled {
  background: #eef0f4;
  color: #111114;
}
.composer-ai-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  height: 32px;
  padding: 0 11px;
  border-radius: 999px;
  border: 1px solid #dfe3ea;
  background: #ffffff;
  color: #111114;
  font-size: 0.78125rem;
  font-weight: 660;
  cursor: pointer;
}
.composer-ai-pill:hover:enabled {
  background: #f3f4f6;
}
.composer-ai-pill svg {
  width: 13px;
  height: 13px;
}
.live-workspace #send.composer-send-circle {
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  padding: 0 !important;
  border-radius: 999px !important;
  background: #141417 !important;
  border: 1px solid #141417 !important;
  color: #ffffff !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer;
}
.live-workspace #send.composer-send-circle svg {
  width: 15px;
  height: 15px;
}
.live-workspace #send.composer-send-circle:disabled {
  opacity: 0.42 !important;
}


/* ─── Section 29B: Pixel-Perfect Visual Audit Fixes Across All 4 Screens ─── */

/* 1. Show #list-count inline ("3.145 percakapan") & hide redundant timestamp next to it */
.live-workspace #list-count {
  display: inline !important;
  position: static !important;
  background: transparent !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  box-shadow: none !important;
  font: inherit !important;
  font-weight: 600 !important;
  color: #4b5563 !important;
}
.live-workspace #pilot-status {
  display: none !important;
}

/* 2. Flush-right conversation timestamp & preserve pastel avatar on active row */
.live-workspace .conversation .row-copy {
  flex: 1 1 auto !important;
  min-width: 0 !important;
  width: 100% !important;
}
.live-workspace .conversation .conv-row-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  width: 100% !important;
}
.live-workspace .conversation .row-end {
  margin-left: auto !important;
  flex-shrink: 0 !important;
}
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="0"] { background: #fde8e8 !important; color: #9b1c1c !important; }
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="1"] { background: #fef3c7 !important; color: #92400e !important; }
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="2"] { background: #d1fae5 !important; color: #065f46 !important; }
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="3"] { background: #e0f2fe !important; color: #075985 !important; }
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="4"] { background: #ede9fe !important; color: #5b21b6 !important; }
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="5"] { background: #fce7f3 !important; color: #9d174d !important; }

/* 3. Force #resource-title ("Kontak", "Nomor & akun") visible as bold display heading */
.live-workspace #resource-title,
.chathub-page-heading #resource-title {
  display: block !important;
}

/* 4. Fix search icon static flex alignment inside Kontak / Template gray search bar */
.live-workspace .chathub-gray-search > [data-icon="search"],
.live-workspace .inbox-search > [data-icon="search"] {
  position: static !important;
  left: auto !important;
  top: auto !important;
  transform: none !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 17px !important;
  height: 17px !important;
  flex: 0 0 17px !important;
  color: #6b7280 !important;
  pointer-events: none;
}
.live-workspace .chathub-gray-search > [data-icon="search"] svg,
.live-workspace .inbox-search > [data-icon="search"] svg {
  position: static !important;
  width: 17px !important;
  height: 17px !important;
}

/* 5. Fit "WhatsApp Resmi" untruncated inside 3-column status strip on 390px mobile */
.chathub-status-tile {
  padding: 10px 9px !important;
}
.chathub-status-kicker {
  gap: 4px !important;
  font-size: 0.65rem !important;
  letter-spacing: -0.01em !important;
}

/* 6. Ensure white send paper-plane icon is always visible inside circular Send button on mobile */
.live-workspace #send.composer-send-circle > span[data-icon="send"] {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #ffffff !important;
}
.live-workspace #send.composer-send-circle svg {
  display: block !important;
  width: 16px !important;
  height: 16px !important;
  fill: currentColor !important;
  color: #ffffff !important;
}

.inbox-count-text {
  display: inline-flex !important;
  align-items: baseline !important;
  gap: 4px !important;
  white-space: nowrap !important;
}
@media (max-width: 767px) {
  .live-workspace #send.composer-send-circle > span,
  .live-workspace #send.composer-send-circle > span:first-child {
    position: static !important;
    overflow: visible !important;
    clip: auto !important;
    clip-path: none !important;
    display: inline-flex !important;
    visibility: visible !important;
    opacity: 1 !important;
    width: 16px !important;
    height: 16px !important;
  }
}


/* ============================================================================
   SECTION 30: BUBBLE CHAT AUDIT OVERHAUL, READ CHECKMARKS & MAIN LOGO
   ============================================================================ */

/* 1. Main Brand Logo (./logo.png) in Topbar & Sidebar */
.chathub-main-logo {
  width: 26px;
  height: 26px;
  border-radius: 7px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}
.sidebar-main-logo {
  width: 32px;
  height: 32px;
  border-radius: 9px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* 2. Restored Read Checkmarks (✓ / ✓✓ Blue) in Conversation List */
.live-workspace .conv-snippet-row {
  display: flex !important;
  align-items: center !important;
  gap: 4px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.live-workspace .conv-out-tick {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  flex-shrink: 0 !important;
  color: #9ca3af !important;
}
.live-workspace .conv-out-tick svg {
  width: 14px !important;
  height: 14px !important;
}
.live-workspace .conv-out-tick.is-delivered {
  color: #64748b !important;
}
.live-workspace .conv-out-tick.is-read {
  color: #0ea5e9 !important;
}
.live-workspace .conv-out-tick.is-failed {
  color: #ef4444 !important;
}

/* 3. Clean Minimal Thread Header & Subbar (1:1 Reference Screen 4) */
.live-workspace .thread-header .icon-button {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #111114 !important;
  width: 34px !important;
  height: 34px !important;
  min-width: 34px !important;
  border-radius: 10px !important;
}
.live-workspace .thread-header .icon-button:hover {
  background: #f3f4f6 !important;
}
.live-workspace .thread-subbar {
  padding: 7px 16px !important;
  background: #ffffff !important;
  border-bottom: 1px solid #eceef2 !important;
}
.live-workspace .thread-subbar .subbar-btn,
.live-workspace .thread-subbar .ai-takeover-btn:not(.is-taken-over) {
  height: 26px !important;
  padding: 0 4px !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #374151 !important;
  font-size: 0.78125rem !important;
  font-weight: 560 !important;
}
.live-workspace .thread-subbar .ai-takeover-btn:not(.is-taken-over) svg {
  color: #111114 !important;
}
.live-workspace .thread-subbar .ai-takeover-btn.is-taken-over {
  padding: 0 8px !important;
  border-radius: 999px !important;
  background: #fef3c7 !important;
  color: #b45309 !important;
}
.live-workspace .thread-subbar .pin-chat-btn.is-pinned {
  background: transparent !important;
  color: #111114 !important;
  font-weight: 660 !important;
}

/* 4. Full-Width Bubble Rows + Fit-Content Inline-Flow Bubbles (Zero "Ok\ne" Wrapping!) */
.live-workspace .messages {
  padding: 14px 16px 18px !important;
  gap: 0 !important;
  background: #f3f4f6 !important;
}
.live-workspace .bubble-row {
  width: 100% !important;
  max-width: 100% !important;
  align-self: stretch !important;
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 10px !important;
}
.live-workspace .bubble-row.bubble-continuation {
  margin-top: 3px !important;
}
.live-workspace .bubble-row.in {
  flex-direction: row !important;
  justify-content: flex-start !important;
}
.live-workspace .bubble-row.out {
  flex-direction: row-reverse !important;
  justify-content: flex-start !important;
}

.live-workspace .bubble {
  width: fit-content !important;
  max-width: min(82%, 520px) !important;
  min-width: 0 !important;
  padding: 8px 12px 7px !important;
  border-radius: 16px !important;
  overflow: visible !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}

/* Inline-wrap flow for text-only bubbles ("Oke  18.54", "sudah restock  18.49 ✓✓") */
.live-workspace .bubble:not(.has-media):not(.sticker-bubble):not(:has(.bubble-quote)) {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: flex-end !important;
  column-gap: 9px !important;
  row-gap: 2px !important;
}
.live-workspace .bubble:not(.has-media):not(.sticker-bubble):not(:has(.bubble-quote)) .bubble-text {
  flex: 0 1 auto !important;
  max-width: 100% !important;
  margin: 0 !important;
}
.live-workspace .bubble:not(.has-media):not(.sticker-bubble):not(:has(.bubble-quote)) .message-stamp {
  width: auto !important;
  flex: 0 0 auto !important;
  margin: 0 0 -1px auto !important;
}

/* Stacked column flow for media & quoted bubbles */
.live-workspace .bubble.has-media:not(.sticker-bubble),
.live-workspace .bubble:has(.bubble-quote) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 5px !important;
}
.live-workspace .bubble.has-media:not(.sticker-bubble) .message-stamp,
.live-workspace .bubble:has(.bubble-quote) .message-stamp {
  width: auto !important;
  align-self: flex-end !important;
  margin: 1px 0 0 !important;
}

/* Crisp Typography & Bubble Surface Palette */
.live-workspace .bubble .bubble-text {
  font-size: 0.875rem !important;
  line-height: 1.46 !important;
  font-weight: 430 !important;
  letter-spacing: -0.005em !important;
  white-space: pre-wrap !important;
  overflow-wrap: break-word !important;
  word-break: normal !important;
}
.live-workspace .bubble.in {
  background: #ffffff !important;
  border: 1px solid #e6e8ec !important;
  color: #111114 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
}
.live-workspace .bubble.in.group-start { border-bottom-left-radius: 5px !important; }
.live-workspace .bubble.in.group-mid { border-top-left-radius: 5px !important; border-bottom-left-radius: 5px !important; }
.live-workspace .bubble.in.group-end { border-top-left-radius: 5px !important; }

.live-workspace .bubble.out {
  background: #18181b !important;
  border: 1px solid #18181b !important;
  color: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.08) !important;
}
.live-workspace .bubble.out.group-start { border-bottom-right-radius: 5px !important; }
.live-workspace .bubble.out.group-mid { border-top-right-radius: 5px !important; border-bottom-right-radius: 5px !important; }
.live-workspace .bubble.out.group-end { border-top-right-radius: 5px !important; }

/* Crisp Timestamps & Unmistakable Read Checkmarks (✓ / ✓✓ Blue) */
.live-workspace .bubble .message-stamp {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 4px !important;
  font-size: 0.6875rem !important;
  line-height: 1 !important;
  white-space: nowrap !important;
  font-variant-numeric: tabular-nums !important;
  opacity: 1 !important;
}
.live-workspace .bubble.in .message-stamp {
  color: #8b93a1 !important;
}
.live-workspace .bubble.out .message-stamp {
  color: rgba(255, 255, 255, 0.64) !important;
}
.live-workspace .bubble .message-delivery {
  display: inline-flex !important;
  align-items: center !important;
}
.live-workspace .bubble .message-delivery svg {
  width: 14px !important;
  height: 14px !important;
}
.live-workspace .bubble.out .message-delivery.delivery-sent {
  color: rgba(255, 255, 255, 0.62) !important;
}
.live-workspace .bubble.out .message-delivery.delivery-delivered {
  color: rgba(255, 255, 255, 0.84) !important;
}
.live-workspace .bubble.out .message-delivery.delivery-read {
  color: #38bdf8 !important;
}
.live-workspace .bubble.out .message-delivery.delivery-failed {
  color: #fca5a5 !important;
}

@media (max-width: 680px) {
  .live-workspace .bubble-row.in {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 5px !important;
  }
  .live-workspace .bubble-row.out {
    flex-direction: column !important;
    align-items: flex-end !important;
    gap: 5px !important;
  }
  .live-workspace .bubble {
    max-width: 85% !important;
  }
}

/* 5. Saran AI Secondary vs Primary Buttons Fix */
.live-workspace #ai-inline-regenerate,
.live-workspace #ai-inline-insert {
  background: #ffffff !important;
  color: #111114 !important;
  border: 1px solid #dfe3ea !important;
  box-shadow: none !important;
}
.live-workspace #ai-inline-regenerate:hover:enabled,
.live-workspace #ai-inline-insert:hover:enabled {
  background: #f3f4f6 !important;
  border-color: #cbd5e1 !important;
}
.live-workspace #ai-inline-send {
  background: #141417 !important;
  color: #ffffff !important;
  border: 1px solid #141417 !important;
  box-shadow: none !important;
}


/* ============================================================================
   SECTION 31: EXACT REFERENCE POLISH — INBOX ROWS, SANS-SERIF TIMESTAMPS & FLAT FOOTER
   ============================================================================ */

/* 1. Proportional Sans-Serif Timestamps Everywhere (Matches Reference 21.22 / 20.40) */
.live-workspace .conversation .conv-time,
.live-workspace .bubble .message-stamp,
.live-workspace .bubble .stamp-clock {
  font-family: var(--font-sans, "Inter", "Geist", system-ui, -apple-system, sans-serif) !important;
  font-variant-numeric: tabular-nums !important;
  letter-spacing: 0 !important;
}

/* 2. Tight Flush Inbox Conversation List Matching Reference Screen 1 */
.live-workspace .conversation-list {
  padding: 2px 6px 20px !important;
  gap: 0 !important;
  background: #ffffff !important;
}
.live-workspace .conversation {
  padding: 10px 12px 10px 14px !important;
  gap: 11px !important;
  border-radius: 0 !important;
  border: 0 !important;
  border-bottom: 1px solid #f0f1f4 !important;
  background: #ffffff !important;
  margin: 0 !important;
}
.live-workspace .conversation:hover {
  background: #f9fafb !important;
}
.live-workspace .conversation[aria-current="true"] {
  background: #f3f4f6 !important;
  border-radius: 12px !important;
  border-bottom-color: transparent !important;
}
.live-workspace .conversation .row-copy {
  display: grid !important;
  gap: 2px !important;
}
.live-workspace .conversation .conv-row-top strong {
  font-size: 0.875rem !important;
  font-weight: 680 !important;
  line-height: 1.28 !important;
  color: #111114 !important;
}
.live-workspace .conversation .conv-time {
  font-size: 0.72rem !important;
  font-weight: 500 !important;
  color: #8b93a1 !important;
}
.live-workspace .conv-snippet-row {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.conv-snippet-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
}
.live-workspace .conversation .snippet {
  font-size: 0.8125rem !important;
  line-height: 1.32 !important;
  color: #374151 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.live-workspace .conversation-meta {
  display: flex !important;
  align-items: center !important;
  margin-top: 1px !important;
}
.live-workspace .conv-meta-left {
  display: inline-flex !important;
  align-items: center !important;
  gap: 5px !important;
  min-width: 0 !important;
}
.live-workspace .conversation .row-meta {
  font-size: 0.72rem !important;
  line-height: 1.25 !important;
  color: #8b93a1 !important;
}
.conv-meta-dot {
  color: #cbd5e1;
  font-size: 0.72rem;
  line-height: 1;
}
.live-workspace .conv-ai-pill {
  height: 17px !important;
  padding: 0 6px !important;
  margin-left: 0 !important;
  border-radius: 5px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
  font-size: 0.625rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.live-workspace .conversation[aria-current="true"] .conv-ai-pill {
  background: #ffffff !important;
}
.live-workspace .chathub-unread-badge {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  font-size: 0.6875rem !important;
  font-weight: 700 !important;
  background: #111114 !important;
  color: #ffffff !important;
  flex-shrink: 0 !important;
}

/* 3. Flush Flat Thread Footer Matching Reference Screen 4 (No Double-Boxed AI Strip) */
.live-workspace .thread-footer {
  padding: 0 12px 10px !important;
  gap: 0 !important;
  background: #ffffff !important;
  border-top: 1px solid #eceef2 !important;
}
.live-workspace .thread-footer #ai-inline:not([hidden]) {
  border: 0 !important;
  border-bottom: 1px solid #f0f1f4 !important;
  border-radius: 0 !important;
  background: #ffffff !important;
  box-shadow: none !important;
  margin: 0 -12px !important;
  padding: 0 12px !important;
}
.live-workspace .thread-footer #ai-inline .ai-inline-top {
  padding: 8px 2px !important;
}
.live-workspace .thread-footer .reply-source-row {
  padding: 7px 2px 6px !important;
}
.live-workspace .thread-footer form.chathub-composer {
  background: #ffffff !important;
  border: 1px solid #e2e5ec !important;
  border-radius: 16px !important;
  padding: 10px 10px 8px 12px !important;
}
.live-workspace .thread-footer form.chathub-composer:focus-within {
  border-color: #141417 !important;
}


/* ============================================================================
   SECTION 32: QUICK TEMPLATE IMAGE / QRIS UPLOADER & PREVIEWS
   ============================================================================ */
.tpl-opt-note {
  font-weight: 450;
  color: #6b7280;
  font-size: 0.75rem;
}
.tpl-image-field {
  display: grid;
  gap: 6px;
}
.tpl-image-label {
  font-size: 0.8125rem;
  font-weight: 600;
  color: #111114;
}
.tpl-image-dropzone {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1.5px dashed #d1d5db;
  background: #f8f9fb;
  color: #111114;
  text-align: left;
  cursor: pointer;
  transition: background-color 140ms ease, border-color 140ms ease;
}
.tpl-image-dropzone:hover,
.tpl-image-dropzone.is-dragover {
  background: #f3f4f6;
  border-color: #141417;
}
.tpl-image-dropzone[hidden] {
  display: none !important;
}
.tpl-image-dropzone svg {
  width: 24px;
  height: 24px;
  color: #4b5563;
  flex-shrink: 0;
}
.tpl-dropzone-copy {
  display: grid;
  gap: 1px;
}
.tpl-dropzone-copy strong {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #111114;
}
.tpl-dropzone-copy small {
  font-size: 0.72rem;
  color: #6b7280;
}
.tpl-image-preview {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid #e5e7eb;
  background: #f8f9fb;
}
.tpl-image-preview[hidden] {
  display: none !important;
}
.tpl-image-preview img {
  width: 64px;
  height: 64px;
  border-radius: 10px;
  object-fit: cover;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  flex-shrink: 0;
}
.tpl-image-meta {
  flex: 1 1 auto;
  min-width: 0;
  display: grid;
  gap: 2px;
}
.tpl-image-meta strong {
  font-size: 0.8125rem;
  font-weight: 650;
  color: #111114;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.tpl-image-meta small {
  font-size: 0.72rem;
  color: #6b7280;
}
.tpl-image-actions {
  display: flex;
  gap: 6px;
  margin-top: 4px;
}
.template-card-thumb {
  margin: 4px 0;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #eceef2;
  background: #f8f9fb;
  max-height: 160px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.template-card-thumb img {
  display: block;
  max-width: 100%;
  max-height: 160px;
  object-fit: contain;
}
.send-template-img-wrap {
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid #e5e7eb;
  background: #f8f9fb;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 6px;
}
.send-template-img-wrap[hidden] {
  display: none !important;
}
.send-template-img-wrap img {
  display: block;
  max-width: 100%;
  max-height: 200px;
  border-radius: 8px;
  object-fit: contain;
}
.quick-template-img-pill {
  padding: 1px 6px;
  border-radius: 999px;
  background: #dcfce7;
  color: #15803d;
  font-size: 0.65rem;
  font-weight: 650;
}

/* ============================================================================
   SECTION 33: TRANSPARENT STICKERS, TEMPLATE ICON & ZERO-SHIFT BUBBLE ACTIONS
   ============================================================================ */

/* 1. Transparent Sticker Bubbles (Incoming & Outgoing) */
.live-workspace .bubble.sticker-bubble,
.live-workspace .bubble.in.sticker-bubble,
.live-workspace .bubble.out.sticker-bubble {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 2px 0 !important;
  border-radius: 0 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-end !important;
  gap: 3px !important;
}
.live-workspace .bubble.in.sticker-bubble {
  align-items: flex-start !important;
}
.live-workspace .bubble.sticker-bubble .media-open {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  padding: 0 !important;
  border-radius: 0 !important;
}
.live-workspace .bubble.sticker-bubble .message-media.is-sticker,
.live-workspace .bubble.sticker-bubble img {
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  border-radius: 0 !important;
  max-width: 148px !important;
  max-height: 148px !important;
  object-fit: contain !important;
}
.live-workspace .bubble.sticker-bubble .message-stamp {
  width: auto !important;
  margin: 0 !important;
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: rgba(24, 24, 27, 0.72) !important;
  color: #ffffff !important;
}
.live-workspace .bubble.in.sticker-bubble .message-stamp {
  background: rgba(255, 255, 255, 0.92) !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
}

/* 2. Zero-Layout-Shift Floating Bubble Actions (Desktop Hover & Mobile Tap) */
.live-workspace .bubble-row {
  position: relative !important;
}
.live-workspace .bubble-row:hover,
.live-workspace .bubble-row:focus-within,
.live-workspace .bubble-row.is-actions-open {
  z-index: 12 !important;
}
.live-workspace .bubble-actions {
  position: absolute !important;
  top: -22px !important;
  z-index: 20 !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 2px !important;
  padding: 2px 3px !important;
  border-radius: 9px !important;
  background: #ffffff !important;
  border: 1px solid #e4e7ec !important;
  box-shadow: 0 4px 12px rgba(15, 23, 42, 0.08) !important;
  opacity: 0 !important;
  visibility: hidden !important;
  pointer-events: none !important;
  transform: translateY(2px) !important;
  transition: opacity 120ms ease, transform 120ms ease, visibility 120ms ease !important;
}
.live-workspace .bubble-row.in .bubble-actions {
  left: 8px !important;
  right: auto !important;
}
.live-workspace .bubble-row.out .bubble-actions {
  right: 8px !important;
  left: auto !important;
}
.live-workspace .bubble-row:hover .bubble-actions,
.live-workspace .bubble-row:focus-within .bubble-actions,
.live-workspace .bubble-row.is-actions-open .bubble-actions {
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: translateY(0) !important;
}
.live-workspace .bubble-action-btn {
  width: 24px !important;
  height: 24px !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 7px !important;
  background: transparent !important;
  color: #4b5563 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  cursor: pointer !important;
  transition: background-color 120ms ease, color 120ms ease !important;
}
.live-workspace .bubble-action-btn:hover {
  background: #f3f4f6 !important;
  color: #111114 !important;
}
.live-workspace .bubble-action-btn svg {
  width: 14px !important;
  height: 14px !important;
}
@media (max-width: 680px) {
  .live-workspace .bubble-row.in {
    flex-direction: row !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
  .live-workspace .bubble-row.out {
    flex-direction: row-reverse !important;
    justify-content: flex-start !important;
    align-items: center !important;
  }
}

/* ============================================================================
   SECTION 34: 100% EXACT INBOX LIST REFERENCE POLISH
   ============================================================================ */

/* 1. Inbox Title & "Semua akun" Pill */
.live-workspace .list-head {
  padding: 12px 16px 8px !important;
  gap: 12px !important;
  background: #ffffff !important;
}
.live-workspace #inbox-title {
  font-size: 1.625rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.03em !important;
  line-height: 1.15 !important;
  color: #111114 !important;
}
.live-workspace .inbox-account-pill {
  flex-shrink: 0 !important;
}
.live-workspace .inbox-account-pill select {
  height: 36px !important;
  width: auto !important;
  min-width: max-content !important;
  max-width: none !important;
  padding: 0 30px 0 14px !important;
  border-radius: 999px !important;
  border: 1px solid #d1d5db !important;
  background-color: #ffffff !important;
  color: #111114 !important;
  font-size: 0.8125rem !important;
  font-weight: 550 !important;
}

/* 2. Soft Gray Search Bar with Dark Icons & Divider */
.live-workspace .inbox-search {
  height: 44px !important;
  padding: 0 10px 0 14px !important;
  border-radius: 14px !important;
  background: #f1f2f4 !important;
  border: 1px solid transparent !important;
  gap: 10px !important;
}
.live-workspace .inbox-search > [data-icon="search"] {
  color: #18181b !important;
  width: 18px !important;
  height: 18px !important;
  flex: 0 0 18px !important;
}
.live-workspace .inbox-search > [data-icon="search"] svg {
  width: 18px !important;
  height: 18px !important;
}
.live-workspace .inbox-search input,
.live-workspace #search {
  font-size: 0.875rem !important;
  color: #111114 !important;
  padding: 0 !important;
  padding-inline-start: 0 !important;
  padding-left: 0 !important;
  text-indent: 0 !important;
}
.live-workspace .inbox-search input::placeholder {
  color: #6b7280 !important;
}
.live-workspace .inbox-search .search-divider {
  height: 20px !important;
  background: #d1d5db !important;
}
.live-workspace .inbox-search .search-filter-trigger {
  width: 34px !important;
  height: 34px !important;
  color: #18181b !important;
}
.live-workspace .inbox-search .search-filter-trigger svg {
  width: 19px !important;
  height: 19px !important;
}

/* 3. Clean 3-Column Underline Tabs (Short Centered Black Indicator) */
.live-workspace .chathub-underline-tabs {
  border-bottom: 1px solid #eceef2 !important;
  margin-top: 2px !important;
}
.live-workspace .chathub-underline-tabs .qf-btn {
  height: 40px !important;
  font-size: 0.875rem !important;
  font-weight: 560 !important;
  color: #4b5563 !important;
}
.live-workspace .chathub-underline-tabs .qf-btn[aria-pressed="true"] {
  color: #111114 !important;
  font-weight: 700 !important;
}
.live-workspace .chathub-underline-tabs .qf-btn[aria-pressed="true"]::after {
  left: 50% !important;
  right: auto !important;
  transform: translateX(-50%) !important;
  width: 68px !important;
  height: 2.5px !important;
  border-radius: 999px !important;
  bottom: -1px !important;
  background: #111114 !important;
}

/* 4. Count & Sort Row (Uniform Soft Gray Count + Crisp Sort) */
.live-workspace .list-subtoolbar {
  padding: 2px 0 0 !important;
  min-height: 28px !important;
}
.live-workspace .inbox-count-text,
.live-workspace #list-count,
.live-workspace #inbox-view #list-count {
  font-size: 0.8125rem !important;
  font-weight: 450 !important;
  color: #6b7280 !important;
  border: 0 !important;
  outline: 0 !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  background: transparent !important;
  padding: 0 !important;
  min-width: 0 !important;
  min-height: 0 !important;
}
.live-workspace .chathub-sort-label {
  gap: 5px !important;
}
.live-workspace .chathub-sort-label .sort-icon {
  color: #18181b !important;
}
.live-workspace .chathub-sort-label .sort-icon svg {
  width: 15px !important;
  height: 15px !important;
}
.live-workspace .chathub-sort-label select {
  font-size: 0.84375rem !important;
  font-weight: 600 !important;
  color: #111114 !important;
}

/* 5. Borderless Airy Conversation Rows + Soft Rounded Active Card */
.live-workspace .conversation-list {
  padding: 6px 10px 24px !important;
  gap: 2px !important;
  background: #ffffff !important;
}
@media (max-width: 1023px) {
  .live-workspace .conversation-list {
    padding: 6px 10px 96px !important;
  }
}
.live-workspace .conversation {
  padding: 12px 14px 12px 16px !important;
  gap: 13px !important;
  border-radius: 16px !important;
  border: 0 !important;
  border-bottom: 0 !important;
  background: #ffffff !important;
  margin: 0 !important;
}
.live-workspace .conversation:hover {
  background: #f8f9fa !important;
}
.live-workspace .conversation[aria-current="true"] {
  background: #f3f4f6 !important;
  border-radius: 16px !important;
  border-bottom: 0 !important;
}
.live-workspace .conv-active-bar {
  left: 6px !important;
  width: 3px !important;
  height: 34px !important;
  border-radius: 999px !important;
  background: #111114 !important;
}

/* 6. 48px Soft Pastel Avatars & 20px Crisp Channel Corner Badges */
.live-workspace .conversation .avatar {
  width: 48px !important;
  height: 48px !important;
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.02em !important;
  border: 0 !important;
  box-shadow: none !important;
}
.live-workspace .conversation .avatar[data-tint="0"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="0"] {
  background: #f3e6e6 !important;
  color: #6e2d2d !important;
}
.live-workspace .conversation .avatar[data-tint="1"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="1"] {
  background: #f2ece0 !important;
  color: #755320 !important;
}
.live-workspace .conversation .avatar[data-tint="2"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="2"] {
  background: #e1efe7 !important;
  color: #266041 !important;
}
.live-workspace .conversation .avatar[data-tint="3"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="3"] {
  background: #e4e8ee !important;
  color: #374151 !important;
}
.live-workspace .conversation .avatar[data-tint="4"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="4"] {
  background: #e7e5f4 !important;
  color: #4a4175 !important;
}
.live-workspace .conversation .avatar[data-tint="5"],
.live-workspace .conversation[aria-current="true"] .avatar[data-tint="5"] {
  background: #f2e4ee !important;
  color: #73305e !important;
}
.live-workspace .conversation .ch-corner-badge {
  width: 20px !important;
  height: 20px !important;
  border: 2px solid #ffffff !important;
  bottom: -1px !important;
  right: -2px !important;
}
.live-workspace .conversation .ch-corner-badge svg {
  width: 11px !important;
  height: 11px !important;
}

/* 7. Exact 3-Line Copy Rhythm + Bottom-Right Unread Badge */
.live-workspace .conversation .row-copy {
  display: grid !important;
  gap: 3px !important;
}
.live-workspace .conversation .conv-row-top strong {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  line-height: 1.25 !important;
  letter-spacing: -0.015em !important;
  color: #111114 !important;
}
.live-workspace .conversation .conv-time {
  font-size: 0.78125rem !important;
  font-weight: 450 !important;
  color: #6b7280 !important;
}
.live-workspace .conversation .snippet {
  font-size: 0.84375rem !important;
  font-weight: 400 !important;
  line-height: 1.35 !important;
  color: #1f2937 !important;
}
.live-workspace .conversation-meta {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  min-height: 22px !important;
  margin-top: 1px !important;
}
.live-workspace .conversation .row-meta {
  font-size: 0.78125rem !important;
  font-weight: 450 !important;
  color: #6b7280 !important;
}
.live-workspace .conv-meta-dot {
  color: #9ca3af !important;
  font-size: 0.78125rem !important;
}
.live-workspace .conv-ai-pill {
  height: 20px !important;
  padding: 0 9px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #d1d5db !important;
  color: #111114 !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
}
.live-workspace .chathub-unread-badge {
  min-width: 22px !important;
  height: 22px !important;
  padding: 0 6px !important;
  border-radius: 999px !important;
  background: #111114 !important;
  color: #ffffff !important;
  font-size: 0.71875rem !important;
  font-weight: 700 !important;
}

/* ============================================================================
   SECTION 35: COMPACT INBOX SCALE & CRISP ACTIVE CHAT SELECTION EFFECT
   ============================================================================ */

/* 1. Compact Header, Search, Tabs & Subtoolbar */
.live-workspace .list-head {
  padding: 9px 14px 5px !important;
  gap: 8px !important;
}
.live-workspace #inbox-title {
  font-size: 1.75rem !important;
  font-weight: 760 !important;
  letter-spacing: -0.032em !important;
  line-height: 1.12 !important;
  color: #111114 !important;
}
.live-workspace .inbox-account-pill {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
.live-workspace .inbox-account-pill::after,
.live-workspace .mobile-channel::after {
  content: none !important;
  display: none !important;
}
.live-workspace .inbox-account-pill select,
.live-workspace #channel-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  field-sizing: content !important;
  height: 28px !important;
  min-height: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  max-width: 150px !important;
  padding: 0 24px 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid #dfe3ea !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
  color: #111114 !important;
  font-size: 0.75rem !important;
  font-weight: 580 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  transition: border-color 140ms ease, background-color 140ms ease, box-shadow 140ms ease !important;
}
.live-workspace .inbox-account-pill select:hover,
.live-workspace #channel-select:hover {
  background-color: #f8f9fb !important;
  border-color: #cbd5e1 !important;
}
.live-workspace .inbox-account-pill select:focus-visible,
.live-workspace #channel-select:focus-visible {
  outline: none !important;
  border-color: #111114 !important;
  box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08) !important;
}
.live-workspace .inbox-search {
  height: 36px !important;
  padding: 0 8px 0 11px !important;
  border-radius: 11px !important;
  gap: 8px !important;
}
.live-workspace .inbox-search > [data-icon="search"] {
  width: 15px !important;
  height: 15px !important;
  flex: 0 0 15px !important;
}
.live-workspace .inbox-search > [data-icon="search"] svg {
  width: 15px !important;
  height: 15px !important;
}
.live-workspace .inbox-search input,
.live-workspace #search {
  font-size: 0.8125rem !important;
}
.live-workspace .inbox-search .search-divider {
  height: 16px !important;
}
.live-workspace .inbox-search .search-filter-trigger {
  width: 28px !important;
  height: 28px !important;
}
.live-workspace .inbox-search .search-filter-trigger svg {
  width: 16px !important;
  height: 16px !important;
}
.live-workspace .chathub-underline-tabs {
  margin-top: 0 !important;
  overflow: hidden !important;
}
.live-workspace .chathub-underline-tabs .qf-btn {
  height: 34px !important;
  font-size: 0.8rem !important;
}
.live-workspace .chathub-underline-tabs .qf-btn[aria-pressed="true"]::after {
  width: 56px !important;
  height: 2px !important;
}
.live-workspace .list-subtoolbar {
  padding: 1px 0 0 !important;
  min-height: 22px !important;
}
.live-workspace .inbox-count-text,
.live-workspace #list-count,
.live-workspace #inbox-view #list-count {
  font-size: 0.73rem !important;
}
.live-workspace .chathub-sort-label select {
  font-size: 0.75rem !important;
}
.live-workspace .chathub-sort-label .sort-icon svg {
  width: 13px !important;
  height: 13px !important;
}

/* 2. Compact Conversation List & Crisp Selected-Chat Effect */
.live-workspace .conversation-list {
  padding: 6px 12px 24px !important;
  gap: 6px !important;
}
@media (max-width: 1023px) {
  .live-workspace .conversation-list {
    padding: 6px 12px 84px !important;
  }
}
.live-workspace .conversation {
  position: relative !important;
  overflow: visible !important;
  padding: 8px 11px 8px 14px !important;
  gap: 10px !important;
  border-radius: 12px !important;
  margin: 0 0 6px 0 !important;
  transition: background-color 120ms ease, box-shadow 120ms ease, transform 90ms ease !important;
}
.live-workspace .conversation::after {
  content: "" !important;
  display: block !important;
  position: absolute !important;
  left: 64px !important;
  right: 12px !important;
  bottom: 0 !important;
  width: auto !important;
  height: 1px !important;
  background: #e6e8ee !important;
  opacity: 1 !important;
  pointer-events: none !important;
  transition: opacity 120ms ease !important;
}
.live-workspace .conversation:last-child::after,
.live-workspace .conversation:hover::after,
.live-workspace .conversation[aria-current="true"]::after,
.live-workspace .conversation.is-selected::after,
.live-workspace .conversation:has(+ .conversation:hover)::after,
.live-workspace .conversation:has(+ .conversation[aria-current="true"])::after,
.live-workspace .conversation:has(+ .conversation.is-selected)::after {
  opacity: 0 !important;
}
.live-workspace .conversation:hover {
  background: #f5f6f8 !important;
}
.live-workspace .conversation:active {
  transform: scale(0.992) !important;
}
.live-workspace .conversation[aria-current="true"],
.live-workspace .conversation.is-selected {
  background: #edf0f4 !important;
  box-shadow: inset 0 0 0 1px #e2e6ec !important;
  border-radius: 12px !important;
}
.live-workspace .conversation[aria-current="true"]:hover,
.live-workspace .conversation.is-selected:hover {
  background: #e8ecf1 !important;
}
.live-workspace .conv-active-bar {
  left: 4px !important;
  width: 3.5px !important;
  height: 26px !important;
  border-radius: 999px !important;
  background: #111114 !important;
  transform: translateY(-50%) scaleY(0) !important;
  opacity: 0 !important;
  transition: transform 150ms cubic-bezier(0.23, 1, 0.32, 1), opacity 130ms ease !important;
}
.live-workspace .conversation[aria-current="true"] .conv-active-bar,
.live-workspace .conversation.is-selected .conv-active-bar {
  transform: translateY(-50%) scaleY(1) !important;
  opacity: 1 !important;
}

/* 3. Compact 40px Avatars, 17px Badges & Tighter Typography */
.live-workspace .conversation .avatar {
  width: 40px !important;
  height: 40px !important;
  font-size: 0.8125rem !important;
}
.live-workspace .conversation .ch-corner-badge {
  width: 17px !important;
  height: 17px !important;
  border: 1.75px solid #ffffff !important;
  bottom: -1px !important;
  right: -2px !important;
}
.live-workspace .conversation .ch-corner-badge svg {
  width: 9.5px !important;
  height: 9.5px !important;
}
.live-workspace .conversation .row-copy {
  gap: 2px !important;
}
.live-workspace .conversation .conv-row-top strong {
  font-size: 0.84375rem !important;
  line-height: 1.24 !important;
}
.live-workspace .conversation .conv-time {
  font-size: 0.7rem !important;
}
.live-workspace .conversation .snippet {
  font-size: 0.78125rem !important;
  line-height: 1.3 !important;
}
.live-workspace .conversation-meta {
  min-height: 19px !important;
  margin-top: 0 !important;
}
.live-workspace .conversation .row-meta {
  font-size: 0.7rem !important;
}
.live-workspace .conv-meta-dot {
  font-size: 0.7rem !important;
}
.live-workspace .conv-ai-pill {
  height: 17px !important;
  padding: 0 7px !important;
  font-size: 0.625rem !important;
}
.live-workspace .chathub-unread-badge {
  min-width: 19px !important;
  height: 19px !important;
  padding: 0 5px !important;
  font-size: 0.65625rem !important;
}
@media (min-width: 1024px) {
  .live-workspace .inbox-view {
    grid-template-columns: 332px minmax(0, 1fr) !important;
  }
}

/* 4. Smaller, Subtle Menu Descriptions Across All Views */
.live-workspace #resource-description,
.live-workspace .chathub-page-heading p,
.live-workspace .chathub-acc-head p,
.live-workspace .resource-page .tool-note,
.live-workspace .wallpaper-subtitle,
.live-workspace .sync-banner-copy small,
.live-workspace .chathub-chevron-copy small {
  font-size: 0.72rem !important;
  line-height: 1.38 !important;
  color: #6b7280 !important;
}
.live-workspace .resource-actions {
  display: inline-flex !important;
  align-items: center !important;
  gap: 8px !important;
  flex-shrink: 0 !important;
}
.live-workspace #resource-import-desk[hidden] {
  display: none !important;
}
.live-workspace .template-grid {
  align-items: start !important;
}
.live-workspace .template-card-body {
  display: -webkit-box !important;
  -webkit-line-clamp: 6 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  white-space: pre-wrap !important;
}

/* ============================================================================
   SECTION 36: CLEAN, COMPACT & PROFESSIONAL "AGEN & ATURAN AI" UI
   ============================================================================ */

@media (max-width: 1023px) {
  .live-workspace .resource-page {
    padding-bottom: 96px !important;
  }
}

.live-workspace .ai-mode-card {
  padding: 14px !important;
  border-radius: 16px !important;
  border: 1px solid #e6e8ee !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  gap: 12px !important;
}
.live-workspace .ai-mode-top {
  display: flex !important;
  align-items: flex-start !important;
  justify-content: space-between !important;
  gap: 10px !important;
  padding-bottom: 12px !important;
  border-bottom: 1px solid #f0f2f5 !important;
}
.live-workspace .ai-mode-identity {
  display: flex !important;
  align-items: flex-start !important;
  gap: 10px !important;
  min-width: 0 !important;
}
.live-workspace .ai-mode-spark-tile {
  width: 34px !important;
  height: 34px !important;
  border-radius: 10px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #111114 !important;
  flex-shrink: 0 !important;
}
.live-workspace .ai-mode-spark-tile svg {
  width: 17px !important;
  height: 17px !important;
}
.live-workspace .ai-mode-title-copy {
  display: grid !important;
  gap: 3px !important;
  min-width: 0 !important;
}
.live-workspace .ai-mode-heading-row {
  display: flex !important;
  align-items: center !important;
  flex-wrap: wrap !important;
  gap: 7px !important;
}
.live-workspace .ai-mode-heading-row h2 {
  font-size: 0.9375rem !important;
  font-weight: 700 !important;
  letter-spacing: -0.015em !important;
  color: #111114 !important;
  margin: 0 !important;
  line-height: 1.2 !important;
}
.live-workspace .ai-mode-conn-badge {
  height: 20px !important;
  padding: 0 8px !important;
  border-radius: 999px !important;
  font-size: 0.6875rem !important;
  font-weight: 600 !important;
  gap: 5px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
}
.live-workspace .ai-mode-conn-badge.is-ready {
  background: #ecfdf5 !important;
  border-color: #bbf7d0 !important;
  color: #15803d !important;
}
.live-workspace .ai-mode-title-copy p {
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
  margin: 0 !important;
}
.live-workspace .ai-mode-switch {
  width: 42px !important;
  height: 24px !important;
  border-radius: 999px !important;
  flex-shrink: 0 !important;
  background: #d1d5db !important;
  border: 0 !important;
  padding: 2px !important;
}
.live-workspace .ai-mode-switch.is-on {
  background: #141417 !important;
}
.live-workspace .ai-mode-switch-thumb {
  width: 20px !important;
  height: 20px !important;
}
.live-workspace .ai-mode-switch.is-on .ai-mode-switch-thumb {
  transform: translateX(18px) !important;
}

/* Mode Selector Header & Compact Selectable Cards */
.live-workspace .ai-mode-metabar {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  margin: 0 !important;
}
.live-workspace .ai-mode-metabar-title {
  font-size: 0.75rem !important;
  font-weight: 650 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  color: #374151 !important;
}
.live-workspace .ai-mode-counter {
  font-size: 0.72rem !important;
  color: #6b7280 !important;
}
.live-workspace .ai-mode-counter strong {
  color: #111114 !important;
  font-weight: 650 !important;
}
.live-workspace .ai-mode-grid {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
}
@media (max-width: 520px) {
  .live-workspace .ai-mode-grid {
    grid-template-columns: 1fr !important;
  }
}
.live-workspace .ai-mode-option {
  padding: 11px 13px !important;
  border-radius: 12px !important;
  border: 1px solid #e5e7eb !important;
  background: #f9fafb !important;
  text-align: left !important;
  display: grid !important;
  gap: 4px !important;
  box-shadow: none !important;
  transition: background-color 140ms ease, border-color 140ms ease, transform 90ms ease !important;
}
.live-workspace .ai-mode-option:hover:not(.is-selected) {
  background: #f3f4f6 !important;
  border-color: #d1d5db !important;
}
.live-workspace .ai-mode-option.is-selected {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
}
.live-workspace .ai-mode-opt-head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
}
.live-workspace .ai-mode-opt-head strong {
  font-size: 0.84375rem !important;
  font-weight: 680 !important;
  letter-spacing: -0.01em !important;
  color: #111114 !important;
}
.live-workspace .ai-mode-option.is-selected .ai-mode-opt-head strong {
  color: #ffffff !important;
}
.live-workspace .ai-mode-opt-badge {
  height: 19px !important;
  padding: 0 7px !important;
  border-radius: 999px !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
  letter-spacing: 0 !important;
  text-transform: none !important;
  background: #ffffff !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
  display: inline-flex !important;
  align-items: center !important;
}
.live-workspace .ai-mode-option.is-selected .ai-mode-opt-badge {
  background: rgba(255, 255, 255, 0.16) !important;
  border-color: transparent !important;
  color: #ffffff !important;
}
.live-workspace .ai-mode-opt-desc {
  font-size: 0.75rem !important;
  line-height: 1.38 !important;
  color: #6b7280 !important;
  margin: 0 !important;
}
.live-workspace .ai-mode-option.is-selected .ai-mode-opt-desc {
  color: rgba(255, 255, 255, 0.76) !important;
}

/* Compact Recent Activity Log */
.live-workspace .ai-mode-logs {
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid #eceef2 !important;
  background: #f8f9fb !important;
  gap: 8px !important;
}
.live-workspace .ai-mode-logs-head {
  font-size: 0.72rem !important;
  font-weight: 650 !important;
  text-transform: none !important;
  letter-spacing: -0.01em !important;
  color: #374151 !important;
}
.live-workspace .ai-mode-logs-sync {
  font-size: 0.6875rem !important;
  font-weight: 500 !important;
  color: #6b7280 !important;
}
.live-workspace .ai-mode-log-row {
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid #eceef2 !important;
  background: #ffffff !important;
  gap: 8px !important;
}
.live-workspace .ai-mode-log-copy strong {
  font-size: 0.78125rem !important;
  font-weight: 640 !important;
  color: #111114 !important;
}
.live-workspace .ai-mode-log-copy p {
  font-size: 0.72rem !important;
  line-height: 1.35 !important;
  color: #6b7280 !important;
  margin: 1px 0 0 !important;
}
.live-workspace .ai-mode-log-row time {
  font-size: 0.6875rem !important;
  color: #8b93a1 !important;
}
.live-workspace .ai-mode-counter,
.live-workspace .ai-mode-logs-sync,
.live-workspace .ai-mode-log-row time {
  font-family: var(--font-sans, "Inter", "Geist", system-ui, -apple-system, sans-serif) !important;
  font-variant-numeric: tabular-nums !important;
}

/* Compact Empty State Text Across Inbox, Thread & Menus */
.live-workspace #conversations > p,
.live-workspace .conversation-list > p.empty,
.live-workspace #messages > p.empty,
.live-workspace #resource-content > p.empty {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  font-weight: 450 !important;
  color: #8b93a1 !important;
  text-align: center !important;
  padding: 28px 16px !important;
  margin: 0 !important;
}
.live-workspace #empty-thread h2 {
  font-size: 0.9375rem !important;
  font-weight: 650 !important;
  color: #111114 !important;
}
.live-workspace #empty-thread p {
  font-size: 0.78rem !important;
  line-height: 1.45 !important;
  color: #6b7280 !important;
}

/* ============================================================================
   SECTION 37: PRECISION RESPONSIVE ALIGNMENT (DESKTOP, TABLET & MOBILE)
   ============================================================================ */

/* 1. Full-Width Scroll Surface + Unified Centered Inner Rail (Flush Right Scrollbar) */
.live-workspace .resource-page {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
  padding: 14px 14px 96px !important;
}
.live-workspace .resource-page > *:not([hidden]) {
  width: 100% !important;
  max-width: 880px !important;
  margin-left: auto !important;
  margin-right: auto !important;
  box-sizing: border-box !important;
}
@media (min-width: 681px) and (max-width: 1023px) {
  .live-workspace .resource-page {
    padding: 18px 24px 96px !important;
  }
}
@media (min-width: 1024px) {
  .live-workspace .resource-page {
    padding: 24px 36px 48px !important;
  }
}

/* 2. Consistent Page Header Alignment */
.live-workspace .chathub-page-header {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 12px !important;
  margin-bottom: 16px !important;
}
.live-workspace .chathub-page-heading {
  min-width: 0 !important;
  flex: 1 1 auto !important;
}

/* 3. Precision "Nomor & akun" Action Bar, Status Strip, WA QR & Chevron Cards */
.live-workspace .accounts-top-actions {
  display: grid !important;
  grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 14px !important;
}
@media (min-width: 681px) {
  .live-workspace .accounts-top-actions {
    display: flex !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 10px !important;
    margin-bottom: 16px !important;
  }
  .live-workspace .accounts-top-actions .chathub-btn-dark,
  .live-workspace .accounts-top-actions .chathub-btn-outline {
    width: auto !important;
    min-width: 168px !important;
    height: 38px !important;
    padding: 0 18px !important;
  }
}
.live-workspace .chathub-status-strip {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
  margin-bottom: 20px !important;
  width: 100% !important;
}
@media (min-width: 681px) {
  .live-workspace .chathub-status-strip {
    gap: 12px !important;
  }
  .live-workspace .chathub-status-tile {
    padding: 12px 14px !important;
  }
}
.live-workspace .chathub-acc-block {
  width: 100% !important;
  margin-bottom: 20px !important;
}
.live-workspace .waqr-sessions-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  width: 100% !important;
}
@media (min-width: 681px) {
  .live-workspace .waqr-sessions-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) {
    grid-template-columns: 1fr !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) .chathub-waqr-card {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 16px !important;
    padding: 14px 16px !important;
    text-align: left !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) .chathub-waqr-card .waqr-card-top {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-start !important;
    gap: 12px !important;
    flex: 1 1 auto !important;
    min-width: 0 !important;
    width: auto !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) .chathub-waqr-card .waqr-card-lead {
    display: flex !important;
    align-items: center !important;
    gap: 12px !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) .chathub-waqr-card .chathub-waqr-actions {
    display: flex !important;
    flex-direction: row !important;
    align-items: center !important;
    justify-content: flex-end !important;
    gap: 8px !important;
    flex-shrink: 0 !important;
    width: auto !important;
  }
  .live-workspace .waqr-sessions-grid:has(> :only-child) .chathub-waqr-card .waqr-primary-cta {
    flex: 0 0 auto !important;
    width: auto !important;
    padding: 0 18px !important;
  }
}
.live-workspace .chathub-chevron-stack,
.live-workspace .chathub-chevron-card {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* 4. Precision Template & AI Grids Across Mobile, Tablet & Desktop */
.live-workspace .template-grid {
  display: grid !important;
  grid-template-columns: 1fr !important;
  gap: 10px !important;
  align-items: start !important;
  width: 100% !important;
}
@media (min-width: 681px) {
  .live-workspace .template-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 12px !important;
  }
}

/* 5. Centered Sleek Floating Pill Nav on Mobile & Tablet (< 1024px) */
@media (max-width: 1023px) {
  .live-workspace #workspace-nav {
    left: 50% !important;
    right: auto !important;
    transform: translateX(-50%) !important;
    width: calc(100% - 24px) !important;
    max-width: 420px !important;
    margin: 0 !important;
  }
  .live-workspace .desk-sidebar .workspace-nav button[data-view="templates"],
  .live-workspace .desk-sidebar .workspace-nav button[data-view="ai"],
  .live-workspace .desk-sidebar .workspace-nav-secondary {
    display: none !important;
  }
  .live-workspace .desk-sidebar .workspace-nav .mobile-nav-more {
    display: flex !important;
  }
}

/* 6. Clean Balanced Tablet Layout & Always-Accessible Nav (768px - 1023px) */
@media (min-width: 768px) and (max-width: 1023px) {
  .live-workspace.thread-open .topbar {
    display: flex !important;
  }
  .live-workspace.thread-open .desk-sidebar {
    display: contents !important;
  }
  .live-workspace .inbox-view {
    grid-template-columns: 310px minmax(0, 1fr) !important;
  }
}

/* ============================================================================
   SECTION 38: SOLID CRISP SLASH TEMPLATE POPOVER (#quick-templates) & POPOVERS
   ============================================================================ */

.live-workspace .filter-panel,
.live-workspace .emoji-picker,
.live-workspace #quick-templates,
.live-workspace .quick-templates {
  background: #ffffff !important;
  border: 1px solid #dfe3eb !important;
  outline: 0 !important;
  box-shadow: 0 16px 38px -10px rgba(15, 23, 42, 0.18), 0 2px 6px rgba(15, 23, 42, 0.06) !important;
}

.live-workspace #quick-templates,
.live-workspace .quick-templates {
  padding: 0 !important;
  border-radius: 14px !important;
  overflow: hidden !important;
  z-index: 45 !important;
  left: 12px !important;
  right: 12px !important;
  bottom: calc(100% + 8px) !important;
  max-height: none !important;
}
.live-workspace #quick-templates[hidden],
.live-workspace .quick-templates[hidden] {
  display: none !important;
}
.live-workspace #quick-template-status {
  margin: 0 !important;
  padding: 9px 13px !important;
  background: #f8f9fb !important;
  border-bottom: 1px solid #eceef2 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  color: #6b7280 !important;
  line-height: 1.3 !important;
}
.live-workspace #quick-template-options {
  display: grid !important;
  gap: 4px !important;
  padding: 6px !important;
  max-height: 256px !important;
  overflow-y: auto !important;
  background: #ffffff !important;
}
.live-workspace .quick-template-option {
  width: 100% !important;
  min-width: 0 !important;
  padding: 8px 10px !important;
  border-radius: 10px !important;
  border: 1px solid transparent !important;
  background: #ffffff !important;
  text-align: left !important;
  display: grid !important;
  gap: 4px !important;
  cursor: pointer !important;
  transition: background-color 110ms ease, border-color 110ms ease !important;
}
.live-workspace .quick-template-option:hover,
.live-workspace .quick-template-option:focus-visible {
  background: #f3f5f8 !important;
  border-color: #e4e7ee !important;
  outline: none !important;
}
.live-workspace .quick-template-head {
  display: flex !important;
  align-items: center !important;
  gap: 7px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.live-workspace .quick-template-code {
  padding: 2px 7px !important;
  border-radius: 6px !important;
  background: #141417 !important;
  color: #ffffff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.6875rem !important;
  font-weight: 650 !important;
  line-height: 1.35 !important;
  flex-shrink: 0 !important;
}
.live-workspace .quick-template-head strong {
  font-size: 0.8125rem !important;
  font-weight: 660 !important;
  color: #111114 !important;
  line-height: 1.3 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.live-workspace .quick-template-cat-pill {
  margin-left: auto !important;
  padding: 1px 7px !important;
  border-radius: 999px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #6b7280 !important;
  font-size: 0.65rem !important;
  font-weight: 600 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.live-workspace .quick-template-option small {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.75rem !important;
  line-height: 1.4 !important;
  color: #6b7280 !important;
  font-weight: 400 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
}

/* ============================================================================
   SECTION 39: FINAL FULL-APP POLISH (SEARCH WIDTH, SIDEBAR BRAND, OVERVIEW MOBILE)
   ============================================================================ */

/* 1. Full-Width Search Bars in Kontak & Template Cepat */
.live-workspace #resource-filter.chathub-resource-search {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) !important;
  width: 100% !important;
}
.live-workspace .chathub-resource-search .chathub-gray-search {
  width: 100% !important;
  max-width: none !important;
  box-sizing: border-box !important;
}

/* 2. Crisp Untruncated Sidebar Brand Header */
.live-workspace .sidebar-brand-lead {
  gap: 8px !important;
  min-width: 0 !important;
  flex: 1 1 auto !important;
}
.live-workspace .sidebar-brand-title {
  font-size: 0.8rem !important;
  letter-spacing: -0.02em !important;
}
.live-workspace .sidebar-main-logo {
  width: 28px !important;
  height: 28px !important;
}

/* 3. Clean Responsive Ringkasan Live on Mobile & Tablet */
@media (max-width: 680px) {
  .live-workspace .overview-hero {
    flex-direction: column !important;
    align-items: stretch !important;
    gap: 12px !important;
    padding: 14px !important;
  }
  .live-workspace .overview-hero-actions {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    width: 100% !important;
  }
  .live-workspace .overview-hero-btn {
    justify-content: center !important;
    width: 100% !important;
    padding: 0 10px !important;
    font-size: 0.78rem !important;
  }
  .live-workspace .overview-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 8px !important;
  }
  .live-workspace .overview-stat {
    padding: 11px 10px !important;
  }
  .live-workspace .overview-stat strong {
    font-size: 1.2rem !important;
  }
}

/* 4. Exact Desk Shopee Quiet Inline Amber Sparkle "✦ AI" & "Admin" Tag + Crisp #thread-status-select */
.live-workspace .conv-ai-pill,
.live-workspace .conversation[aria-current="true"] .conv-ai-pill,
.live-workspace .conversation.is-selected .conv-ai-pill,
.live-workspace .conversation:hover .conv-ai-pill {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  height: auto !important;
  padding: 0 !important;
  margin: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  color: #b45309 !important;
  font-size: 0.6875rem !important;
  font-weight: 560 !important;
  line-height: 1.2 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.live-workspace .conv-ai-pill.is-admin {
  color: #141417 !important;
  font-weight: 650 !important;
}
.live-workspace .conv-ai-sparkle {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #f59e0b !important;
  flex-shrink: 0 !important;
}
.live-workspace .conv-ai-sparkle svg {
  width: 10px !important;
  height: 10px !important;
  display: block !important;
}

.live-workspace .thread-status-wrap {
  position: relative !important;
  display: inline-flex !important;
  align-items: center !important;
  flex-shrink: 0 !important;
}
.live-workspace .thread-status-wrap::after {
  content: none !important;
  display: none !important;
}
.live-workspace #thread-status-select::picker-icon,
.live-workspace #channel-select::picker-icon {
  display: none !important;
}
.live-workspace #thread-status-select,
.live-workspace .thread-status-select {
  appearance: none !important;
  -webkit-appearance: none !important;
  field-sizing: content !important;
  height: 30px !important;
  min-height: 0 !important;
  width: auto !important;
  min-width: 0 !important;
  padding: 0 24px 0 11px !important;
  border-radius: 999px !important;
  border: 1px solid #dfe3ea !important;
  background-color: #ffffff !important;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%2318181b' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 8px center !important;
  background-size: 12px 12px !important;
  color: #111114 !important;
  font-size: 0.75rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  cursor: pointer !important;
  transition: border-color 130ms ease, background-color 130ms ease !important;
}
.live-workspace #thread-status-select:hover,
.live-workspace .thread-status-select:hover {
  background-color: #f8f9fb !important;
  border-color: #cbd5e1 !important;
}
.live-workspace #thread-status-select:focus-visible,
.live-workspace .thread-status-select:focus-visible {
  outline: none !important;
  border-color: #111114 !important;
  box-shadow: 0 0 0 3px rgba(17, 17, 20, 0.08) !important;
}

/* ============================================================================
   SECTION 40: 100% DESK SHOPEE "SARAN BALASAN AI" DRAWER CARD (#ai-inline)
   ============================================================================ */

.live-workspace .thread-footer #ai-inline:not([hidden]) {
  margin: 8px 0 6px !important;
  padding: 10px 14px !important;
  border-radius: 18px !important;
  background: #f8f9fb !important;
  border: 1px solid #e4e7ee !important;
  box-shadow: 0 4px 16px -6px rgba(15, 23, 42, 0.08) !important;
  display: block !important;
}
.live-workspace .thread-footer #ai-inline[data-expanded="true"]:not([hidden]) {
  padding: 12px 14px !important;
  border-radius: 20px !important;
}
.live-workspace #ai-inline .ai-inline-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 !important;
  cursor: pointer !important;
}
.live-workspace #ai-inline .ai-inline-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
.live-workspace #ai-inline .ai-inline-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
}
.live-workspace #ai-inline .ai-inline-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.live-workspace #ai-inline .ai-inline-header strong {
  font-size: 0.78125rem !important;
  font-weight: 660 !important;
  color: #111114 !important;
  letter-spacing: -0.01em !important;
}
.live-workspace #ai-inline .ai-inline-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.live-workspace #ai-inline-usage {
  display: none !important;
}
.live-workspace #ai-inline-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 21px !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
.live-workspace #ai-inline-badge[data-tone="loading"] {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
.live-workspace #ai-inline-badge[data-tone="warn"],
.live-workspace #ai-inline-badge[data-tone="error"] {
  background: #fffbeb !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}
.live-workspace #ai-inline-expand {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  color: #6b7280 !important;
  background: transparent !important;
  border: 0 !important;
}
.live-workspace #ai-inline-expand:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #111114 !important;
}
.live-workspace #ai-inline-body:not([hidden]) {
  display: grid !important;
  gap: 8px !important;
  margin-top: 8px !important;
  padding: 0 !important;
}
.live-workspace #ai-inline-preview:not([hidden]) {
  width: 100% !important;
  min-height: 44px !important;
  padding: 9px 12px !important;
  border-radius: 14px !important;
  border: 1px solid #e5e8ef !important;
  background: #ffffff !important;
  color: #141417 !important;
  font-size: 0.78125rem !important;
  line-height: 1.5 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  resize: none !important;
  margin: 0 !important;
}
.live-workspace #ai-inline-preview:focus {
  outline: none !important;
  border-color: #cbd5e1 !important;
}
.live-workspace #ai-inline-status {
  margin: 0 !important;
  font-size: 0.72rem !important;
  color: #646472 !important;
}
.live-workspace #ai-inline-footer:not([hidden]) {
  display: flex !important;
  justify-content: flex-end !important;
  padding: 0 !important;
  margin-top: 2px !important;
}
.live-workspace #ai-inline .ai-inline-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  align-items: center !important;
  justify-content: flex-end !important;
  gap: 8px !important;
}
.live-workspace #ai-inline-regenerate,
.live-workspace #ai-inline-insert {
  height: 31px !important;
  padding: 0 13px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid #dfe3ea !important;
  color: #27272a !important;
  font-size: 0.75rem !important;
  font-weight: 560 !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04) !important;
  cursor: pointer !important;
}
.live-workspace #ai-inline-regenerate:hover:enabled,
.live-workspace #ai-inline-insert:hover:enabled {
  background: #f3f4f6 !important;
  border-color: #cbd5e1 !important;
}
.live-workspace #ai-inline-send {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  height: 31px !important;
  padding: 0 14px !important;
  border-radius: 999px !important;
  background: linear-gradient(180deg, #2a2c36 0%, #121318 100%) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #ffffff !important;
  font-size: 0.75rem !important;
  font-weight: 580 !important;
  box-shadow: 0 6px 16px -6px rgba(10, 12, 24, 0.42) !important;
  cursor: pointer !important;
}
.live-workspace #ai-inline-send:hover:enabled {
  filter: brightness(1.08);
}
.live-workspace #ai-inline-send [data-icon="sparkleFill"] {
  display: inline-flex !important;
  color: #fcd34d !important;
}
.live-workspace #ai-inline-send [data-icon="sparkleFill"] svg {
  width: 13px !important;
  height: 13px !important;
}

/* ============================================================================
   SECTION 41: TELEGRAM TEXT HYPERLINKS & INLINE REPLY MARKUP BUTTONS
   ============================================================================ */

.live-workspace .bubble:has(.bubble-inline-buttons) {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  gap: 6px !important;
}
.live-workspace .bubble:has(.bubble-inline-buttons) .message-stamp {
  width: auto !important;
  align-self: flex-end !important;
  margin: 0 !important;
}
.live-workspace .msg-entity-link {
  color: #0284c7 !important;
  font-weight: 560 !important;
  text-decoration: underline !important;
  text-underline-offset: 2px !important;
}
.live-workspace .msg-entity-link:hover {
  color: #0369a1 !important;
}
.live-workspace .bubble.out .msg-entity-link {
  color: #38bdf8 !important;
}
.live-workspace .bubble-inline-buttons {
  display: grid !important;
  gap: 6px !important;
  width: 100% !important;
  margin-top: 2px !important;
}
.live-workspace .bubble-inline-row {
  display: grid !important;
  grid-auto-flow: column !important;
  grid-auto-columns: minmax(0, 1fr) !important;
  gap: 6px !important;
}
.live-workspace .bubble-inline-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 6px !important;
  min-height: 34px !important;
  padding: 6px 12px !important;
  border-radius: 10px !important;
  background: #f3f5f8 !important;
  border: 1px solid #dfe3eb !important;
  color: #111114 !important;
  font-size: 0.78125rem !important;
  font-weight: 620 !important;
  text-decoration: none !important;
  transition: background-color 120ms ease, border-color 120ms ease, color 120ms ease !important;
}
.live-workspace a.bubble-inline-btn:hover,
.live-workspace button.bubble-inline-btn.is-callback:hover:enabled {
  background: #141417 !important;
  border-color: #141417 !important;
  color: #ffffff !important;
  cursor: pointer !important;
}
.live-workspace button.bubble-inline-btn.is-callback {
  cursor: pointer !important;
}
.live-workspace .bubble-inline-btn.is-static {
  cursor: default !important;
  color: #6b7280 !important;
}
.live-workspace .bubble.out .bubble-inline-btn {
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: rgba(255, 255, 255, 0.18) !important;
  color: #ffffff !important;
}
.live-workspace .bubble.out a.bubble-inline-btn:hover {
  background: rgba(255, 255, 255, 0.22) !important;
}
.live-workspace .bubble-inline-btn-ico {
  display: inline-flex !important;
  align-items: center !important;
  opacity: 0.75;
  flex-shrink: 0;
}
.live-workspace .bubble-inline-btn-ico svg {
  width: 13px !important;
  height: 13px !important;
}

/* ============================================================================
   SECTION 42: 100% DESK SHOPEE QUIET INLINE BUBBLE ACTIONS BELOW BUBBLE
   ============================================================================ */

.live-workspace .bubble-row,
.live-workspace .bubble-row.in,
.live-workspace .bubble-row.out {
  display: flex !important;
  flex-direction: column !important;
  gap: 3px !important;
  width: 100% !important;
}
.live-workspace .bubble-row.in {
  align-items: flex-start !important;
  justify-content: flex-start !important;
}
.live-workspace .bubble-row.out {
  align-items: flex-end !important;
  justify-content: flex-start !important;
}
.live-workspace .bubble-actions,
.live-workspace .bubble-row.in .bubble-actions,
.live-workspace .bubble-row.out .bubble-actions,
.live-workspace .bubble-row:hover .bubble-actions,
.live-workspace .bubble-row:focus-within .bubble-actions,
.live-workspace .bubble-row.is-actions-open .bubble-actions {
  position: static !important;
  top: auto !important;
  left: auto !important;
  right: auto !important;
  z-index: auto !important;
  display: inline-flex !important;
  align-items: center !important;
  gap: 4px !important;
  padding: 0 4px !important;
  margin: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}
.live-workspace .bubble-action-btn {
  display: inline-flex !important;
  align-items: center !important;
  gap: 3px !important;
  width: auto !important;
  height: 20px !important;
  min-width: 0 !important;
  padding: 0 6px !important;
  border: 0 !important;
  border-radius: 999px !important;
  background: transparent !important;
  color: #7a7a88 !important;
  font-size: 0.65rem !important;
  font-weight: 540 !important;
  line-height: 1 !important;
  cursor: pointer !important;
  transition: background-color 120ms ease, color 120ms ease !important;
}
.live-workspace .bubble-action-btn:hover {
  background: rgba(0, 0, 0, 0.06) !important;
  color: #111114 !important;
}
.live-workspace .bubble-action-btn.is-copied {
  color: #059669 !important;
}
.live-workspace .bubble-action-btn svg {
  width: 11px !important;
  height: 11px !important;
  flex-shrink: 0 !important;
}
@media (max-width: 680px) {
  .live-workspace .bubble-row.in {
    flex-direction: column !important;
    align-items: flex-start !important;
  }
  .live-workspace .bubble-row.out {
    flex-direction: column !important;
    align-items: flex-end !important;
  }
}

/* ============================================================================
   SECTION 43: FLOATING COMPOSER FOOTER & CHANNEL REPLY PILL (NO DIVIDER / BG)
   ============================================================================ */

.live-workspace .thread,
.live-workspace .thread-active {
  background: #f3f4f6 !important;
}
.live-workspace .thread-footer {
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  background: transparent !important;
  border-top: 0 !important;
  box-shadow: none !important;
  padding: 6px 16px 14px !important;
  gap: 8px !important;
}
.live-workspace .thread-footer > [hidden] {
  display: none !important;
}
.live-workspace .thread-footer #ai-inline:not([hidden]) {
  margin: 0 !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.11), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
}
.live-workspace .thread-footer #ai-inline-preview:not([hidden]) {
  background: #f8f9fb !important;
  border-color: #e6e9f0 !important;
}
.live-workspace .thread-footer .reply-source-row {
  display: inline-flex !important;
  align-items: center !important;
  align-self: flex-start !important;
  width: fit-content !important;
  max-width: 100% !important;
  gap: 7px !important;
  margin: 0 0 0 2px !important;
  padding: 5px 12px 5px 6px !important;
  border-radius: 999px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.12), 0 1px 2px rgba(15, 23, 42, 0.05) !important;
}
.live-workspace .thread-footer .reply-source-row .ch-mini-badge {
  width: 18px !important;
  height: 18px !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.14) !important;
}
.live-workspace .thread-footer .reply-source-row .ch-mini-badge svg {
  width: 10.5px !important;
  height: 10.5px !important;
}
.live-workspace .thread-footer .reply-source-row .reply-source {
  flex: 0 1 auto !important;
  min-width: 0 !important;
  margin: 0 !important;
  padding: 0 !important;
  font-size: 0.72rem !important;
  font-weight: 600 !important;
  letter-spacing: -0.01em !important;
  line-height: 1.2 !important;
  color: #374151 !important;
  white-space: nowrap !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
}
.live-workspace .thread-footer .reply-source-row .reply-source-caret {
  display: none !important;
}
.live-workspace .thread-footer #reply-quote-bar:not([hidden]),
.live-workspace .thread-footer #attachment-preview:not([hidden]) {
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  border-radius: 14px !important;
  box-shadow: 0 4px 14px -4px rgba(15, 23, 42, 0.09) !important;
}
.live-workspace .thread-footer form.chathub-composer {
  display: flex !important;
  flex-direction: column !important;
  flex-wrap: nowrap !important;
  flex-shrink: 0 !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.09) !important;
  border-radius: 20px !important;
  padding: 10px 10px 8px 14px !important;
  box-shadow: 0 10px 28px -10px rgba(15, 23, 42, 0.14), 0 2px 6px -2px rgba(15, 23, 42, 0.05) !important;
  transition: border-color 140ms ease, box-shadow 140ms ease !important;
}
.live-workspace .thread-footer form.chathub-composer #reply-text {
  flex: 0 0 auto !important;
  height: auto !important;
}
.live-workspace .thread-footer form.chathub-composer .composer-toolbar {
  flex: 0 0 auto !important;
  width: 100% !important;
}
.live-workspace .thread-footer form.chathub-composer:focus-within {
  border-color: rgba(17, 17, 20, 0.28) !important;
  box-shadow: 0 12px 32px -10px rgba(15, 23, 42, 0.18), 0 0 0 3px rgba(17, 17, 20, 0.05) !important;
}
.live-workspace .thread-footer #reply-status:empty {
  display: none !important;
}
@media (max-width: 680px) {
  .live-workspace .thread-footer {
    padding: 4px 10px max(12px, env(safe-area-inset-bottom)) !important;
    gap: 6px !important;
  }
}

/* ============================================================================
   SECTION 44: TEMPLATE CEPAT FLOATING DRAWER (MATCHES SARAN BALASAN AI)
   & AUTO-HIDE #ai-inline WHEN TEMPLATE DRAWER IS OPEN
   ============================================================================ */

.live-workspace .thread-footer:has(#quick-templates:not([hidden])) #ai-inline {
  display: none !important;
}

.live-workspace .thread-footer #quick-templates:not([hidden]) {
  position: static !important;
  top: auto !important;
  right: auto !important;
  bottom: auto !important;
  left: auto !important;
  z-index: auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding: 12px 14px !important;
  border-radius: 20px !important;
  background: #ffffff !important;
  border: 1px solid rgba(15, 23, 42, 0.08) !important;
  box-shadow: 0 8px 24px -8px rgba(15, 23, 42, 0.11), 0 1px 3px rgba(15, 23, 42, 0.04) !important;
  display: grid !important;
  gap: 10px !important;
  overflow: visible !important;
}
.live-workspace #quick-templates .qt-drawer-top {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 8px !important;
  padding: 0 !important;
}
.live-workspace #quick-templates .qt-drawer-header {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  min-width: 0 !important;
}
.live-workspace #quick-templates .qt-drawer-icon {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  color: #059669 !important;
  flex-shrink: 0 !important;
}
.live-workspace #quick-templates .qt-drawer-icon svg {
  width: 16px !important;
  height: 16px !important;
}
.live-workspace #quick-templates .qt-drawer-header strong {
  font-size: 0.78125rem !important;
  font-weight: 660 !important;
  color: #111114 !important;
  letter-spacing: -0.01em !important;
}
.live-workspace #quick-templates .qt-drawer-meta {
  display: inline-flex !important;
  align-items: center !important;
  gap: 6px !important;
  flex-shrink: 0 !important;
}
.live-workspace #quick-templates #quick-template-status.qt-drawer-badge {
  display: inline-flex !important;
  align-items: center !important;
  height: 21px !important;
  margin: 0 !important;
  padding: 0 10px !important;
  border-radius: 999px !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  background: #ecfdf5 !important;
  color: #065f46 !important;
  border: 1px solid #a7f3d0 !important;
}
.live-workspace #quick-templates #quick-template-status.qt-drawer-badge[data-tone="loading"] {
  background: #eff6ff !important;
  color: #1d4ed8 !important;
  border-color: #bfdbfe !important;
}
.live-workspace #quick-templates #quick-template-status.qt-drawer-badge[data-tone="warn"],
.live-workspace #quick-templates #quick-template-status.qt-drawer-badge[data-tone="error"] {
  background: #fffbeb !important;
  color: #92400e !important;
  border-color: #fde68a !important;
}
.live-workspace #quick-templates .qt-drawer-close {
  width: 24px !important;
  height: 24px !important;
  min-width: 24px !important;
  min-height: 24px !important;
  border-radius: 999px !important;
  color: #6b7280 !important;
  background: transparent !important;
  border: 0 !important;
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
}
.live-workspace #quick-templates .qt-drawer-close:hover {
  background: rgba(15, 23, 42, 0.06) !important;
  color: #111114 !important;
}
.live-workspace #quick-templates .qt-drawer-close svg {
  width: 14px !important;
  height: 14px !important;
}
.live-workspace #quick-templates #quick-template-options {
  display: grid !important;
  gap: 6px !important;
  padding: 8px !important;
  max-height: 290px !important;
  overflow-y: auto !important;
  border-radius: 14px !important;
  border: 1px solid #e6e9f0 !important;
  background: #f8f9fb !important;
}
.live-workspace #quick-templates #quick-template-options:empty {
  display: none !important;
}
.live-workspace #quick-templates .quick-template-option {
  width: 100% !important;
  min-width: 0 !important;
  padding: 10px 12px !important;
  border-radius: 12px !important;
  border: 1px solid #e6e9f0 !important;
  background: #ffffff !important;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03) !important;
  text-align: left !important;
  display: grid !important;
  gap: 5px !important;
  cursor: pointer !important;
  transition: background-color 120ms ease, border-color 120ms ease, box-shadow 120ms ease !important;
}
.live-workspace #quick-templates .quick-template-option:hover,
.live-workspace #quick-templates .quick-template-option:focus-visible {
  background: #ffffff !important;
  border-color: #cbd5e1 !important;
  box-shadow: 0 4px 12px -4px rgba(15, 23, 42, 0.10) !important;
  outline: none !important;
}
.live-workspace #quick-templates .quick-template-head {
  display: flex !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: 100% !important;
}
.live-workspace #quick-templates .quick-template-code {
  padding: 2px 8px !important;
  border-radius: 999px !important;
  background: #141417 !important;
  color: #ffffff !important;
  font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace !important;
  font-size: 0.6875rem !important;
  font-weight: 620 !important;
  line-height: 1.4 !important;
  flex-shrink: 0 !important;
}
.live-workspace #quick-templates .quick-template-head strong {
  font-size: 0.8125rem !important;
  font-weight: 650 !important;
  color: #111114 !important;
  line-height: 1.35 !important;
  min-width: 0 !important;
  overflow: hidden !important;
  text-overflow: ellipsis !important;
  white-space: nowrap !important;
}
.live-workspace #quick-templates .quick-template-cat-pill {
  margin-left: auto !important;
  padding: 2px 9px !important;
  border-radius: 999px !important;
  background: #f3f4f6 !important;
  border: 1px solid #e5e7eb !important;
  color: #4b5563 !important;
  font-size: 0.65625rem !important;
  font-weight: 600 !important;
  line-height: 1.3 !important;
  white-space: nowrap !important;
  flex-shrink: 0 !important;
}
.live-workspace #quick-templates .quick-template-option small {
  display: -webkit-box !important;
  -webkit-line-clamp: 2 !important;
  -webkit-box-orient: vertical !important;
  overflow: hidden !important;
  font-size: 0.765rem !important;
  line-height: 1.48 !important;
  color: #52525b !important;
  font-weight: 420 !important;
  margin: 0 !important;
  white-space: normal !important;
  word-break: break-word !important;
}
@media (max-width: 680px) {
  .live-workspace .thread-footer #quick-templates:not([hidden]) {
    padding: 10px 12px !important;
    border-radius: 18px !important;
  }
  .live-workspace #quick-templates #quick-template-options {
    max-height: 220px !important;
    padding: 6px !important;
  }
}
