/* src/styles.css */
:root {
  color: #17202a;
  background: #eef3f6;
  font-family:
    Inter,
    ui-sans-serif,
    system-ui,
    -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  font-size: 15px;
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
}
button,
input,
textarea,
select {
  font: inherit;
}
.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 250px 1fr;
}
.sidebar {
  background:
    linear-gradient(
      180deg,
      #102733 0%,
      #153746 100%);
  color: #f5fbfd;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 24px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 11px;
}
.brand strong,
.brand span {
  display: block;
}
.brand span {
  color: #a8c4cf;
  font-size: 13px;
}
.brand.large {
  color: #102733;
  margin-bottom: 8px;
}
.brand.large span {
  color: #596675;
}
nav {
  display: grid;
  gap: 6px;
}
.nav-button,
.ghost-button {
  width: 100%;
  min-height: 40px;
  border: 0;
  color: inherit;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 10px;
  border-radius: 7px;
  padding: 9px 10px;
  cursor: pointer;
  text-align: left;
}
.nav-button.active,
.nav-button:hover,
.ghost-button:hover {
  background: #1e4658;
}
.ghost-button {
  margin-top: auto;
}
.content {
  padding: 28px;
  min-width: 0;
}
.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 20px;
}
h1,
h2,
p {
  margin-top: 0;
}
h1 {
  margin-bottom: 4px;
  font-size: 28px;
}
h2 {
  font-size: 18px;
  margin-bottom: 14px;
}
.topbar p {
  color: #596675;
  margin-bottom: 0;
}
.user-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 7px;
  padding: 8px 10px;
}
.stack {
  display: grid;
  gap: 16px;
}
.panel,
.metric,
.login-box {
  background: #ffffff;
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 39, 51, 0.06);
  padding: 18px;
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
}
.metric span {
  color: #596675;
  display: block;
  margin-bottom: 10px;
}
.metric strong {
  font-size: 29px;
}
.status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 8px;
}
.status-row,
.list-item {
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}
.toolbar {
  display: flex;
  gap: 10px;
}
input,
textarea,
select {
  width: 100%;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  padding: 10px 11px;
  background: #ffffff;
  color: #17202a;
}
textarea {
  min-height: 84px;
  resize: vertical;
}
input:focus,
textarea:focus,
select:focus {
  border-color: #1f6f8b;
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.12);
  outline: none;
}
.primary-button {
  border: 0;
  min-height: 40px;
  border-radius: 7px;
  padding: 0 16px;
  background: #1f6f8b;
  color: #ffffff;
  font-weight: 700;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}
