/* FirstCall UI mocks — scoped mirror of real app.css at marketing scale */
.fc-wrap {
  --fc-bg: #f5f5f7;
  --fc-surface: rgba(255, 255, 255, 0.88);
  --fc-surface-solid: #ffffff;
  --fc-border: rgba(0, 0, 0, 0.06);
  --fc-text: #1d1d1f;
  --fc-muted: #6e6e73;
  --fc-accent: #0071e3;
  --fc-green: #16a34a;
  --fc-red: #dc2626;
  --fc-radius-xl: 14px;
  --fc-radius-lg: 10px;
  --fc-radius-md: 7px;
  --fc-shadow: 0 10px 28px rgba(0, 0, 0, 0.08);
  --fc-mono: "SF Mono", "Cascadia Mono", Consolas, monospace;
  --fc-fs: 9px;
  --fc-fs-xs: 7px;
  --fc-fs-sm: 8px;
  --fc-fs-lg: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "SF Pro Display", "Segoe UI", sans-serif;
  font-size: var(--fc-fs);
  line-height: 1.4;
  color: var(--fc-text);
  background: var(--fc-bg);
  min-height: 220px;
}
.fc-wrap.fc-tall { min-height: 320px; }
.fc-wrap.fc-compact { min-height: 200px; font-size: 8px; }

/* Blur sensitive data — works inside and outside .fc-wrap */
.fc-blur,
.fc-wrap .fc-blur {
  filter: blur(4px);
  user-select: none;
  pointer-events: none;
}

.fc-wrap .fc-glass {
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  box-shadow: var(--fc-shadow);
}

