:root{
  --text: #031223;
  --background: #f8fbfe;
  --surface: #ffffff;
  --nav-bg: #031223;
  --nav-text: #f3f8ff;
  --primary: #228bea;
  --secondary: #f3e083;
  --accent: #63ef5b;
}

[data-theme="dark"]{
  --text: #e7eef8;
  --background: #0d1420;
  --surface: #121d2b;
  --nav-bg: #08111f;
  --nav-text: #e7eef8;
  --primary: #5aa6ff;
  --secondary: #d0ba54;
  --accent: #63ef5b;
}

body{
  background: var(--background);
  color: var(--text);
  transition: background-color .2s ease, color .2s ease;
}
html{
  background: var(--background);
}
[data-theme="dark"] body{
  background: radial-gradient(1200px 800px at 20% -10%, #1a2a3f 0%, #0d1420 45%, #0a111b 100%);
}

.ce-navbar{
  background: var(--nav-bg);
  color: var(--nav-text);
}

/* Product-area mega menu */
.ce-navbar .dropdown-menu.ce-mega-menu{
  min-width: min(860px, 92vw);
  border-radius: 14px;
  border: 1px solid rgba(231,238,248,.18);
  background: #1a2230;
  box-shadow: 0 14px 36px rgba(0,0,0,.35);
  padding: .6rem .75rem;
}
/* System / Super Admin mega menu: anchor right edge to viewport so it stays in view (lg and up) */
@media (min-width: 992px){
  .ce-navbar .dropdown-menu.ce-mega-menu.ce-mega-menu-end{
    position: fixed !important;
    right: 0 !important;
    left: auto !important;
    top: 4.75rem !important;
    max-width: min(860px, 92vw);
  }
}
.ce-navbar .ce-mega-grid{
  display: grid;
  grid-template-columns: repeat(3, minmax(180px, 1fr));
  gap: .45rem .8rem;
}
.ce-navbar .ce-mega-col{
  border-right: 1px solid rgba(231,238,248,.10);
  padding-right: .65rem;
}
.ce-navbar .ce-mega-col:last-child{
  border-right: 0;
  padding-right: 0;
}
.ce-navbar .ce-mega-title{
  text-transform: uppercase;
  letter-spacing: .04em;
  font-size: .72rem;
  font-weight: 700;
  color: #9fb7d6;
  margin: .18rem 0 .45rem;
}
.ce-navbar .dropdown-menu.ce-mega-menu .dropdown-item{
  border-radius: 8px;
  color: #edf3fb;
  padding: .38rem .5rem;
}
.ce-navbar .dropdown-menu.ce-mega-menu .dropdown-item:hover,
.ce-navbar .dropdown-menu.ce-mega-menu .dropdown-item:focus{
  color: #fff;
  background: rgba(90,166,255,.22);
}
.ce-navbar .dropdown-menu.ce-mega-menu .dropdown-item.disabled{
  opacity: .55;
}

@media (max-width: 991.98px){
  .ce-navbar .dropdown-menu.ce-mega-menu{
    min-width: 100%;
    width: 100%;
    max-width: 100%;
    box-shadow: none;
    border-radius: 10px;
  }
  .ce-navbar .ce-mega-grid{
    grid-template-columns: 1fr;
    gap: .35rem;
  }
  .ce-navbar .ce-mega-col{
    border-right: 0;
    border-bottom: 1px solid rgba(231,238,248,.10);
    padding-right: 0;
    padding-bottom: .45rem;
    margin-bottom: .2rem;
  }
  .ce-navbar .ce-mega-col:last-child{
    border-bottom: 0;
    margin-bottom: 0;
    padding-bottom: 0;
  }
}

.ce-card{
  border: 0;
  box-shadow: 0 6px 18px rgba(3,18,35,0.08);
  border-radius: 14px;
  background: var(--surface);
}
.ce-card .card-body {
  width: 100%;
  box-sizing: border-box;
}
.ce-card .ce-form-section-title {
  text-align: justify;
  text-align-last: left;
}
.ce-card .ce-form-table {
  width: 100%;
  max-width: 100%;
  table-layout: fixed;
}
.ce-card .ce-form-table th {
  width: 36%;
  min-width: 80px;
}
.ce-card .ce-form-table td {
  width: 64%;
}

.ce-section{
  border: 1px solid rgba(3,18,35,0.12);
  border-radius: 12px;
  background: var(--surface);
}

.ce-wait-boot{
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 14px;
  background: rgba(255,255,255,.04);
  padding: .9rem 1rem;
}
.ce-wait-boot-title{
  font-size: .78rem;
  font-weight: 700;
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--muted);
}
.ce-wait-boot-copy{
  margin-top: .25rem;
  color: var(--text);
  opacity: .86;
}
.ce-wait-boot-list{
  display: flex;
  flex-direction: column;
  gap: .55rem;
  margin-top: .85rem;
}
.ce-wait-boot-row{
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: .75rem;
  padding: .7rem .85rem;
  border: 1px solid rgba(3,18,35,.10);
  border-radius: 12px;
  background: rgba(14, 24, 40, .06);
}
.ce-wait-boot-text{
  min-width: 0;
  flex: 1 1 auto;
}
.ce-wait-boot-label{
  font-weight: 700;
  color: var(--text);
}
.ce-wait-boot-detail{
  margin-top: .15rem;
  color: var(--muted);
  font-size: .92rem;
}
[data-theme="dark"] .ce-wait-boot{
  border-color: rgba(231,238,248,.12);
  background: rgba(10,17,32,.55);
}
[data-theme="dark"] .ce-wait-boot-row{
  border-color: rgba(231,238,248,.12);
  background: rgba(10,17,32,.38);
}

.btn-primary{
  background-color: var(--primary);
  border-color: var(--primary);
}
.btn-primary:hover{ filter: brightness(0.95); }

.btn-outline-primary{
  color: var(--primary);
  border-color: var(--primary);
}
.btn-outline-primary:hover{
  background-color: var(--primary);
  border-color: var(--primary);
}

.badge-accent{ background: var(--accent); color: var(--text); }
.badge-secondary{ background: var(--secondary); color: var(--text); }

.table thead th{ white-space: nowrap; }
.table{ color: var(--text); }
[data-theme="dark"] .table{ --bs-table-bg: transparent; }
[data-theme="dark"] .table > :not(caption) > * > *{ border-color: rgba(231,238,248,.12); }
[data-theme="dark"] .table-light,
[data-theme="dark"] .text-bg-light{
  background-color: #243349 !important;
  color: #e7eef8 !important;
}

.ce-json{
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", "Courier New", monospace;
}

.ce-code-block{
  padding: 1rem;
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 12px;
  background: rgba(3,18,35,.04);
  color: var(--text);
  overflow: auto;
  white-space: pre-wrap;
  word-break: break-word;
}
[data-theme="dark"] .ce-code-block{
  border-color: rgba(231,238,248,.14);
  background: rgba(10,17,32,.58);
}

.ce-muted{ opacity: 0.8; }
[data-theme="dark"] .ce-muted{ opacity: .75; }

/* Support Inbox - theme-aware */
.support-inbox-messages {
  height: 360px;
  overflow: auto;
  background: var(--surface);
  color: var(--text);
}
.support-inbox-messages .border-bottom {
  border-color: rgba(3, 18, 35, 0.12) !important;
}
[data-theme="dark"] .support-inbox-messages .border-bottom {
  border-color: rgba(231, 238, 248, 0.12) !important;
}

.support-inbox-context {
  background: var(--surface);
  color: var(--text);
  max-height: 160px;
  overflow: auto;
}
.support-inbox-msg--agent {
  border-left: 3px solid var(--primary);
  padding-left: 0.5rem;
  margin-left: 0.25rem;
}
.support-inbox-msg--customer {
  border-left: 3px solid rgba(0, 0, 0, 0.15);
  padding-left: 0.5rem;
  margin-left: 0.25rem;
}
[data-theme="dark"] .support-inbox-msg--customer {
  border-left-color: rgba(231, 238, 248, 0.25);
}

.ce-task-description,
.ce-subtask-description {
  margin: 0 0 0 0.75rem;
  padding: 0.25rem 0 0.25rem 0.5rem;
  border-left: 3px solid var(--primary);
  font-size: inherit;
}
[data-theme="dark"] .ce-task-description,
[data-theme="dark"] .ce-subtask-description {
  border-left-color: var(--primary);
}

.ce-task-icon-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.cursor-pointer { cursor: pointer; }

@keyframes ce-task-slide-in {
  from { opacity: 0; transform: translateY(-8px); }
  to { opacity: 1; transform: translateY(0); }
}
.ce-task-slide-in {
  animation: ce-task-slide-in 0.25s ease-out;
}