table {
  width: 100%;
  border-collapse: collapse;
}
th,
td {
  text-align: left;
  border-bottom: 1px solid #e1e7ec;
  padding: 10px;
  vertical-align: top;
}
th {
  color: #49606f;
  font-size: 13px;
}
td select {
  min-width: 150px;
}
.proxy-select-checkbox {
  appearance: none;
  background: #ffffff;
  border: 2px solid #8da3b3;
  border-radius: 4px;
  cursor: pointer;
  display: inline-grid;
  height: 18px;
  margin: 0;
  min-width: 18px;
  padding: 0;
  place-content: center;
  vertical-align: middle;
  width: 18px;
}
.proxy-select-checkbox::after {
  border: solid #ffffff;
  border-width: 0 2px 2px 0;
  content: "";
  display: none;
  height: 8px;
  transform: rotate(45deg) translate(-1px, -1px);
  width: 4px;
}
.proxy-select-checkbox:checked {
  background: #1f6f8b;
  border-color: #1f6f8b;
}
.proxy-select-checkbox:checked::after {
  display: block;
}
.proxy-select-checkbox:focus {
  box-shadow: 0 0 0 3px rgba(31, 111, 139, 0.16);
  outline: none;
}
.table-number {
  max-width: 86px;
}
.table-toggle {
  align-items: center;
  display: inline-flex;
  gap: 7px;
  white-space: nowrap;
}
.table-toggle input {
  width: auto;
}
.table-subtext {
  color: #596675;
  display: block;
  font-size: 12px;
  margin-top: 4px;
  max-width: 360px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.proxy-status {
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}
.proxy-status-active {
  background: #e6f6ec;
  color: #24724c;
}
.proxy-status-suspect {
  background: #fff7df;
  color: #8a5a00;
}
.proxy-status-banned,
.proxy-status-disabled {
  background: #fff1f1;
  color: #9f2f2f;
}
.proxy-ban-details {
  margin-top: 6px;
  max-width: 300px;
}
.proxy-ban-details summary {
  color: #2d6f89;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
}
.proxy-ban-list {
  display: grid;
  gap: 6px;
  margin-top: 6px;
}
.proxy-ban-event {
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 7px;
  display: grid;
  gap: 2px;
  padding: 7px;
}
.proxy-ban-event-header {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.proxy-evidence-link {
  border: 1px solid #c8d8e5;
  border-radius: 6px;
  color: #2d6f89;
  font-size: 12px;
  font-weight: 800;
  padding: 3px 6px;
  text-decoration: none;
  white-space: nowrap;
}
.proxy-evidence-link:hover {
  background: #eef7fb;
}
.proxy-ban-event span {
  color: #596675;
  font-size: 12px;
}
.settings-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}
.settings-grid label,
.toggle-grid label {
  color: #49606f;
  display: grid;
  gap: 7px;
  font-weight: 700;
}
.toggle-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}
.toggle-grid label {
  align-items: center;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  color: #17202a;
  display: flex;
  gap: 9px;
  min-height: 42px;
  padding: 9px 11px;
}
.toggle-grid input {
  width: auto;
}
.success-text {
  color: #24724c;
  font-weight: 700;
}
.prompt-form {
  display: grid;
  gap: 10px;
}
.section-heading,
.item-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.section-heading h2 {
  margin-bottom: 0;
}
.section-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}
.item-actions {
  justify-content: flex-end;
  flex-wrap: wrap;
}
.icon-button,
.secondary-button {
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  min-height: 34px;
  background: #ffffff;
  color: #17202a;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.icon-button {
  width: 34px;
  padding: 0;
}
.secondary-button {
  padding: 0 10px;
}
.danger-button {
  border-color: #e3b7b7;
  color: #9f2f2f;
}
.danger-button:hover:not(:disabled) {
  background: #fff1f1;
}
.danger-button:disabled {
  cursor: wait;
  opacity: 0.6;
}
.error-text {
  color: #a83232;
  font-size: 13px;
  font-weight: 700;
}
.list {
  display: grid;
  gap: 8px;
}
.list-item > div:first-child {
  min-width: 0;
}
.list-item span {
  color: #596675;
  display: block;
  margin-top: 3px;
}
.contact-flow {
  display: grid;
  gap: 16px;
}
.flow-hero {
  align-items: center;
  background: #12303d;
  border-radius: 8px;
  color: #ffffff;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
}
.flow-hero h2 {
  font-size: 24px;
  margin-bottom: 6px;
}
.flow-hero p {
  color: #c7dce4;
  margin-bottom: 0;
}
.eyebrow {
  color: #8fd0e3;
  display: block;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 7px;
  text-transform: uppercase;
}
.flow-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.flow-card {
  display: grid;
  gap: 12px;
}
.flow-card-wide {
  grid-column: 1 / -1;
}
.flow-card .section-heading p {
  color: #596675;
  margin: 4px 0 0;
}
.large-textarea {
  min-height: 380px;
  line-height: 1.45;
}
.compact-textarea {
  min-height: 220px;
}
.leads-workspace {
  align-items: start;
  display: grid;
  gap: 20px;
  grid-template-columns: minmax(680px, 1fr) minmax(420px, 520px);
  max-width: 100%;
}
.leads-panel,
.lead-detail-panel {
  min-width: 0;
}
.lead-detail-panel {
  position: sticky;
  top: 24px;
}
.leads-heading p,
.empty-detail p,
.lead-detail .section-heading p {
  color: #596675;
  margin: 4px 0 0;
}
.channel-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}
.channel-tab {
  background: #ffffff;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  color: #17202a;
  cursor: pointer;
  font-weight: 800;
  min-height: 36px;
  padding: 0 12px;
}
.channel-tab.active {
  background: #1f6f8b;
  border-color: #1f6f8b;
  color: #ffffff;
}
.lead-search {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr auto;
  margin-bottom: 12px;
}
.lead-search label {
  align-items: center;
  border: 1px solid #cfd9e2;
  border-radius: 7px;
  display: flex;
  gap: 8px;
  padding-left: 11px;
}
.lead-search input {
  border: 0;
  box-shadow: none;
}
.lead-row {
  cursor: pointer;
}
.lead-row:hover,
.lead-row.selected {
  background: #f0f7fa;
}
.leads-table-wrap {
  max-width: 100%;
  overflow-x: auto;
}
.leads-table {
  min-width: 1060px;
  table-layout: fixed;
}
.leads-table th:nth-child(1),
.leads-table td:nth-child(1) {
  width: 260px;
}
.leads-table th:nth-child(2),
.leads-table td:nth-child(2) {
  width: 90px;
}
.leads-table th:nth-child(3),
.leads-table td:nth-child(3) {
  width: 150px;
}
.leads-table th:nth-child(4),
.leads-table td:nth-child(4) {
  width: 160px;
}
.leads-table th:nth-child(5),
.leads-table td:nth-child(5) {
  width: 280px;
}
.leads-table th:nth-child(6),
.leads-table td:nth-child(6) {
  width: 140px;
}
.leads-table th:nth-child(7),
.leads-table td:nth-child(7) {
  width: 80px;
}
.lead-status {
  background: #eef5f8;
  border-radius: 999px;
  color: #28586a;
  display: inline-flex;
  font-size: 12px;
  font-weight: 800;
  padding: 5px 9px;
}
.lead-message-preview {
  max-width: 260px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.lead-open-link {
  min-height: 30px;
  text-decoration: none;
}
.lead-detail {
  display: grid;
  gap: 14px;
}
.lead-meta-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.lead-meta {
  background: #f7fafc;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  display: grid;
  gap: 3px;
  padding: 9px;
}
.lead-meta span {
  color: #596675;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.lead-meta strong {
  overflow-wrap: anywhere;
}
.conversation-card {
  border: 1px solid #dbe3ea;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 12px;
}
.conversation-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 12px;
}
.conversation-header span {
  color: #596675;
  display: block;
  font-size: 12px;
  margin-top: 3px;
  max-width: 300px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.transcript {
  background: #f8fbfc;
  border: 1px solid #e1e7ec;
  border-radius: 8px;
  display: grid;
  gap: 8px;
  max-height: 560px;
  overflow: auto;
  padding: 10px;
}
.chat-message {
  border-radius: 8px;
  display: grid;
  gap: 3px;
  max-width: 86%;
  padding: 9px 10px;
}
.chat-message span,
.chat-message time {
  font-size: 12px;
  font-weight: 800;
}
.chat-message time {
  opacity: 0.7;
}
.chat-message p {
  margin: 0;
  overflow-wrap: anywhere;
}
.chat-message.incoming {
  background: #ffffff;
  border: 1px solid #dce6ee;
  justify-self: start;
}
.chat-message.incoming span {
  color: #9f2f2f;
}
.chat-message.outgoing {
  background: #e4f4f8;
  border: 1px solid #c5e3ec;
  justify-self: end;
}
.chat-message.outgoing span {
  color: #1f6f8b;
}
.decision-details summary {
  color: #2d6f89;
  cursor: pointer;
  font-weight: 800;
}
.decision-list {
  display: grid;
  gap: 7px;
  margin-top: 8px;
}
.decision-item {
  background: #f7fafc;
  border: 1px solid #dce6ee;
  border-radius: 7px;
  padding: 8px;
}
.decision-item p {
  margin: 4px 0;
  overflow-wrap: anywhere;
}
.decision-item span {
  color: #596675;
  font-size: 12px;
}
@media (max-width: 1200px) {
  .leads-workspace {
    grid-template-columns: 1fr;
  }
  .lead-detail-panel {
    position: static;
  }
}
.preview-box {
  background: #f3f8fa;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  display: grid;
  gap: 5px;
  padding: 12px;
}
.preview-box span {
  color: #596675;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}
.preview-box strong {
  color: #17202a;
  font-weight: 700;
}
.settings-strip {
  align-items: end;
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 240px)) 1fr;
  gap: 14px;
}
.settings-strip label {
  color: #33424f;
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.status-pill {
  justify-self: end;
  border: 1px solid #cfe0e7;
  border-radius: 999px;
  color: #1f6f8b;
  font-weight: 800;
  padding: 9px 13px;
}
.provider-account-form {
  grid-template-columns: minmax(180px, 280px) 1fr auto;
}
.provider-account-grid {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}
.provider-account-card {
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  padding: 14px;
}
.provider-account-card-header {
  align-items: start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.provider-account-card-header > div {
  display: grid;
  gap: 4px;
}
.provider-account-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}
.provider-account-warning {
  background: #fff1f1;
  border-radius: 6px;
  color: #9f2f2f;
  font-size: 12px;
  margin: 0;
  padding: 8px 10px;
}
.provider-account-metric {
  background: #f3f8fa;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  display: grid;
  gap: 3px;
  padding: 10px;
}
.provider-account-metric span,
.provider-account-metric small {
  color: #596675;
  font-size: 12px;
}
.provider-account-metric strong {
  color: #17202a;
  font-size: 14px;
}
.proxy-bulk-jobs {
  background: #f7fafc;
  border: 1px solid #dbe8ee;
  border-radius: 8px;
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
  padding: 14px;
}
.proxy-bulk-jobs-header,
.proxy-job-line,
.proxy-job-detail summary {
  align-items: center;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}
.proxy-bulk-jobs-header h3,
.proxy-bulk-jobs-header p {
  margin: 0;
}
.proxy-bulk-jobs-header p {
  color: #596675;
  font-size: 13px;
}
.proxy-job-active {
  display: grid;
  gap: 8px;
}
.proxy-job-line {
  flex-wrap: wrap;
  justify-content: flex-start;
}
.proxy-job-line span,
.proxy-job-detail summary span,
.proxy-job-items span {
  color: #49606f;
  font-size: 13px;
}
.proxy-job-progress {
  background: #dce8ee;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}
.proxy-job-progress span {
  background: #1f6f8b;
  display: block;
  height: 100%;
  transition: width 160ms ease;
}
.proxy-job-list {
  display: grid;
  gap: 8px;
}
.proxy-job-detail {
  background: #ffffff;
  border: 1px solid #e1e7ec;
  border-radius: 7px;
  padding: 10px;
}
.proxy-job-detail summary {
  cursor: pointer;
  justify-content: flex-start;
}
.proxy-job-items {
  display: grid;
  gap: 6px;
  margin-top: 10px;
}
.proxy-job-item {
  align-items: center;
  border-left: 3px solid #cfd9e2;
  display: grid;
  gap: 8px;
  grid-template-columns: minmax(160px, 1fr) 90px minmax(180px, 2fr);
  padding: 6px 8px;
}
.proxy-job-item-replaced {
  border-left-color: #2b9f62;
}
.proxy-job-item-failed {
  border-left-color: #c63d3d;
}
.proxy-job-item-skipped {
  border-left-color: #b9871c;
}
.login-page {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 20px;
}
.login-box {
  width: min(420px, 100%);
  display: grid;
  gap: 13px;
}
.login-box label {
  display: grid;
  gap: 6px;
  color: #33424f;
}
.error {
  color: #a83232;
  margin-bottom: 0;
}
.ops-dashboard {
  color: #173042;
  display: grid;
  gap: 16px;
}
.ops-hero,
.custom-range,
.ops-grid,
.ops-two-column {
  display: grid;
  gap: 12px;
}
.ops-hero {
  align-items: center;
  grid-template-columns: minmax(0, 1fr) auto;
}
.ops-hero h2,
.ops-card h3 {
  margin-bottom: 4px;
}
.ops-hero p,
.ops-card p,
.ops-metric small,
.event-row small,
.log-list small,
.artifact-grid small,
.fleet-row span {
  color: #52687a;
}
.range-toolbar {
  background: #ffffff;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  display: inline-flex;
  gap: 6px;
  padding: 5px;
}
.range-button {
  background: #eef4f7;
  border: 0;
  border-radius: 6px;
  color: #244055;
  cursor: pointer;
  font-weight: 700;
  min-height: 34px;
  padding: 0 12px;
}
.range-button.active {
  background: #0f766e;
  color: #ffffff;
}
.custom-range {
  grid-template-columns: repeat(2, minmax(180px, 240px));
}
.custom-range label {
  color: #334c60;
  display: grid;
  gap: 6px;
  font-weight: 700;
}
.alert-panel {
  background: #fff0f0;
  border: 1px solid #ffc7c7;
  border-radius: 8px;
  color: #9b1c1c;
  padding: 12px 14px;
}
.provider-outage-banner {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  background: #7f1d1d;
  color: #fff5f5;
  border: 1px solid #ef4444;
  border-radius: 10px;
  padding: 16px 20px;
  margin: 0 0 18px 0;
  box-shadow: 0 6px 18px rgba(127, 29, 29, 0.25);
}
.provider-outage-banner-icon {
  flex: 0 0 32px;
  height: 32px;
  border-radius: 50%;
  background: #fff5f5;
  color: #7f1d1d;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 800;
  font-size: 18px;
  line-height: 1;
}
.provider-outage-banner-body {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}
.provider-outage-banner-title {
  font-size: 15px;
  letter-spacing: 0.01em;
}
.provider-outage-banner-detail {
  margin: 0;
  font-size: 13px;
  color: #fde2e2;
  line-height: 1.5;
}
.provider-outage-banner-detail code {
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    monospace;
  background: rgba(255, 245, 245, 0.12);
  color: #fff5f5;
  padding: 1px 6px;
  border-radius: 4px;
  font-size: 12px;
}
.provider-outage-banner-link {
  margin-left: 8px;
  color: #ffe5e5;
  font-weight: 600;
  text-decoration: underline;
}
.provider-outage-banner-link:hover {
  color: #ffffff;
}
.ops-grid {
  grid-template-columns: repeat(5, minmax(150px, 1fr));
}
.performance-card {
  grid-column: span 2;
}
.proxy-provider-panel {
  grid-column: span 3;
}
.ops-two-column {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.ops-two-column.lower {
  align-items: stretch;
}
.ops-card,
.ops-metric {
  background: #ffffff;
  border: 1px solid #d8e2ea;
  border-radius: 8px;
  box-shadow: 0 10px 28px rgba(16, 39, 51, 0.06);
  padding: 14px;
}
.ops-metric {
  display: grid;
  gap: 7px;
  min-height: 120px;
}
.ops-metric span {
  color: #52687a;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
.ops-metric strong {
  color: #173042;
  font-size: 31px;
  line-height: 1;
}
.ops-metric.tone-teal strong {
  color: #0f766e;
}
.ops-metric.tone-red strong {
  color: #c23616;
}
.ops-metric.tone-blue strong {
  color: #214ed3;
}
.ops-metric.tone-violet strong {
  color: #6f3ff5;
}
.ops-metric.tone-amber strong {
  color: #a16207;
}
.card-heading {
  align-items: flex-start;
  border-bottom: 1px solid #e5edf2;
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 10px;
}
.card-heading h3 {
  font-size: 17px;
}
.card-heading p {
  font-size: 13px;
  margin-bottom: 0;
}
.muted-pill {
  background: #eef4f7;
  border-radius: 999px;
  color: #52687a;
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}
.bar-chart {
  align-items: end;
  display: grid;
  gap: 7px;
  grid-template-columns: repeat(auto-fit, minmax(22px, 1fr));
  min-height: 120px;
}
.bar-column {
  align-items: center;
  display: grid;
  gap: 6px;
  min-width: 0;
}
.bar-column small {
  color: #607486;
  font-size: 11px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  width: 100%;
}
.stacked-bar {
  align-items: end;
  display: flex;
  gap: 2px;
  height: 82px;
  justify-content: center;
  width: 100%;
}
.bar {
  border-radius: 4px 4px 0 0;
  display: block;
  min-height: 2px;
  width: 8px;
}
.bar.conversations,
.legend-conversations {
  background: #8bcfc7;
}
.bar.sent,
.legend-sent {
  background: #1b8278;
}
.bar.added,
.legend-added {
  background: #6f3ff5;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 10px;
}
.chart-legend span {
  align-items: center;
  color: #435a6d;
  display: inline-flex;
  font-size: 12px;
  gap: 6px;
}
.chart-legend i {
  border-radius: 3px;
  display: inline-block;
  height: 10px;
  width: 10px;
}
.fleet-list,
.event-list,
.log-list {
  display: grid;
  gap: 8px;
}
.fleet-row {
  align-items: center;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(180px, 1fr) 110px 100px 80px;
  padding: 10px;
}
.launcher-row {
  grid-template-columns: minmax(220px, 1.2fr) minmax(160px, 1fr) 90px 110px;
}
.fleet-row div {
  display: grid;
  gap: 2px;
  min-width: 0;
}
.fleet-row strong,
.fleet-row span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.fleet-row b {
  border-radius: 999px;
  font-size: 12px;
  justify-self: end;
  padding: 4px 8px;
}
.fleet-actions {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: flex-end;
}
.fleet-actions a {
  background: #eef8f6;
  border: 1px solid #ccebe6;
  border-radius: 999px;
  color: #0f766e;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
  text-decoration: none;
}
.provider-summary-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.provider-summary-card {
  background: #f7fbfd;
  border: 1px solid #dce8ef;
  border-radius: 8px;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 12px;
}
.provider-summary-card div {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.provider-summary-card strong {
  color: #173042;
  font-size: 16px;
}
.provider-summary-card span,
.provider-summary-card small {
  color: #52687a;
}
.provider-summary-card b {
  color: #0f766e;
  font-size: 24px;
}
.browser-worker-list {
  margin-bottom: 12px;
}
.fleet-row.status-online b {
  background: #e5f7f2;
  color: #0f766e;
}
.fleet-row.status-stale b {
  background: #fff4dd;
  color: #9b6200;
}
.fleet-row.status-offline b {
  background: #ffe8e8;
  color: #a52a2a;
}
.launcher-panel-link {
  background: #0f766e;
  border-radius: 6px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
  text-decoration: none;
  text-transform: uppercase;
}
.launcher-panel-link:hover {
  background: #115e59;
}
.ban-score-row {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}
.incident-row,
.omegle-report-row,
.mode-breakdown {
  display: grid;
  gap: 8px;
}
.incident-row,
.omegle-report-row {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 10px;
}
.omegle-report-row {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
.incident-row div,
.omegle-report-row div,
.mode-breakdown span {
  background: #f6f9fb;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 9px;
}
.incident-row span,
.omegle-report-row span,
.mode-breakdown span {
  color: #52687a;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}
.incident-row strong,
.omegle-report-row strong,
.mode-breakdown strong {
  color: #173042;
  font-size: 20px;
}
.mode-breakdown {
  grid-template-columns: repeat(auto-fit, minmax(110px, 1fr));
  margin-bottom: 10px;
}
.ban-score-row .ops-metric {
  min-height: 96px;
  padding: 12px;
}
.event-row {
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  display: grid;
  gap: 4px;
  padding: 10px;
}
.event-context-line {
  color: #0f766e;
  font-weight: 700;
}
.event-chat-context {
  background: #f6f9fb;
  border: 1px solid #e1e8ee;
  border-radius: 6px;
  color: #173042;
  display: grid;
  font-family:
    ui-monospace,
    SFMono-Regular,
    Menlo,
    Monaco,
    Consolas,
    "Liberation Mono",
    monospace;
  font-size: 12px;
  gap: 2px;
  line-height: 1.35;
  max-height: 180px;
  overflow: auto;
  padding: 8px;
}
.event-chat-context span {
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
.event-row a,
.log-list a,
.artifact-grid a {
  color: #0b6f8f;
  font-weight: 700;
  text-decoration: none;
}
.event-row a:hover,
.log-list a:hover,
.artifact-grid a:hover {
  text-decoration: underline;
}
.log-list a,
.artifact-grid a {
  background: #f6f9fb;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  color: #173042;
  display: grid;
  gap: 4px;
  padding: 10px;
}
.log-list a span,
.artifact-grid a span {
  color: #52687a;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.artifact-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}
.lead-status-grid {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
}
.lead-status-grid div {
  background: #f6f9fb;
  border: 1px solid #e1e8ee;
  border-radius: 7px;
  display: grid;
  gap: 6px;
  padding: 10px;
}
.lead-status-grid span {
  color: #52687a;
  font-size: 12px;
  font-weight: 800;
}
.lead-status-grid strong {
  font-size: 24px;
}
.empty-state {
  background: #f6f9fb;
  border: 1px dashed #cfd9e2;
  border-radius: 7px;
  color: #52687a;
  padding: 14px;
}
@media (max-width: 1380px) {
  .ops-grid {
    grid-template-columns: repeat(3, minmax(180px, 1fr));
  }
  .performance-card {
    grid-column: span 3;
  }
}
@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 210px 1fr;
  }
  .content {
    padding: 20px;
  }
  .ops-grid,
  .ops-two-column {
    grid-template-columns: 1fr;
  }
  .performance-card {
    grid-column: auto;
  }
  .proxy-provider-panel {
    grid-column: auto;
  }
  .fleet-row {
    grid-template-columns: minmax(160px, 1fr) 90px 86px 74px;
  }
}
@media (max-width: 960px) {
  .ops-hero {
    grid-template-columns: 1fr;
  }
  .range-toolbar {
    justify-self: stretch;
    width: 100%;
  }
  .range-button {
    flex: 1;
  }
}
@media (max-width: 820px) {
  .app-shell {
    grid-template-columns: 1fr;
  }
  .sidebar {
    position: static;
  }
  .metric-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .topbar {
    align-items: flex-start;
    flex-direction: column;
  }
  .flow-hero,
  .settings-strip,
  .provider-account-form,
  .provider-account-metrics {
    align-items: stretch;
    grid-template-columns: 1fr;
  }
  .flow-hero {
    flex-direction: column;
  }
  .flow-grid {
    grid-template-columns: 1fr;
  }
  .status-pill {
    justify-self: start;
  }
  .ops-hero,
  .ops-grid,
  .ops-two-column,
  .custom-range,
  .fleet-row {
    grid-template-columns: 1fr;
  }
  .range-toolbar {
    width: 100%;
  }
  .range-button {
    flex: 1;
  }
  .fleet-row b {
    justify-self: start;
  }
  .fleet-actions {
    justify-content: flex-start;
  }
  .ban-score-row,
  .incident-row,
  .omegle-report-row,
  .artifact-grid,
  .provider-summary-grid {
    grid-template-columns: 1fr;
  }
}
.field {
  display: grid;
  gap: 6px;
}
.field > span {
  color: #17202a;
  font-size: 13px;
  font-weight: 600;
}
.field > span em {
  color: #596675;
  font-style: normal;
  font-weight: 400;
}
.field-warning {
  color: #9f2f2f;
  font-weight: 600;
}
.copy-id {
  align-items: center;
  background: transparent;
  border: 1px solid transparent;
  border-radius: 6px;
  color: #596675;
  cursor: pointer;
  display: inline-flex;
  font-size: 12px;
  gap: 8px;
  margin: 0;
  max-width: 100%;
  padding: 3px 7px;
  text-align: left;
}
.copy-id > span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.copy-id > em {
  color: #2d6f89;
  font-style: normal;
  font-weight: 700;
  opacity: 0;
  flex-shrink: 0;
}
.copy-id:hover {
  background: #f3f8fa;
  border-color: #dbe8ee;
}
.copy-id:hover > em,
.copy-id.copied > em {
  opacity: 1;
}
.copy-id.copied {
  background: #e6f6ec;
  border-color: #b7e0c6;
}
.copy-id.copied > em {
  color: #24724c;
}
.lead-preset-filter {
  display: grid;
  gap: 6px;
}
.lead-preset-filter > span {
  color: #49606f;
  font-size: 13px;
  font-weight: 600;
}