/* Header */
.fc-wrap .fc-hero {
  padding: 5px 8px 3px;
  border-radius: var(--fc-radius-xl);
  margin: 6px 6px 0;
}
.fc-wrap .fc-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
}
.fc-wrap .fc-hero-row-main {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 6px;
}
.fc-wrap .fc-brand-line {
  display: flex;
  align-items: center;
  gap: 5px;
  min-width: 0;
}
.fc-wrap .fc-brand-mark {
  width: 18px;
  height: 18px;
  border-radius: 5px;
  object-fit: contain;
  flex-shrink: 0;
}
.fc-wrap.fc-compact .fc-brand-mark { width: 14px; height: 14px; }
.fc-wrap .fc-title {
  margin: 0;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: -0.02em;
  line-height: 1.1;
}
.fc-wrap.fc-compact .fc-title { font-size: 9px; }
.fc-wrap .fc-version {
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  color: var(--fc-accent);
  background: rgba(0, 113, 227, 0.1);
  padding: 1px 5px;
  border-radius: 999px;
  white-space: nowrap;
}
.fc-wrap .fc-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 3px;
}
.fc-wrap .fc-btn {
  appearance: none;
  border: 1px solid var(--fc-border);
  border-radius: 999px;
  padding: 2px 6px;
  font: inherit;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  cursor: default;
  background: rgba(255, 255, 255, 0.72);
  color: var(--fc-text);
  white-space: nowrap;
}
.fc-wrap .fc-btn.primary {
  background: var(--fc-accent);
  border-color: var(--fc-accent);
  color: #fff;
}
.fc-wrap .fc-btn.running {
  background: var(--fc-red);
  border-color: var(--fc-red);
  color: #fff;
}
.fc-wrap .fc-btn.stop-active {
  background: var(--fc-green);
  border-color: var(--fc-green);
  color: #fff;
}
.fc-wrap .fc-btn:disabled { opacity: 0.45; }
.fc-wrap .fc-status {
  padding: 2px 7px;
  border-radius: 999px;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  white-space: nowrap;
  justify-self: end;
}
.fc-wrap .fc-status.idle { background: rgba(142, 142, 147, 0.12); color: var(--fc-muted); }
.fc-wrap .fc-status.active { background: rgba(0, 113, 227, 0.12); color: var(--fc-accent); }
.fc-wrap .fc-status.success { background: rgba(52, 199, 89, 0.14); color: #248a3d; }

.fc-wrap .fc-hero-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  font-size: var(--fc-fs-xs);
  line-height: 1.2;
  margin-top: 2px;
}
.fc-wrap .fc-hero-footer-left {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}
.fc-wrap .fc-subtitle { color: var(--fc-muted); white-space: nowrap; }
.fc-wrap .fc-sep { color: var(--fc-muted); }
.fc-wrap .fc-license-banner.active { color: #248a3d; font-weight: 700; }
.fc-wrap .fc-license-banner.inactive { color: #c41e16; font-weight: 700; }
.fc-wrap .fc-save-hint {
  margin: 0;
  color: var(--fc-muted);
  font-size: var(--fc-fs-xs);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 0;
  text-align: right;
}

/* Workspace layout */
.fc-wrap .fc-workspace {
  display: flex;
  flex-direction: row;
  gap: 0;
  padding: 4px 6px 6px;
  min-height: 0;
}
.fc-wrap .fc-main-col {
  flex: 1 1 58%;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.fc-wrap .fc-queue-col {
  flex: 0 0 42%;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.fc-wrap .fc-splitter {
  flex: 0 0 4px;
  background: rgba(0, 0, 0, 0.05);
  margin: 0 2px;
  border-radius: 999px;
  align-self: stretch;
}

.fc-wrap .fc-card {
  padding: 6px 8px;
  background: var(--fc-surface);
  border: 1px solid var(--fc-border);
  border-radius: var(--fc-radius-xl);
  box-shadow: var(--fc-shadow);
}
.fc-wrap .fc-card h2 {
  margin: 0 0 4px;
  font-size: var(--fc-fs-lg);
  font-weight: 600;
}
.fc-wrap .fc-card h3 {
  margin: 0 0 3px;
  font-size: var(--fc-fs-sm);
  font-weight: 600;
  color: var(--fc-muted);
}

.fc-wrap .fc-launch-row {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 6px 8px;
}
.fc-wrap .fc-field {
  display: grid;
  gap: 2px;
}
.fc-wrap .fc-field-label {
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  color: var(--fc-muted);
}
.fc-wrap .fc-input,
.fc-wrap .fc-textarea {
  width: 100%;
  border: 1px solid rgba(0, 0, 0, 0.08);
  border-radius: var(--fc-radius-md);
  background: var(--fc-surface-solid);
  color: var(--fc-text);
  font: inherit;
  font-size: var(--fc-fs-xs);
  padding: 3px 5px;
  outline: none;
}
.fc-wrap .fc-input.narrow { width: 48px; }
.fc-wrap .fc-input.editable {
  border-color: rgba(180, 83, 9, 0.22);
  background: #fffdf8;
}
.fc-wrap .fc-input.locked {
  background: #f8fafc;
  opacity: 0.92;
}
.fc-wrap .fc-textarea {
  font-family: var(--fc-mono);
  font-size: var(--fc-fs-xs);
  line-height: 1.4;
  resize: none;
  min-height: 36px;
}
.fc-wrap .fc-textarea.readonly { background: #fbfbfd; }
.fc-wrap .fc-hint {
  margin: 3px 0 0;
  font-size: var(--fc-fs-xs);
  color: var(--fc-muted);
  line-height: 1.3;
}
.fc-wrap .fc-editable-note {
  font-weight: 600;
  color: #b45309;
  font-style: normal;
}

.fc-wrap .fc-toggle {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  color: var(--fc-text);
}
.fc-wrap .fc-toggle input { width: 10px; height: 10px; margin: 0; }

/* Segmented tabs */
.fc-wrap .fc-tabs-card {
  flex: 1 1 auto;
  display: flex;
  flex-direction: column;
  min-height: 0;
  padding: 6px 8px 8px;
}
.fc-wrap .fc-segmented {
  display: flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 2px;
  border-radius: 999px;
  background: rgba(142, 142, 147, 0.12);
  margin-bottom: 5px;
}
.fc-wrap .fc-seg {
  border: none;
  background: transparent;
  color: var(--fc-muted);
  font: inherit;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
  padding: 3px 6px;
  border-radius: 999px;
  cursor: default;
  white-space: nowrap;
}
.fc-wrap .fc-seg.active {
  background: #fff;
  color: var(--fc-text);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.08);
}
.fc-wrap .fc-tab-body {
  background: #f5f5f7;
  border: 1px solid rgba(0, 0, 0, 0.06);
  border-radius: var(--fc-radius-lg);
  padding: 5px;
  flex: 1 1 auto;
  min-height: 60px;
  overflow: hidden;
}
.fc-wrap .fc-prompts-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
  height: 100%;
}
.fc-wrap .fc-speech-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fc-wrap .fc-sip-grid,
.fc-wrap .fc-nat-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 5px;
}
.fc-wrap .fc-span-2 { grid-column: 1 / -1; }
.fc-wrap .fc-push-cols {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 6px;
}
.fc-wrap .fc-license-block { margin-bottom: 6px; }
.fc-wrap .fc-license-row {
  display: flex;
  gap: 4px;
  align-items: center;
}
.fc-wrap .fc-license-row .fc-input { flex: 1; font-family: var(--fc-mono); letter-spacing: 0.03em; }

/* Queue table */
.fc-wrap .fc-queue-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 4px;
  margin-bottom: 4px;
}
.fc-wrap .fc-queue-head h2 { margin: 0; font-size: var(--fc-fs-lg); font-weight: 600; }
.fc-wrap .fc-wave-sel {
  display: flex;
  gap: 6px;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
}
.fc-wrap .fc-wave-sel label {
  display: inline-flex;
  align-items: center;
  gap: 3px;
}
.fc-wrap .fc-wave-path {
  margin: 0 0 3px;
  font-size: 6.5px;
  color: var(--fc-muted);
  word-break: break-all;
  line-height: 1.3;
}
.fc-wrap .fc-table-wrap {
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  border-radius: var(--fc-radius-lg);
  border: 1px solid rgba(0, 0, 0, 0.05);
  background: #fbfbfd;
}
.fc-wrap .fc-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 6.5px;
  table-layout: fixed;
}
.fc-wrap .fc-table th,
.fc-wrap .fc-table td {
  padding: 2px 3px;
  border-bottom: 1px solid rgba(0, 0, 0, 0.06);
  text-align: left;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}