@keyframes ce-task-target-flash {
  0% { background-color: #ffe58f; }
  15% { background-color: #fff1b8; }
  100% { background-color: var(--surface, #fff); }
}
.ce-task-target-flash {
  animation: ce-task-target-flash 5s ease-out;
}
[data-theme="dark"] .ce-task-target-flash {
  animation-name: ce-task-target-flash-dark;
}
@keyframes ce-task-target-flash-dark {
  0% { background-color: #5e4b00; }
  15% { background-color: #4c3d00; }
  100% { background-color: var(--surface); }
}

.ce-task-status-compact {
  max-width: 100px;
  width: auto;
  display: inline-block;
}

.ce-task-click-edit {
  cursor: pointer;
}
.ce-task-click-edit:hover {
  text-decoration: underline;
}

.ce-task-description-view {
  min-height: 1.5em;
  white-space: pre-wrap;
  word-break: break-word;
}
.ce-task-description-empty {
  font-style: italic;
  opacity: 0.7;
}

.ce-task-meta-table-wrap {
  min-width: 0;
  width: 100%;
  overflow-x: auto;
  display: flex;
  justify-content: center;
  padding-left: 0.5rem;
  padding-right: 0.5rem;
}
.ce-task-meta-table {
  width: auto;
  min-width: 220px;
  max-width: 100%;
  margin-bottom: 0;
  border: 0;
  table-layout: auto;
  text-align: left;
}
.ce-task-meta-table td {
  padding: 0.2rem 0.5rem 0.2rem 0;
  vertical-align: top;
  border: 0;
  line-height: 1.25;
}
.ce-task-meta-table .ce-meta-name {
  color: var(--text);
  opacity: 0.75;
  white-space: nowrap;
  width: 6rem;
  min-width: 6rem;
  padding-right: 0.65rem;
}
.ce-task-meta-table .ce-meta-value {
  overflow-wrap: anywhere;
  word-break: normal;
}
.ce-task-meta-table .ce-due-late {
  background: rgba(255, 193, 7, 0.35);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}
[data-theme="dark"] .ce-task-meta-table .ce-due-late {
  background: rgba(255, 193, 7, 0.2);
}
.ce-task-meta-table .ce-priority-1 { color: #c00; font-weight: 600; }
.ce-task-meta-table .ce-priority-2 { color: #e85d04; font-weight: 600; }
.ce-task-meta-table .ce-priority-3 { color: inherit; }
.ce-task-meta-table .ce-priority-4 { opacity: 0.85; }
.ce-task-meta-table .ce-priority-5 { opacity: 0.65; }
.ce-task-side-actions {
  width: 100%;
  max-width: 280px;
  margin-left: auto;
  margin-right: auto;
}

.ce-control-box {
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 12px;
  padding: 0.9rem;
  background: var(--surface);
  min-height: 100%;
  cursor: pointer;
}
[data-theme="dark"] .ce-control-box {
  border-color: rgba(231, 238, 248, 0.16);
}
.ce-control-box-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.9rem;
  width: 100%;
}
.ce-control-box-title {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-width: 0;
  font-weight: 600;
  line-height: 1.25;
}
.ce-control-box-title input {
  margin: 0;
  flex: 0 0 auto;
}
.ce-control-box-price {
  margin-left: auto;
  flex: 0 0 auto;
  text-align: right;
  white-space: nowrap;
  font-weight: 600;
}
@media (max-width: 767.98px) {
  .ce-control-box-row {
    flex-direction: column;
    align-items: flex-start;
  }
  .ce-control-box-price {
    margin-left: 0;
    text-align: left;
    white-space: normal;
  }
}
.ce-control-list {
  max-height: 260px;
  overflow: auto;
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 10px;
  padding: 0.6rem;
  background: var(--surface);
}
[data-theme="dark"] .ce-control-list {
  border-color: rgba(231, 238, 248, 0.16);
}
.ce-feature-group {
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 10px;
  padding: 0.65rem 0.75rem;
  background: rgba(3, 18, 35, 0.02);
}
[data-theme="dark"] .ce-feature-group {
  border-color: rgba(231, 238, 248, 0.16);
  background: rgba(231, 238, 248, 0.03);
}
.ce-feature-group-title {
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  font-weight: 700;
  margin-bottom: 0.35rem;
  opacity: 0.85;
}
.ce-feature-child {
  margin-left: 2rem;
  padding-left: 0.75rem;
  border-left: 2px solid rgba(3, 18, 35, 0.14);
}
[data-theme="dark"] .ce-feature-child {
  border-left-color: rgba(231, 238, 248, 0.2);
}

/* Focus mini tables: Today / Week / Big Picture */
.ce-focus-mini-table {
  table-layout: fixed;
  width: 100%;
  font-size: 0.875rem;
}
.ce-focus-mini-table th {
  font-weight: 600;
  padding: 0.25rem 0.35rem;
  border-bottom: 1px solid rgba(0, 0, 0, 0.08);
}
.ce-focus-mini-table td {
  padding: 0.25rem 0.35rem;
  vertical-align: middle;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
}
.ce-focus-mini-table .ce-focus-mini-th-name { width: 55%; }
.ce-focus-mini-table .ce-focus-mini-th-priority { width: 2rem; text-align: center; }
.ce-focus-mini-table .ce-focus-mini-th-due { width: auto; white-space: nowrap; }
.ce-focus-mini-name {
  min-width: 0;
  overflow: hidden;
}
.ce-focus-mini-name-text {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ce-focus-mini-priority { text-align: center; }
.ce-focus-mini-due { white-space: nowrap; }
.ce-focus-mini-table .ce-due-late {
  color: #c00;
  font-weight: 600;
}
.ce-focus-mini-table .ce-due-soon {
  background: rgba(255, 193, 7, 0.35);
  padding: 0.1rem 0.25rem;
  border-radius: 3px;
}
[data-theme="dark"] .ce-focus-mini-table th,
[data-theme="dark"] .ce-focus-mini-table td {
  border-bottom-color: rgba(231, 238, 248, 0.1);
}
[data-theme="dark"] .ce-focus-mini-table .ce-due-soon {
  background: rgba(255, 193, 7, 0.2);
}
.ce-focus-mini-row {
  cursor: pointer;
}
.ce-focus-mini-row:hover {
  background: rgba(0, 0, 0, 0.04);
}
[data-theme="dark"] .ce-focus-mini-row:hover {
  background: rgba(255, 255, 255, 0.06);
}

/* Realtime tasks indicator (sidebar, above Stats) */
.ce-realtime-indicator {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.8125rem;
  color: var(--text, #333);
  padding: 0.25rem 0.5rem;
  border-radius: 0.25rem;
  background: rgba(0, 0, 0, 0.03);
}
[data-theme="dark"] .ce-realtime-indicator {
  background: rgba(255, 255, 255, 0.05);
  color: var(--text);
}
.ce-realtime-dot {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ce-realtime-indicator.ce-realtime-connecting .ce-realtime-dot {
  background: #6c757d;
  animation: ce-realtime-pulse 1.2s ease-in-out infinite;
}
.ce-realtime-indicator.ce-realtime-connected .ce-realtime-dot {
  background: #198754;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.3);
}
.ce-realtime-indicator.ce-realtime-disconnected .ce-realtime-dot {
  background: #fd7e14;
}
.ce-realtime-indicator.ce-realtime-unavailable .ce-realtime-dot {
  background: #6c757d;
}
.ce-realtime-label {
  font-weight: 600;
}
.ce-realtime-status {
  color: var(--text);
  opacity: 0.85;
  margin-left: 0.15rem;
}

/* Fixed chart boxes prevent continuous reflow/height growth loops */
.ce-dialer-chart-wrap {
  position: relative;
  width: 100%;
  height: 240px;
}
.ce-dialer-chart-wrap--compact {
  height: 240px;
}
.ce-dialer-chart-wrap canvas {
  display: block;
  width: 100% !important;
  height: 100% !important;
}

@keyframes ce-realtime-pulse {
  50% { opacity: 0.5; }
}

/* Who Is Active / Active in task area – member-list style */
.ce-presence-list {
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
}
.ce-presence-item {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  min-height: 1.5em;
}
.ce-presence-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}
.ce-presence-dot.ce-presence-live {
  background: #198754;
  box-shadow: 0 0 0 2px rgba(25, 135, 84, 0.25);
}
.ce-presence-dot.ce-presence-recent {
  background: #0d6efd;
  box-shadow: 0 0 0 2px rgba(13, 110, 253, 0.2);
}
.ce-presence-name {
  font-weight: 500;
  color: var(--text, #333);
}
[data-theme="dark"] .ce-presence-name {
  color: var(--text);
}
.ce-presence-where {
  color: var(--text);
  opacity: 0.85;
  font-weight: normal;
}
.ce-presence-fallback-hint {
  font-size: 0.75rem;
  margin-bottom: 0.35rem;
}

.ce-subtask-click-area {
  cursor: pointer;
}
.ce-subtask-form-compact .form-control,
.ce-subtask-form-compact .form-select {
  font-size: 0.875rem;
}

/* My Tasks page layout: use Bootstrap row/cols, keep columns from overflow */
.ce-mytasks-layout {
  align-items: flex-start;
}
.ce-mytasks-main,
.ce-mytasks-sidebar {
  min-width: 0;
}
.ce-mytasks-sidebar .card,
.ce-mytasks-sidebar .card-body {
  max-width: 100%;
  overflow: hidden;
}
.ce-mytasks-sidebar canvas {
  display: block;
  width: 100% !important;
  max-width: 100% !important;
}
#hours7d {
  max-height: 120px;
}
#statusMix {
  max-height: 220px;
}
/* Task card layout: stable two-column split */
.ce-scope-list {
  display: block;
}
.ce-scope-list .list-group-item.ce-task-card {
  display: block;
  width: 100%;
  box-sizing: border-box;
  padding: 0.75rem 1rem;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: 0.35rem;
  background: var(--surface, #fff);
}
[data-theme="dark"] .ce-scope-list .list-group-item.ce-task-card {
  border-color: rgba(231, 238, 248, 0.1);
  background: var(--surface);
}
.ce-task-layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
}
.ce-task-layout-main,
.ce-task-layout-side {
  min-width: 0;
}
@media (min-width: 1200px) {
  .ce-task-layout {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
    align-items: start;
  }
}
.ce-task-title-wrap {
  min-width: 0;
  overflow: hidden;
}
.ce-task-title-view {
  display: inline-block;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  vertical-align: middle;
}
.ce-task-title-form .ce-task-title-input {
  min-width: 0;
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
}
.ce-task-title-form .d-flex {
  flex-wrap: wrap;
  gap: 0.25rem;
}
.ce-task-title-form .d-flex .form-control {
  flex: 1 1 auto;
  min-width: 120px;
}
[data-theme="dark"] .form-control,
[data-theme="dark"] .form-select,
[data-bs-theme="dark"] .form-control,
[data-bs-theme="dark"] .form-select{
  background-color: #0f1826;
  color: var(--text);
  border-color: rgba(231,238,248,.2);
}
[data-theme="dark"] .form-select:not([multiple]):not([size]):not([size="1"]),
[data-bs-theme="dark"] .form-select:not([multiple]):not([size]):not([size="1"]){
  background-image: var(--bs-form-select-bg-img);
  background-repeat: no-repeat;
  background-position: right .75rem center;
  background-size: 16px 12px;
}
[data-theme="dark"] .dropdown-menu{
  background: #162235;
  color: var(--text);
}
[data-bs-theme="dark"] .dropdown-menu{
  background: #162235;
  color: var(--text);
}
[data-theme="dark"] .dropdown-item{
  color: var(--text);
}
[data-bs-theme="dark"] .dropdown-item{
  color: var(--text);
}
[data-theme="dark"] .dropdown-item:hover{
  background: rgba(90,166,255,.15);
}
[data-bs-theme="dark"] .dropdown-item:hover{
  background: rgba(90,166,255,.15);
}
[data-theme="dark"] .page-link{
  background: #0f1826;
  color: var(--text);
  border-color: rgba(231,238,248,.2);
}
[data-theme="dark"] .page-item.active .page-link{
  background: var(--primary);
  border-color: var(--primary);
  color: #031223;
}
[data-theme="dark"] .list-group-item{
  background: #0f1826;
  color: var(--text);
  border-color: rgba(231,238,248,.12);
}
[data-theme="dark"] .alert{
  border-color: rgba(231,238,248,.2);
}
[data-theme="dark"] .ce-section{
  border-color: rgba(231,238,248,.18);
  background: #0f1826;
}
[data-theme="dark"] .bg-white{
  background-color: #0f1826 !important;
  color: var(--text) !important;
}
[data-theme="dark"] .card{
  background-color: var(--surface);
  color: var(--text);
  border-color: rgba(231,238,248,.12);
}
[data-theme="dark"] #ce_transfer_targets_panel .card,
[data-bs-theme="dark"] #ce_transfer_targets_panel .card{
  background: linear-gradient(180deg, rgba(18,29,43,.98), rgba(13,20,32,.94)) !important;
  border-color: rgba(231,238,248,.16) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.02);
}
[data-theme="dark"] #ce_transfer_targets_panel .table,
[data-bs-theme="dark"] #ce_transfer_targets_panel .table{
  --bs-table-bg: transparent;
  color: var(--text);
}
[data-theme="dark"] #ce_transfer_targets_panel .table > :not(caption) > * > *,
[data-bs-theme="dark"] #ce_transfer_targets_panel .table > :not(caption) > * > *{
  background-color: transparent;
  border-color: rgba(231,238,248,.14);
}
[data-theme="dark"] #ce_transfer_targets_panel .table thead th,
[data-bs-theme="dark"] #ce_transfer_targets_panel .table thead th{
  color: rgba(231,238,248,.86);
}
[data-theme="dark"] #ce_transfer_targets_panel .form-text,
[data-bs-theme="dark"] #ce_transfer_targets_panel .form-text{
  color: rgba(231,238,248,.7);
}

.ce-widget-placeholder{
  border: 2px dashed rgba(34,139,234,.55);
  border-radius: 12px;
  min-height: 120px;
  background: rgba(34,139,234,.08);
}
.dashboard-widget.ui-sortable-helper{
  opacity: .92;
  transform: rotate(.15deg);
}
.dashboard-widget .card{
  transition: box-shadow .16s ease, transform .16s ease;
}
.dashboard-page-wide{
  margin-left: -8px;
  margin-right: -8px;
}
.dashboard-page-wide .dashboard-widget{
  padding-left: 8px;
  padding-right: 8px;
}
.ce-widget-titlebar{
  border: 1px solid rgba(3,18,35,.14);
  border-radius: 10px;
  padding: .4rem .55rem;
  background: linear-gradient(180deg, rgba(255,255,255,.92) 0%, rgba(245,250,255,.9) 100%);
  cursor: all-scroll;
}
.ce-widget-drag-handle{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.75rem;
  height: 1.2rem;
  border-radius: 6px;
  border: 1px solid rgba(3,18,35,.16);
  font-size: .9rem;
  line-height: 1;
  opacity: .7;
  user-select: none;
  pointer-events: none;
}
.ce-widget-settings-btn{
  padding: .05rem .35rem;
  line-height: 1.1;
}
[data-theme="dark"] .ce-widget-titlebar{
  border-color: rgba(231,238,248,.2);
  background: linear-gradient(180deg, #1a2a40 0%, #142235 100%);
}
[data-theme="dark"] .ce-widget-drag-handle{
  border-color: rgba(231,238,248,.25);
  color: var(--text);
  opacity: .85;
}
[data-theme="dark"] .dashboard-page-wide{
  margin-left: -10px;
  margin-right: -10px;
}
[data-theme="dark"] a{
  color: #8ec0ff;
}
[data-theme="dark"] a:hover{
  color: #b2d3ff;
}

.ce-week-grid{
  display: grid;
  grid-template-columns: repeat(7, minmax(140px, 1fr));
  gap: .75rem;
}
.ce-day-card{
  border: 1px solid rgba(3,18,35,.14);
  border-radius: 12px;
  background: var(--surface);
  padding: .55rem;
}
.ce-day-card-head{
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: .45rem;
}
.ce-day-card.is-off{
  opacity: .75;
}

@media (max-width: 1199px){
  .ce-week-grid{ grid-template-columns: repeat(4, minmax(140px, 1fr)); }
}
@media (max-width: 767px){
  .ce-week-grid{ grid-template-columns: repeat(2, minmax(140px, 1fr)); }
}
@media (max-width: 480px){
  .ce-week-grid{ grid-template-columns: 1fr; }
}

[data-theme="dark"] .ce-day-card{
  border-color: rgba(231,238,248,.2);
  background: #0f1826;
}

.ce-subtask-status-select{
  min-width: 138px;
}

.ce-pl-glance{
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(255,255,255,.9) 0%, rgba(244,249,255,.9) 100%);
}
.ce-pl-stat{
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 10px;
  padding: .45rem .55rem;
  background: var(--surface);
}
.ce-pl-progress{
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: rgba(3,18,35,.12);
  overflow: hidden;
}
.ce-pl-progress-fill{
  height: 100%;
  border-radius: 999px;
  background: linear-gradient(90deg, #59a14f 0%, #76b7b2 60%, #4e79a7 100%);
}
.dashboard-widget[data-widget-id="cash_flow"] .card{
  border: 1px solid rgba(34,139,234,.28);
  box-shadow: 0 10px 24px rgba(34,139,234,.12);
}
.ce-fin-report-hero{
  border: 1px solid rgba(34,139,234,.2);
  border-radius: 12px;
  background: linear-gradient(180deg, rgba(248,251,255,.95) 0%, rgba(239,246,255,.92) 100%);
}
[data-theme="dark"] .ce-pl-glance{
  border-color: rgba(231,238,248,.16);
  background: linear-gradient(180deg, rgba(21,34,53,.95) 0%, rgba(15,24,38,.95) 100%);
}
[data-theme="dark"] .ce-pl-stat{
  border-color: rgba(231,238,248,.2);
  background: #0f1826;
}
[data-theme="dark"] .ce-pl-progress{
  background: rgba(231,238,248,.2);
}
[data-theme="dark"] .dashboard-widget[data-widget-id="cash_flow"] .card{
  border-color: rgba(90,166,255,.4);
  box-shadow: 0 10px 24px rgba(12,30,58,.4);
}
[data-theme="dark"] .ce-fin-report-hero{
  border-color: rgba(90,166,255,.35);
  background: linear-gradient(180deg, rgba(22,36,56,.96) 0%, rgba(15,24,38,.94) 100%);
}

/* Form layout: compact table-style label | field, grouped sections */
.ce-form-section {
  margin-bottom: 1.25rem;
}
.ce-form-section:last-child {
  margin-bottom: 0;
}
.ce-form-section-title {
  font-size: 0.9rem;
  font-weight: 600;
  margin-bottom: 0.5rem;
  color: var(--text);
  padding-bottom: 0.25rem;
  border-bottom: 1px solid rgba(3,18,35,.12);
}
[data-theme="dark"] .ce-form-section-title {
  border-bottom-color: rgba(231,238,248,.15);
}
.ce-form-table {
  width: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}
.ce-form-table tr {
  vertical-align: top;
}
.ce-form-table th {
  width: 140px;
  min-width: 140px;
  padding: 0.35rem 0.75rem 0.35rem 0;
  font-weight: 500;
  font-size: 0.875rem;
  text-align: left;
  color: var(--text);
  white-space: nowrap;
}
.ce-form-table td {
  padding: 0.35rem 0;
}
.ce-form-table td .form-control,
.ce-form-table td .form-select {
  max-width: 100%;
  width: 100%;
}
.ce-form-table .form-text {
  margin-top: 0.2rem;
  margin-bottom: 0;
  font-size: 0.8rem;
}
.ce-form-table .form-check {
  margin-bottom: 0;
  padding-top: 0.25rem;
}
.ce-form-row-label {
  width: 140px;
  min-width: 140px;
  padding: 0.35rem 0.75rem 0.35rem 0;
  font-weight: 500;
  font-size: 0.875rem;
  vertical-align: top;
}
.ce-form-row-field {
  padding: 0.35rem 0;
}
.ce-builder-wrap {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 1rem;
}
.ce-builder-palette {
  border: 2px solid rgba(3,18,35,.25);
  border-radius: 10px;
  padding: 0.75rem;
}
.ce-form-builder-wrap .ce-palette-quick-add .form-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--text-muted);
}
.ce-form-builder-wrap .ce-palette-list {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ce-form-builder-wrap .ce-palette-item {
  border: 2px solid rgba(3,18,35,.35);
  border-radius: 10px;
  padding: 0.45rem 0.5rem;
  font-size: .8rem;
  line-height: 1.25;
  background: var(--surface);
  cursor: grab;
  user-select: none;
}
.ce-palette-item.is-dragging {
  opacity: .55;
}
.ce-builder-main {
  border: 2px solid rgba(3,18,35,.25);
  border-radius: 10px;
  overflow: hidden;
}
.ce-builder-topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.6rem 0.8rem;
  border-bottom: 1px solid rgba(3,18,35,.14);
}
.ce-builder-canvas-abs {
  position: relative;
  min-height: 520px;
  padding: 0.75rem;
  background: linear-gradient(0deg, rgba(3,18,35,.025), rgba(3,18,35,.025));
  font-family: Arial, Helvetica, sans-serif;
}
.ce-placed-field {
  position: absolute;
  border: 1px solid transparent;
  border-radius: 10px;
  background: transparent;
  padding: 0.35rem 0.4rem 0.4rem;
  box-shadow: none;
  overflow: hidden;
  transition: background-color .12s ease, border-color .12s ease, box-shadow .12s ease;
}
.ce-placed-field:hover {
  background: rgba(255,255,255,.2);
  border-color: rgba(3,18,35,.2);
  box-shadow: 0 2px 10px rgba(0,0,0,.06);
}
.ce-placed-field.is-selected {
  outline: 2px solid rgba(58,122,254,.45);
}
.ce-placed-field.is-locked {
  border-style: dashed;
  opacity: .9;
}
.ce-placed-field-handle {
  position: absolute;
  top: 6px;
  left: 8px;
  font-size: .75rem;
  color: #666;
  cursor: move;
  user-select: none;
  opacity: 0;
  z-index: 2;
  transition: opacity .12s ease;
}
.ce-placed-field-label {
  position: absolute;
  top: 5px;
  left: 26px;
  font-size: .78rem;
  font-weight: 600;
  line-height: 1.1;
  max-width: calc(100% - 58px);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  pointer-events: none;
  opacity: 0;
  z-index: 2;
  color: var(--text);
  transition: opacity .12s ease;
}
.ce-placed-field.is-selected .ce-placed-field-label,
.ce-placed-field:hover .ce-placed-field-label {
  pointer-events: auto;
  cursor: move;
}
.ce-placed-field-preview {
  position: relative;
  pointer-events: none;
  opacity: .75;
}
.ce-preview-label {
  position: absolute;
  font-size: .78rem;
  font-weight: 600;
}
.ce-preview-field {
  position: absolute;
}
.ce-preview-spacer {
  position: absolute;
  inset: 0;
  background: transparent;
  pointer-events: auto;
}
.ce-placed-gear {
  position: absolute;
  top: 4px;
  right: 6px;
  width: 22px;
  height: 22px;
  border: 0;
  border-radius: 50%;
  background: rgba(3,18,35,.35);
  color: #fff;
  font-size: 12px;
  line-height: 22px;
  text-align: center;
  cursor: pointer;
  opacity: 0;
  transition: opacity .12s ease, background-color .12s ease;
}
.ce-placed-gear:hover {
  background: rgba(3,18,35,.55);
}
.ce-placed-field:hover .ce-placed-field-handle,
.ce-placed-field:hover .ce-placed-field-label,
.ce-placed-field:hover .ce-placed-gear,
.ce-placed-field.is-selected .ce-placed-field-handle,
.ce-placed-field.is-selected .ce-placed-field-label,
.ce-placed-field.is-selected .ce-placed-gear {
  opacity: 1;
}
.ce-runtime-canvas {
  border: 1px dashed rgba(3,18,35,.2);
  border-radius: 8px;
  background: rgba(3,18,35,.02);
  font-family: Arial, Helvetica, sans-serif;
}
.ce-builder-context-menu {
  position: fixed;
  z-index: 1080;
  min-width: 190px;
  border: 1px solid rgba(3,18,35,.2);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 8px 24px rgba(0,0,0,.15);
  padding: 0.3rem;
}
.ce-builder-context-menu button {
  display: block;
  width: 100%;
  text-align: left;
  border: 0;
  background: transparent;
  padding: 0.4rem 0.5rem;
  border-radius: 6px;
  font-size: .85rem;
  color: var(--text);
  font-family: Arial, Helvetica, sans-serif;
  line-height: 1.3;
}
.ce-builder-context-menu button:hover {
  background: rgba(58,122,254,.12);
}
.ce-builder-context-menu .ce-ctx-hint {
  font-size: .72rem;
  text-transform: uppercase;
  letter-spacing: .04em;
  color: var(--text-muted);
  padding: 0.25rem 0.45rem 0.15rem;
}
.ce-builder-context-menu .ce-ctx-divider {
  height: 1px;
  background: rgba(3,18,35,.14);
  margin: 0.24rem 0.3rem;
}
.ce-builder-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,.45);
  z-index: 1060;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}
