/*
  CoreLine Market Intelligence Center - single GUI stylesheet
  Purpose: one maintainable CSS file for all operator pages.
  Sections:
  1. Design tokens and reset
  2. App shell and sidebar
  3. Shared cards, buttons, forms, tables, badges
  4. Page modules: dashboard, editor, crawler, settings, reports, logs
  5. Responsive rules
*/

:root {
  --cl-bg: #eef4f8;
  --cl-surface: #ffffff;
  --cl-surface-soft: #f7fafc;
  --cl-ink: #18243b;
  --cl-muted: #6b7894;
  --cl-line: #dfe8f1;
  --cl-line-strong: #cbd8e7;
  --cl-brand: #59ace7;
  --cl-brand-dark: #2e91d3;
  --cl-navy: #19365f;
  --cl-green: #89aa8c;
  --cl-green-dark: #6f9473;
  --cl-red: #b42318;
  --cl-amber: #b54708;
  --cl-blue: #3578bd;
  --cl-purple: #6941c6;
  --cl-shadow: 0 14px 34px rgba(24, 36, 59, .08);
  --cl-shadow-soft: 0 8px 22px rgba(24, 36, 59, .06);
  --cl-radius: 8px;
  --cl-sidebar: 280px;

  /* Backward-compatible variable names used by older PHP markup. */
  --bg: var(--cl-bg);
  --primary: var(--cl-brand);
  --secondary: var(--cl-purple);
  --success: var(--cl-green);
  --danger: var(--cl-red);
  --warning: var(--cl-amber);
  --border: var(--cl-line);
  --text-main: var(--cl-ink);
  --text-muted: var(--cl-muted);
}

* {
  box-sizing: border-box;
}

html,
body {
  min-height: 100%;
  margin: 0;
  padding: 0;
}

