@font-face {
  font-family: Prompt;
  src: url(../fonts/prompt-400.woff2) format("woff2");
  font-weight: 400;
  font-display: swap;
}
@font-face {
  font-family: Prompt;
  src: url(../fonts/prompt-500.woff2) format("woff2");
  font-weight: 500;
  font-display: swap;
}
@font-face {
  font-family: Prompt;
  src: url(../fonts/prompt-600.woff2) format("woff2");
  font-weight: 600;
  font-display: swap;
}
@font-face {
  font-family: Prompt;
  src: url(../fonts/prompt-700.woff2) format("woff2");
  font-weight: 700;
  font-display: swap;
}
:root {
  --iui-navy: #07172c;
  --iui-navy2: #102b4e;
  --iui-orange: #ff6b2c;
  --iui-green: #10b981;
  --iui-blue: #1687ff;
  --iui-red: #e5484d;
  --iui-amber: #f59e0b;
  --iui-bg: #eef3f8;
  --iui-card: #fff;
  --iui-text: #10223b;
  --iui-muted: #6e7d92;
  --iui-line: #dce5ef;
  --iui-shadow: 0 16px 48px rgba(7, 23, 44, 0.12);
}
html {
  scroll-behavior: smooth;
}
.ilease-uii-page,
.ilease-uii-page * {
  box-sizing: border-box;
}
.ilease-uii-page {
  margin: 0 !important;
  background: var(--iui-bg) !important;
  color: var(--iui-text) !important;
  font-family: Prompt, Arial, sans-serif !important;
  overflow-x: hidden;
}
.ilease-uii-page > .wp-site-blocks,
.ilease-uii-page .wp-site-blocks {
  padding: 0 !important;
  max-width: none !important;
}
.ilease-uii-page header.wp-block-template-part,
.ilease-uii-page footer.wp-block-template-part,
.ilease-uii-page .wp-site-blocks > header,
.ilease-uii-page .wp-site-blocks > footer,
.ilease-uii-page .wp-block-post-title {
  display: none !important;
}
.ilease-uii-page main,
.ilease-uii-page .wp-block-post-content {
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.ilease-uii-page a {
  text-decoration: none;
}
.ilease-uii-page button,
.ilease-uii-page input,
.ilease-uii-page select,
.ilease-uii-page textarea {
  font: inherit;
}
.ilease-uii-page button {
  cursor: pointer;
}
.iui-app {
  min-height: 100vh;
}
.iui-boot {
  min-height: 100vh;
  display: grid;
  place-content: center;
  gap: 10px;
  text-align: center;
  background: radial-gradient(circle at 50% 25%, #173b69, var(--iui-navy));
  color: #fff;
}
.iui-boot small {
  color: #a8bad0;
}
.iui-spinner {
  width: 40px;
  height: 40px;
  margin: auto;
  border: 4px solid #ffffff30;
  border-top-color: var(--iui-orange);
  border-radius: 50%;
  animation: iui-spin 0.8s linear infinite;
}
@keyframes iui-spin {
  to {
    transform: rotate(360deg);
  }
}
.iui-shell {
  min-height: 100vh;
  display: grid;
  grid-template-rows: 72px minmax(0, 1fr);
  background: var(--iui-bg);
}
.iui-topbar {
  position: sticky;
  top: 0;
  z-index: 30;
  height: 72px;
  background: var(--iui-navy);
  color: #fff;
  display: flex;
  align-items: center;
  gap: 20px;
  padding: 0 24px;
  border-bottom: 1px solid #27405f;
}
.iui-brand {
  display: flex;
  align-items: center;
  gap: 11px;
  min-width: 230px;
}
.iui-logo {
  display: grid;
  place-items: center;
  width: 39px;
  height: 39px;
  border-radius: 13px;
  background: linear-gradient(135deg, #ff7a3d, #f4511e);
  box-shadow: 0 8px 24px #ff6b2c55;
  font-weight: 800;
  font-style: italic;
}
.iui-brand strong {
  display: block;
  font-size: 18px;
  letter-spacing: -0.3px;
}
.iui-brand small {
  display: block;
  color: #8fa4bd;
  font-size: 9px;
  letter-spacing: 1.5px;
}
.iui-tabs {
  display: flex;
  gap: 7px;
  flex: 1;
}
.iui-tab {
  padding: 10px 14px;
  border-radius: 10px;
  color: #b9c8d9;
  font-size: 13px;
  font-weight: 600;
}
.iui-tab:hover,
.iui-tab.is-active {
  color: #fff;
  background: #ffffff12;
}
.iui-user {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 10px;
}
.iui-user-copy {
  line-height: 1.15;
  text-align: right;
}
.iui-user-copy strong {
  display: block;
  font-size: 12px;
}
.iui-user-copy small {
  color: #91a5bd;
  font-size: 9px;
}
.iui-avatar {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border-radius: 12px;
  background: #fff;
  color: var(--iui-navy);
  font-weight: 700;
}
.iui-icon-btn {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border: 1px solid #ffffff20;
  border-radius: 11px;
  background: #ffffff0d;
  color: #fff;
}
.iui-main {
  min-height: 0;
  padding: 18px;
}
.iui-workspace {
  height: calc(100vh - 108px);
  min-height: 580px;
  display: grid;
  grid-template-columns: 340px minmax(420px, 1fr) 300px;
  max-width: 1720px;
  margin: auto;
  background: var(--iui-card);
  border: 1px solid var(--iui-line);
  border-radius: 20px;
  overflow: hidden;
  box-shadow: var(--iui-shadow);
}
.iui-pane {
  min-width: 0;
  min-height: 0;
}
.iui-list-pane {
  display: flex;
  flex-direction: column;
  border-right: 1px solid var(--iui-line);
  background: #f9fbfd;
}
.iui-pane-head {
  padding: 17px 18px 13px;
  border-bottom: 1px solid var(--iui-line);
  background: #fff;
}
.iui-pane-headline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.iui-pane-head h1,
.iui-pane-head h2 {
  font-size: 18px;
  margin: 0;
  line-height: 1.4;
}
.iui-live {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  color: #0f7a55;
  background: #e9fbf5;
  padding: 6px 8px;
  border-radius: 99px;
}
.iui-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #1ec98a;
  box-shadow: 0 0 0 4px #1ec98a22;
}
.iui-search {
  position: relative;
  margin-top: 12px;
}
.iui-search input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--iui-line);
  border-radius: 12px;
  background: #f7f9fc;
  padding: 0 38px 0 13px;
  color: var(--iui-text);
  outline: none;
}
.iui-search input:focus {
  border-color: #98b5d4;
  box-shadow: 0 0 0 3px #1687ff15;
}
.iui-search span {
  position: absolute;
  right: 12px;
  top: 11px;
  color: #8494a8;
}
.iui-filter-row {
  display: flex;
  gap: 6px;
  margin-top: 10px;
  overflow: auto;
  padding-bottom: 2px;
}
.iui-chip {
  white-space: nowrap;
  border: 1px solid var(--iui-line);
  border-radius: 99px;
  background: #fff;
  color: #607087;
  padding: 6px 9px;
  font-size: 10px;
}
.iui-chip.is-active {
  border-color: var(--iui-navy);
  background: var(--iui-navy);
  color: #fff;
}
.iui-pending-alert {
  margin: 10px 12px 0;
  padding: 12px;
  border: 1px solid #ffc876;
  background: #fff7e6;
  border-radius: 13px;
  color: #7f4a00;
  display: flex;
  gap: 10px;
  align-items: center;
  font-size: 11px;
  font-weight: 600;
  box-shadow: 0 8px 22px #f59e0b20;
  animation: iui-pulse 2s infinite;
}
.iui-pending-alert b {
  display: grid;
  place-items: center;
  min-width: 28px;
  height: 28px;
  border-radius: 9px;
  background: #f59e0b;
  color: #fff;
}
@keyframes iui-pulse {
  50% {
    box-shadow: 0 8px 28px #f59e0b44;
  }
}
.iui-conversation-list {
  overflow: auto;
  min-height: 0;
  padding: 10px;
}
.iui-conv {
  position: relative;
  width: 100%;
  border: 1px solid transparent;
  border-radius: 15px;
  background: transparent;
  padding: 13px;
  display: grid;
  grid-template-columns: 43px 1fr auto;
  gap: 10px;
  text-align: left;
  color: inherit;
  margin-bottom: 4px;
}
.iui-conv:hover {
  background: #fff;
  border-color: var(--iui-line);
}
.iui-conv.is-selected {
  background: #fff;
  border-color: #cfdceb;
  box-shadow: 0 8px 25px #0b244010;
}
.iui-conv.is-pending {
  background: #fff9ed;
  border-color: #ffd892;
}
.iui-customer-avatar {
  width: 43px;
  height: 43px;
  border-radius: 14px;
  object-fit: cover;
  background: linear-gradient(135deg, #dce8f4, #f2f6fa);
  display: grid;
  place-items: center;
  font-weight: 700;
  color: #516780;
  overflow: hidden;
}
.iui-customer-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}
.iui-conv-copy {
  min-width: 0;
}
.iui-conv-top {
  display: flex;
  gap: 7px;
  align-items: center;
}
.iui-channel {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 18px;
  height: 18px;
  border-radius: 6px;
  font-size: 9px;
  font-weight: 700;
  color: #fff;
}
.iui-channel.line {
  background: #06c755;
}
.iui-channel.messenger {
  background: #1687ff;
}
.iui-channel.demo {
  background: #7c3aed;
}
.iui-conv-name {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 12px;
  font-weight: 700;
}
.iui-conv-preview {
  margin-top: 4px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #7a899c;
  font-size: 10px;
}
.iui-conv-meta {
  text-align: right;
  min-width: 48px;
}
.iui-conv-meta time {
  display: block;
  color: #92a0b1;
  font-size: 9px;
}
.iui-unread {
  display: inline-grid;
  place-items: center;
  min-width: 20px;
  height: 20px;
  margin-top: 7px;
  padding: 0 5px;
  border-radius: 99px;
  background: var(--iui-orange);
  color: #fff;
  font-size: 9px;
  font-weight: 700;
}
.iui-state-dot {
  position: absolute;
  left: 5px;
  top: 27px;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #9cacbd;
}
.iui-state-dot.pending {
  background: var(--iui-amber);
  box-shadow: 0 0 0 4px #f59e0b22;
}
.iui-empty {
  padding: 40px 22px;
  text-align: center;
  color: #8090a4;
}
.iui-empty .iui-empty-icon {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  margin: 0 auto 12px;
  border-radius: 18px;
  background: #eef4f9;
  font-size: 24px;
}
.iui-empty strong {
  display: block;
  color: var(--iui-text);
  margin-bottom: 5px;
}
.iui-chat-pane {
  display: flex;
  flex-direction: column;
  background: #fff;
}
.iui-chat-head {
  height: 78px;
  border-bottom: 1px solid var(--iui-line);
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 17px;
}
.iui-chat-head-copy {
  min-width: 0;
}
.iui-chat-head h2 {
  font-size: 15px;
  margin: 0 0 4px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.iui-subline {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #74849a;
  font-size: 10px;
}
.iui-head-actions {
  display: flex;
  gap: 7px;
  margin-left: auto;
}
.iui-btn {
  border: 0;
  border-radius: 11px;
  background: var(--iui-navy);
  color: #fff;
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 600;
  box-shadow: none;
}
.iui-btn:hover {
  transform: translateY(-1px);
}
.iui-btn.orange {
  background: linear-gradient(135deg, #ff7436, #ff5f20);
}
.iui-btn.green {
  background: var(--iui-green);
}
.iui-btn.light {
  background: #eff4f8;
  color: var(--iui-text);
}
.iui-btn.danger {
  background: #fff0f0;
  color: #bf2f35;
  border: 1px solid #ffd1d3;
}
.iui-btn.outline {
  background: #fff;
  color: var(--iui-text);
  border: 1px solid var(--iui-line);
}
.iui-btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
  transform: none;
}
.iui-mobile-back {
  display: none;
}
.iui-accept-banner {
  margin: 12px 16px 0;
  padding: 14px;
  border-radius: 15px;
  background: linear-gradient(135deg, #fff6dd, #fffaf0);
  border: 1px solid #ffd27d;
  display: flex;
  align-items: center;
  gap: 12px;
  color: #6f4500;
}
.iui-accept-banner strong {
  display: block;
  font-size: 12px;
}
.iui-accept-banner small {
  font-size: 10px;
}
.iui-accept-banner .iui-btn {
  margin-left: auto;
  white-space: nowrap;
}
.iui-message-area {
  flex: 1;
  overflow: auto;
  min-height: 0;
  padding: 20px 20px 14px;
  background: linear-gradient(180deg, #f8fafc, #fff);
}
.iui-day {
  margin: 7px auto 16px;
  width: max-content;
  background: #eaf0f6;
  color: #77869a;
  border-radius: 99px;
  padding: 5px 9px;
  font-size: 9px;
}
.iui-message {
  display: flex;
  gap: 8px;
  margin: 8px 0;
  align-items: flex-end;
}
.iui-message.outbound {
  justify-content: flex-end;
}
.iui-bubble {
  max-width: min(76%, 580px);
  padding: 10px 12px;
  border-radius: 15px 15px 15px 4px;
  background: #edf2f7;
  color: var(--iui-text);
  font-size: 12px;
  line-height: 1.65;
  word-break: break-word;
}
.iui-message.outbound .iui-bubble {
  background: var(--iui-navy2);
  color: #fff;
  border-radius: 15px 15px 4px 15px;
}
.iui-message.internal .iui-bubble {
  max-width: 88%;
  margin: auto;
  background: #fff8df;
  color: #76500c;
  border: 1px dashed #e7bd58;
  border-radius: 12px;
}
.iui-msg-meta {
  display: block;
  margin-top: 4px;
  color: #8a98aa;
  font-size: 8px;
}
.iui-message.outbound .iui-msg-meta {
  color: #b7c7da;
  text-align: right;
}
.iui-attachment {
  display: block;
  margin-bottom: 5px;
}
.iui-attachment img {
  display: block;
  max-width: 100%;
  max-height: 340px;
  border-radius: 10px;
}
.iui-composer {
  border-top: 1px solid var(--iui-line);
  padding: 12px 15px;
  background: #fff;
}
.iui-composer-tools {
  display: flex;
  gap: 6px;
  margin-bottom: 8px;
}
.iui-mini {
  border: 1px solid var(--iui-line);
  background: #fff;
  color: #66778d;
  border-radius: 9px;
  padding: 6px 9px;
  font-size: 9px;
}
.iui-compose-row {
  display: flex;
  gap: 8px;
  align-items: flex-end;
}
.iui-compose-row textarea {
  flex: 1;
  min-height: 46px;
  max-height: 130px;
  resize: vertical;
  border: 1px solid var(--iui-line);
  border-radius: 13px;
  padding: 12px;
  outline: none;
}
.iui-compose-row textarea:focus {
  border-color: #94afd0;
}
.iui-send {
  width: 46px;
  height: 46px;
  border: 0;
  border-radius: 13px;
  background: var(--iui-orange);
  color: #fff;
  font-size: 17px;
}
.iui-composer-lock {
  padding: 12px;
  text-align: center;
  background: #fff8e7;
  border: 1px solid #ffe0a4;
  border-radius: 12px;
  color: #835000;
  font-size: 10px;
}
.iui-detail-pane {
  border-left: 1px solid var(--iui-line);
  background: #fbfcfe;
  overflow: auto;
}
.iui-detail-head {
  padding: 18px;
  border-bottom: 1px solid var(--iui-line);
  text-align: center;
}
.iui-detail-head .iui-customer-avatar {
  width: 62px;
  height: 62px;
  margin: auto;
  border-radius: 20px;
}
.iui-detail-head h3 {
  font-size: 14px;
  margin: 10px 0 2px;
}
.iui-detail-head p {
  margin: 0;
  color: #7e8da1;
  font-size: 9px;
}
.iui-section {
  padding: 15px 17px;
  border-bottom: 1px solid var(--iui-line);
}
.iui-section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}
.iui-section-title h4 {
  margin: 0;
  font-size: 11px;
}
.iui-kv {
  display: grid;
  grid-template-columns: 88px 1fr;
  gap: 7px;
  margin: 8px 0;
  font-size: 10px;
}
.iui-kv span {
  color: #8492a5;
}
.iui-kv b {
  font-weight: 500;
  word-break: break-all;
}
.iui-form {
  display: grid;
  gap: 9px;
}
.iui-field {
  display: grid;
  gap: 5px;
}
.iui-field label {
  font-size: 9px;
  color: #66778c;
  font-weight: 600;
}
.iui-field input,
.iui-field select,
.iui-field textarea {
  width: 100%;
  border: 1px solid var(--iui-line);
  border-radius: 10px;
  background: #fff;
  color: var(--iui-text);
  padding: 9px 10px;
  font-size: 10px;
  outline: none;
}
.iui-field textarea {
  min-height: 72px;
  resize: vertical;
}
.iui-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}
.iui-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.iui-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  border-radius: 99px;
  background: #eaf1f8;
  color: #40536c;
  padding: 5px 8px;
  font-size: 9px;
}
.iui-status {
  display: inline-flex;
  align-items: center;
  border-radius: 99px;
  padding: 5px 8px;
  font-size: 9px;
  font-weight: 600;
}
.iui-status.pending {
  background: #fff0cf;
  color: #915b00;
}
.iui-status.active {
  background: #e5faef;
  color: #08734a;
}
.iui-status.closed {
  background: #e9eef4;
  color: #637288;
}
.iui-status.unassigned {
  background: #ffeaea;
  color: #ac3438;
}
.iui-status.waiting_customer,
.iui-status.waiting_team {
  background: #e8f2ff;
  color: #2366a5;
}
.iui-lead-box {
  border: 1px solid #ffd6c5;
  background: #fff8f4;
  border-radius: 13px;
  padding: 11px;
}
.iui-lead-box strong {
  font-size: 11px;
}
.iui-lead-box p {
  margin: 4px 0 9px;
  color: #75849a;
  font-size: 9px;
}
.iui-toast-wrap {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 100;
  display: grid;
  gap: 8px;
}
.iui-toast {
  min-width: 280px;
  max-width: 430px;
  border-radius: 13px;
  padding: 12px 14px;
  background: var(--iui-navy);
  color: #fff;
  box-shadow: var(--iui-shadow);
  font-size: 11px;
}
.iui-toast.error {
  background: #b92f35;
}
.iui-toast.success {
  background: #06744e;
}
.iui-toast a {
  color: #fff;
  text-decoration: underline;
}
.iui-control {
  max-width: 1540px;
  margin: auto;
}
.iui-hero {
  border-radius: 22px;
  background: linear-gradient(135deg, var(--iui-navy), #173a66);
  color: #fff;
  padding: 24px 28px;
  display: flex;
  align-items: center;
  gap: 20px;
  box-shadow: var(--iui-shadow);
}
.iui-eyebrow {
  display: block;
  color: var(--iui-orange);
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 1.7px;
}
.iui-hero h1 {
  margin: 6px 0 3px;
  font-size: 25px;
}
.iui-hero p {
  margin: 0;
  color: #aebed0;
  font-size: 11px;
}
.iui-hero-actions {
  margin-left: auto;
  display: flex;
  gap: 8px;
}
.iui-stat-grid {
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 12px;
  margin-top: 14px;
}
.iui-stat {
  position: relative;
  background: #fff;
  border: 1px solid var(--iui-line);
  border-radius: 17px;
  padding: 15px;
  min-height: 112px;
}
.iui-stat small {
  font-size: 9px;
  color: #64758c;
  font-weight: 600;
}
.iui-stat strong {
  display: block;
  margin: 7px 0 1px;
  font-size: 27px;
  letter-spacing: -1px;
}
.iui-stat em {
  font-size: 9px;
  color: #8a98aa;
  font-style: normal;
}
.iui-stat i {
  position: absolute;
  right: 12px;
  top: 12px;
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: #f0f4f8;
  color: #8190a3;
  font-style: normal;
}
.iui-panel-grid {
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 14px;
  margin-top: 14px;
}
.iui-panel {
  background: #fff;
  border: 1px solid var(--iui-line);
  border-radius: 18px;
  padding: 19px;
}
.iui-panel h2 {
  font-size: 15px;
  margin: 5px 0 14px;
}
.iui-queue {
  display: grid;
  gap: 8px;
}
.iui-queue-row {
  display: grid;
  grid-template-columns: 150px 1fr 36px;
  gap: 10px;
  align-items: center;
  font-size: 10px;
}
.iui-track {
  height: 9px;
  border-radius: 99px;
  background: #e9eef3;
  overflow: hidden;
}
.iui-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #ff672a, #ff9a6e);
}
.iui-table-wrap {
  overflow: auto;
}
.iui-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10px;
}
.iui-table th {
  padding: 10px;
  text-align: left;
  background: #f5f8fb;
  color: #728197;
  font-size: 8px;
  text-transform: uppercase;
}
.iui-table td {
  padding: 11px 10px;
  border-bottom: 1px solid #edf1f5;
}
.iui-manage-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 14px;
}
.iui-code {
  display: block;
  padding: 9px;
  border-radius: 9px;
  background: #0a1c32;
  color: #dceafb;
  font: 10px/1.5 monospace;
  word-break: break-all;
}
.iui-health {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
}
.iui-health b {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #a7b4c3;
}
.iui-health.ok b {
  background: #17bc7d;
}
.iui-staff {
  display: grid;
  gap: 7px;
}
.iui-staff-row {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 7px;
  align-items: center;
  border: 1px solid var(--iui-line);
  border-radius: 12px;
  padding: 9px;
}
.iui-staff-row strong {
  font-size: 10px;
}
.iui-staff-row small {
  display: block;
  color: #8493a6;
  font-size: 8px;
}
.iui-link-output {
  margin-top: 10px;
  padding: 11px;
  background: #edfbf5;
  border: 1px solid #bcebd6;
  border-radius: 10px;
  font-size: 9px;
  word-break: break-all;
}
.iui-modal {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: #07172c99;
  backdrop-filter: blur(6px);
  display: grid;
  place-items: center;
  padding: 18px;
}
.iui-modal-card {
  position: relative;
  width: min(620px, 100%);
  max-height: 90vh;
  overflow: auto;
  background: #fff;
  border-radius: 20px;
  padding: 22px;
  box-shadow: 0 30px 100px #07172c66;
}
.iui-modal-card h2 {
  margin: 0 0 4px;
  font-size: 20px;
}
.iui-modal-card > p {
  margin: 0 0 16px;
  color: #74849a;
  font-size: 10px;
}
.iui-modal-close {
  position: absolute;
  right: 15px;
  top: 15px;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 10px;
  background: #edf2f7;
  color: #4c5c70;
}
.iui-hidden {
  display: none !important;
}
.iui-login-shell {
  min-height: 100vh;
  background: radial-gradient(circle at 20% 20%, #173b66, var(--iui-navy));
  display: grid;
  grid-template-columns: 1fr minmax(340px, 480px);
  align-items: center;
  gap: 8vw;
  padding: 6vw;
  color: #fff;
}
.iui-login-brand {
  display: flex;
  align-items: center;
  gap: 15px;
  font-family: Prompt, Arial, sans-serif;
}
.iui-login-brand .iui-mark {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 22px;
  background: var(--iui-orange);
  font-size: 28px;
  font-weight: 800;
  font-style: italic;
}
.iui-login-brand strong {
  display: block;
  font-size: 35px;
}
.iui-login-brand small {
  color: #94a8c0;
  letter-spacing: 2px;
}
.iui-login-card {
  font-family: Prompt, Arial, sans-serif;
  background: #fff;
  color: var(--iui-text);
  border-radius: 22px;
  padding: 30px;
  box-shadow: var(--iui-shadow);
  max-width: 520px;
  margin: 8vh auto;
}
.iui-login-shell .iui-login-card {
  margin: 0;
}
.iui-login-card h1 {
  font-size: 26px;
  margin: 7px 0;
}
.iui-login-card p {
  color: #758499;
  font-size: 12px;
  line-height: 1.7;
}
.iui-login-card label {
  display: block;
  font-size: 10px;
  margin-bottom: 5px;
}
.iui-login-card input[type="text"],
.iui-login-card input[type="password"] {
  width: 100%;
  height: 46px;
  border: 1px solid var(--iui-line);
  border-radius: 12px;
  padding: 0 12px;
}
.iui-login-card .login-remember label {
  display: flex;
  gap: 7px;
  align-items: center;
}
.iui-login-card input[type="submit"],
.iui-button {
  border: 0;
  border-radius: 12px;
  background: var(--iui-orange);
  color: #fff !important;
  padding: 12px 18px;
  font-weight: 600;
}
.iui-login-card .login-submit {
  margin: 15px 0 0;
}
@media (max-width: 1180px) {
  .iui-workspace {
    grid-template-columns: 310px minmax(400px, 1fr);
  }
  .iui-detail-pane {
    position: fixed;
    z-index: 55;
    right: 0;
    top: 72px;
    bottom: 0;
    width: min(360px, 92vw);
    box-shadow: -20px 0 60px #07172c33;
    transform: translateX(102%);
    transition: 0.2s;
  }
  .iui-detail-pane.is-open {
    transform: none;
  }
  .iui-stat-grid {
    grid-template-columns: repeat(3, 1fr);
  }
}
@media (max-width: 800px) {
  .iui-shell {
    grid-template-rows: 60px minmax(0, 1fr);
  }
  .iui-topbar {
    height: 60px;
    padding: 0 12px;
  }
  .iui-brand {
    min-width: 0;
  }
  .iui-brand-copy {
    display: none;
  }
  .iui-tabs {
    justify-content: center;
  }
  .iui-tab {
    font-size: 10px;
    padding: 8px;
  }
  .iui-user-copy {
    display: none;
  }
  .iui-main {
    padding: 8px;
  }
  .iui-workspace {
    height: calc(100vh - 76px);
    min-height: 0;
    grid-template-columns: 1fr;
    border-radius: 15px;
  }
  .iui-list-pane {
    border: 0;
  }
  .iui-chat-pane {
    position: absolute;
    inset: 68px 8px 8px;
    z-index: 35;
    border: 1px solid var(--iui-line);
    border-radius: 15px;
    overflow: hidden;
    transform: translateX(110%);
    transition: 0.2s;
  }
  .iui-chat-pane.is-open {
    transform: none;
  }
  .iui-mobile-back {
    display: grid;
  }
  .iui-message-area {
    padding: 14px 11px;
  }
  .iui-bubble {
    max-width: 86%;
  }
  .iui-detail-pane {
    top: 60px;
  }
  .iui-control {
    padding-bottom: 30px;
  }
  .iui-hero {
    padding: 19px;
    display: block;
  }
  .iui-hero-actions {
    margin: 14px 0 0;
  }
  .iui-stat-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .iui-panel-grid,
  .iui-manage-grid {
    grid-template-columns: 1fr;
  }
  .iui-login-shell {
    grid-template-columns: 1fr;
    padding: 22px;
  }
  .iui-login-brand {
    justify-content: center;
  }
  .iui-login-shell .iui-login-card {
    width: 100%;
  }
}
@media (max-width: 480px) {
  .iui-tab span {
    display: none;
  }
  .iui-user {
    gap: 4px;
  }
  .iui-topbar .iui-icon-btn {
    width: 34px;
    height: 34px;
  }
  .iui-pane-head {
    padding: 14px;
  }
  .iui-conversation-list {
    padding: 7px;
  }
  .iui-conv {
    padding: 11px;
  }
  .iui-chat-head {
    height: 68px;
    padding: 9px;
  }
  .iui-head-actions .iui-btn span {
    display: none;
  }
  .iui-accept-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .iui-accept-banner .iui-btn {
    width: 100%;
    margin: 0;
  }
  .iui-stat-grid {
    gap: 8px;
  }
  .iui-stat {
    min-height: 100px;
    padding: 12px;
  }
  .iui-stat strong {
    font-size: 22px;
  }
  .iui-panel {
    padding: 14px;
  }
  .iui-row {
    grid-template-columns: 1fr;
  }
  .iui-queue-row {
    grid-template-columns: 100px 1fr 24px;
  }
  .iui-login-card {
    padding: 22px;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *:before,
  *:after {
    animation: none !important;
    transition: none !important;
  }
}
.ilease-uii-page #iui-private-workspace {
  display: block;
  width: 100%;
  min-height: 100vh;
  margin: 0 !important;
  padding: 0 !important;
  max-width: none !important;
}
.iui-login-alert {
  margin: 12px 0;
  padding: 11px 12px;
  border: 1px solid #ffc7c9;
  border-radius: 11px;
  background: #fff0f0;
  color: #a92e34;
  font-size: 11px;
  font-weight: 600;
}

/* Unified Inbox 1.1 — compact, stable and responsive workspace */
.iui-shell {
  grid-template-rows: 64px minmax(0, 1fr);
}
.iui-topbar {
  height: 64px;
  padding: 0 clamp(14px, 2vw, 26px);
  gap: 16px;
  box-shadow: 0 8px 30px rgba(7, 23, 44, 0.16);
}
.iui-brand {
  min-width: 205px;
}
.iui-logo {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.iui-tabs {
  gap: 4px;
}
.iui-tab {
  padding: 9px 13px;
}
.iui-main {
  padding: 12px;
  overflow: hidden;
}
.iui-workspace {
  width: 100%;
  height: calc(100dvh - 88px);
  min-height: 510px;
  max-width: 1800px;
  grid-template-columns: minmax(270px, 304px) minmax(440px, 1fr) minmax(
      300px,
      336px
    );
  border-radius: 16px;
  box-shadow: 0 12px 42px rgba(7, 23, 44, 0.1);
}
.iui-pane-head {
  padding: 13px 14px 11px;
}
.iui-pane-head h1,
.iui-pane-head h2 {
  font-size: 16px;
}
.iui-live {
  padding: 5px 8px;
}
.iui-search {
  margin-top: 9px;
}
.iui-search input {
  height: 39px;
  border-radius: 10px;
  font-size: 11px;
}
.iui-filter-row {
  gap: 5px;
  margin-top: 8px;
  scrollbar-width: none;
}
.iui-filter-row::-webkit-scrollbar {
  display: none;
}
.iui-chip {
  padding: 5px 8px;
  font-size: 9px;
}
.iui-pending-alert {
  margin: 8px 9px 0;
  padding: 9px 10px;
  border-radius: 11px;
  font-size: 10px;
}
.iui-conversation-list {
  padding: 7px;
  overscroll-behavior: contain;
}
.iui-conv {
  grid-template-columns: 38px minmax(0, 1fr) auto;
  gap: 9px;
  padding: 10px 9px;
  border-radius: 12px;
  margin-bottom: 3px;
}
.iui-conv .iui-customer-avatar {
  width: 38px;
  height: 38px;
  border-radius: 12px;
}
.iui-conv-name {
  font-size: 11px;
}
.iui-conv-preview {
  font-size: 9px;
}
.iui-chat-pane {
  position: relative;
  overflow: hidden;
}
.iui-chat-head {
  flex: 0 0 64px;
  height: 64px;
  gap: 10px;
  padding: 9px 13px;
  background: rgba(255, 255, 255, 0.96);
}
.iui-chat-head .iui-customer-avatar {
  width: 40px;
  height: 40px;
  border-radius: 12px;
}
.iui-chat-head h2 {
  font-size: 14px;
  margin-bottom: 3px;
}
.iui-head-actions .iui-btn {
  padding: 8px 10px;
  border-radius: 9px;
  font-size: 10px;
}
.iui-accept-banner {
  margin: 9px 12px 0;
  padding: 10px 12px;
  border-radius: 12px;
}
.iui-accept-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 9px;
  background: #ffebbb;
}
.iui-message-area {
  padding: 16px 18px 12px;
  overscroll-behavior: contain;
  background:
    radial-gradient(
      circle at 95% 0%,
      rgba(22, 135, 255, 0.045),
      transparent 34%
    ),
    linear-gradient(180deg, #f8fafc, #fff);
}
.iui-message {
  margin: 6px 0;
}
.iui-bubble {
  max-width: min(72%, 560px);
  padding: 9px 11px;
  border-radius: 13px 13px 13px 4px;
  font-size: 11px;
  line-height: 1.6;
}
.iui-message.outbound .iui-bubble {
  border-radius: 13px 13px 4px 13px;
  background: linear-gradient(135deg, #102b4e, #07172c);
}
.iui-attachment img {
  max-height: 300px;
}
.iui-composer {
  position: relative;
  flex: 0 0 auto;
  padding: 9px 12px 11px;
  box-shadow: 0 -8px 26px rgba(7, 23, 44, 0.035);
}
.iui-composer-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 7px;
}
.iui-composer-toolbar > small {
  color: #8a98aa;
  font-size: 8px;
}
.iui-tool-actions {
  display: flex;
  gap: 5px;
}
.iui-tool-btn {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 30px;
  padding: 5px 9px;
  border: 1px solid var(--iui-line);
  border-radius: 9px;
  background: #f8fafc;
  color: #52657c;
  font-size: 9px;
  font-weight: 600;
}
.iui-tool-btn:hover,
.iui-tool-btn[aria-expanded="true"] {
  border-color: #b7cbe0;
  background: #edf5fc;
  color: #173b66;
}
.iui-compose-row {
  gap: 7px;
}
.iui-compose-row textarea {
  min-height: 42px;
  max-height: 116px;
  resize: none;
  padding: 10px 11px;
  border-radius: 12px;
  font-size: 11px;
  line-height: 1.55;
}
.iui-send {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  width: auto;
  min-width: 68px;
  height: 42px;
  padding: 0 13px;
  border-radius: 12px;
  font-size: 11px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(255, 107, 44, 0.22);
}
.iui-quick-menu {
  display: none;
  position: absolute;
  z-index: 12;
  left: 12px;
  bottom: calc(100% - 3px);
  width: min(430px, calc(100% - 24px));
  max-height: min(420px, 60dvh);
  overflow: hidden;
  border: 1px solid #cfdceb;
  border-radius: 15px;
  background: #fff;
  box-shadow: 0 22px 70px rgba(7, 23, 44, 0.2);
}
.iui-quick-menu.is-open {
  display: block;
}
.iui-quick-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 11px 12px;
  border-bottom: 1px solid var(--iui-line);
  background: #f7fafc;
}
.iui-quick-head b,
.iui-quick-head small {
  display: block;
}
.iui-quick-head b {
  font-size: 11px;
}
.iui-quick-head small {
  margin-top: 2px;
  color: #8493a7;
  font-size: 8px;
}
.iui-quick-head .iui-icon-btn {
  width: 29px;
  height: 29px;
  border-color: var(--iui-line);
  background: #fff;
  color: #61738a;
}
.iui-quick-list {
  max-height: min(350px, 52dvh);
  overflow: auto;
  padding: 6px;
}
.iui-quick-item {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 9px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--iui-text);
  text-align: left;
}
.iui-quick-item:hover {
  background: #f0f5fa;
}
.iui-quick-item b {
  color: #173b66;
  font-size: 10px;
}
.iui-quick-item span {
  overflow: hidden;
  color: #75859a;
  font-size: 9px;
  line-height: 1.45;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iui-quick-empty {
  padding: 24px 12px;
  color: #8190a3;
  text-align: center;
  font-size: 10px;
}
.iui-detail-pane {
  display: flex;
  flex-direction: column;
  overflow: hidden;
  background: #f8fafc;
}
.iui-detail-head {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  text-align: left;
  background: #fff;
}
.iui-detail-head .iui-customer-avatar {
  width: 42px;
  height: 42px;
  margin: 0;
  border-radius: 13px;
}
.iui-detail-head h3 {
  margin: 0 28px 2px 0;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iui-detail-head p {
  overflow: hidden;
  font-size: 8px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iui-detail-close {
  position: absolute;
  top: 11px;
  right: 10px;
  display: none;
  width: 28px;
  height: 28px;
  border: 1px solid var(--iui-line);
  border-radius: 8px;
  background: #f7fafc;
  color: #687a90;
}
.iui-detail-scroll {
  flex: 1;
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
  padding: 8px;
  scrollbar-gutter: stable;
}
.iui-detail-group {
  margin-bottom: 7px;
  overflow: hidden;
  border: 1px solid var(--iui-line);
  border-radius: 12px;
  background: #fff;
}
.iui-detail-group > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 40px;
  padding: 9px 11px;
  cursor: pointer;
  list-style: none;
  color: #263a54;
  font-size: 10px;
  font-weight: 700;
}
.iui-detail-group > summary::-webkit-details-marker {
  display: none;
}
.iui-detail-group > summary i {
  color: #8494a8;
  font-size: 13px;
  font-style: normal;
  transition: transform 0.18s ease;
}
.iui-detail-group[open] > summary i {
  transform: rotate(180deg);
}
.iui-detail-group-body {
  padding: 0 11px 11px;
  border-top: 1px solid #edf2f7;
}
.iui-detail-group-body > .iui-section-title {
  margin: 9px 0 7px;
}
.iui-detail-group .iui-form {
  gap: 7px;
  padding-top: 9px;
}
.iui-detail-group .iui-field input,
.iui-detail-group .iui-field select,
.iui-detail-group .iui-field textarea {
  padding: 8px 9px;
  border-radius: 9px;
}
.iui-detail-group .iui-btn {
  width: 100%;
  padding: 9px 10px;
  border-radius: 9px;
}
.iui-detail-group .iui-kv {
  grid-template-columns: 82px minmax(0, 1fr);
  margin: 7px 0;
  font-size: 9px;
}
.iui-tag-presets {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.iui-tag-presets button {
  padding: 4px 7px;
  border: 1px solid #d7e2ed;
  border-radius: 99px;
  background: #f7fafc;
  color: #62748a;
  font-size: 8px;
}
.iui-tag-presets button:hover,
.iui-tag-presets button.is-active {
  border-color: #9bc9b7;
  background: #eafaf4;
  color: #087554;
}
.iui-status.assigned_pending {
  background: #fff0cf;
  color: #915b00;
}
.iui-lead-box {
  padding-top: 9px;
}
.iui-lead-box strong {
  display: block;
  color: #173b66;
  font-size: 11px;
}
.iui-lead-box p {
  margin: 4px 0 9px;
  color: #74849a;
  font-size: 9px;
  line-height: 1.55;
}
.iui-media-modal .iui-modal-card {
  width: min(480px, 100%);
}
.iui-media-preview {
  display: grid;
  place-items: center;
  min-height: 220px;
  max-height: 52dvh;
  margin: 13px 0 10px;
  overflow: hidden;
  border: 1px solid var(--iui-line);
  border-radius: 14px;
  background:
    linear-gradient(45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(-45deg, #edf2f7 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #edf2f7 75%),
    linear-gradient(-45deg, transparent 75%, #edf2f7 75%), #f8fafc;
  background-position:
    0 0,
    0 8px,
    8px -8px,
    -8px 0;
  background-size: 16px 16px;
}
.iui-media-preview img {
  display: block;
  max-width: 100%;
  max-height: 52dvh;
  object-fit: contain;
}
.iui-media-file span,
.iui-media-file b,
.iui-media-file small {
  display: block;
}
.iui-media-file b {
  overflow: hidden;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iui-media-file small {
  color: #7e8da1;
  font-size: 9px;
}
.iui-media-warning {
  margin: 10px 0 !important;
  padding: 9px 10px;
  border: 1px solid #ffe0a4;
  border-radius: 10px;
  background: #fff9e9;
  color: #805000 !important;
}
.iui-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 7px;
}

@media (max-width: 1280px) {
  .iui-workspace {
    grid-template-columns: minmax(270px, 300px) minmax(420px, 1fr);
  }
  .iui-detail-pane {
    position: fixed;
    z-index: 60;
    top: 64px;
    right: 0;
    bottom: 0;
    width: min(350px, 92vw);
    border-left: 1px solid var(--iui-line);
    box-shadow: -18px 0 60px rgba(7, 23, 44, 0.2);
    transform: translateX(102%);
    transition: transform 0.2s ease;
  }
  .iui-detail-pane.is-open {
    transform: none;
  }
  .iui-detail-close {
    display: block;
  }
}

@media (max-width: 860px) {
  .iui-shell {
    grid-template-rows: 58px minmax(0, 1fr);
  }
  .iui-topbar {
    height: 58px;
    padding: 0 10px;
  }
  .iui-brand {
    min-width: auto;
  }
  .iui-brand-copy,
  .iui-user-copy {
    display: none;
  }
  .iui-tabs {
    justify-content: center;
  }
  .iui-tab {
    padding: 8px 9px;
    font-size: 10px;
  }
  .iui-main {
    padding: 0;
  }
  .iui-workspace {
    height: calc(100dvh - 58px);
    min-height: 0;
    grid-template-columns: 1fr;
    border: 0;
    border-radius: 0;
  }
  .iui-chat-pane {
    position: fixed;
    z-index: 40;
    inset: 58px 0 0;
    border: 0;
    border-radius: 0;
    transform: translateX(105%);
    transition: transform 0.2s ease;
  }
  .iui-chat-pane.is-open {
    transform: none;
  }
  .iui-detail-pane {
    top: 58px;
    width: min(390px, 100vw);
  }
  .iui-mobile-back {
    display: grid;
    width: 34px;
    height: 34px;
    color: #50647c;
    border-color: var(--iui-line);
    background: #f7fafc;
  }
  .iui-chat-head {
    flex-basis: 60px;
    height: 60px;
    padding: 8px 10px;
  }
  .iui-head-actions .iui-btn {
    padding: 8px;
  }
  .iui-head-actions .iui-btn span {
    display: none;
  }
  .iui-message-area {
    padding: 13px 10px 10px;
  }
  .iui-bubble {
    max-width: 86%;
  }
  .iui-composer {
    padding: 8px 9px calc(9px + env(safe-area-inset-bottom));
  }
  .iui-quick-menu {
    left: 9px;
    width: calc(100% - 18px);
  }
}

@media (max-width: 560px) {
  .iui-topbar {
    gap: 5px;
  }
  .iui-logo {
    width: 34px;
    height: 34px;
  }
  .iui-tab span {
    display: none;
  }
  .iui-user {
    gap: 3px;
  }
  .iui-avatar,
  .iui-topbar .iui-icon-btn {
    width: 33px;
    height: 33px;
    border-radius: 10px;
  }
  .iui-pane-head {
    padding: 12px;
  }
  .iui-composer-toolbar > small {
    display: none;
  }
  .iui-tool-btn span {
    display: none;
  }
  .iui-send {
    min-width: 48px;
    padding: 0 10px;
  }
  .iui-send span {
    display: none;
  }
  .iui-accept-banner {
    align-items: flex-start;
    flex-wrap: wrap;
  }
  .iui-accept-banner .iui-btn {
    width: 100%;
    margin-left: 0;
  }
  .iui-modal {
    padding: 10px;
  }
  .iui-modal-card {
    padding: 18px;
    border-radius: 16px;
  }
  .iui-media-preview {
    min-height: 180px;
  }
}

/* Unified Inbox 1.2 — balanced business inbox and non-blocking Lead panel */
.iui-workspace {
  max-width: 1880px;
  grid-template-columns: minmax(260px, 286px) minmax(520px, 1fr) minmax(
      372px,
      410px
    );
}
.iui-list-pane {
  background: #f7fafc;
}
.iui-pane-head {
  padding: 11px 12px 9px;
}
.iui-pane-head h1,
.iui-pane-head h2 {
  font-size: 14px;
}
.iui-search {
  margin-top: 7px;
}
.iui-search input {
  height: 35px;
  padding-left: 11px;
  font-size: 10px;
}
.iui-inbox-folders {
  display: flex;
  gap: 4px;
  margin-top: 7px;
  overflow-x: auto;
  scrollbar-width: none;
}
.iui-inbox-folders::-webkit-scrollbar {
  display: none;
}
.iui-folder {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid #d9e3ed;
  border-radius: 8px;
  background: #fff;
  color: #5f7187;
  font-size: 8.5px;
  font-weight: 600;
  white-space: nowrap;
}
.iui-folder b {
  min-width: 17px;
  padding: 1px 5px;
  border-radius: 99px;
  background: #edf2f7;
  color: #6b7c90;
  font-size: 8px;
  text-align: center;
}
.iui-folder:hover,
.iui-folder.is-active {
  border-color: #18395f;
  background: #0b203b;
  color: #fff;
}
.iui-folder.is-active b {
  background: rgba(255, 255, 255, 0.16);
  color: #fff;
}
.iui-archive-folder {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  min-height: 39px;
  margin-top: 7px;
  padding: 6px 8px;
  border: 1px solid #d9e3ed;
  border-radius: 9px;
  background: #f8fafc;
  color: #53677e;
  text-align: left;
}
.iui-archive-folder > span {
  display: flex;
  align-items: center;
  gap: 7px;
}
.iui-archive-folder i {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 7px;
  background: #e9eff5;
  color: #5e7188;
  font-size: 10px;
  font-style: normal;
}
.iui-archive-folder b,
.iui-archive-folder small {
  display: block;
}
.iui-archive-folder b {
  font-size: 9px;
}
.iui-archive-folder small {
  margin-top: 1px;
  color: #8a98aa;
  font-size: 7.5px;
  font-weight: 400;
}
.iui-archive-folder strong {
  font-size: 10px;
}
.iui-archive-folder:hover,
.iui-archive-folder.is-active {
  border-color: #b7c5d4;
  background: #eef3f7;
  color: #203751;
}
.iui-pending-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin: 7px 8px 0;
  padding: 7px 9px;
  border: 1px solid #f6cf87;
  border-radius: 9px;
  background: #fff8e8;
  color: #775000;
  font-size: 8.5px;
}
.iui-pending-strip b {
  display: inline-grid;
  place-items: center;
  min-width: 18px;
  height: 18px;
  margin-right: 3px;
  border-radius: 6px;
  background: #f59e0b;
  color: #fff;
  font-size: 8px;
}
.iui-pending-strip small {
  color: #977021;
  font-size: 7.5px;
  text-align: right;
}
.iui-list-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 8px 11px 3px;
  color: #7a899c;
  font-size: 8px;
  font-weight: 600;
  letter-spacing: 0.01em;
}
.iui-list-caption small {
  color: #9ba8b7;
  font-size: 7.5px;
  font-weight: 400;
}
.iui-conversation-list {
  padding: 5px 6px 8px;
}
.iui-conv {
  min-height: 58px;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  gap: 8px;
  margin-bottom: 2px;
  padding: 7px 7px;
  border-radius: 10px;
}
.iui-conv .iui-customer-avatar {
  width: 34px;
  height: 34px;
  border-radius: 10px;
}
.iui-conv-top {
  gap: 5px;
}
.iui-channel {
  width: 15px;
  height: 15px;
  border-radius: 5px;
  font-size: 7.5px;
}
.iui-conv-name {
  font-size: 10px;
}
.iui-conv-preview {
  margin-top: 2px;
  font-size: 8.5px;
}
.iui-conv-context {
  display: block;
  margin-top: 2px;
  overflow: hidden;
  color: #92a0b1;
  font-size: 7.5px;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.iui-conv-meta {
  min-width: 38px;
}
.iui-conv-meta time {
  font-size: 7.5px;
}
.iui-unread {
  min-width: 17px;
  height: 17px;
  margin-top: 5px;
  font-size: 7.5px;
}
.iui-state-dot {
  left: 3px;
  top: 26px;
}
.iui-tool-btn {
  min-height: 27px;
  gap: 4px;
  padding: 3px 7px;
  border-radius: 8px;
  font-size: 8.5px;
}
.iui-tool-icon {
  font-size: 11px;
  line-height: 1;
}
.iui-composer-toolbar {
  margin-bottom: 5px;
}
.iui-composer {
  padding: 7px 10px 9px;
}
.iui-compose-row textarea {
  min-height: 39px;
  padding: 9px 10px;
}
.iui-send {
  min-width: 60px;
  height: 39px;
  border-radius: 10px;
}
.iui-detail-pane {
  min-width: 0;
  background: #f6f9fc;
}
.iui-detail-head {
  grid-template-columns: 46px minmax(0, 1fr);
  gap: 11px;
  padding: 13px 15px;
}
.iui-detail-head .iui-customer-avatar {
  width: 46px;
  height: 46px;
}
.iui-detail-head h3 {
  font-size: 14px;
}
.iui-detail-head p {
  font-size: 9.5px;
}
.iui-detail-scroll {
  padding: 9px;
}
.iui-detail-group {
  margin-bottom: 8px;
  border-radius: 12px;
}
.iui-detail-group > summary {
  min-height: 42px;
  padding: 9px 12px;
  font-size: 11px;
}
.iui-detail-group-body {
  padding: 0 12px 12px;
}
.iui-detail-group .iui-form {
  gap: 8px;
  padding-top: 10px;
}
.iui-detail-group .iui-field label,
.iui-lead-panel .iui-field label {
  font-size: 10px;
}
.iui-detail-group .iui-field input,
.iui-detail-group .iui-field select,
.iui-detail-group .iui-field textarea,
.iui-lead-panel .iui-field input,
.iui-lead-panel .iui-field select,
.iui-lead-panel .iui-field textarea {
  padding: 9px 10px;
  font-size: 11px;
  line-height: 1.45;
}
.iui-detail-group .iui-kv {
  grid-template-columns: 108px minmax(0, 1fr);
  margin: 8px 0;
  font-size: 10px;
}
.iui-detail-group .iui-kv b {
  overflow-wrap: anywhere;
  word-break: normal;
}
.iui-detail-group .iui-btn {
  padding: 9px 11px;
  font-size: 10px;
}
.iui-field-help {
  display: block;
  color: #7c8ca0;
  font-size: 8.5px;
  line-height: 1.5;
}
.iui-status.reviewing {
  background: #efe9ff;
  color: #6842a7;
}
.iui-status.follow_up {
  background: #fff2d9;
  color: #8a5a00;
}
.iui-status.ready_for_lead {
  background: #e3f8ee;
  color: #08704a;
}
.iui-lead-panel {
  display: flex;
  flex-direction: column;
  min-height: 0;
  height: 100%;
  background: #f7fafc;
}
.iui-lead-panel-head {
  position: relative;
  flex: 0 0 auto;
  padding: 13px 15px 12px;
  border-bottom: 1px solid var(--iui-line);
  background: #fff;
}
.iui-back-link {
  margin: 0 0 9px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #315e8b;
  font-size: 9px;
  font-weight: 600;
}
.iui-lead-panel-head h3 {
  margin: 3px 28px 3px 0;
  color: var(--iui-text);
  font-size: 15px;
}
.iui-lead-panel-head p {
  margin: 0;
  color: #76879b;
  font-size: 9px;
  line-height: 1.55;
}
.iui-lead-panel-scroll {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding: 10px 12px 16px;
}
.iui-lead-policy {
  display: grid;
  gap: 3px;
  margin-bottom: 10px;
  padding: 9px 10px;
  border: 1px solid #cfe0f1;
  border-radius: 10px;
  background: #eef6fd;
  color: #36536f;
}
.iui-lead-policy b {
  font-size: 10px;
}
.iui-lead-policy span {
  font-size: 8.5px;
  line-height: 1.5;
}
.iui-lead-panel .iui-form {
  gap: 9px;
}
.iui-consent {
  display: flex;
  align-items: flex-start;
  gap: 7px;
  padding: 9px 10px;
  border: 1px solid #d9e3ed;
  border-radius: 10px;
  background: #fff;
  color: #53677e;
  font-size: 9px;
  line-height: 1.45;
}
.iui-consent input {
  margin-top: 2px;
}
.iui-lead-submit {
  position: sticky;
  bottom: 0;
  width: 100%;
  min-height: 40px;
  box-shadow: 0 9px 24px rgba(255, 96, 31, 0.22);
}

@media (min-width: 1161px) {
  .iui-detail-pane {
    position: relative;
    z-index: auto;
    inset: auto;
    width: auto;
    border-left: 1px solid var(--iui-line);
    box-shadow: none;
    transform: none;
  }
  .iui-detail-close {
    display: none;
  }
}

@media (max-width: 1160px) {
  .iui-workspace {
    grid-template-columns: minmax(260px, 286px) minmax(420px, 1fr);
  }
  .iui-detail-pane {
    width: min(420px, 100vw);
  }
}

@media (max-width: 860px) {
  .iui-workspace {
    grid-template-columns: 1fr;
  }
  .iui-archive-folder {
    min-height: 37px;
  }
  .iui-conv {
    min-height: 60px;
  }
  .iui-detail-pane {
    width: min(430px, 100vw);
  }
}

@media (max-width: 560px) {
  .iui-inbox-folders {
    padding-bottom: 1px;
  }
  .iui-folder {
    min-height: 29px;
    font-size: 9px;
  }
  .iui-pending-strip small {
    display: none;
  }
  .iui-lead-panel .iui-row {
    grid-template-columns: 1fr;
  }
  .iui-lead-panel-scroll {
    padding: 9px 10px calc(16px + env(safe-area-inset-bottom));
  }
}