.ce-builder-modal {
  width: min(760px, 100%);
  max-height: 90vh;
  overflow: auto;
  border-radius: 12px;
  background: var(--surface);
  padding: 0.9rem;
}
.ce-field-editor-modal {
  width: min(980px, 100%);
  padding: 0.95rem 1rem 0.9rem;
}
.ce-field-editor-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem 1rem;
}
.ce-field-editor-col {
  min-width: 0;
}
.ce-field-editor-modal .ce-form-table th {
  width: 128px;
  min-width: 128px;
  font-size: 0.82rem;
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
}
.ce-field-editor-modal .ce-form-table td {
  padding-top: 0.22rem;
  padding-bottom: 0.22rem;
}
.ce-field-editor-modal .form-control,
.ce-field-editor-modal .form-select {
  min-height: 34px;
  padding-top: 0.3rem;
  padding-bottom: 0.3rem;
  font-size: 0.86rem;
}
.ce-field-editor-modal .input-group > .form-control,
.ce-field-editor-modal .input-group > .form-select {
  min-height: 34px;
}
.ce-field-editor-modal textarea.form-control {
  min-height: 88px;
}
.ce-field-editor-modal .ce-field-inline {
  display: flex;
  align-items: center;
  gap: 0.4rem;
}
.ce-field-editor-modal .ce-field-inline .form-control {
  max-width: 102px;
}
.ce-field-editor-modal .ce-field-size-group .form-select {
  max-width: 100px;
}
.ce-field-editor-modal .ce-field-inline-sep {
  color: var(--text-muted);
  font-weight: 600;
}
.ce-option-list {
  display: grid;
  gap: 0.35rem;
  max-height: 180px;
  overflow: auto;
  padding-right: 2px;
}
.ce-option-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.ce-option-col {
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 8px;
  padding: 0.4rem 0.5rem;
  min-height: 38px;
  background: rgba(3,18,35,.03);
  overflow-wrap: anywhere;
}
.ce-option-add-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 0.5rem;
  align-items: center;
}
.ce-field-editor-modal .form-check-input {
  border: 2px solid rgba(3,18,35,.45);
}
.ce-field-editor-modal .form-check-label {
  font-size: .84rem;
}
.ce-field-editor-modal .ce-lead-map-suggestion {
  border: 1px dashed rgba(3,18,35,.22);
  border-radius: 8px;
  padding: 0.3rem 0.45rem;
  background: rgba(3,18,35,.03);
}
[data-theme="dark"] .ce-field-editor-modal .ce-lead-map-suggestion {
  border-color: rgba(231,238,248,.26);
  background: rgba(231,238,248,.06);
}
@media (max-width: 991.98px) {
  .ce-field-editor-columns {
    grid-template-columns: 1fr;
  }
  .ce-form-builder-wrap .ce-palette-list {
    grid-template-columns: 1fr;
  }
}
.ce-agent-compact .card-body {
  padding: 0.65rem 0.75rem;
}
.ce-agent-compact h2.h6 {
  margin-bottom: 0.35rem;
}
.ce-ai-panel-surface {
  background: rgba(3,18,35,.04);
  border-color: rgba(3,18,35,.14) !important;
  color: var(--text);
}
.ce-ai-advanced {
  margin-top: 0.25rem;
}
.ce-ai-advanced > summary {
  cursor: pointer;
  list-style: none;
  color: var(--text);
  padding: 0.05rem 0;
}
.ce-ai-advanced > summary::-webkit-details-marker {
  display: none;
}
.ce-ai-advanced > summary::before {
  content: '>';
  display: inline-block;
  width: 1rem;
  margin-right: 0.15rem;
  color: var(--text-muted);
}
.ce-ai-advanced[open] {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 0.5rem;
  background: rgba(3,18,35,.03);
  padding: 0.55rem 0.65rem 0.6rem;
}
.ce-ai-advanced[open] > summary {
  margin-bottom: 0.35rem;
}
.ce-ai-advanced[open] > summary::before {
  content: 'v';
}
[data-theme="dark"] .ce-ai-panel-surface {
  background: rgba(231,238,248,.08);
  border-color: rgba(231,238,248,.18) !important;
  color: var(--text);
}
[data-theme="dark"] .ce-ai-advanced[open] {
  border-color: rgba(231,238,248,.16);
  background: rgba(231,238,248,.06);
}
[data-theme="dark"] .ce-ai-advanced > summary::before {
  color: rgba(231,238,248,.68);
}
.ce-agent-form-canvas {
  min-height: 320px;
  overflow: auto;
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 8px;
  padding: 0.45rem;
  background: rgba(3,18,35,.03);
}
.ce-agent-form-stage {
  position: relative;
  min-width: 100%;
}
.ce-agent-form-label {
  position: absolute;
  font-size: .82rem;
  font-weight: 600;
  line-height: 1.2;
  color: var(--text);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-agent-form-item {
  position: absolute;
  min-width: 120px;
}
.ce-agent-form-item .form-control,
.ce-agent-form-item .form-select {
  height: 100%;
}
.ce-agent-form-item textarea.form-control {
  min-height: 100%;
  resize: vertical;
}
.ce-agent-form-radio-group {
  height: 100%;
  overflow: auto;
  padding-top: 0.1rem;
}
.ce-agent-form-radio-group .form-check {
  margin-bottom: 0.25rem;
}
.ce-agent-form-radio-group .form-check:last-child {
  margin-bottom: 0;
}
.ce-stripe-widget {
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 8px;
  padding: 0.5rem;
  background: rgba(3,18,35,.02);
}
.ce-stripe-widget-host {
  height: 100%;
}
.ce-stripe-widget-host .ce-stripe-widget {
  height: 100%;
  overflow: auto;
}
.ce-stripe-card-entry {
  min-height: 42px;
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 6px;
  padding: 0.5rem 0.55rem;
  background: #fff;
}
[data-theme="dark"] .ce-stripe-widget {
  background: rgba(231,238,248,.04);
  border-color: rgba(231,238,248,.2);
}
[data-theme="dark"] .ce-stripe-card-entry {
  background: #0f1826;
  border-color: rgba(231,238,248,.25);
}
[data-theme="dark"] .ce-agent-form-canvas {
  background: #0f1826;
  border-color: rgba(231,238,248,.2);
}
[data-theme="dark"] .ce-agent-form-item .form-control::placeholder {
  color: rgba(231,238,248,.42);
}

.ce-console-header {
  display: grid;
  grid-template-columns: 1fr minmax(280px, 420px) auto;
  gap: 0.6rem;
  align-items: start;
}
.ce-console-meta {
  min-width: 0;
}
.ce-console-phone {
  min-width: 0;
}
.ce-console-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
}
.ce-volume-panel {
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 8px;
  padding: 0.45rem 0.55rem;
  background: rgba(3,18,35,.03);
}
.ce-dialer-shell .card-body {
  padding-top: 0.55rem;
}
.ce-dialer-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 0.6rem;
  align-items: center;
  margin-bottom: 0.4rem;
}
.ce-dialer-toolbar-left {
  min-width: 0;
}
.ce-disposition-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
  flex: 1 1 auto;
  min-width: 0;
}
.ce-dialer-disposition-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}
.ce-dialer-disposition-strip {
  margin-top: 0.6rem;
  padding-top: 0.6rem;
  border-top: 1px solid rgba(3,18,35,.1);
}
.ce-transfer-toggle-btn {
  flex-shrink: 0;
}
.ce-disposition-btn[disabled] {
  opacity: 0.45;
  filter: grayscale(0.35);
}
.ce-dialer-panel {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 10px;
  padding: 0.5rem 0.55rem 0.45rem;
  background: rgba(3,18,35,.03);
  margin-bottom: 0.45rem;
}
.ce-dialer-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.4rem;
  margin-bottom: 0.5rem;
}
.ce-dialer-metric {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 8px;
  padding: 0.38rem 0.48rem;
  background: rgba(255,255,255,.72);
  min-width: 0;
}
.ce-dialer-metric-row,
.ce-dialer-mini-row {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem;
  min-width: 0;
}
.ce-dialer-metric-value {
  font-weight: 700;
  font-size: 0.95rem;
  line-height: 1.05;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: right;
}
.ce-dialer-actions-wrap {
  position: relative;
}
.ce-dialer-day-panel {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 9px;
  padding: 0.45rem 0.5rem;
  background: rgba(255,255,255,.66);
  margin-bottom: 0.5rem;
}
.ce-dialer-mini-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.4rem;
}
.ce-dialer-mini-metric {
  border: 1px solid rgba(3,18,35,.1);
  border-radius: 8px;
  padding: 0.38rem 0.45rem;
  background: rgba(255,255,255,.76);
  min-width: 0;
}
.ce-dialer-mini-value {
  font-weight: 700;
  line-height: 1.05;
  white-space: nowrap;
  text-align: right;
}
.ce-dialer-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  align-items: center;
}
.ce-dialer-popover {
  margin-top: 0.55rem;
  border: 1px solid rgba(3,18,35,.16);
  border-radius: 10px;
  padding: 0.7rem;
  background: #fff;
  box-shadow: 0 10px 24px rgba(3,18,35,.12);
  max-width: 420px;
}
.ce-dtmf-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}
.ce-dtmf-key {
  min-height: 44px;
  font-size: 1rem;
  font-weight: 700;
}
.ce-keypad-icon {
  display: inline-block;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: currentColor;
  box-shadow:
    6px 0 currentColor,
    12px 0 currentColor,
    0 6px currentColor,
    6px 6px currentColor,
    12px 6px currentColor,
    0 12px currentColor,
    6px 12px currentColor,
    12px 12px currentColor;
  margin-right: 16px;
  vertical-align: middle;
}
.ce-hidden-dialer-host {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  clip-path: inset(50%);
  white-space: nowrap;
}
.ce-hidden-dialer-host.ce-offscreen-render {
  position: fixed;
  left: -10000px;
  top: 0;
  width: 1024px;
  height: 768px;
  overflow: hidden;
  clip: auto;
  clip-path: none;
  white-space: normal;
  pointer-events: none;
}
.ce-hidden-dialer-iframe {
  width: 1px;
  height: 1px;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
.ce-hidden-dialer-host.ce-offscreen-render .ce-hidden-dialer-iframe {
  width: 100%;
  height: 100%;
  opacity: 1;
}
.ce-hidden-dialer-host.ce-inline-dialer-host {
  position: relative;
  left: auto;
  top: auto;
  width: 100%;
  height: 70vh;
  min-height: 560px;
  max-height: 82vh;
  overflow: hidden;
  clip: auto;
  clip-path: none;
  white-space: normal;
  border: 1px solid rgba(3,18,35,.2);
  border-radius: 10px;
  background: #fff;
}
.ce-hidden-dialer-host.ce-inline-dialer-host .ce-hidden-dialer-iframe {
  width: 100%;
  height: 100%;
  border: 0;
  opacity: 1;
  pointer-events: auto;
}
.ce-now-playing {
  position: relative;
  border: 1px solid rgba(34,139,234,.45);
  border-radius: 8px;
  min-height: 42px;
  overflow: hidden;
  cursor: pointer;
  margin-bottom: 0.55rem;
  background: rgba(34,139,234,.12);
}
.ce-now-playing-fill {
  position: absolute;
  inset: 0 auto 0 0;
  width: 0;
  background: linear-gradient(90deg, rgba(34,139,234,.78), rgba(34,139,234,.35));
  transition: width .08s linear;
}
.ce-now-playing-label {
  position: relative;
  z-index: 1;
  font-size: 0.82rem;
  font-weight: 600;
  line-height: 1.15;
  padding: 0.32rem 0.55rem 0.08rem;
  color: var(--text);
}
.ce-now-playing-meta {
  position: relative;
  z-index: 1;
  font-size: 0.73rem;
  line-height: 1.1;
  padding: 0 0.55rem 0.34rem;
  color: var(--text-soft);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-trigger-btn.ce-trigger-active {
  box-shadow: inset 0 0 0 2px rgba(255,255,255,.45), 0 0 0 1px rgba(34,139,234,.55);
}
.ce-screen-tab {
  white-space: nowrap;
}
.ce-script-header-row {
  gap: 0.45rem;
}
.ce-script-header-controls {
  min-width: 0;
}
.ce-script-top-grid {
  align-items: stretch;
}
.ce-script-lead-pane {
  min-height: 100%;
}
.ce-transfer-toggle-btn {
  min-width: 64px;
  font-weight: 700;
  letter-spacing: .02em;
}
.ce-transfer-summary-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 0.75rem;
}
.ce-transfer-summary-main {
  min-width: 0;
}
.ce-transfer-call-card {
  border: 1px solid rgba(3,18,35,.14);
  border-radius: 10px;
  background: linear-gradient(180deg, rgba(248,250,252,.96) 0%, rgba(240,244,248,.96) 100%);
  padding: 0.7rem 0.8rem;
}
.ce-transfer-note-banner {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 10px;
  background: rgba(248,249,250,.96);
  padding: 0.75rem 0.85rem;
  transition: background-color .55s ease, border-color .55s ease, box-shadow .55s ease;
}
.ce-transfer-note-banner.is-highlighted {
  background: rgba(255,246,198,.98);
  border-color: rgba(225,180,31,.55);
  box-shadow: 0 0 0 1px rgba(225,180,31,.18), 0 10px 18px rgba(181,139,15,.12);
}
.ce-script-tiles {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 0.55rem;
}
.ce-script-tile {
  width: 100%;
  text-align: left;
  border: 1px solid rgba(3,18,35,.2);
  border-radius: 10px;
  background: #0d2340;
  color: #e7eef8;
  padding: 0.7rem 0.75rem;
  min-height: 88px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 0.45rem;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
}
.ce-script-tile:hover {
  transform: translateY(-1px);
  border-color: rgba(80,165,255,.6);
  box-shadow: 0 8px 16px rgba(3,18,35,.2);
}
.ce-script-tile:focus-visible {
  outline: 2px solid rgba(80,165,255,.75);
  outline-offset: 1px;
}
.ce-script-tile-title {
  font-weight: 700;
  font-size: 1rem;
  line-height: 1.2;
  color: #f3f7ff;
}
.ce-script-tile-title-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
}
.ce-script-tile-markers {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  flex: 0 0 auto;
}
.ce-script-tile-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.5rem;
  padding: 0.12rem 0.38rem;
  border-radius: 999px;
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.02em;
}
.ce-script-tile-pill-ai {
  color: #07203d;
  background: linear-gradient(180deg, #ffe17c 0%, #f5c248 100%);
  box-shadow: 0 0 0 1px rgba(255, 216, 107, 0.3);
}
.ce-script-tile-dot {
  width: 0.68rem;
  height: 0.68rem;
  border-radius: 999px;
  background: radial-gradient(circle at 35% 35%, #fff6c0 0%, #f8d348 45%, #dbab16 100%);
  box-shadow: 0 0 0 1px rgba(255, 214, 95, 0.34), 0 0 10px rgba(255, 213, 81, 0.32);
}
.ce-script-tile-hint {
  align-self: flex-start;
  font-size: 0.78rem;
  font-weight: 700;
  color: #b6c6dd;
  background: rgba(231,238,248,.14);
  border: 1px solid rgba(231,238,248,.24);
  border-radius: 7px;
  padding: 0.2rem 0.5rem;
}
.ce-script-tile.is-playing {
  border-color: rgba(34,139,234,.85);
  background: linear-gradient(140deg, #113663 0%, #0d2340 100%);
  box-shadow: 0 0 0 1px rgba(34,139,234,.45), 0 10px 18px rgba(3,18,35,.24);
}
.ce-script-tile.is-playing .ce-script-tile-hint {
  color: #e7f3ff;
  border-color: rgba(132,197,255,.6);
  background: rgba(34,139,234,.34);
}
.ce-script-tile.is-hybrid-focus {
  border-color: rgba(255,212,59,.9);
  box-shadow: 0 0 0 1px rgba(255,212,59,.4), 0 10px 18px rgba(3,18,35,.22);
}
.ce-script-tile.is-hybrid-shadow {
  box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .12);
}
.ce-live-lead-card {
  border: 1px solid rgba(3,18,35,.1);
  border-radius: 18px;
  padding: 0.9rem 1rem;
  background:
    radial-gradient(circle at top right, rgba(124,181,255,.22), transparent 36%),
    linear-gradient(145deg, #f8fcff 0%, #eef4fb 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.6);
}
.ce-live-lead-card-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.7rem;
}
.ce-live-lead-eyebrow {
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  color: #50657f;
}
.ce-live-lead-name {
  font-size: clamp(1.35rem, 2vw, 1.9rem);
  line-height: 1.05;
  font-weight: 800;
  color: #0d213c;
}
.ce-live-lead-badge {
  flex: 0 0 auto;
  padding: 0.28rem 0.58rem;
  border-radius: 999px;
  background: rgba(10,111,183,.12);
  color: #0d4f80;
  font-size: 0.73rem;
  font-weight: 800;
  letter-spacing: 0.05em;
}
.ce-live-lead-primary,
.ce-live-lead-secondary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
.ce-live-lead-secondary {
  margin-top: 0.55rem;
}
.ce-live-lead-chip {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.28rem 0.62rem;
  border-radius: 999px;
  background: rgba(255,255,255,.78);
  border: 1px solid rgba(3,18,35,.08);
  color: #17314f;
  font-size: 0.8rem;
  font-weight: 700;
}
.ce-live-lead-chip.is-strong {
  background: rgba(16,111,93,.12);
  border-color: rgba(16,111,93,.16);
  color: #0d5b4d;
}
.ce-live-lead-chip.is-status {
  background: rgba(13,79,128,.11);
  border-color: rgba(13,79,128,.14);
  color: #0d4f80;
}
.ce-script-toolbar {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 360px);
  gap: 0.85rem;
  align-items: start;
}
.ce-script-toolbar-copy {
  min-width: 0;
}
.ce-repeat-cluster {
  border: 1px solid rgba(3,18,35,.12);
  border-radius: 16px;
  padding: 0.8rem 0.9rem;
  background:
    radial-gradient(circle at top left, rgba(252,211,77,.16), transparent 34%),
    linear-gradient(160deg, #fff9ee 0%, #f8f2e6 100%);
}
.ce-script-nav-cluster {
  padding: 0.65rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
.ce-repeat-cluster-top {
  display: grid;
  gap: 0.15rem;
  margin-bottom: 0.4rem;
}
.ce-repeat-title {
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #71510a;
}
.ce-repeat-source {
  font-size: 0.82rem;
  color: #6f5b34;
}
.ce-script-nav-actions {
  display: grid;
  gap: 0.35rem;
}
.ce-repeat-actions {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) repeat(3, minmax(0, 1fr));
  gap: 0.35rem;
}
.ce-script-nav-screen {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.35rem;
  flex-wrap: wrap;
  margin-top: auto;
  padding-top: 0.1rem;
}
.ce-script-nav-btn {
  min-height: 26px;
  padding: 0.12rem 0.45rem;
  font-size: 0.68rem;
  line-height: 1.05;
  font-weight: 800;
}
.ce-repeat-btn {
  font-weight: 800;
}
.ce-repeat-btn[disabled],
.ce-script-nav-btn[disabled] {
  opacity: 0.4;
  filter: grayscale(0.25);
}
.ce-script-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 0.45rem;
  align-items: start;
}
.ce-script-board-group {
  border: 1px solid rgba(3,18,35,.1);
  border-radius: 12px;
  padding: 0.3rem;
  background: linear-gradient(180deg, #ffffff 0%, #f6f8fc 100%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.68);
}
.ce-script-board-group.is-callflow {
  background: linear-gradient(180deg, #fcfffb 0%, #f2f8f2 100%);
}
.ce-script-board-group-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.4rem;
  margin-bottom: 0.28rem;
}
.ce-script-board-group-title {
  font-size: 0.66rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  color: #334963;
}
.ce-script-board-group-count {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 1.3rem;
  min-height: 1.3rem;
  padding: 0 0.3rem;
  border-radius: 999px;
  background: rgba(3,18,35,.06);
  color: #415973;
  font-size: 0.68rem;
  font-weight: 800;
}
.ce-script-board-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.24rem;
}
.ce-script-board-group.is-callflow .ce-script-board-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.ce-script-board-empty {
  min-height: 34px;
  display: flex;
  align-items: center;
  justify-content: center;
  text-align: center;
  padding: 0.25rem 0.4rem;
  border-radius: 10px;
  border: 1px dashed rgba(3,18,35,.12);
  color: #6a7c90;
  background: rgba(3,18,35,.03);
  font-size: 0.72rem;
}
.ce-script-board-cell {
  width: 100%;
  max-width: none;
  text-align: center;
  border: 1px solid rgba(3,18,35,.1);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(255,255,255,.92), rgba(246,249,253,.98));
  color: #10233d;
  padding: 0.12rem 0.28rem 0.2rem;
  min-height: 24px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  transition: transform .12s ease, border-color .12s ease, box-shadow .12s ease, background .12s ease;
  cursor: pointer;
  overflow: visible;
  position: relative;
}
.ce-script-board-cell:hover {
  transform: translateY(-0.5px);
  border-color: rgba(80,165,255,.45);
  box-shadow: 0 6px 12px rgba(3,18,35,.08);
  z-index: 6;
}
.ce-script-board-cell:focus-visible {
  outline: 2px solid rgba(80,165,255,.75);
  outline-offset: 1px;
  z-index: 6;
}
.ce-script-board-cell .ce-script-tile-title-row {
  width: 100%;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: center;
}
.ce-script-board-cell .ce-script-tile-title {
  width: 100%;
  min-width: 0;
  text-align: center;
  font-size: 0.66rem;
  line-height: 1;
  font-weight: 700;
  color: #10233d;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.ce-script-board-tooltip {
  position: absolute;
  top: calc(100% + 0.28rem);
  left: 50%;
  transform: translate(-50%, -6px);
  width: min(260px, calc(100vw - 1.25rem));
  padding: 0.48rem 0.55rem 0.52rem;
  border-radius: 12px;
  border: 1px solid rgba(3,18,35,.16);
  background: linear-gradient(180deg, rgba(255,255,255,.99) 0%, rgba(246,249,253,.98) 100%);
  box-shadow: 0 10px 22px rgba(3,18,35,.16);
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transition: opacity .14s ease, transform .14s ease, visibility .14s ease;
  z-index: 14;
  text-align: left;
}
.ce-script-board-tooltip::before {
  content: "";
  position: absolute;
  top: -5px;
  left: 50%;
  width: 10px;
  height: 10px;
  transform: translateX(-50%) rotate(45deg);
  background: inherit;
  border-left: 1px solid rgba(3,18,35,.12);
  border-top: 1px solid rgba(3,18,35,.12);
}
.ce-script-board-cell:hover .ce-script-board-tooltip,
.ce-script-board-cell:focus-visible .ce-script-board-tooltip {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0);
}
.ce-script-board-tooltip-name {
  font-size: 0.72rem;
  line-height: 1.1;
  font-weight: 900;
  letter-spacing: 0.01em;
  color: #10233d;
}
.ce-script-board-tooltip-text {
  margin-top: 0.22rem;
  max-height: 5.4rem;
  overflow: auto;
  padding-top: 0.22rem;
  border-top: 1px solid rgba(3,18,35,.08);
  font-size: 0.69rem;
  line-height: 1.25;
  color: #314860;
  white-space: pre-wrap;
  word-break: break-word;
}
.ce-script-board-tone-callflow {
  background: linear-gradient(180deg, #f9fff8 0%, #eef9ee 100%);
  border-color: rgba(102,161,87,.2);
}
.ce-script-board-tone-rebuttals {
  background: linear-gradient(180deg, #fffaf5 0%, #fff0e4 100%);
  border-color: rgba(209,136,84,.18);
}
.ce-script-board-tone-faq {
  background: linear-gradient(180deg, #f7fbff 0%, #ecf4ff 100%);
  border-color: rgba(77,128,214,.18);
}
.ce-script-board-tone-utilities {
  background: linear-gradient(180deg, #f8fbff 0%, #edf2f9 100%);
  border-color: rgba(109,132,165,.18);
}
.ce-script-board-tone-default {
  background: linear-gradient(180deg, #fbfbff 0%, #f3f4fb 100%);
}
.ce-script-board-cell.is-playing {
  border-color: rgba(34,139,234,.85);
  background: linear-gradient(140deg, #dcebff 0%, #eef4ff 100%);
  box-shadow: 0 0 0 1px rgba(34,139,234,.2), 0 6px 12px rgba(3,18,35,.1);
}
.ce-script-board-cell.is-hybrid-focus {
  border-color: rgba(255,212,59,.95);
  box-shadow: 0 0 0 1px rgba(255,212,59,.32), 0 6px 12px rgba(3,18,35,.1);
}
.ce-script-board-cell.is-hybrid-shadow {
  box-shadow: inset 0 0 0 1px rgba(255,212,59,.16);
}
@media (min-width: 1200px) {
  .ce-script-board-group.is-callflow {
    grid-column: span 2;
  }
}
@media (max-width: 575.98px) {
  .ce-script-board-grid,
  .ce-script-board-group.is-callflow .ce-script-board-grid {
    grid-template-columns: 1fr;
  }
}
@media (min-width: 992px) {
  .ce-transfer-summary-grid {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 260px);
    align-items: start;
  }
}
.ce-legacy-modal {
  position: fixed;
  inset: 0;
  z-index: 2100;
}
.ce-legacy-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(0,0,0,.68);
}
.ce-legacy-modal-dialog {
  position: relative;
  z-index: 1;
  width: 100vw;
  height: 100vh;
  margin: 0;
  background: #0b1628;
  border: 0;
  border-radius: 0;
  box-shadow: 0 22px 48px rgba(0,0,0,.45);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.ce-legacy-modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.6rem;
  padding: 0.55rem 0.75rem;
  color: #e7eef8;
  border-bottom: 1px solid rgba(231,238,248,.2);
  background: rgba(15,30,52,.94);
}
.ce-legacy-modal-iframe {
  flex: 1 1 auto;
  width: 100%;
  border: 0;
  background: #fff;
}
[data-theme="dark"] #ce_transfer_card.ce-transfer-dialog-open {
  background: #0b1628;
}
#ce_transfer_card.ce-transfer-dialog-open {
  position: fixed;
  top: 5.5rem;
  right: 1rem;
  width: min(420px, calc(100vw - 2rem));
  max-height: calc(100vh - 7rem);
  overflow: auto;
  z-index: 1800;
  margin: 0;
  box-shadow: 0 22px 48px rgba(0,0,0,.28);
  border: 1px solid rgba(3,18,35,.18);
}
[data-theme="dark"] #ce_transfer_card.ce-transfer-dialog-open {
  border-color: rgba(231,238,248,.18);
}
@media (max-width: 767.98px) {
  #ce_transfer_card.ce-transfer-dialog-open {
    left: 0.5rem;
    right: 0.5rem;
    top: 4.75rem;
    width: auto;
    max-height: calc(100vh - 5.5rem);
  }
}
[data-theme="dark"] .ce-legacy-modal-dialog {
  background: #0b1628;
}
[data-theme="dark"] .ce-script-tile {
  border-color: rgba(231,238,248,.24);
  background: #0f223d;
}
[data-theme="dark"] .ce-script-tile:hover {
  border-color: rgba(114,188,255,.75);
  box-shadow: 0 10px 20px rgba(0,0,0,.35);
}
[data-theme="dark"] .ce-script-tile.is-playing {
  background: linear-gradient(140deg, #163a67 0%, #0f223d 100%);
}
[data-theme="dark"] .ce-script-tile.is-hybrid-shadow {
  box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .16);
}
[data-theme="dark"] .ce-live-lead-card {
  background:
    radial-gradient(circle at top right, rgba(80,165,255,.14), transparent 36%),
    linear-gradient(145deg, rgba(19,31,50,.98) 0%, rgba(15,24,38,.98) 100%);
  border-color: rgba(231,238,248,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.04);
}
[data-theme="dark"] .ce-live-lead-eyebrow {
  color: #98aec7;
}
[data-theme="dark"] .ce-live-lead-name {
  color: #eef4fb;
}
[data-theme="dark"] .ce-live-lead-badge {
  background: rgba(80,165,255,.16);
  color: #9ecbff;
}
[data-theme="dark"] .ce-live-lead-chip {
  background: rgba(231,238,248,.06);
  border-color: rgba(231,238,248,.12);
  color: #d8e4f1;
}
[data-theme="dark"] .ce-live-lead-chip.is-strong {
  background: rgba(36,160,128,.16);
  border-color: rgba(36,160,128,.22);
  color: #9ae2cf;
}
[data-theme="dark"] .ce-live-lead-chip.is-status {
  background: rgba(80,165,255,.16);
  border-color: rgba(80,165,255,.2);
  color: #a5d0ff;
}
[data-theme="dark"] .ce-repeat-cluster,
[data-theme="dark"] .ce-script-board-group {
  border-color: rgba(231,238,248,.16);
  box-shadow: inset 0 1px 0 rgba(255,255,255,.03);
}
[data-theme="dark"] .ce-repeat-cluster {
  background:
    radial-gradient(circle at top left, rgba(252,211,77,.08), transparent 34%),
    linear-gradient(160deg, rgba(43,35,22,.96) 0%, rgba(27,24,20,.98) 100%);
}
[data-theme="dark"] .ce-repeat-title {
  color: #f7d36b;
}
[data-theme="dark"] .ce-repeat-source {
  color: #c9b58a;
}
[data-theme="dark"] .ce-script-board-group {
  background: linear-gradient(180deg, rgba(21,31,45,.98) 0%, rgba(15,24,38,.98) 100%);
}
[data-theme="dark"] .ce-script-board-group.is-callflow {
  background: linear-gradient(180deg, rgba(21,36,29,.98) 0%, rgba(16,25,22,.98) 100%);
}
[data-theme="dark"] .ce-script-board-group-title,
[data-theme="dark"] .ce-script-board-group-count {
  color: #d8e4f1;
}
[data-theme="dark"] .ce-script-board-group-count {
  background: rgba(231,238,248,.08);
}
[data-theme="dark"] .ce-script-board-empty {
  border-color: rgba(231,238,248,.14);
  color: #a4b6ca;
  background: rgba(231,238,248,.04);
}
[data-theme="dark"] .ce-script-board-cell {
  border-color: rgba(231,238,248,.16);
  background: linear-gradient(180deg, rgba(29,42,60,.96), rgba(18,28,42,.98));
  color: #edf3fb;
}
[data-theme="dark"] .ce-script-board-cell:hover {
  border-color: rgba(114,188,255,.55);
  box-shadow: 0 6px 12px rgba(0,0,0,.26);
}
[data-theme="dark"] .ce-script-board-cell .ce-script-tile-title {
  color: #edf3fb;
}
[data-theme="dark"] .ce-script-board-tone-callflow {
  background: linear-gradient(180deg, rgba(24,51,35,.98), rgba(16,31,23,.98));
}
[data-theme="dark"] .ce-script-board-tone-rebuttals {
  background: linear-gradient(180deg, rgba(58,37,26,.98), rgba(36,25,18,.98));
}
[data-theme="dark"] .ce-script-board-tone-faq {
  background: linear-gradient(180deg, rgba(24,41,69,.98), rgba(15,25,42,.98));
}
[data-theme="dark"] .ce-script-board-tone-utilities {
  background: linear-gradient(180deg, rgba(30,39,56,.98), rgba(18,25,39,.98));
}
[data-theme="dark"] .ce-script-board-cell.is-playing {
  background: linear-gradient(140deg, rgba(30,67,112,.98) 0%, rgba(16,38,64,.98) 100%);
}
[data-theme="dark"] .ce-script-board-cell.is-hybrid-shadow {
  box-shadow: inset 0 0 0 1px rgba(255, 212, 59, .2);
}
[data-theme="dark"] .ce-script-board-tooltip {
  border-color: rgba(231,238,248,.16);
  background: linear-gradient(180deg, rgba(21,31,45,.98) 0%, rgba(15,24,38,.98) 100%);
  box-shadow: 0 14px 28px rgba(0,0,0,.38);
}
[data-theme="dark"] .ce-script-board-tooltip::before {
  border-left-color: rgba(231,238,248,.14);
  border-top-color: rgba(231,238,248,.14);
}
[data-theme="dark"] .ce-script-board-tooltip-name {
  color: #eef3fb;
}
[data-theme="dark"] .ce-script-board-tooltip-text {
  border-top-color: rgba(231,238,248,.12);
  color: #c7d6e7;
}
[data-theme="dark"] .ce-dialer-panel {
  background: rgba(231,238,248,.05);
  border-color: rgba(231,238,248,.16);
}
[data-theme="dark"] .ce-dialer-metric {
  background: rgba(15,24,38,.9);
  border-color: rgba(231,238,248,.18);
}
[data-theme="dark"] .ce-dialer-day-panel,
[data-theme="dark"] .ce-dialer-mini-metric {
  background: rgba(15,24,38,.9);
  border-color: rgba(231,238,248,.18);
}
[data-theme="dark"] .ce-dialer-popover {
  background: #0f1826;
  border-color: rgba(231,238,248,.2);
  box-shadow: 0 10px 24px rgba(0,0,0,.35);
}