body {
  color: var(--cl-ink);
  background: var(--cl-bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", Arial, sans-serif;
  font-size: 14px;
  line-height: 1.5;
  overflow-x: hidden;
}

a {
  color: inherit;
}

a:hover {
  color: var(--cl-brand);
}

h1,
h2,
h3,
h4,
p {
  letter-spacing: 0;
}

h1,
h2,
h3 {
  color: var(--cl-ink);
  line-height: 1.18;
}

img {
  max-width: 100%;
}

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

/* 2. App shell and sidebar */
.app-container {
  display: flex;
  align-items: stretch;
  width: 100%;
  min-height: 100vh;
  gap: 0;
  background: var(--cl-bg);
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex: 0 0 var(--cl-sidebar);
  flex-direction: column;
  width: var(--cl-sidebar);
  min-width: var(--cl-sidebar);
  max-width: var(--cl-sidebar);
  height: 100vh;
  margin: 0;
  padding: 0;
  overflow: hidden;
  color: var(--cl-ink);
  background: #ffffff;
  border-right: 1px solid #e4edf5;
  box-shadow: 8px 0 24px rgba(24, 36, 59, .04);
  z-index: 40;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  padding: 22px 18px 20px;
  background: #ffffff;
  border-bottom: 1px solid #edf2f7;
}

.sidebar-brand img {
  display: block;
  width: auto;
  max-width: 164px;
  max-height: 118px;
  padding: 0;
  object-fit: contain;
  background: transparent;
  border-radius: 0;
}

.sidebar-nav {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  gap: 8px;
  width: 100%;
  min-height: 0;
  margin: 0;
  padding: 18px 14px;
  overflow: hidden;
}

.sidebar-nav a {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 43px;
  padding: 8px 12px;
  color: #657491;
  text-decoration: none;
  background: transparent;
  border: 1px solid transparent;
  border-radius: var(--cl-radius);
  font-size: 13px;
  font-weight: 850;
  line-height: 1.2;
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-nav a.is-active {
  color: #ffffff;
  background: var(--cl-green);
  border-color: var(--cl-green);
  box-shadow: 0 7px 14px rgba(111, 148, 115, .22);
}

.sidebar-nav a.nav-danger {
  color: #ef6b6b;
  margin-top: auto;
  background: #fff8f8;
  border-color: #fee2e2;
}

.sidebar-nav a.nav-danger:hover,
.sidebar-nav a.nav-danger.active,
.sidebar-nav a.nav-danger.is-active {
  color: #ffffff;
  background: #ef6b6b;
  border-color: #ef6b6b;
}

.sidebar-user-panel {
  width: 100%;
  margin-top: auto;
  padding: 11px 13px;
  color: #53637e;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: var(--cl-radius);
  box-shadow: 0 8px 18px rgba(24, 36, 59, .045);
}

.sidebar-user-panel span,
.sidebar-user-panel strong {
  display: block;
  min-width: 0;
}

.sidebar-user-panel span {
  margin-bottom: 3px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
  color: #7a88a1;
}

.sidebar-user-panel strong {
  overflow: hidden;
  color: var(--cl-navy);
  font-size: 13px;
  font-weight: 950;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-user-panel + a.nav-danger {
  margin-top: 8px;
}

.nav-ico {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 30px;
  min-width: 30px;
  height: 26px;
  overflow: hidden;
  color: #64748b;
  background: #ffffff;
  border: 1px solid #d8e3ef;
  border-radius: var(--cl-radius);
  font-size: 11px;
  font-weight: 850;
  line-height: 1;
}

.sidebar-nav a:hover .nav-ico,
.sidebar-nav a.active .nav-ico,
.sidebar-nav a.is-active .nav-ico {
  color: #ffffff;
  background: rgba(255, 255, 255, .18);
  border-color: rgba(255, 255, 255, .34);
}

.nav-label {
  display: block;
  min-width: 0;
  overflow: visible;
  color: inherit;
  white-space: normal;
}

.sidebar-version {
  flex: 0 0 auto;
  margin: auto 14px 12px;
  padding: 12px 8px 0;
  color: #73819c;
  border-top: 1px solid #edf2f7;
  font-size: 11px;
  font-weight: 800;
  line-height: 1.35;
  text-align: center;
}

.main-content {
  flex: 1 1 auto;
  min-width: 0;
  width: auto;
  padding: 26px 30px;
  background: var(--cl-bg);
}

/* 3. Shared components */
.topbar,
.hero-header,
.content-card,
.research-card,
.research-panel,
.research-panel-clean,
.operator-card,
.ops-card,
.report-panel,
.report-section,
.stat-card {
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
}

.topbar,
.hero-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
  padding: 18px 20px;
}

.topbar h1,
.topbar h2,
.hero-header h1,
.hero-header h2 {
  margin: 0;
}

.page-subtitle,
.hero-subtitle,
.help-text,
.muted {
  color: var(--cl-muted);
}

.text-muted {
  color: var(--cl-muted);
}

.text-primary {
  color: var(--cl-brand);
}

.text-success {
  color: var(--cl-green);
}

.text-danger {
  color: var(--cl-red);
}

.text-info {
  color: var(--cl-blue);
}

.text-purple {
  color: var(--cl-purple);
}

.text-center {
  text-align: center;
}

.text-right {
  text-align: right;
}

.text-small {
  font-size: 12px;
}

.text-xs {
  font-size: 11px;
}

.text-strong {
  font-weight: 800;
}

.nowrap {
  white-space: nowrap;
}

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

.inline-form {
  display: inline-flex;
  margin: 0;
}

.toolbar-inline,
.toolbar-between,
.toolbar-scroll {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.toolbar-between {
  justify-content: space-between;
}

.toolbar-scroll {
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
  flex-wrap: nowrap;
}

.mt-10 {
  margin-top: 10px;
}

.mt-12 {
  margin-top: 12px;
}

.mt-15 {
  margin-top: 15px;
}

.mt-20 {
  margin-top: 20px;
}

.mb-10 {
  margin-bottom: 10px;
}

.mb-12 {
  margin-bottom: 12px;
}

.mb-15 {
  margin-bottom: 15px;
}

.mb-16 {
  margin-bottom: 16px;
}

.mb-20 {
  margin-bottom: 20px;
}

.mb-30 {
  margin-bottom: 30px;
}

.section-title {
  margin: 0 0 20px;
  padding-bottom: 10px;
  color: var(--cl-brand);
  border-bottom: 1px solid var(--cl-line);
  font-size: 18px;
}

.subsection-title {
  margin: 20px 0 10px;
  color: var(--cl-muted);
  font-size: 13px;
  font-weight: 850;
}

.panel-soft {
  padding: 15px;
  background: var(--cl-surface-soft);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.panel-dashed {
  padding: 10px;
  background: #ffffff;
  border: 1px dashed var(--cl-brand);
  border-radius: var(--cl-radius);
}

.stack-lg {
  display: flex;
  flex-direction: column;
  gap: 30px;
}

.grow-input {
  flex: 1 1 220px;
}

.content-narrow {
  max-width: 900px;
}

.login-shell {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: 100vh;
  padding: 20px;
  background: var(--cl-bg);
}

.login-card {
  width: min(400px, 100%);
  text-align: center;
}

.metric-strip {
  display: flex;
  gap: 15px;
  margin-bottom: 20px;
  padding-bottom: 10px;
  overflow-x: auto;
}

.metric-card {
  flex: 0 0 150px;
  min-width: 150px;
  padding: 15px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.metric-card.danger {
  color: #991b1b;
  background: #ffffff;
  border-color: #fecaca;
}

.metric-card h4 {
  margin: 0;
  color: var(--cl-muted);
  font-size: 12px;
}

.metric-card.danger h4,
.metric-card.danger .metric-note,
.metric-card.danger .metric-value {
  color: #991b1b;
}

.metric-value {
  margin-top: 5px;
  color: var(--cl-brand);
  font-size: 22px;
  font-weight: 850;
}

.metric-note {
  color: var(--cl-muted);
  font-size: 11px;
}

.history-results {
  display: none;
  flex: 1 1 260px;
  margin-left: 10px;
  padding: 10px 20px;
  background: var(--cl-surface-soft);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  font-size: 13px;
}

.table-compact th,
.table-compact td {
  padding: 5px;
}

.table-row-line td,
.table-row-line th {
  border-bottom: 1px solid var(--cl-line);
}

.modal-sm {
  max-width: 600px;
}

.modal-md {
  max-width: 800px;
}

.modal-lg {
  max-width: 900px;
}

.modal-scroll {
  max-height: 90vh;
  overflow-y: auto;
}

.scroll-box {
  max-height: 400px;
  overflow-y: auto;
}

.btn-block {
  width: 100%;
}

.btn-sm {
  min-height: 30px;
  padding: 6px 12px;
  font-size: 12px;
}

.btn-xs {
  min-height: 26px;
  padding: 4px 8px;
  font-size: 11px;
}

.input-pill {
  border-radius: 999px;
}

.input-compact {
  min-height: 34px;
  padding: 6px 8px;
  font-size: 12px;
}

.search-input-sm {
  width: 250px;
  max-width: 100%;
}

.field-fixed-sm {
  flex: 0 0 160px;
  min-width: 160px;
}

.checkbox-line {
  display: flex;
  align-items: center;
  min-height: 42px;
  gap: 8px;
  font-weight: 750;
}

.checkbox-input {
  flex: 0 0 auto;
  width: 18px;
  min-height: 18px;
  height: 18px;
}

.textarea-compact {
  width: 100%;
  min-height: 70px;
  padding: 10px;
  border-color: var(--cl-line);
}

.file-input {
  width: 100%;
  padding: 8px;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.cell-compact-wide {
  padding: 5px 15px !important;
}

.subscription-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 4px;
  padding: 4px 8px;
  background: var(--cl-surface-soft);
  border: 1px solid var(--cl-line);
  border-radius: 4px;
}

.btn-link {
  min-height: auto;
  padding: 0;
  color: var(--cl-red);
  background: transparent;
  border: 0;
  box-shadow: none;
  font-weight: 800;
}

.website-token {
  color: #2563eb;
  font-weight: 800;
  text-decoration: underline;
  background: #eff6ff;
  padding: 3px 6px;
  border-radius: 4px;
}

.dispatcher-head,
.dispatcher-row {
  display: flex;
  justify-content: space-between;
}

.dispatcher-head {
  margin-bottom: 15px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cl-line);
}

.dispatcher-row {
  margin-bottom: 10px;
  font-size: 12px;
}

.content-card,
.research-panel,
.research-panel-clean,
.operator-card,
.ops-card {
  margin-bottom: 18px;
  padding: 18px;
}

.section-head,
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 14px;
}

.section-head h3,
.section-head-row h3 {
  margin: 0;
}

.btn,
.research-btn,
button,
input[type="submit"],
.btn-instant,
.btn-instant-crawl,
.btn-wow {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 9px 13px;
  color: var(--cl-ink);
  text-decoration: none;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid var(--cl-line-strong);
  border-radius: var(--cl-radius);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.15;
  letter-spacing: 0;
  transition: background .16s ease, border-color .16s ease, color .16s ease, box-shadow .16s ease;
}

.btn:hover,
.research-btn:hover,
button:hover,
input[type="submit"]:hover {
  box-shadow: 0 4px 12px rgba(16, 24, 40, .08);
}

.btn-primary,
.research-btn-primary,
.btn-instant,
.btn-instant-crawl,
.btn-wow {
  color: #ffffff;
  background: var(--cl-brand);
  border-color: var(--cl-brand);
}

.btn-primary:hover,
.research-btn-primary:hover,
.btn-instant:hover,
.btn-instant-crawl:hover,
.btn-wow:hover {
  color: #ffffff;
  background: var(--cl-brand-dark);
  border-color: var(--cl-brand-dark);
}

.btn-secondary,
.research-btn-secondary,
.btn-soft {
  color: #344054;
  background: #ffffff;
  border-color: var(--cl-line-strong);
}

.btn-danger,
.danger {
  color: #ffffff;
  background: var(--cl-red);
  border-color: var(--cl-red);
}

.btn-row,
.row-actions,
.detail-actions,
.research-actions-clean,
.hero-actions,
.smtp-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.row-actions form,
.detail-actions form,
.research-actions-clean form {
  display: inline-flex;
  margin: 0;
}

.input-group,
.field-clean {
  min-width: 0;
  margin-bottom: 12px;
}

.input-group label,
.field-clean label,
label,
.mini-label {
  display: block;
  margin-bottom: 6px;
  color: #475467;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.25;
}

input,
select,
textarea,
.research-input,
.research-mini {
  width: 100%;
  min-height: 40px;
  padding: 9px 11px;
  color: var(--cl-ink);
  background: #ffffff;
  border: 1px solid var(--cl-line-strong);
  border-radius: var(--cl-radius);
  outline: none;
}

textarea {
  min-height: 90px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus,
.research-input:focus,
.research-mini:focus {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .12);
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid .full,
.input-group.full {
  grid-column: 1 / -1;
}

.form-row-clean,
.research-toolbar,
.research-toolbar-clean,
.filter-bar {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
}

.form-row-clean .field-clean {
  flex: 1 1 190px;
  margin-bottom: 0;
}

.research-mini {
  width: 76px;
  min-width: 76px;
}

.alert {
  margin-bottom: 16px;
  padding: 12px 14px;
  color: #065f46;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  border-radius: var(--cl-radius);
  font-weight: 750;
}

.alert.success {
  color: #065f46;
  background: #d1fae5;
  border-color: #a7f3d0;
}

.alert.danger,
.alert.error {
  color: #991b1b;
  background: #fee2e2;
  border-color: #fecaca;
}

.table-wrap,
.research-table-wrap {
  width: 100%;
  overflow-x: auto;
  overflow-y: visible;
  -webkit-overflow-scrolling: touch;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.data-table,
.research-table,
.research-table-clean,
.report-table,
table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
}

.data-table th,
.data-table td,
.research-table th,
.research-table td,
.research-table-clean th,
.research-table-clean td,
.report-table th,
.report-table td {
  padding: 12px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: 1px solid #e6edf6;
  word-break: normal;
  overflow-wrap: normal;
}

.data-table th,
.research-table th,
.research-table-clean th,
.report-table th {
  color: #475467;
  background: #f8fafc;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  text-transform: uppercase;
  white-space: nowrap;
}

.data-table td,
.research-table td,
.research-table-clean td,
.report-table td {
  color: #344054;
  font-size: 13px;
}

.actions-cell,
.data-table th.actions-cell,
.data-table td.actions-cell,
.research-table th:last-child,
.research-table td:last-child,
.research-table-clean th:last-child,
.research-table-clean td:last-child {
  text-align: right;
  white-space: nowrap;
}

.email-plain,
td a[href^="mailto:"],
.data-table td small {
  overflow-wrap: anywhere;
}

.badge,
.pill,
.research-badge,
.status-pill,
.report-pill,
.analytics-pill,
.timing-chip,
.version-chip,
.log-type-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 4px 9px;
  color: var(--cl-blue);
  background: #eef4ff;
  border: 1px solid #c7d7fe;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.15;
  white-space: nowrap;
}

.badge.active,
.badge.completed,
.badge.success,
.research-badge.completed,
.research-badge.success,
.status-ok,
.status-verified,
.status-pill.good,
.green {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abf3cf;
}

.badge.info,
.badge.api,
.badge.replied {
  color: #1e3a8a;
  background: #dbeafe;
  border-color: #bfdbfe;
}

.badge.indigo,
.badge.admin {
  color: #3730a3;
  background: #e0e7ff;
  border-color: #c7d2fe;
}

.badge.purple {
  color: #7e22ce;
  background: #f3e8ff;
  border-color: #e9d5ff;
}

.badge.yellow,
.badge.bounced {
  color: #854d0e;
  background: #fef08a;
  border-color: #fde047;
}

.badge.neutral {
  color: #4b5563;
  background: #f3f4f6;
  border-color: #e5e7eb;
}

.badge.skipped,
.research-badge.skipped,
.status-skipped,
.status-pill.skipped,
.crawler-status.skipped {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.badge.inactive,
.badge.failed,
.research-badge.failed,
.status-failed,
.status-pill.bad,
.red {
  color: var(--cl-red);
  background: #fef3f2;
  border-color: #fecaca;
}

.research-badge.pending,
.research-badge.running,
.status-mid,
.status-bounced,
.status-pill.warn,
.orange {
  color: var(--cl-amber);
  background: #fffaeb;
  border-color: #fef3c7;
}

.status-replied,
.blue {
  color: var(--cl-blue);
  background: #eff6ff;
  border-color: #dbeafe;
}

.empty-panel,
.empty-state {
  padding: 14px;
  color: var(--cl-muted);
  background: #fbfdff;
  border: 1px dashed var(--cl-line-strong);
  border-radius: var(--cl-radius);
  font-weight: 700;
}

/* Dashboard and operational cards */
.stats-grid-extended,
.research-grid,
.signal-grid,
.contact-grid,
.grid-2-col {
  display: grid;
  gap: 14px;
}

.stats-grid-extended,
.research-grid {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  margin-bottom: 18px;
}

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

.stat-card,
.research-card,
.ops-card,
.operator-card {
  display: block;
  min-width: 0;
  padding: 16px;
  color: inherit;
  text-decoration: none;
}

.stat-card-title,
.card-label,
.label {
  color: var(--cl-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.stat-card p,
.research-card .big,
.value {
  margin: 6px 0 0;
  color: var(--cl-ink);
  font-size: 26px;
  font-weight: 850;
  line-height: 1;
}

.kpi-link-note,
.step-kpi-help {
  display: block;
  margin-top: 6px;
  color: var(--cl-muted);
  font-size: 12px;
}

.cron-toggle-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 20px;
  padding: 18px;
  background: var(--cl-surface);
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow-soft);
}

.switch {
  position: relative;
  display: inline-block;
  width: 50px;
  height: 28px;
}

.switch input {
  width: 0;
  height: 0;
  opacity: 0;
}

.slider {
  position: absolute;
  inset: 0;
  cursor: pointer;
  background: #d0d5dd;
  border-radius: 999px;
  transition: background .18s ease;
}

.slider::before {
  position: absolute;
  left: 4px;
  bottom: 4px;
  width: 20px;
  height: 20px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(16, 24, 40, .2);
  transition: transform .18s ease;
}

.switch input:checked + .slider {
  background: var(--cl-green);
}

.switch input:checked + .slider::before {
  transform: translateX(22px);
}

.floating-widget {
  position: fixed;
  right: 30px;
  bottom: 30px;
  z-index: 999;
}

.widget-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 50px;
  height: 50px;
  color: #ffffff;
  cursor: pointer;
  background: var(--cl-brand);
  border-radius: 50%;
  box-shadow: 0 8px 20px rgba(16, 24, 40, .24);
}

.widget-panel {
  position: absolute;
  right: 0;
  bottom: 65px;
  display: none;
  width: 280px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
}

.widget-panel.open {
  display: block;
}

.dispatcher-console {
  width: 390px;
  max-width: calc(100vw - 48px);
  padding: 0;
  overflow: hidden;
  background: #ffffff;
  border-color: #cbdcec;
  box-shadow: 0 22px 52px rgba(24, 36, 59, .18);
}

.dispatcher-console .dispatcher-head {
  align-items: center;
  margin: 0;
  padding: 16px 18px;
  background: linear-gradient(135deg, #f8fbff 0%, #edf6fd 100%);
  border-bottom: 1px solid #dfe8f1;
}

.dispatcher-console .dispatcher-head h4 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
  color: var(--cl-navy);
  font-size: 14px;
  font-weight: 1000;
}

.dispatcher-status-line {
  display: grid;
  grid-template-columns: 10px auto 1fr;
  align-items: center;
  gap: 8px;
  padding: 13px 18px 0;
  color: #5d6d89;
}

.dispatcher-status-line span {
  width: 10px;
  height: 10px;
  background: #c4ccd8;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(196, 204, 216, .18);
}

.dispatcher-console.is-running .dispatcher-status-line span {
  background: var(--cl-green);
  box-shadow: 0 0 0 5px rgba(137, 170, 140, .18);
}

.dispatcher-status-line strong {
  color: var(--cl-navy);
  font-size: 12px;
  font-weight: 1000;
}

.dispatcher-status-line small {
  justify-self: end;
  color: #7786a0;
  font-size: 11px;
  font-weight: 800;
}

.dispatcher-run-control {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 13px 18px 0;
}

.dispatcher-run-control > div {
  display: grid;
  grid-template-columns: 10px auto;
  align-items: center;
  gap: 8px;
}

.dispatcher-run-control span {
  width: 10px;
  height: 10px;
  background: #c4ccd8;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(196, 204, 216, .18);
}

.dispatcher-console.is-running .dispatcher-run-control span {
  background: var(--cl-green);
  box-shadow: 0 0 0 5px rgba(137, 170, 140, .18);
}

.dispatcher-console .dispatcher-run-control span {
  background: var(--cl-green);
  box-shadow: 0 0 0 5px rgba(137, 170, 140, .18);
}

.dispatcher-run-control strong {
  color: var(--cl-navy);
  font-size: 14px;
  font-weight: 1000;
}

.dispatcher-run-control small {
  grid-column: 2;
  color: #7786a0;
  font-size: 11px;
  font-weight: 800;
}

.dispatcher-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
  padding: 16px 18px 14px;
}

.dispatcher-metric-grid > div {
  min-width: 0;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.dispatcher-metric-grid span {
  display: block;
  margin-bottom: 5px;
  color: #6b7894;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.dispatcher-metric-grid strong,
.dispatcher-metric-grid b {
  color: var(--cl-navy);
  font-size: 20px;
  line-height: 1;
  font-weight: 1000;
}

.dispatcher-note {
  padding: 11px 18px 15px;
  color: #64748b;
  background: #fbfdff;
  border-top: 1px solid #edf2f7;
  font-size: 11px;
  font-weight: 750;
}

.floating-widget .widget-icon {
  width: 58px;
  height: 58px;
  background: linear-gradient(135deg, var(--cl-brand) 0%, var(--cl-brand-dark) 100%);
  border: 1px solid rgba(255,255,255,.5);
  font-size: 12px;
  font-weight: 1000;
}

.pulse-dot,
.dot {
  display: inline-block;
  width: 8px;
  height: 8px;
  margin-right: 8px;
  background: var(--cl-green);
  border-radius: 50%;
}

.dot.green { background: var(--cl-green); }
.dot.orange { background: var(--cl-amber); }
.dot.red { background: var(--cl-red); }

/* Customer step strip */
.step-kpi-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.step-kpi-card {
  display: block;
  padding: 13px;
  color: inherit;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.step-kpi-card.active-step,
.step-kpi-card:hover {
  border-color: #84adff;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, .1);
}

.step-kpi-label {
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 850;
}

.step-kpi-number {
  margin-top: 4px;
  color: var(--cl-brand);
  font-size: 24px;
  font-weight: 850;
}

.step-filter-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 14px;
  padding: 12px 14px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--cl-radius);
}

/* Editor, upload and modal UI */
.editor-tabs {
  display: flex;
  gap: 10px;
  margin-bottom: 15px;
  border-bottom: 1px solid var(--cl-line);
}

.editor-tab-btn {
  padding: 10px 16px;
  color: var(--cl-muted);
  cursor: pointer;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  border-radius: 0;
  font-weight: 750;
}

.editor-tab-btn.active {
  color: var(--cl-brand);
  border-bottom-color: var(--cl-brand);
}

.tab-content {
  display: none;
}

.tab-content.active {
  display: block;
}

.live-preview-box {
  width: 100%;
  min-height: 250px;
  padding: 18px;
  overflow-y: auto;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.file-upload-zone {
  margin-bottom: 15px;
  padding: 18px;
  text-align: center;
  background: #f8fafc;
  border: 2px dashed var(--cl-line-strong);
  border-radius: var(--cl-radius);
}

.file-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 8px;
  padding: 8px 12px;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.file-name {
  max-width: 250px;
  overflow: hidden;
  color: var(--cl-ink);
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remove-file-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--cl-red);
  cursor: pointer;
  background: transparent;
  border: 0;
}

.openers-btn {
  display: inline-block;
  margin-bottom: 4px;
  padding: 3px 7px;
  cursor: pointer;
  background: #ffffff;
  border: 1px solid currentColor;
  border-radius: 6px;
  font-size: 12px;
}

.modal-overlay {
  position: fixed;
  inset: 0;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  background: rgba(15, 23, 42, .52);
  z-index: 1000;
}

.modal-overlay.show,
.modal-overlay.active {
  display: flex;
}

.modal-content,
.smtp-modal-card {
  width: min(760px, 96vw);
  max-height: 92vh;
  overflow: auto;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: 0 24px 70px rgba(15, 23, 42, .28);
}

.modal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--cl-line);
}

.close-btn {
  width: 36px;
  height: 36px;
  padding: 0;
  border-radius: 50%;
}

/* Crawler and auto-refresh */
.crawler-auto-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 18px;
}