.fc-wrap .fc-table th {
  background: #f0f0f5;
  font-weight: 600;
  color: var(--fc-muted);
  position: sticky;
  top: 0;
}
.fc-wrap .fc-table tr.active td { background: rgba(0, 113, 227, 0.08); }
.fc-wrap .fc-table .tone-pos { background: #c6efce; }
.fc-wrap .fc-table .tone-neu { background: #ffeb9c; }
.fc-wrap .fc-table .tone-neg { background: #ffc7ce; }
.fc-wrap .fc-table .tone-bot { background: #bdd7ee; }
.fc-wrap .fc-table .tone-empty { background: transparent; }
.fc-wrap .fc-st-warn { color: #b25000; font-weight: 600; }
.fc-wrap .fc-st-ok { color: #248a3d; font-weight: 600; }
.fc-wrap .fc-st-bad { color: #c41e16; }

.fc-wrap .fc-progress {
  margin-top: 5px;
  flex: 0 0 auto;
}
.fc-wrap .fc-progress-meta {
  display: flex;
  justify-content: space-between;
  margin-bottom: 3px;
  font-size: var(--fc-fs-xs);
  font-weight: 600;
}
.fc-wrap .fc-progress-meta span:last-child { color: var(--fc-muted); font-weight: 600; }
.fc-wrap .fc-progress-track {
  height: 4px;
  border-radius: 999px;
  background: rgba(60, 60, 67, 0.14);
  overflow: hidden;
}
.fc-wrap .fc-progress-fill {
  height: 100%;
  border-radius: 999px;
  background: #34c759;
}

/* Logs */
.fc-wrap .fc-log {
  margin: 0;
  padding: 5px;
  border-radius: var(--fc-radius-lg);
  background: #fbfbfd;
  border: 1px solid rgba(0, 0, 0, 0.05);
  font-family: var(--fc-mono);
  font-size: 6.5px;
  line-height: 1.45;
  white-space: pre-wrap;
  word-break: break-word;
  max-height: 120px;
  overflow: hidden;
}

/* Tab-only mock (single panel) */
.fc-wrap.fc-tab-only { min-height: 180px; }
.fc-wrap.fc-tab-only .fc-tab-body { min-height: 130px; }

/* App footer */
.fc-wrap .fc-app-footer {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  padding: 4px 8px 6px;
  font-size: var(--fc-fs-xs);
  color: var(--fc-muted);
}
.fc-wrap .fc-app-footer a { color: var(--fc-accent); font-weight: 600; text-decoration: none; }

/* CRM table mock (standalone) */
.fc-wrap .fc-crm-table { font-size: var(--fc-fs-xs); }
.fc-wrap .fc-crm-table th,
.fc-wrap .fc-crm-table td { padding: 3px 5px; }