@media (max-width: 1199.98px) {
  .ce-console-header {
    grid-template-columns: 1fr;
  }
  .ce-console-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 991.98px) {
  .ce-dialer-toolbar {
    grid-template-columns: 1fr;
  }
  .ce-dialer-toolbar-right {
    justify-content: flex-start;
  }
  .ce-dialer-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce-dialer-mini-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .ce-script-toolbar {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 575.98px) {
  .ce-dialer-metrics {
    grid-template-columns: 1fr;
  }
  .ce-dialer-mini-metrics {
    grid-template-columns: 1fr;
  }
  .ce-dialer-actions {
    align-items: stretch;
  }
  .ce-dialer-actions .btn,
  .ce-dialer-actions .badge {
    width: 100%;
    justify-content: center;
  }
  .ce-hidden-dialer-host.ce-inline-dialer-host {
    height: 64vh;
    min-height: 420px;
  }
  .ce-live-lead-card-top {
    flex-direction: column;
  }
  .ce-repeat-actions {
    grid-template-columns: 1fr;
  }
  .ce-script-board {
    grid-template-columns: 1fr;
  }
  .ce-script-board-grid,
  .ce-script-board-group.is-callflow .ce-script-board-grid {
    grid-template-columns: repeat(auto-fill, minmax(100px, 100px));
  }
}

/* PTO calendar range picker */
.ce-pto-calendar {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  max-width: 320px;
  font-size: 0.875rem;
}
.ce-pto-calendar .ce-pto-cal-head {
  text-align: center;
  padding: 0.35rem;
  font-weight: 600;
  color: var(--text);
}
.ce-pto-calendar .ce-pto-cal-day {
  aspect-ratio: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  cursor: pointer;
  user-select: none;
  background: rgba(3,18,35,.06);
  color: var(--text);
}
.ce-pto-calendar .ce-pto-cal-day:hover:not(.ce-pto-cal-empty):not(.ce-pto-cal-disabled) {
  background: rgba(34,139,234,.2);
}
.ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-empty {
  background: transparent;
  cursor: default;
}
.ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-disabled {
  opacity: 0.4;
  cursor: not-allowed;
}
.ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-start {
  background: var(--primary);
  color: #fff;
}
.ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-end {
  background: var(--primary);
  color: #fff;
}
.ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-in-range {
  background: rgba(34,139,234,.35);
  color: var(--text);
}
[data-theme="dark"] .ce-pto-calendar .ce-pto-cal-day {
  background: rgba(231,238,248,.1);
}
[data-theme="dark"] .ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-start,
[data-theme="dark"] .ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-end {
  background: var(--primary);
  color: #031223;
}
[data-theme="dark"] .ce-pto-calendar .ce-pto-cal-day.ce-pto-cal-in-range {
  background: rgba(90,166,255,.3);
}

/* Public storefront refresh */
.ce-legal-body {
  max-width: 52rem;
}
.ce-legal-body ul {
  padding-left: 1.25rem;
}

.de-eyebrow {
  display: inline-block;
  padding: 0.25rem 0.7rem;
  border-radius: 999px;
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #ecf4ff;
  background: rgba(3, 18, 35, 0.45);
  border: 1px solid rgba(236, 244, 255, 0.35);
}

.de-home-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  padding: 2.2rem;
  color: #f6faff;
  background: linear-gradient(120deg, #06203e 0%, #0c4d8e 40%, #18b5a6 100%);
  box-shadow: 0 22px 42px rgba(3, 18, 35, 0.22);
}

.de-home-layer {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
  filter: blur(1px);
}

.de-home-layer-1 {
  width: 460px;
  height: 460px;
  top: -180px;
  right: -120px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.35), rgba(255, 255, 255, 0));
}