.crawler-auto-panel h3 {
  margin: 2px 0 6px;
  font-size: 22px;
}

.crawler-auto-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(96px, 1fr));
  gap: 10px;
  min-width: 360px;
}

.crawler-auto-kpis div,
.crawler-kpi {
  padding: 11px 12px;
  background: #f8fafc;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.crawler-auto-kpis span,
.crawler-kpi span {
  display: block;
  color: var(--cl-muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
}

.crawler-auto-kpis strong,
.crawler-kpi strong {
  display: block;
  margin-top: 4px;
  color: var(--cl-ink);
  font-size: 22px;
  line-height: 1;
}

.crawler-auto-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}

.crawler-widget-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, .65fr);
  gap: 18px;
  margin-top: 18px;
  align-items: start;
}

.crawler-next-card {
  margin-bottom: 8px;
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e2e8f0;
  border-radius: var(--cl-radius);
}

.crawler-alert,
.crawler-alert-good {
  padding: 12px 14px;
  color: #166534;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: var(--cl-radius);
}

/* Company report */
.report-shell {
  max-width: 1480px;
  margin: 0 auto;
  padding: 0;
}

.report-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 24px;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
}

.report-hero::before {
  position: absolute;
  inset: 0 0 auto 0;
  height: 4px;
  content: "";
  background: var(--cl-brand);
}

.report-title-block {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
}

.company-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 58px;
  height: 58px;
  color: #ffffff;
  background: var(--cl-navy);
  border-radius: var(--cl-radius);
  font-size: 18px;
  font-weight: 850;
}

.report-eyebrow,
.eyebrow {
  margin-bottom: 5px;
  color: var(--cl-brand);
  font-size: 12px;
  font-weight: 850;
  text-transform: uppercase;
}

.report-hero h1 {
  margin: 0;
  font-size: 36px;
  line-height: 1;
}

.report-subline {
  margin-top: 8px;
  color: var(--cl-muted);
}

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

.report-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 9px 12px;
  color: #344054;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid var(--cl-line-strong);
  border-radius: var(--cl-radius);
  font-weight: 800;
  cursor: pointer;
}

.report-btn.primary {
  color: #ffffff;
  background: var(--cl-brand);
  border-color: var(--cl-brand);
}

.report-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.report-kpi {
  min-width: 0;
  padding: 14px;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow-soft);
}

.report-kpi .value {
  font-size: 20px;
  word-break: break-word;
}

.report-grid-main {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, .75fr);
  gap: 14px;
  margin-top: 14px;
}

.report-section,
.report-panel {
  margin-top: 14px;
  padding: 18px;
}

.report-grid-main .report-panel {
  margin-top: 0;
}

.section-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.section-title h2,
.section-title h3 {
  margin: 0;
  font-size: 18px;
}

.section-title span {
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 800;
}

.report-copy {
  color: #344054;
  font-size: 15px;
  line-height: 1.7;
}

