/* CODSHIPX_AI_CRM_R107_C2_CODI_STUDIO_LIVE_CONTROLS */
#cx107-c2-live-controls {
  margin: 22px 0 0;
  border: 1px solid rgba(17, 39, 66, .10);
  border-radius: 22px;
  background: #fff;
  color: #17263a;
  overflow: hidden;
  box-shadow: 0 18px 50px rgba(18, 38, 65, .08);
}

#cx107-c2-live-controls *,
#cx107-c2-live-controls *::before,
#cx107-c2-live-controls *::after { box-sizing: border-box; }

.cx107-c2-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 22px 24px 18px;
  background: linear-gradient(135deg, #f8fafc, #f3f7ee);
  border-bottom: 1px solid #e7edf2;
}

.cx107-c2-kicker {
  display: block;
  margin-bottom: 5px;
  color: #668529;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: .11em;
}

.cx107-c2-head h2,
.cx107-c2-card h3,
.cx107-c2-status-hero h3 { margin: 0; color: #17263a; }
.cx107-c2-head h2 { font-size: 19px; letter-spacing: -.02em; }
.cx107-c2-head p,
.cx107-c2-status-hero p { margin: 6px 0 0; color: #718096; font-size: 12px; line-height: 1.55; }

.cx107-c2-refresh,
.cx107-c2-actions button,
.cx107-c2-secondary,
.cx107-c2-alerts button {
  border: 0;
  border-radius: 11px;
  cursor: pointer;
  font: inherit;
  font-weight: 800;
}

.cx107-c2-refresh {
  flex: none;
  min-height: 38px;
  padding: 0 14px;
  color: #304419;
  background: #eef7df;
  border: 1px solid #d7e9b8;
}
.cx107-c2-refresh:disabled { opacity: .55; cursor: default; }

.cx107-c2-tabs {
  display: flex;
  gap: 6px;
  padding: 12px 14px;
  overflow-x: auto;
  border-bottom: 1px solid #edf1f4;
  background: #fff;
}
.cx107-c2-tabs button,
.cx107-c2-shortcut {
  border: 1px solid #e1e7ec;
  border-radius: 10px;
  background: #f8fafb;
  color: #5f6f82;
  cursor: pointer;
  font: inherit;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}
.cx107-c2-tabs button { min-height: 34px; padding: 0 12px; }
.cx107-c2-tabs button.active {
  color: #213508;
  background: #edf7dc;
  border-color: #d3e8ad;
}

.cx107-c2-shortcut { margin-top: 8px; padding: 9px 11px; width: 100%; }

.cx107-c2-body { padding: 20px; background: #f8fafc; }
.cx107-c2-panel { display: none; }
.cx107-c2-panel.active { display: block; }

.cx107-c2-summary-grid,
.cx107-c2-usage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}
.cx107-c2-usage-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }

.cx107-c2-summary-grid article,
.cx107-c2-usage-grid article,
.cx107-c2-limit-grid article {
  min-width: 0;
  border: 1px solid #e4eaf0;
  border-radius: 14px;
  background: #fff;
  padding: 14px;
}
.cx107-c2-summary-grid small,
.cx107-c2-usage-grid small,
.cx107-c2-card-head small,
.cx107-c2-status-hero small {
  display: block;
  color: #8794a4;
  font-size: 9px;
  font-weight: 850;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.cx107-c2-summary-grid strong,
.cx107-c2-usage-grid strong {
  display: block;
  margin-top: 6px;
  color: #26384d;
  font-size: 13px;
  overflow-wrap: anywhere;
}
.cx107-c2-usage-grid article > span { display: block; margin-top: 4px; color: #8a96a5; font-size: 10px; }

.cx107-c2-notice,
.cx107-c2-error {
  margin: 12px 0;
  border-radius: 13px;
  padding: 12px 14px;
  font-size: 11px;
  line-height: 1.5;
}
.cx107-c2-notice { border: 1px solid #dce4eb; background: #f5f8fa; color: #607083; }
.cx107-c2-notice strong { display: block; margin-bottom: 3px; color: #314258; }
.cx107-c2-notice.good { border-color: #d9e9bd; background: #f4f9eb; }
.cx107-c2-notice.warn { border-color: #efdfb9; background: #fff9eb; }
.cx107-c2-error { color: #94404a; background: #fff1f3; border: 1px solid #efcbd0; }

.cx107-c2-card,
.cx107-c2-status-hero {
  margin-top: 12px;
  border: 1px solid #e2e8ee;
  border-radius: 16px;
  background: #fff;
  padding: 17px;
}
.cx107-c2-card-head,
.cx107-c2-status-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}
.cx107-c2-card-head h3,
.cx107-c2-status-hero h3 { margin-top: 4px; font-size: 15px; }
.cx107-c2-status-hero.ready { border-color: #dce9c5; background: linear-gradient(135deg, #fff, #f7fbf1); }

.cx107-c2-pill {
  display: inline-flex;
  flex: none;
  align-items: center;
  min-height: 25px;
  padding: 0 9px;
  border-radius: 999px;
  color: #657386;
  background: #f0f3f6;
  font-size: 9px;
  font-weight: 850;
  text-transform: capitalize;
}
.cx107-c2-pill.good { color: #53731c; background: #eef7df; }
.cx107-c2-pill.warn { color: #8c651d; background: #fff2d7; }
.cx107-c2-pill.danger { color: #98404b; background: #ffebee; }

.cx107-c2-chip-grid,
.cx107-c2-permissions {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 14px;
}
.cx107-c2-chip-grid span {
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid #e3e9ee;
  border-radius: 10px;
  background: #fafbfc;
  color: #536377;
  font-size: 10px;
  overflow-wrap: anywhere;
}
.cx107-c2-chip-grid em { color: #8995a3; font-size: 11px; }

.cx107-c2-details { margin-top: 12px; border: 1px solid #e3e8ed; border-radius: 13px; background: #fff; }
.cx107-c2-details summary { cursor: pointer; padding: 12px 14px; color: #536277; font-size: 11px; font-weight: 800; }
.cx107-c2-details pre { margin: 0; padding: 0 14px 14px; max-height: 260px; overflow: auto; white-space: pre-wrap; color: #647286; font-size: 10px; }

.cx107-c2-mode-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.cx107-c2-mode-grid label,
.cx107-c2-pause,
.cx107-c2-permissions label {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  border: 1px solid #e3e9ee;
  border-radius: 12px;
  background: #fafbfc;
  padding: 11px;
}
.cx107-c2-mode-grid label:has(input:checked) { border-color: #cfe2aa; background: #f4f9eb; }
.cx107-c2-mode-grid input,
.cx107-c2-pause input,
.cx107-c2-permissions input { margin-top: 2px; accent-color: #8bbb32; }
.cx107-c2-mode-grid span,
.cx107-c2-pause span { display: flex; flex-direction: column; min-width: 0; }
.cx107-c2-mode-grid strong,
.cx107-c2-pause strong { color: #35475d; font-size: 11px; }
.cx107-c2-mode-grid small,
.cx107-c2-pause small { margin-top: 3px; color: #8592a1; font-size: 9px; line-height: 1.45; }
.cx107-c2-pause { margin-top: 10px; }

.cx107-c2-permissions label { align-items: center; padding: 9px 10px; }
.cx107-c2-permissions span { min-width: 0; color: #56677b; font-size: 9.5px; overflow-wrap: anywhere; }
.cx107-c2-permissions p { color: #8995a3; font-size: 11px; }

.cx107-c2-limit-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; margin-top: 13px; }
.cx107-c2-limit-grid article span { display: block; color: #8692a0; font-size: 9px; overflow-wrap: anywhere; }
.cx107-c2-limit-grid article strong { display: block; margin-top: 5px; color: #425268; font-size: 10px; overflow-wrap: anywhere; }
.cx107-c2-footnote { margin: 10px 0 0; color: #8794a3; font-size: 9px; }

.cx107-c2-actions { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; }
.cx107-c2-actions span { color: #7d8998; font-size: 10px; }
.cx107-c2-actions button { min-height: 38px; padding: 0 15px; color: #1c3507; background: linear-gradient(135deg, #9fda39, #b5e763); }
.cx107-c2-actions button:disabled { opacity: .45; cursor: default; }

.cx107-c2-secondary { margin-top: 5px; min-height: 36px; padding: 0 13px; color: #43566f; background: #fff; border: 1px solid #dce4ea; }

.cx107-c2-field { display: flex; flex-direction: column; gap: 7px; margin-top: 14px; }
.cx107-c2-field > span { color: #526276; font-size: 10px; font-weight: 800; }
.cx107-c2-field select { min-height: 38px; border: 1px solid #dce4ea; border-radius: 10px; background: #fff; color: #35475d; padding: 0 10px; font: inherit; font-size: 11px; outline: none; }
.cx107-c2-field small { color: #8a96a4; font-size: 9px; line-height: 1.5; }

.cx107-c2-alerts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 9px; margin-top: 14px; }
.cx107-c2-alerts article { border: 1px solid #e3e9ee; border-radius: 13px; background: #fafbfc; padding: 13px; }
.cx107-c2-alerts article.critical { border-color: #efcbd0; background: #fff6f7; }
.cx107-c2-alerts article.warning { border-color: #f0dfb6; background: #fffbf1; }
.cx107-c2-alerts article > div { display: flex; justify-content: space-between; gap: 8px; color: #84909f; font-size: 8px; text-transform: uppercase; letter-spacing: .06em; }
.cx107-c2-alerts h4 { margin: 8px 0 4px; color: #384a60; font-size: 11px; }
.cx107-c2-alerts p { margin: 0; color: #728093; font-size: 9.5px; line-height: 1.5; }
.cx107-c2-alerts footer { display: flex; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.cx107-c2-alerts footer small { color: #96a0ac; font-size: 8px; }
.cx107-c2-alerts footer em { color: #6f8e36; font-size: 8px; font-style: normal; }
.cx107-c2-alerts button { min-height: 28px; padding: 0 9px; color: #4f6e1d; background: #edf6df; }
.cx107-c2-empty { color: #8793a1; font-size: 10px; }

@media (max-width: 980px) {
  .cx107-c2-summary-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx107-c2-usage-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .cx107-c2-chip-grid,
  .cx107-c2-permissions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 720px) {
  .cx107-c2-head,
  .cx107-c2-card-head,
  .cx107-c2-status-hero,
  .cx107-c2-actions { align-items: stretch; flex-direction: column; }
  .cx107-c2-refresh { width: 100%; }
  .cx107-c2-body { padding: 14px; }
  .cx107-c2-summary-grid,
  .cx107-c2-usage-grid,
  .cx107-c2-mode-grid,
  .cx107-c2-chip-grid,
  .cx107-c2-permissions,
  .cx107-c2-limit-grid,
  .cx107-c2-alerts { grid-template-columns: 1fr; }
}