.de-home-layer-2 {
  width: 520px;
  height: 520px;
  bottom: -260px;
  left: -180px;
  background: radial-gradient(circle, rgba(99, 239, 91, 0.4), rgba(99, 239, 91, 0));
}

.de-home-content {
  position: relative;
  z-index: 1;
}

.de-stat-card {
  border-radius: 12px;
  padding: 0.9rem 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.de-panel-highlight {
  background: linear-gradient(140deg, rgba(34, 139, 234, 0.16), rgba(99, 239, 91, 0.13));
}

.de-track-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.de-track-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 12px 26px rgba(3, 18, 35, 0.15);
}

.de-pricing-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #f5fbff;
  box-shadow: 0 20px 44px rgba(3, 18, 35, 0.2);
}

.de-pricing-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 20% 20%, rgba(99, 239, 91, 0.3), rgba(99, 239, 91, 0) 35%),
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.3), rgba(255, 255, 255, 0) 28%),
    linear-gradient(120deg, #041f3c 0%, #0f4d8d 45%, #0b8db2 100%);
}

.de-pricing-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.1rem;
}

.de-dialer-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  color: #f5fbff;
  box-shadow: 0 20px 44px rgba(3, 18, 35, 0.2);
}

.de-dialer-hero-bg {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 18% 18%, rgba(99, 239, 91, 0.26), rgba(99, 239, 91, 0) 34%),
    radial-gradient(circle at 84% 12%, rgba(255, 255, 255, 0.26), rgba(255, 255, 255, 0) 24%),
    linear-gradient(125deg, #041a31 0%, #0c467e 44%, #116e98 100%);
}