.report-list {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.report-list li {
  padding: 10px 12px;
  color: #344054;
  background: #fbfdff;
  border: 1px solid #e6edf6;
  border-radius: var(--cl-radius);
}

.report-list.compact li {
  padding: 8px 10px;
  font-size: 13px;
}

.report-link {
  color: var(--cl-brand);
  font-weight: 750;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.report-link:hover {
  text-decoration: underline;
}

.product-grid,
.gallery-strip {
  display: grid;
  gap: 12px;
}

.product-grid {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.gallery-strip {
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
}

.product-card {
  min-width: 0;
  overflow: hidden;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.product-card img,
.gallery-strip img {
  display: block;
  width: 100%;
  object-fit: cover;
  background: #f2f4f7;
}

.product-card img {
  height: 150px;
}

.gallery-strip img {
  aspect-ratio: 4 / 3;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.product-card-body {
  padding: 12px;
}

.product-title {
  color: var(--cl-ink);
  font-weight: 850;
}

.product-meta {
  margin-top: 8px;
  color: var(--cl-muted);
  font-size: 13px;
}

.price-pill {
  display: inline-flex;
  margin-top: 9px;
  padding: 5px 9px;
  color: #027a48;
  background: #ecfdf3;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

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

.signal-box {
  padding: 13px;
  background: #fbfdff;
  border: 1px solid #e6edf6;
  border-radius: var(--cl-radius);
}

.signal-box h3 {
  margin: 0 0 9px;
  font-size: 14px;
}

.report-table {
  min-width: 760px;
}

.report-footer-note {
  margin: 16px 0 0;
  color: var(--cl-muted);
  font-size: 12px;
  text-align: right;
}

/* Settings */
.page-settings .grid-2-col {
  grid-template-columns: minmax(0, 1.08fr) minmax(360px, .92fr);
  align-items: start;
}

.page-settings .settings-grid {
  display: grid;
  gap: 16px;
}

.settings-switch {
  display: inline-grid;
  grid-template-columns: 46px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  cursor: pointer;
}

.settings-switch input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.settings-switch span {
  position: relative;
  display: block;
  width: 46px;
  height: 26px;
  background: #d0d5dd;
  border-radius: 999px;
}

.settings-switch span::after {
  position: absolute;
  top: 3px;
  left: 3px;
  width: 20px;
  height: 20px;
  content: "";
  background: #ffffff;
  border-radius: 50%;
  box-shadow: 0 2px 6px rgba(15, 23, 42, .22);
  transition: transform .18s ease;
}

.settings-switch input:checked + span {
  background: var(--cl-brand);
}

.settings-switch input:checked + span::after {
  transform: translateX(20px);
}

.settings-help {
  margin: 0;
  padding: 10px 12px;
  color: #1e3a8a;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: var(--cl-radius);
  font-size: 12px;
  font-weight: 750;
}

/* Logs */
.details-row {
  display: none;
}

.details-row.show {
  display: table-row;
}

.details-box {
  padding: 16px;
  background: #f8fafc;
  border: 1px solid var(--cl-line);
  border-radius: var(--cl-radius);
}

.log-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.log-detail-item,
.log-message-box {
  padding: 12px;
  background: #ffffff;
  border: 1px solid #e5eaf3;
  border-radius: var(--cl-radius);
}

.log-detail-item span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

/* Standalone pages */
.standalone-page,
.unsubscribe-page {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 20px;
}

.container {
  width: min(420px, 92vw);
  padding: 34px 28px;
  text-align: center;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-top: 5px solid var(--cl-red);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow);
}

.container.status-success {
  border-top-color: var(--cl-green);
}

.container.status-info {
  border-top-color: var(--cl-blue);
}

.container.status-danger {
  border-top-color: var(--cl-red);
}

.icon {
  margin-bottom: 15px;
  color: var(--cl-brand);
  font-size: 42px;
  font-weight: 850;
}

.navigation {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 72px;
  background: #36344d;
}

.content {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  width: 100%;
  min-height: calc(100vh - 72px);
  padding: 24px;
  text-align: center;
}

.main-image {
  width: 100%;
  max-width: 650px;
  height: auto;
}

.link-container {
  margin: 28px 0;
}

.link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  margin-top: 8px;
  color: var(--cl-purple);
  font-weight: 800;
  text-decoration: none;
}

.ic-launch {
  width: 21px;
  height: 20px;
  margin-left: 10px;
}

/* CoreLine operator console refresh - shared system style */
.topbar,
.hero-header {
  padding: 0 0 20px;
  background: transparent;
  border: 0;
  border-bottom: 1px solid #dae6f0;
  border-radius: 0;
  box-shadow: none;
}

.topbar h1,
.topbar h2,
.hero-header h1,
.hero-header h2 {
  color: #1b2941;
  font-size: 22px;
  font-weight: 900;
  letter-spacing: 0;
}

.page-subtitle,
.hero-subtitle {
  margin-top: 8px;
  color: #6d7b98;
  font-size: 13px;
}

.content-card,
.research-panel,
.research-panel-clean,
.operator-card,
.ops-card,
.report-panel,
.report-section,
.stat-card,
.research-card,
.metric-card,
.step-kpi-card {
  background: #ffffff;
  border-color: #dfe8f1;
  box-shadow: 0 10px 28px rgba(24, 36, 59, .055);
}

.content-card,
.research-panel,
.research-panel-clean,
.operator-card,
.ops-card {
  padding: 20px;
}

.content-card:hover,
.research-panel-clean:hover,
.operator-card:hover,
.ops-card:hover,
.stat-card:hover,
.research-card:hover,
.metric-card:hover,
.step-kpi-card:hover {
  border-color: #cbd8e7;
  box-shadow: 0 16px 38px rgba(24, 36, 59, .075);
}

.btn,
.research-btn,
button,
input[type="submit"],
.btn-instant,
.btn-instant-crawl,
.btn-wow,
.report-btn {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 7px;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.btn-primary,
.research-btn-primary,
.btn-instant,
.btn-instant-crawl,
.btn-wow,
.report-btn.primary {
  color: #ffffff;
  background: var(--cl-brand);
  border-color: var(--cl-brand);
  box-shadow: 0 8px 16px rgba(89, 172, 231, .22);
}

.btn-primary:hover,
.research-btn-primary:hover,
.btn-instant:hover,
.btn-instant-crawl:hover,
.btn-wow:hover,
.report-btn.primary:hover {
  color: #ffffff;
  background: var(--cl-brand-dark);
  border-color: var(--cl-brand-dark);
}

.crawler-auto-actions .btn-primary,
.research-actions-clean .btn-primary,
.page-crawler .data-table .btn-primary,
.page-crawler .research-table-clean .btn-primary,
.btn-success {
  color: #ffffff;
  background: var(--cl-green);
  border-color: var(--cl-green);
  box-shadow: 0 8px 16px rgba(111, 148, 115, .2);
}

.crawler-auto-actions .btn-primary:hover,
.research-actions-clean .btn-primary:hover,
.page-crawler .data-table .btn-primary:hover,
.page-crawler .research-table-clean .btn-primary:hover,
.btn-success:hover {
  background: var(--cl-green-dark);
  border-color: var(--cl-green-dark);
}

.btn-secondary,
.research-btn-secondary,
.btn-soft,
.report-btn {
  color: #60708d;
  background: #ffffff;
  border-color: #d4dfeb;
  box-shadow: none;
}

.btn-secondary:hover,
.research-btn-secondary:hover,
.btn-soft:hover,
.report-btn:hover {
  color: var(--cl-brand-dark);
  background: #f7fbff;
  border-color: #aad4f3;
}

.crawler-auto-panel {
  grid-template-columns: minmax(260px, 1fr) minmax(360px, auto) auto;
  align-items: center;
  gap: 22px;
}

.crawler-auto-panel .eyebrow,
.report-eyebrow,
.eyebrow {
  color: #6c7fa2;
  letter-spacing: .04em;
}

.crawler-auto-panel h3,
.section-head h3,
.section-head-row h3,
.content-card h3,
.operator-card h3 {
  color: #89aa8c;
  font-weight: 900;
}

.crawler-auto-kpis div,
.crawler-kpi,
.report-kpi,
.metric-card,
.research-card,
.stat-card,
.step-kpi-card {
  background: #fbfdff;
  border: 1px solid #dfe8f1;
}

.crawler-auto-kpis strong,
.crawler-kpi strong,
.metric-value,
.research-card .big,
.stat-card p,
.report-kpi .value,
.step-kpi-number {
  color: #1d2c45;
  font-weight: 900;
}

.research-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}

.research-card h3,
.metric-card h4,
.stat-card-title,
.card-label,
.label,
.crawler-auto-kpis span,
.crawler-kpi span {
  color: #89aa8c;
  letter-spacing: .03em;
}

.table-wrap,
.research-table-wrap {
  border-color: #dfe8f1;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.data-table th,
.research-table th,
.research-table-clean th,
.report-table th {
  color: #6b7894;
  background: #f7fafc;
  letter-spacing: .03em;
}

.data-table tbody tr,
.research-table tbody tr,
.research-table-clean tbody tr,
.report-table tbody tr {
  transition: background .14s ease, box-shadow .14s ease;
}

.data-table tbody tr:hover,
.research-table tbody tr:hover,
.research-table-clean tbody tr:hover,
.report-table tbody tr:hover {
  background: #fbfdff;
}

.badge,
.pill,
.research-badge,
.status-pill,
.report-pill,
.analytics-pill,
.timing-chip,
.version-chip,
.log-type-pill {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: .02em;
  text-transform: uppercase;
}

.research-badge.pending,
.research-badge.running,
.status-mid,
.status-bounced,
.status-pill.warn,
.orange {
  color: #875a08;
  background: #fff8d8;
  border-color: #f5d367;
}

.badge.active,
.badge.completed,
.badge.success,
.research-badge.completed,
.research-badge.success,
.status-ok,
.status-verified,
.status-pill.good,
.green {
  color: #416f49;
  background: #eef7ef;
  border-color: #cfe4d1;
}

input,
select,
textarea,
.research-input,
.research-mini {
  border-color: #d4dfeb;
  box-shadow: inset 0 1px 0 rgba(24, 36, 59, .025);
}

input:focus,
select:focus,
textarea:focus,
.research-input:focus,
.research-mini:focus {
  border-color: #7fc2ee;
  box-shadow: 0 0 0 3px rgba(89, 172, 231, .16);
}

.input-pill {
  border-radius: 7px;
}

.operator-note,
.mobile-hint {
  background: #f7fbff;
  border-color: #d8eaf7;
}

.mini-row,
.smart-action,
.subscription-row,
.crawler-next-card,
.signal-box,
.product-card {
  border-color: #dfe8f1;
  box-shadow: 0 6px 16px rgba(24, 36, 59, .035);
}

.report-shell {
  max-width: none;
}

.report-hero {
  box-shadow: 0 10px 28px rgba(24, 36, 59, .055);
}

.company-mark {
  background: var(--cl-green);
}

/* Page table widths for laptop scanability */
.page-customers .data-table {
  min-width: 1180px;
}

.page-emails .data-table {
  min-width: 1320px;
}

.page-crawler .data-table {
  min-width: 1280px;
}

.page-crawler-groups .data-table {
  min-width: 1120px;
}

.page-company-reports .research-table,
.page-company-reports .data-table {
  min-width: 1240px;
}

.page-logs .data-table,
.page-details .data-table {
  min-width: 1080px;
}

@media (max-width: 1500px) and (min-width: 1051px) {
  :root {
    --cl-sidebar: 236px;
  }

  .sidebar-brand {
    padding: 10px 12px;
  }

  .sidebar-brand img {
    max-width: 132px;
    max-height: 56px;
  }

  .sidebar-nav {
    gap: 4px;
    padding: 8px 10px;
  }

  .sidebar-nav a {
    grid-template-columns: 30px minmax(0, 1fr);
    min-height: 36px;
    padding: 6px 8px;
    font-size: 12px;
  }

  .nav-ico {
    width: 28px;
    min-width: 28px;
    height: 25px;
    font-size: 10px;
  }

  .main-content {
    padding: 14px;
  }

  .content-card,
  .research-panel,
  .research-panel-clean,
  .operator-card {
    padding: 16px;
  }

  .page-settings .grid-2-col {
    grid-template-columns: 1fr;
  }
}

@media (max-height: 700px) and (min-width: 1051px) {
  .sidebar-brand img {
    max-width: 108px;
    max-height: 44px;
    padding: 4px;
  }

  .sidebar-nav {
    gap: 2px;
    padding: 5px 9px;
  }

  .sidebar-nav a {
    min-height: 31px;
    padding: 4px 7px;
  }

  .sidebar-version {
    padding-top: 7px;
    font-size: 9px;
  }
}

@media (max-width: 1050px) {
  .app-container {
    display: block;
  }

  .sidebar {
    position: relative;
    width: 100%;
    min-width: 0;
    max-width: none;
    height: auto;
    overflow: visible;
  }

  .sidebar-nav {
    display: grid;
    grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  }

  .sidebar-version {
    margin-top: 10px;
  }

  .main-content {
    width: 100%;
    padding: 16px;
  }

  .crawler-auto-panel,
  .crawler-widget-grid,
  .report-grid-main,
  .page-settings .grid-2-col {
    grid-template-columns: 1fr;
  }

  .crawler-auto-kpis {
    min-width: 0;
  }
}

@media (max-width: 720px) {
  .topbar,
  .hero-header,
  .section-head,
  .section-head-row,
  .cron-toggle-card,
  .step-filter-banner {
    align-items: stretch;
    flex-direction: column;
  }

  .form-grid,
  .contact-grid,
  .crawler-auto-kpis {
    grid-template-columns: 1fr;
  }

  .report-shell {
    padding: 12px;
  }

  .report-hero {
    grid-template-columns: 1fr;
  }

  .report-title-block {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  .company-mark {
    width: 46px;
    height: 46px;
    font-size: 15px;
  }

  .report-actions,
  .btn-row,
  .row-actions,
  .detail-actions,
  .research-actions-clean {
    justify-content: flex-start;
  }
}

@media print {
  .sidebar,
  .report-actions,
  .topbar {
    display: none;
  }

  .app-container {
    display: block;
  }

  .main-content,
  .page-company-report .main-content {
    padding: 0;
  }

  .report-shell {
    max-width: none;
    padding: 0;
  }

  .report-section,
  .report-panel,
  .report-hero,
  .report-kpi,
  .product-card {
    box-shadow: none;
    break-inside: avoid;
  }
}

/* CMIC rebrand layer - V2.8.4 */
:root {
  --cl-bg: #edf3f8;
  --cl-surface: #ffffff;
  --cl-surface-soft: #f7fafc;
  --cl-ink: #142033;
  --cl-muted: #65728a;
  --cl-line: #d8e3ee;
  --cl-line-strong: #bfcedd;
  --cl-brand: #3f9ed8;
  --cl-brand-dark: #237db5;
  --cl-navy: #142f52;
  --cl-green: #7fa784;
  --cl-green-dark: #638b69;
  --cl-red: #c43a31;
  --cl-amber: #b87512;
  --cl-blue: #2f72b7;
  --cl-purple: #6f5bbf;
  --cl-shadow: 0 16px 34px rgba(20, 32, 51, .08);
  --cl-shadow-soft: 0 9px 22px rgba(20, 32, 51, .06);
  --cl-radius: 8px;
}

body,
.app-container {
  background: #edf3f8;
  color: var(--cl-ink);
}

.main-content {
  padding: 24px 28px 34px;
  background: #edf3f8;
}

.sidebar {
  background: #fbfdff;
  border-right: 1px solid #d8e3ee;
  box-shadow: 10px 0 28px rgba(20, 32, 51, .05);
}

.sidebar-brand.cmic-brand {
  display: grid;
  grid-template-columns: 62px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-content: stretch;
  padding: 20px 16px 18px;
  text-align: left;
}

.cmic-mark {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border: 1px solid #c9d9e8;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(47, 114, 183, .13);
  color: var(--cl-navy);
  font-weight: 1000;
  line-height: .9;
}

.cmic-mark span,
.cmic-mark strong {
  display: block;
  font-size: 18px;
  letter-spacing: 0;
}

.cmic-mark strong {
  color: #e8653f;
}

.cmic-brand-copy {
  min-width: 0;
}

.cmic-brand-copy strong {
  display: block;
  color: var(--cl-navy);
  font-size: 28px;
  font-weight: 1000;
  line-height: 1;
}

.cmic-brand-copy span {
  display: block;
  margin-top: 5px;
  color: #58708c;
  font-size: 11px;
  font-weight: 900;
  line-height: 1.25;
}

.sidebar-nav {
  gap: 7px;
  padding: 16px 12px;
}

.sidebar-nav a {
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 44px;
  padding: 8px 10px;
  color: #52627a;
  background: #ffffff;
  border-color: #e4ebf3;
  box-shadow: 0 2px 8px rgba(20, 32, 51, .025);
}

.sidebar-nav a:hover,
.sidebar-nav a.active,
.sidebar-nav a.is-active {
  color: #ffffff;
  background: var(--cl-navy);
  border-color: var(--cl-navy);
  box-shadow: 0 10px 20px rgba(20, 47, 82, .18);
}

.nav-ico {
  background: #f7fafc;
  border-color: #d5e2ef;
  color: #3e5875;
}

.sidebar-version {
  color: #61728b;
  font-size: 10.5px;
}

.topbar,
.hero-header {
  min-height: 74px;
  padding: 18px 20px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.topbar h1,
.topbar h2,
.hero-header h1,
.hero-header h2 {
  color: var(--cl-navy);
  font-size: 22px;
  font-weight: 1000;
}

.user-badge {
  padding: 7px 10px;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  background: #f8fbff;
  color: #5b6c84;
  font-size: 12px;
}

.cmic-command-strip {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(340px, auto);
  gap: 14px;
  align-items: center;
  margin-bottom: 18px;
  padding: 16px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-left: 5px solid var(--cl-brand);
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.cmic-command-strip span {
  display: block;
  color: #60718a;
  font-size: 11px;
  font-weight: 1000;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cmic-command-strip strong {
  display: block;
  margin-top: 4px;
  color: var(--cl-ink);
  font-size: 16px;
  font-weight: 950;
}

.cmic-command-kpis {
  display: grid;
  grid-template-columns: repeat(3, minmax(105px, 1fr));
  gap: 8px;
}

.cmic-command-kpis a {
  min-height: 58px;
  padding: 9px 10px;
  text-decoration: none;
  background: #f8fbff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
}

.cmic-command-kpis a strong {
  margin: 2px 0 0;
  color: var(--cl-brand-dark);
  font-size: 18px;
}

.content-card,
.research-card,
.research-panel,
.research-panel-clean,
.operator-card,
.ops-card,
.report-panel,
.report-section,
.stat-card,
.cron-toggle-card,
.crawler-auto-panel,
.crawler-flow-panel {
  border-color: #d8e3ee;
  box-shadow: var(--cl-shadow-soft);
}

.stat-card,
.research-card,
.ops-card,
.operator-card,
.metric-card,
.crawler-kpi,
.report-kpi {
  transition: transform .14s ease, box-shadow .14s ease, border-color .14s ease;
}

.stat-card:hover,
.research-card:hover,
.ops-card:hover,
.operator-card:hover,
.metric-card:hover,
.crawler-kpi:hover,
.report-kpi:hover {
  transform: translateY(-2px);
  border-color: #b9d8ee;
  box-shadow: 0 16px 34px rgba(20, 32, 51, .10);
}

.stat-card-title,
.card-label,
.label,
.report-eyebrow,
.eyebrow {
  color: #64748b;
  letter-spacing: 0;
}

.stat-card p,
.research-card .big,
.value,
.metric-value,
.crawler-kpi strong {
  color: var(--cl-navy);
}

.section-title,
.text-primary {
  color: var(--cl-brand-dark);
}

.btn,
.research-btn,
button,
input[type="submit"],
.btn-instant,
.btn-instant-crawl,
.btn-wow,
.report-btn {
  border-radius: 8px;
  letter-spacing: 0;
}

.btn-primary,
.research-btn-primary,
.btn-instant,
.btn-instant-crawl,
.btn-wow,
.report-btn.primary {
  background: var(--cl-brand);
  border-color: var(--cl-brand);
  box-shadow: 0 9px 18px rgba(63, 158, 216, .22);
}

.btn-primary:hover,
.research-btn-primary:hover,
.btn-instant:hover,
.btn-instant-crawl:hover,
.btn-wow:hover,
.report-btn.primary:hover {
  background: var(--cl-brand-dark);
  border-color: var(--cl-brand-dark);
}

.data-table,
.research-table-clean,
table {
  border-color: #d8e3ee;
}

.data-table th,
.research-table-clean th {
  color: #4f6078;
  background: #f7fafc;
  border-bottom: 1px solid #d8e3ee;
}

.data-table td,
.research-table-clean td {
  border-bottom-color: #e6edf5;
}

input,
select,
textarea,
.input-compact {
  border-color: #cbd8e7;
  border-radius: 8px;
}

input:focus,
select:focus,
textarea:focus {
  outline: 2px solid rgba(63, 158, 216, .20);
  border-color: var(--cl-brand);
}

.login-shell {
  background: #edf3f8;
}

.login-card {
  width: min(460px, 100%);
  padding: 24px;
  text-align: left;
}

.cmic-login-brand {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin-bottom: 20px;
}

.cmic-login-brand h2 {
  margin: 0;
  color: var(--cl-navy);
  font-size: 28px;
}

.cmic-login-brand p {
  margin: 4px 0 0;
  color: var(--cl-muted);
  font-size: 13px;
  font-weight: 800;
}

@media (max-width: 980px) {
  .cmic-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .sidebar-brand.cmic-brand {
    grid-template-columns: 56px minmax(0, 1fr);
  }
  .cmic-command-kpis {
    grid-template-columns: 1fr;
  }
}

/* CMIC logo + dashboard layout correction - V2.8.4 */
.sidebar-brand.cmic-brand {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 116px;
  padding: 16px 14px 14px;
}

.cmic-logo {
  display: block;
  width: 100%;
  max-width: 218px;
  height: auto;
  max-height: 92px;
  object-fit: contain;
}

.cmic-login-brand {
  display: block;
  margin-bottom: 22px;
  text-align: center;
}

.cmic-login-logo {
  display: block;
  width: min(250px, 100%);
  height: auto;
  margin: 0 auto;
}

.cmic-dashboard-topbar {
  align-items: center;
  min-height: 96px;
}

.cmic-topbar-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
}

.cmic-top-logo {
  display: block;
  flex: 0 0 auto;
  width: 178px;
  height: auto;
  max-height: 74px;
  object-fit: contain;
}

.cmic-dashboard-topbar h2 {
  margin: 0;
  font-size: 24px;
}

.page-dashboard .cmic-command-strip {
  grid-template-columns: minmax(0, 1fr) minmax(430px, .72fr);
  max-width: 100%;
  overflow: hidden;
}

.page-dashboard .cmic-command-strip > div:first-child {
  min-width: 0;
}

.page-dashboard .cmic-command-strip strong {
  overflow-wrap: anywhere;
}

.page-dashboard .cmic-command-kpis {
  grid-template-columns: repeat(3, minmax(130px, 1fr));
  min-width: 0;
}

.page-dashboard .cmic-command-kpis a {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
  min-height: 64px;
  overflow: hidden;
}

.page-dashboard .cmic-command-kpis a span,
.page-dashboard .cmic-command-kpis a strong {
  min-width: 0;
  overflow-wrap: anywhere;
  white-space: normal;
}

.page-dashboard .stats-grid-extended {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  align-items: stretch;
}

.page-dashboard .stat-card {
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  min-height: 120px;
  overflow: hidden;
}

.page-dashboard .stat-card p {
  display: block;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.page-dashboard .stat-card p .text-small {
  display: block;
  margin-top: 5px;
  line-height: 1.25;
}

.crawler-flow-panel {
  margin-bottom: 20px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.crawler-flow-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

.crawler-flow-head h3 {
  margin: 0;
  color: var(--cl-navy);
  font-size: 20px;
}

.crawler-flow-head p {
  margin: 6px 0 0;
  color: var(--cl-muted);
}

.crawler-flow-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.crawler-kpi-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(185px, 1fr));
  gap: 10px;
}

.crawler-kpi {
  display: block;
  min-width: 0;
  text-decoration: none;
}

.crawler-kpi small {
  display: block;
  margin-top: 5px;
  color: var(--cl-muted);
  line-height: 1.25;
}

.crawler-mini-table-wrap {
  width: 100%;
  overflow-x: auto;
}

.crawler-mini-table {
  width: 100%;
  min-width: 680px;
  border-collapse: collapse;
}

.crawler-mini-table th,
.crawler-mini-table td {
  padding: 10px;
  border-bottom: 1px solid #e6edf5;
  text-align: left;
  vertical-align: top;
}

.crawler-mini-table th {
  color: #4f6078;
  background: #f7fafc;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.crawler-status {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 3px 8px;
  color: #35506d;
  background: #f1f6fb;
  border: 1px solid #d6e4f1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
}

.crawler-status.completed {
  color: #166534;
  background: #ecfdf5;
  border-color: #bbf7d0;
}

.crawler-status.failed {
  color: #991b1b;
  background: #fff1f2;
  border-color: #fecdd3;
}

.crawler-status.running {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.crawler-status.skipped {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

@media (max-width: 1500px) and (min-width: 1051px) {
  .sidebar-brand.cmic-brand {
    min-height: 96px;
    padding: 12px;
  }

  .cmic-logo {
    max-width: 194px;
    max-height: 74px;
  }

  .cmic-top-logo {
    width: 150px;
  }
}

@media (max-width: 1180px) {
  .page-dashboard .cmic-command-strip {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  .cmic-dashboard-topbar,
  .crawler-flow-head {
    align-items: stretch;
    flex-direction: column;
  }

  .cmic-topbar-brand {
    align-items: flex-start;
  }

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

@media (max-width: 760px) {
  .cmic-top-logo {
    width: 138px;
  }

  .cmic-topbar-brand {
    gap: 12px;
  }

  .page-dashboard .stats-grid-extended {
    grid-template-columns: 1fr;
  }
}

/* CMIC live operations and page polish - V2.8.6 */
.cmic-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  width: fit-content;
  min-height: 28px;
  padding: 5px 10px;
  color: #416f49;
  background: #eef7ef;
  border: 1px solid #cfe4d1;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.cmic-live-pill span {
  width: 8px;
  height: 8px;
  background: #4f9b59;
  border-radius: 999px;
  box-shadow: 0 0 0 4px rgba(79, 155, 89, .12);
}

.cmic-live-pill em {
  color: #6b7894;
  font-style: normal;
  text-transform: none;
}

.main-content [data-live-section] .cmic-live-pill {
  display: none !important;
}

.research-card {
  color: inherit;
  text-decoration: none;
}

.research-card.is-selected,
.research-card.live-running {
  border-color: #89aa8c;
  box-shadow: 0 0 0 3px rgba(137, 170, 140, .16), var(--cl-shadow-soft);
}

.sequence-analytics-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.sequence-analytics-card {
  min-width: 0;
  padding: 15px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.sequence-analytics-card span,
.analytics-label {
  display: block;
  color: #6b7894;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.sequence-analytics-card strong {
  display: block;
  margin-top: 5px;
  color: var(--cl-navy);
  font-size: 25px;
  line-height: 1;
}

.sequence-analytics-card small {
  display: block;
  margin-top: 6px;
  color: var(--cl-muted);
}

.sequence-category-strip {
  padding-bottom: 4px;
}

.analytics-stack {
  display: grid;
  gap: 7px;
  min-width: 190px;
}

.analytics-line {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.analytics-line strong {
  color: var(--cl-navy);
}

.analytics-pill {
  width: 100%;
  min-height: 28px;
  padding: 4px 8px;
  background: #ffffff;
  justify-content: center;
}

.sequence-subject {
  max-width: 380px;
  color: var(--cl-ink);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.sequence-meta {
  margin-top: 4px;
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 750;
}

.page-emails .data-table th:nth-child(5),
.page-emails .data-table td:nth-child(5) {
  min-width: 230px;
}

.page-crawler .research-toolbar-clean {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) auto auto;
  gap: 10px;
  align-items: center;
}

.page-crawler .research-toolbar-clean .research-input {
  min-width: 0;
}

.page-crawler .research-toolbar-clean .btn {
  min-width: 105px;
}

.page-crawler .research-actions-clean {
  display: grid;
  grid-template-columns: auto 74px auto auto;
  align-items: end;
  gap: 7px;
}

.page-crawler .research-actions-clean .mini-label {
  margin: 0;
  align-self: center;
}

.page-crawler .research-mini {
  min-width: 64px;
}

.reports-hero-panel {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(420px, .95fr);
  gap: 18px;
  align-items: center;
  margin-bottom: 16px;
  padding: 22px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-left: 5px solid var(--cl-brand);
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.reports-hero-panel h3 {
  margin: 4px 0 8px;
  color: var(--cl-navy);
  font-size: 24px;
}

.reports-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(92px, 1fr));
  gap: 8px;
}

.reports-kpi-grid div {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
}

.reports-kpi-grid span {
  display: block;
  color: #6b7894;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.reports-kpi-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--cl-navy);
  font-size: 22px;
}

.report-country-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 16px;
}

.report-country-strip > span:not(.cmic-live-pill) {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  color: #52627a;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.report-country-strip strong {
  color: var(--cl-brand-dark);
}

.report-list-card {
  overflow: hidden;
}

.crawler-job-live-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 12px;
  align-items: stretch;
  margin-bottom: 16px;
}

.crawler-job-live-grid .cmic-live-pill {
  align-self: center;
}

@media (max-width: 1350px) {
  .sequence-analytics-grid,
  .crawler-job-live-grid {
    grid-template-columns: repeat(2, minmax(160px, 1fr));
  }

  .reports-hero-panel {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .sequence-analytics-grid,
  .crawler-job-live-grid,
  .reports-kpi-grid,
  .page-crawler .research-toolbar-clean,
  .page-crawler .research-actions-clean {
    grid-template-columns: 1fr;
  }

  .analytics-line {
    grid-template-columns: 1fr;
  }
}

/* CMIC topbar live console + log detail console - V2.8.6 */
.topbar,
.hero-header {
  display: grid !important;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
}

.cmic-topbar-right {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.cmic-topbar-right > .toolbar-inline,
.cmic-topbar-right > .btn-row,
.cmic-topbar-right > .hero-actions {
  margin: 0;
}

.cmic-topbar-live {
  display: grid;
  grid-template-columns: auto minmax(300px, auto);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 7px 10px;
  background: #f8fbff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(20, 32, 51, .055);
}

.cmic-live-state {
  display: grid;
  grid-template-columns: 9px auto;
  column-gap: 7px;
  align-items: center;
  min-width: 94px;
}

.cmic-live-state span {
  width: 9px;
  height: 9px;
  background: #4f9b59;
  border-radius: 999px;
  box-shadow: 0 0 0 5px rgba(79, 155, 89, .14);
}

.cmic-live-state strong {
  color: #416f49;
  font-size: 11px;
  font-weight: 1000;
  line-height: 1;
  text-transform: uppercase;
}

.cmic-live-state em {
  grid-column: 2;
  color: #687895;
  font-size: 10px;
  font-style: normal;
  font-weight: 800;
  line-height: 1.1;
}

.cmic-live-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(68px, 1fr));
  gap: 6px;
}

.cmic-live-metrics span {
  display: block;
  min-width: 0;
  padding: 5px 7px;
  color: #63708a;
  background: #ffffff;
  border: 1px solid #e1e9f2;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  text-transform: uppercase;
}

.cmic-live-metrics b {
  display: block;
  margin-top: 2px;
  color: var(--cl-navy);
  font-size: 14px;
  font-weight: 1000;
}

.page-crawler .research-actions-clean {
  grid-template-columns: 38px 74px 80px 88px;
  justify-content: end;
}

.page-crawler .research-actions-clean .btn {
  min-width: 80px;
}

.research-report-placeholder {
  visibility: hidden;
  pointer-events: none;
}

.page-logs .details-row.show > td {
  padding: 14px;
  background: #f4f8fc;
}

.page-logs .details-box {
  position: relative;
  padding: 18px;
  color: var(--cl-ink);
  text-align: left !important;
  direction: ltr;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f8fc 100%);
  border: 1px solid #cbdcec;
  border-radius: 8px;
  box-shadow: inset 4px 0 0 #59ace7, 0 16px 34px rgba(24, 36, 59, .09);
}

.page-logs .details-box::before {
  display: block;
  margin-bottom: 14px;
  color: var(--cl-brand-dark);
  content: "CMIC::LOG_INSPECTOR";
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0;
}

.page-logs .log-detail-grid {
  grid-template-columns: repeat(4, minmax(150px, 1fr));
}

.page-logs .log-detail-item,
.page-logs .log-message-box {
  color: var(--cl-ink);
  text-align: left !important;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 36, 59, .045);
}

.page-logs .log-detail-item span {
  color: var(--cl-brand-dark);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

.page-logs .log-detail-item strong {
  color: var(--cl-navy);
  font-family: Consolas, "Courier New", monospace;
  font-size: 13px;
}

.page-logs .log-detail-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
  color: var(--cl-ink);
  border-bottom: 1px solid #dfe8f1;
}

.page-logs .log-detail-toolbar strong,
.page-logs .log-message-box > strong {
  color: var(--cl-brand-dark);
  font-family: Consolas, "Courier New", monospace;
  letter-spacing: 0;
}

.page-logs .log-detail-toolbar .btn {
  color: var(--cl-navy);
  background: #f8fbff;
  border-color: #cbdcec;
}

.page-logs .it-log-pretty {
  min-height: 260px;
  margin: 12px 0 0;
  padding: 16px;
  color: #d9f7ff;
  text-align: left !important;
  white-space: pre-wrap;
  word-break: break-word;
  background: #132b43;
  border: 1px solid #244c6f;
  border-radius: 8px;
  font-family: Consolas, "Courier New", monospace;
  font-size: 12px;
  line-height: 1.65;
}

.page-logs .details-box.expanded {
  position: fixed;
  inset: 24px;
  z-index: 1200;
  max-height: calc(100vh - 48px);
  overflow: auto;
}

/* CMIC operations/customer/broadcast polish - V2.8.6 */
.page-command-center .hero-header {
  padding: 20px 22px;
}

.page-command-center .hero-header h1 {
  margin: 2px 0 0;
}

.page-command-center .hero-subtitle {
  max-width: 760px;
}

.page-command-center .ops-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(145px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.page-command-center .ops-card {
  min-height: 106px;
  padding: 14px;
  border-left: 4px solid #d8e3ee;
}

.page-command-center .ops-card.health-card {
  border-left-color: var(--cl-green);
}

.page-command-center .ops-card strong {
  display: block;
  margin: 7px 0 4px;
  color: var(--cl-navy);
  font-size: 26px;
  line-height: 1;
  font-weight: 1000;
}

.page-command-center .ops-card small {
  display: block;
  color: #687895;
  font-size: 11px;
  line-height: 1.35;
}

.page-command-center .two-col {
  display: grid;
  grid-template-columns: minmax(280px, .85fr) minmax(420px, 1.15fr);
  gap: 16px;
  margin-bottom: 18px;
  align-items: start;
}

.page-command-center .operator-card,
.page-command-center .content-card {
  padding: 16px;
}

.page-command-center .readiness-list {
  display: grid;
  gap: 9px;
  margin-top: 12px;
}

.page-command-center .readiness-list > div {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 32px;
  padding: 8px 10px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.page-command-center .smart-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.page-command-center .smart-action {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  min-height: 88px;
  padding: 12px;
  background: #fbfdff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.page-command-center .smart-action strong,
.page-command-center .mini-row strong {
  display: block;
  color: var(--cl-ink);
  font-size: 13px;
}

.page-command-center .smart-action small,
.page-command-center .mini-row small {
  display: block;
  margin-top: 3px;
  color: #687895;
  font-size: 11px;
  line-height: 1.35;
}

.page-command-center .pause-controls {
  display: grid;
  grid-template-columns: 62px auto auto;
  align-items: center;
  gap: 7px;
}

.page-command-center .pause-controls input {
  min-width: 0;
}

.page-command-center .operator-note {
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #d8eaf7;
  border-radius: 8px;
}

.page-command-center .section-head {
  margin-bottom: 10px;
}

.page-command-center .data-table th,
.page-command-center .data-table td {
  padding: 10px 12px;
}

.crawler-flow-panel {
  margin-bottom: 18px;
}

.crawler-flow-head {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) auto;
  gap: 16px;
  align-items: center;
}

.crawler-flow-actions {
  display: grid;
  grid-template-columns: repeat(4, max-content);
  gap: 8px;
  justify-content: end;
  align-items: center;
}

.crawler-flow-actions .btn {
  min-width: 132px;
  white-space: nowrap;
}

.crawler-kpi-grid {
  margin-top: 16px;
  margin-bottom: 12px;
}

.crawler-alert {
  margin: 12px 0 16px;
}

.crawler-widget-grid {
  margin-top: 18px;
}

.page-command-center .mini-list {
  display: grid;
  gap: 8px;
  max-height: 440px;
  overflow: auto;
}

.page-command-center .mini-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px 12px;
  background: #fbfdff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.page-customers .customer-ops-table {
  min-width: 1560px;
}

.page-customers .customer-ops-table th.actions-cell,
.page-customers .customer-ops-table td:last-child {
  width: 290px;
  min-width: 290px;
}

.customer-mini-analytics {
  display: grid;
  grid-template-columns: repeat(3, minmax(76px, 1fr));
  gap: 6px;
  max-width: 300px;
}

.customer-mini-analytics span {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 5px;
  min-height: 27px;
  padding: 5px 7px;
  color: #667893;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 7px;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.customer-mini-analytics strong {
  color: var(--cl-navy);
}

.customer-mini-analytics .ok {
  color: #416f49;
  background: #eef7ef;
  border-color: #cfe4d1;
}

.customer-mini-analytics .warn {
  color: #8a5a00;
  background: #fff7e6;
  border-color: #fde6ae;
}

.page-customers .row-actions {
  display: flex;
  flex-wrap: nowrap;
  gap: 6px;
  justify-content: flex-end;
  align-items: center;
  white-space: nowrap;
}

.page-customers .row-actions .inline-form {
  margin: 0;
}

.page-customers .row-actions .btn,
.page-customers .row-actions button {
  min-height: 32px;
  padding: 7px 9px;
  font-size: 10px;
  white-space: nowrap;
}

.customer-score-form {
  margin-top: 6px;
}

.customer-score-form .btn {
  min-height: 28px;
  padding: 5px 8px;
  font-size: 10px;
}

/* CMIC V2.8.9 focused dashboard/log/customer polish */
.dashboard-bounce-card {
  padding: 16px;
  border-left: 5px solid var(--cl-brand);
}

.dashboard-bounce-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 12px;
}

.dashboard-bounce-head h3 {
  margin: 2px 0 4px;
  color: var(--cl-ink);
  font-size: 18px;
}

.dashboard-bounce-grid {
  display: grid;
  grid-template-columns: minmax(155px, 190px) minmax(155px, 190px) minmax(300px, 1fr);
  gap: 10px;
  align-items: stretch;
}

.dashboard-bounce-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.dashboard-bounce-field span {
  color: #687894;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-bounce-field input {
  width: 100%;
}

.dashboard-bounce-results {
  display: grid;
  grid-template-columns: repeat(3, minmax(82px, 1fr));
  gap: 8px;
  flex: none;
  margin-left: 0;
  padding: 0;
  background: transparent;
  border: 0;
  border-radius: 0;
}

.dashboard-bounce-results span {
  display: grid;
  gap: 3px;
  min-height: 54px;
  padding: 9px 11px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.dashboard-bounce-results em {
  color: #6c7a94;
  font-style: normal;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.dashboard-bounce-results strong {
  color: var(--cl-navy);
  font-size: 18px;
  line-height: 1;
}

.log-kpi-heading {
  display: grid;
  gap: 3px;
  margin: 14px 0 10px;
  padding-left: 12px;
  border-left: 4px solid var(--cl-brand);
}

.log-kpi-heading span {
  color: #6c7fa2;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.log-kpi-heading strong {
  color: var(--cl-ink);
  font-size: 17px;
}

.log-kpi-heading p {
  margin: 0;
  color: #64748b;
  font-size: 12px;
}

@media (max-width: 1050px) {
  .dashboard-bounce-grid {
    grid-template-columns: repeat(2, minmax(155px, 1fr));
  }

  .dashboard-bounce-results {
    grid-column: 1 / -1;
  }
}

@media (max-width: 680px) {
  .dashboard-bounce-head,
  .dashboard-bounce-grid,
  .dashboard-bounce-results {
    grid-template-columns: 1fr;
  }
}

.page-crawler .research-card.is-selected {
  color: var(--cl-navy);
  background: #eef7ef;
  border-color: var(--cl-green);
  box-shadow: inset 4px 0 0 var(--cl-green), 0 16px 34px rgba(20, 32, 51, .10);
}

.pagination-box {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.pagination-box .page-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  justify-content: flex-end;
}

.pagination-box a,
.pagination-box span.page-current,
.pagination-box span.page-ellipsis {
  min-width: 34px;
  min-height: 32px;
  padding: 7px 10px;
  color: #60708d;
  text-align: center;
  text-decoration: none;
  background: #ffffff;
  border: 1px solid #d4dfeb;
  border-radius: 7px;
  font-size: 11px;
  font-weight: 900;
}

.pagination-box span.page-current {
  color: #ffffff;
  background: var(--cl-brand);
  border-color: var(--cl-brand);
}

.pagination-box span.page-ellipsis {
  color: #7a88a1;
  background: transparent;
  border-color: transparent;
}

.broadcast-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, .75fr);
  gap: 16px;
  align-items: center;
  margin-bottom: 18px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid #d8e3ee;
  border-left: 5px solid var(--cl-brand);
  border-radius: 8px;
  box-shadow: var(--cl-shadow-soft);
}

.broadcast-hero-panel h3 {
  margin: 4px 0 8px;
  color: var(--cl-ink);
  font-size: 22px;
}

.broadcast-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.broadcast-kpi-grid div {
  padding: 12px;
  background: #f8fbff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
}

.broadcast-kpi-grid span {
  display: block;
  color: #6b7894;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.broadcast-kpi-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--cl-navy);
  font-size: 24px;
  font-weight: 1000;
}

.page-broadcast .content-narrow {
  max-width: none;
}

.broadcast-console {
  padding: 20px;
}

.page-broadcast .form-grid {
  grid-template-columns: repeat(3, minmax(180px, 1fr));
}

.page-broadcast .input-group.full {
  grid-column: 1 / -1;
}

.page-broadcast textarea {
  min-height: 280px;
  resize: vertical;
}

.page-broadcast .live-preview-box {
  min-height: 320px;
  background: #fbfdff;
}

.advanced-search-panel {
  margin: 0 0 16px;
  border: 1px solid #d8e3ee;
  border-radius: 8px;
  background: #f8fbff;
  overflow: hidden;
}

.advanced-search-panel summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  min-height: 48px;
  padding: 12px 14px;
  cursor: pointer;
  color: var(--cl-navy);
  font-weight: 900;
  list-style: none;
}

.advanced-search-panel summary::-webkit-details-marker {
  display: none;
}

.advanced-search-panel summary::before {
  content: "+";
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 auto;
  border: 1px solid #cbd9e8;
  border-radius: 6px;
  background: #ffffff;
  color: var(--cl-blue);
  font-size: 16px;
  line-height: 1;
}

.advanced-search-panel[open] summary::before {
  content: "-";
}

.advanced-search-panel summary span {
  flex: 1 1 auto;
}

.advanced-search-panel summary small {
  color: #5f6f88;
  font-size: 12px;
  font-weight: 800;
}

.advanced-search-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
  padding: 14px;
  border-top: 1px solid #d8e3ee;
  background: #ffffff;
}

.advanced-search-grid .field-clean {
  margin: 0;
}

.advanced-search-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  grid-column: 1 / -1;
  padding-top: 2px;
}

.advanced-search-actions .btn {
  min-height: 40px;
}

@media (max-width: 1380px) {
  .page-command-center .ops-grid,
  .broadcast-kpi-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .broadcast-hero-panel {
    grid-template-columns: 1fr;
  }

  .crawler-flow-head {
    grid-template-columns: 1fr;
  }

  .crawler-flow-actions {
    justify-content: start;
  }

  .cmic-topbar-live {
    grid-template-columns: 1fr;
  }

  .cmic-live-metrics {
    grid-template-columns: repeat(2, minmax(80px, 1fr));
  }
}

@media (max-width: 900px) {
  .topbar,
  .hero-header {
    grid-template-columns: 1fr;
  }

  .page-command-center .ops-grid,
  .page-command-center .two-col,
  .page-command-center .smart-actions,
  .broadcast-kpi-grid,
  .page-broadcast .form-grid {
    grid-template-columns: 1fr;
  }

  .cmic-topbar-right {
    justify-content: flex-start;
  }

  .cmic-topbar-live {
    width: 100%;
  }

  .page-logs .log-detail-grid {
    grid-template-columns: 1fr;
  }
}

/* Command Center final polish - crawler widget and status language */
.page-command-center .crawler-flow-panel {
  padding: 16px;
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(24, 36, 59, .055);
}

.page-command-center .crawler-flow-head {
  padding-bottom: 14px;
  border-bottom: 1px solid #edf2f7;
}

.page-command-center .crawler-flow-actions {
  align-items: stretch;
}

.page-command-center .crawler-flow-actions .btn,
.btn-compact {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.btn-compact {
  min-height: 32px;
  padding: 7px 10px;
  font-size: 11px;
  letter-spacing: .03em;
}

.crawler-widget-grid {
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, .65fr);
  gap: 14px;
}

.crawler-widget-block {
  min-width: 0;
  padding: 14px;
  background: #fbfdff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: 0 8px 18px rgba(24, 36, 59, .04);
}

.crawler-widget-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.crawler-widget-title h4 {
  margin: 0;
  color: var(--cl-navy);
  font-size: 14px;
  font-weight: 950;
}

.crawler-widget-title p {
  max-width: 390px;
  margin: 0;
  color: var(--cl-muted);
  font-size: 11px;
  line-height: 1.35;
  text-align: right;
}

.crawler-mini-table-wrap {
  background: #ffffff;
  border: 1px solid #dfe8f1;
  border-radius: 8px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, .9);
}

.crawler-mini-table th,
.crawler-mini-table td {
  padding: 9px 10px;
  font-size: 12px;
}

.crawler-mini-table td:last-child {
  text-align: right;
}

.crawler-next-list {
  display: grid;
  gap: 8px;
  max-height: 360px;
  overflow: auto;
}

.crawler-next-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  margin: 0;
  background: #ffffff;
}

.crawler-next-card strong,
.crawler-next-meta {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.crawler-next-card strong {
  color: var(--cl-ink);
  font-size: 12px;
  font-weight: 950;
}

.crawler-next-meta {
  margin-top: 3px;
  color: var(--cl-muted);
  font-size: 11px;
}

.crawler-status.pending,
.crawler-status.review {
  color: var(--cl-amber);
  background: #fffaeb;
  border-color: #fef3c7;
}

.crawler-status.sent,
.crawler-status.success,
.crawler-status.api_valid,
.crawler-status.verified,
.crawler-status.active,
.crawler-status.valid {
  color: #027a48;
  background: #ecfdf3;
  border-color: #abf3cf;
}

.crawler-status.api_invalid,
.crawler-status.hard_bounce,
.crawler-status.invalid,
.crawler-status.bounced,
.crawler-status.unverified {
  color: var(--cl-red);
  background: #fef3f2;
  border-color: #fecaca;
}

.crawler-status.processing,
.crawler-status.replied,
.crawler-status.reply {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.crawler-status.do_not_contact,
.crawler-status.dnc,
.crawler-status.opted_out {
  color: #475569;
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.page-command-center .mini-row {
  grid-template-columns: minmax(0, 1fr) max-content;
}

.page-command-center .mini-row .crawler-status {
  justify-self: end;
}

@media (max-width: 1180px) {
  .crawler-widget-grid,
  .crawler-flow-head {
    grid-template-columns: 1fr;
  }

  .crawler-widget-title {
    display: block;
  }

  .crawler-widget-title p {
    max-width: none;
    margin-top: 4px;
    text-align: left;
  }

  .page-command-center .crawler-flow-actions {
    justify-content: start;
  }
}

.page-scheduled .topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.topbar-actions,
.section-head-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.scheduled-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(360px, .85fr);
  gap: 16px;
  margin: 0 0 16px;
  padding: 18px;
  background: #ffffff;
  border: 1px solid var(--cl-line);
  border-left: 5px solid var(--cl-blue);
  border-radius: var(--cl-radius);
  box-shadow: var(--cl-shadow-sm);
}

.scheduled-hero span,
.scheduled-kpi-strip span {
  display: block;
  color: var(--cl-muted);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.scheduled-hero h3 {
  margin: 7px 0 8px;
  color: var(--cl-ink);
  font-size: 22px;
}

.scheduled-hero p {
  margin: 0;
  color: var(--cl-muted);
  max-width: 860px;
}

.scheduled-kpi-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.scheduled-kpi-strip div {
  min-width: 0;
  padding: 13px 14px;
  background: var(--cl-soft);
  border: 1px solid var(--cl-line);
  border-radius: 8px;
}

.scheduled-kpi-strip strong {
  display: block;
  margin-top: 6px;
  color: var(--cl-ink);
  font-size: 24px;
  line-height: 1;
}

.scheduled-table td {
  vertical-align: middle;
}

.scheduled-table tr.is-due td {
  background: #fffbeb;
}

.scheduled-fit {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  margin: 2px 4px 2px 0;
  padding: 0 8px;
  color: #31435c;
  background: #f8fbff;
  border: 1px solid var(--cl-line);
  border-radius: 999px;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .scheduled-hero {
    grid-template-columns: 1fr;
  }
}

.cmic-section-pagination {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 12px;
  background: #f8fbff;
  border: 1px solid var(--cl-line);
  border-radius: 8px;
}

.cmic-section-pagination > span {
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 900;
}

.cmic-section-pagination > div {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cmic-section-pagination .btn {
  min-width: 38px;
  justify-content: center;
  padding-inline: 10px;
}

.cmic-section-pagination .btn.is-active {
  color: #ffffff;
  background: var(--cl-blue);
  border-color: var(--cl-blue);
}

.cmic-section-pagination .btn.is-disabled {
  pointer-events: none;
  opacity: .45;
}

.cmic-page-gap {
  padding: 0 4px;
  color: var(--cl-muted);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 760px) {
  .cmic-section-pagination {
    align-items: flex-start;
    flex-direction: column;
  }
  .cmic-section-pagination > div {
    justify-content: flex-start;
  }
}