.de-dialer-hero-inner {
  position: relative;
  z-index: 1;
  padding: 2.1rem;
}

.de-service-card {
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.de-service-card:hover {
  transform: translateY(-4px);
  box-shadow: 0 13px 28px rgba(3, 18, 35, 0.16);
}

.de-offer-bullets {
  margin: 0;
  padding-left: 1.1rem;
  font-size: 0.88rem;
  color: rgba(3, 18, 35, 0.78);
}

.de-offer-bullets li + li {
  margin-top: 0.3rem;
}

.de-chat-price-box {
  border-radius: 12px;
  border: 1px solid rgba(3, 18, 35, 0.16);
  padding: 0.65rem 0.75rem;
  background: linear-gradient(135deg, rgba(34, 139, 234, 0.13), rgba(99, 239, 91, 0.1));
}

.de-mini-eyebrow {
  font-size: 0.72rem;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #3b6d9c;
}

.de-offer-card {
  border: 1px solid rgba(3, 18, 35, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.de-offer-card:hover {
  transform: translateY(-4px);
  border-color: rgba(34, 139, 234, 0.22);
  box-shadow: 0 14px 28px rgba(3, 18, 35, 0.12);
}

.de-price {
  font-size: 1.45rem;
  line-height: 1.05;
  font-weight: 700;
}

.de-process-card {
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 14px;
  padding: 0.95rem 1rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(244, 249, 255, 0.92));
}

.de-shot-card {
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 16px;
  padding: 0.9rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 255, 0.94));
  min-height: 220px;
}

.de-shot-header {
  height: 34px;
  border-radius: 10px;
  margin-bottom: 0.9rem;
  background:
    linear-gradient(90deg, rgba(34, 139, 234, 0.2), rgba(34, 139, 234, 0.06)),
    linear-gradient(180deg, rgba(3, 18, 35, 0.04), rgba(3, 18, 35, 0.02));
}

.de-shot-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.de-shot-stat {
  border-radius: 12px;
  padding: 0.8rem;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(3, 18, 35, 0.08);
}

.de-shot-stat span {
  display: block;
  font-size: 0.74rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #507092;
}

.de-shot-stat strong {
  display: block;
  margin-top: 0.35rem;
  font-size: 1.25rem;
  line-height: 1.1;
}

.de-shot-timeline {
  display: flex;
  align-items: end;
  gap: 0.45rem;
  min-height: 136px;
  padding-top: 0.4rem;
}

.de-shot-timeline div {
  flex: 1 1 0;
  border-radius: 12px 12px 4px 4px;
  background: linear-gradient(180deg, rgba(24, 181, 166, 0.82), rgba(34, 139, 234, 0.42));
}

.de-shot-timeline div:nth-child(1) { height: 32%; }
.de-shot-timeline div:nth-child(2) { height: 54%; }
.de-shot-timeline div:nth-child(3) { height: 68%; }
.de-shot-timeline div:nth-child(4) { height: 46%; }
.de-shot-timeline div:nth-child(5) { height: 78%; }
.de-shot-timeline div:nth-child(6) { height: 90%; }

.de-contact-summary {
  min-width: 180px;
  border: 1px solid rgba(3, 18, 35, 0.12);
  border-radius: 14px;
  padding: 0.8rem 0.9rem;
  background: linear-gradient(180deg, rgba(34, 139, 234, 0.08), rgba(99, 239, 91, 0.08));
}

[data-reveal] {
  opacity: 0;
  transform: translateY(22px) scale(0.99);
  transition: opacity 0.48s ease, transform 0.48s ease;
}

[data-reveal].is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
}

/* Managed host policies (Observability) — dark mode */
[data-theme="dark"] .ov2-host-policy-dialog.ui-dialog,
[data-theme="dark"] .ov2-host-policy-dialog .ui-dialog-content,
[data-theme="dark"] .ov2-host-policy-dialog .ui-widget-content {
  background-color: var(--surface);
  color: var(--text);
}
[data-theme="dark"] .ov2-host-policy-dialog .ui-dialog-titlebar {
  background-color: var(--surface);
  border-color: rgba(231, 238, 248, 0.12);
  color: var(--text);
}
[data-theme="dark"] .ov2-host-policy-dialog .table,
[data-theme="dark"] .ov2-host-policy-dialog .table-responsive {
  --bs-table-bg: transparent;
  color: var(--text);
}
[data-theme="dark"] .ov2-host-policy-dialog .table > :not(caption) > * > * {
  border-color: rgba(231, 238, 248, 0.12);
  background-color: transparent;
  color: var(--text);
}
[data-theme="dark"] .ov2-host-policy-dialog .text-muted {
  color: rgba(231, 238, 248, 0.65) !important;
}

[data-theme="dark"] .de-offer-card,
[data-theme="dark"] .de-process-card,
[data-theme="dark"] .de-shot-card,
[data-theme="dark"] .de-contact-summary {
  border-color: rgba(231, 238, 248, 0.16);
  background: linear-gradient(180deg, rgba(18, 29, 43, 0.98), rgba(13, 20, 32, 0.94));
}

[data-theme="dark"] .de-mini-eyebrow {
  color: #8fb8e9;
}

[data-theme="dark"] .de-offer-bullets {
  color: rgba(231, 238, 248, 0.78);
}

[data-theme="dark"] .de-shot-header {
  background:
    linear-gradient(90deg, rgba(90, 166, 255, 0.22), rgba(90, 166, 255, 0.05)),
    linear-gradient(180deg, rgba(231, 238, 248, 0.08), rgba(231, 238, 248, 0.03));
}

[data-theme="dark"] .de-shot-stat {
  background: rgba(15, 24, 38, 0.92);
  border-color: rgba(231, 238, 248, 0.14);
}

[data-theme="dark"] .de-shot-stat span {
  color: #8fb8e9;
}

[data-theme="dark"] .de-shot-timeline div {
  background: linear-gradient(180deg, rgba(24, 181, 166, 0.74), rgba(90, 166, 255, 0.5));
}

@media (max-width: 991.98px) {
  .de-home-hero,
  .de-pricing-hero-inner,
  .de-dialer-hero-inner {
    padding: 1.3rem;
  }

  .de-shot-grid {
    grid-template-columns: 1fr;
  }
}
