/* Workflow Intelligence Dashboard — enterprise review workspace */

.wi-modal-root {
  z-index: 3200;
}

.wi-modal-backdrop {
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.wi-modal-panel {
  position: relative;
  display: flex;
  flex-direction: column;
  width: min(1600px, 94vw);
  max-width: 1600px;
  height: min(90vh, 920px);
  max-height: 90vh;
  margin: auto;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 12%);
  border-radius: 16px;
  box-shadow:
    0 24px 48px rgba(15, 23, 42, 0.18),
    0 0 0 1px rgba(148, 163, 184, 0.2);
  overflow: hidden;
}

/* Header — title, inline actions, tabs (Jira / Azure DevOps pattern) */
.wi-header {
  display: flex;
  flex-direction: column;
  background: #fff;
  border-bottom: 1px solid #e2e8f0;
  flex-shrink: 0;
}

.wi-header-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 10px 16px 0;
}

.wi-header-main {
  flex: 1;
  min-width: 0;
}

.wi-header-title {
  margin: 0 0 4px;
  font-family: 'IBM Plex Sans', 'Inter', system-ui, sans-serif;
  font-size: 1.2rem;
  font-weight: 700;
  line-height: 1.25;
  color: #0f172a;
}

.wi-header-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 4px 6px;
  font-size: 13px;
  color: #64748b;
  line-height: 1.4;
}

.wi-meta-item {
  display: inline;
  white-space: nowrap;
}

.wi-meta-sep {
  color: #cbd5e1;
  user-select: none;
}

.wi-header-toolbar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
  max-width: 100%;
}

.wi-header-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  max-width: min(100%, 720px);
}

.wi-header-close {
  flex-shrink: 0;
  width: var(--btn-height-sm);
  height: var(--btn-height-sm);
  min-width: var(--btn-height-sm);
  min-height: var(--btn-height-sm);
  border: none;
  border-radius: var(--btn-radius-sm);
  background: transparent;
  color: #64748b;
  font-size: var(--btn-font-size);
  cursor: pointer;
  transition: background 0.15s, color 0.15s;
}

.wi-header-close:hover {
  background: #f1f5f9;
  color: #0f172a;
}

/* Status badges */
.wi-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

.wi-status-badge--approved {
  background: linear-gradient(135deg, rgba(22, 163, 74, 0.14), rgba(22, 163, 74, 0.06));
  color: #15803d;
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.wi-status-badge--pending {
  background: linear-gradient(135deg, #fef3c7, #fffbeb);
  color: #b45309;
  border: 1px solid #fcd34d;
}

.wi-status-badge--rejected {
  background: linear-gradient(135deg, rgba(220, 38, 38, 0.12), rgba(220, 38, 38, 0.04));
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.35);
}

.wi-status-badge--clarification {
  background: linear-gradient(135deg, rgba(14, 122, 138, 0.14), rgba(14, 122, 138, 0.05));
  color: #0e7490;
  border: 1px solid rgba(14, 122, 138, 0.35);
}

.wi-status-badge--clarification-submitted {
  background: linear-gradient(135deg, rgba(79, 70, 229, 0.12), rgba(79, 70, 229, 0.04));
  color: #4338ca;
  border: 1px solid rgba(79, 70, 229, 0.3);
}

.wi-generating-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: #0369a1;
  background: #e0f2fe;
  padding: 2px 8px;
  border-radius: 999px;
}

/* Compact header buttons (13px) */
.wi-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-family: inherit;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  transition: background 0.12s, border-color 0.12s, box-shadow 0.12s;
  white-space: nowrap;
}

.wi-btn:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.wi-btn--compact {
  min-height: var(--btn-height-sm);
  height: var(--btn-height-sm);
  padding: 0 var(--btn-sm-pad-x);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius-sm);
  line-height: 1.2;
}

.wi-btn--approve {
  background: #16a34a;
  color: #fff;
  border-color: #15803d;
}

.wi-btn--approve:hover:not(:disabled) {
  background: #15803d;
}

.wi-btn--clarify {
  background: #fff;
  color: #0e7a8a;
  border-color: rgba(14, 122, 138, 0.45);
}

.wi-btn--clarify:hover:not(:disabled) {
  background: #e8f5f8;
  border-color: #0e7a8a;
}

.wi-btn--reject {
  background: #fff;
  color: #b91c1c;
  border: 1px solid #fecaca;
}

.wi-btn--reject:hover:not(:disabled) {
  background: #fef2f2;
  border-color: #f87171;
}

.wi-pending-clarification-bar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  margin: 0 16px 10px;
  padding: 10px 12px;
  background: #f0f9fa;
  border: 1px solid #cce8ec;
  border-radius: 10px;
}

.wi-pending-clarification-main {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.wi-pending-clarification-main > i {
  margin-top: 3px;
  color: #0e7a8a;
}

.wi-pending-clarification-text {
  display: flex;
  flex-direction: column;
  gap: 4px;
  min-width: 0;
}

.wi-pending-clarification-text strong {
  font-size: 12px;
  color: #0e7a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wi-pending-clarification-url {
  font-size: 13px;
  line-height: 1.4;
  color: #0e7490;
  word-break: break-all;
  text-decoration: underline;
}

.wi-pending-clarification-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.wi-awaiting-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff7ed;
  border: 1px solid #fed7aa;
  color: #c2410c;
  font-size: 12px;
  font-weight: 600;
  white-space: nowrap;
}

.wi-btn--menu {
  background: #fff;
  color: #334155;
  border-color: #d1d5db;
}

.wi-btn--menu:hover:not(:disabled) {
  background: #f9fafb;
  border-color: #9ca3af;
}

.wi-menu-chevron {
  font-size: 10px;
  opacity: 0.7;
  transition: transform 0.15s;
}

.wi-menu-chevron--open {
  transform: rotate(180deg);
}

/* Actions dropdown */
.wi-actions-menu {
  position: relative;
}

.wi-actions-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  right: 0;
  z-index: 50;
  min-width: 200px;
  margin: 0;
  padding: 4px;
  list-style: none;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  box-shadow:
    0 10px 24px rgba(15, 23, 42, 0.12),
    0 0 0 1px rgba(15, 23, 42, 0.04);
}

.wi-actions-dropdown-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 6px;
  background: transparent;
  font-family: inherit;
  font-size: 13px;
  font-weight: 500;
  color: #334155;
  text-align: left;
  cursor: pointer;
}

.wi-actions-dropdown-item:hover:not(:disabled) {
  background: #f1f5f9;
}

.wi-actions-dropdown-item:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.wi-actions-dropdown-item i {
  width: 16px;
  text-align: center;
  color: #64748b;
  font-size: 12px;
}

.wi-actions-dropdown-item--danger {
  color: #b91c1c;
}

.wi-actions-dropdown-item--danger:hover:not(:disabled) {
  background: #fef2f2;
}

.wi-actions-dropdown-item--danger i {
  color: #dc2626;
}

.wi-actions-dropdown-divider {
  height: 1px;
  margin: 4px 6px;
  background: #e2e8f0;
  list-style: none;
}

.wi-btn--ghost {
  background: #fff;
  color: #475569;
  border-color: #e2e8f0;
}

.wi-btn--ghost:hover:not(:disabled) {
  background: #f8fafc;
  border-color: #cbd5e1;
}

.wi-btn--sm {
  min-height: var(--btn-height-sm);
  height: var(--btn-height-sm);
  padding: 0 var(--btn-sm-pad-x);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
}

/* Tabs — flush under header */
.wi-header .wi-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  padding: 0 12px;
  margin: 0;
  border-top: none;
}

.wi-tab {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border: none;
  border-radius: 0;
  background: transparent;
  color: #64748b;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  transition: color 0.12s, border-color 0.12s;
}

.wi-tab:hover {
  color: #0f172a;
  background: #f8fafc;
}

.wi-tab--active {
  color: #0d9488;
  background: #f0fdfa;
  border-bottom-color: #0d9488;
}

.wi-tab i {
  font-size: 0.9rem;
  opacity: 0.85;
}

/* Body — maximize document area */
.wi-body {
  flex: 1;
  min-height: 0;
  overflow: auto;
  padding: 10px 16px 14px;
  -webkit-overflow-scrolling: touch;
  background: #f8fafc;
}

.wi-banner {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 10px 14px;
  border-radius: 8px;
  font-size: 0.85rem;
  margin-bottom: 12px;
}

.wi-banner--info {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.wi-empty-state {
  text-align: center;
  padding: 48px 24px;
  color: #94a3b8;
}

.wi-empty-state i {
  font-size: 2rem;
  margin-bottom: 12px;
  opacity: 0.6;
}

/* Transcript chat */
.wi-transcript-chat {
  display: flex;
  flex-direction: column;
  gap: 20px;
  max-width: 900px;
  margin: 0 auto;
}

.wi-chat-turn {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wi-chat-bubble {
  border-radius: 14px;
  padding: 14px 16px;
  box-shadow: 0 1px 4px rgba(15, 23, 42, 0.06);
  max-width: 100%;
}

.wi-chat-bubble-ai {
  background: #fff;
  border: 1px solid #e2e8f0;
  margin-right: 12%;
}

.wi-chat-bubble-candidate {
  background: linear-gradient(135deg, #f0fdfa, #ecfeff);
  border: 1px solid #99f6e4;
  margin-left: 8%;
}

.wi-chat-bubble-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 8px;
}

.wi-chat-avatar {
  width: 32px;
  height: 32px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 0.85rem;
}

.wi-chat-avatar-ai {
  background: #e0f2fe;
  color: #0369a1;
}

.wi-chat-avatar-candidate {
  background: #ccfbf1;
  color: #0f766e;
}

.wi-chat-role {
  display: block;
  font-size: 0.8rem;
  font-weight: 700;
  color: #0f172a;
}

.wi-chat-time {
  display: block;
  font-size: 0.72rem;
  color: #94a3b8;
}

.wi-chat-body {
  margin: 0;
  font-size: 0.92rem;
  line-height: 1.55;
  color: #334155;
  white-space: pre-wrap;
}

/* Workflow documentation collapsible */
.wi-doc-root-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #0f172a;
}

.wi-doc-sections {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wi-doc-section {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.wi-doc-section-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  border: none;
  background: #fff;
  cursor: pointer;
  text-align: left;
  font: inherit;
}

.wi-doc-section-toggle:hover {
  background: #f8fafc;
}

.wi-doc-section-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f0fdfa;
  color: #0d9488;
  flex-shrink: 0;
}

.wi-doc-section-title {
  flex: 1;
  font-weight: 600;
  color: #0f172a;
  font-size: 0.95rem;
}

.wi-doc-section-count {
  font-size: 0.75rem;
  font-weight: 600;
  color: #64748b;
  background: #f1f5f9;
  padding: 2px 8px;
  border-radius: 999px;
}

.wi-doc-section-chevron {
  color: #94a3b8;
  transition: transform 0.2s;
}

.wi-doc-section-chevron--open {
  transform: rotate(180deg);
}

.wi-doc-section-body {
  padding: 0 16px 16px 60px;
  border-top: 1px solid #f1f5f9;
}

.wi-doc-prose {
  margin: 12px 0 0;
  line-height: 1.6;
  color: #475569;
  white-space: pre-wrap;
}

.wi-doc-list,
.wi-doc-ordered-list {
  margin: 12px 0 0;
  padding-left: 1.25rem;
  color: #475569;
  line-height: 1.55;
}

.wi-doc-ordered-list li {
  margin-bottom: 6px;
}

/* Executive summary dashboard */
.wi-summary-dashboard-title {
  margin: 0 0 16px;
  font-size: 1.1rem;
  color: #0f172a;
}

.wi-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 16px;
}

.wi-summary-card {
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: 0 2px 8px rgba(15, 23, 42, 0.04);
}

.wi-summary-card--risk {
  border-color: #fecaca;
  background: linear-gradient(180deg, #fff, #fef2f2);
}

.wi-summary-card--success {
  border-color: #bbf7d0;
  background: linear-gradient(180deg, #fff, #f0fdf4);
}

.wi-summary-card--insight {
  border-color: #bae6fd;
  background: linear-gradient(180deg, #fff, #f0f9ff);
}

.wi-summary-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.wi-summary-card-header h4 {
  margin: 0;
  font-size: 0.92rem;
  font-weight: 700;
  color: #0f172a;
}

.wi-summary-card-icon {
  width: 32px;
  height: 32px;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 8px;
  background: #f1f5f9;
  color: #475569;
}

.wi-summary-card--risk .wi-summary-card-icon {
  background: #fee2e2;
  color: #b91c1c;
}

.wi-summary-card--success .wi-summary-card-icon {
  background: #dcfce7;
  color: #15803d;
}

.wi-summary-card--insight .wi-summary-card-icon {
  background: #e0f2fe;
  color: #0369a1;
}

.wi-summary-prose {
  margin: 0;
  line-height: 1.6;
  color: #475569;
  font-size: 0.9rem;
}

.wi-summary-list {
  margin: 0;
  padding-left: 1.2rem;
  color: #475569;
  font-size: 0.88rem;
  line-height: 1.55;
}

.wi-summary-list li {
  margin-bottom: 6px;
}

.wi-summary-muted {
  margin: 0;
  font-size: 0.85rem;
  color: #94a3b8;
  font-style: italic;
}

/* Process diagram embedded */
.process-diagram-panel--embedded {
  display: flex;
  flex-direction: column;
  min-height: min(52vh, 480px);
  height: 100%;
}

.process-diagram-panel--embedded .wi-diagram-viewport {
  flex: 1;
  min-height: min(62vh, 560px);
  overflow: auto;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 16px;
}

.wi-diagram-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.wi-diagram-mode-tabs {
  display: flex;
  gap: 4px;
  background: #f1f5f9;
  padding: 4px;
  border-radius: 10px;
}

.wi-diagram-mode-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: var(--btn-height-sm);
  padding: 0 var(--btn-sm-pad-x);
  border: none;
  border-radius: var(--btn-radius-sm);
  background: transparent;
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  color: #64748b;
  cursor: pointer;
}

.wi-diagram-mode-btn--active {
  background: #fff;
  color: #0d9488;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
}

.wi-diagram-tools {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
}

.wi-diagram-zoom-label {
  font-size: 0.8rem;
  font-weight: 600;
  color: #64748b;
  min-width: 40px;
  text-align: center;
}

.process-diagram-panel--embedded .process-diagram-canvas {
  min-width: min-content;
}

.process-diagram-stack {
  display: flex;
  flex-direction: column;
  gap: 28px;
}

.process-diagram-infographic-section {
  margin-top: 8px;
  padding-top: 24px;
  border-top: 1px solid #c0d8e0;
}

.process-diagram-infographic-heading {
  margin-bottom: 16px;
}

.process-diagram-section-title {
  margin: 0 0 6px;
  font-size: 1rem;
  font-weight: 700;
  color: #163a5f;
  display: flex;
  align-items: center;
  gap: 8px;
}

.process-diagram-section-lead {
  margin: 0;
  font-size: 13px;
}

.workflow-visualizations {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.workflow-visualizations-toolbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.workflow-visualizations-lead {
  margin: 0;
  font-size: 13px;
}

.workflow-visualization-slide {
  background: #fff;
  border: 1px solid #d7e3ea;
  border-radius: 12px;
  padding: 20px;
}

.workflow-visualization-title {
  margin: 0 0 16px;
  font-size: 1rem;
  font-weight: 700;
  color: #163a5f;
}

.workflow-visualization-svg-host svg {
  display: block;
  width: 100%;
  height: auto;
  max-width: 100%;
  border-radius: 8px;
}

.executive-infographic-panel {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.executive-infographic-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.executive-infographic-lead {
  margin: 0;
  flex: 1;
  min-width: 200px;
  font-size: 13px;
}

.workflow-infographic-wrap {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 12px;
  padding: 8px 4px 16px;
}

.workflow-infographic-image {
  display: block;
  width: 100%;
  max-width: 1100px;
  height: auto;
  border-radius: 16px;
  border: 1px solid #c0d8e0;
  box-shadow: 0 12px 32px rgba(18, 46, 74, 0.08);
  background: #fff;
}

.workflow-infographic-note {
  max-width: 720px;
  text-align: center;
  font-size: 13px;
  line-height: 1.5;
}

/* Executive infographic (readable HTML — replaces Imagen image) */
.exec-infographic {
  max-width: 1100px;
  margin: 0 auto;
  padding: 8px 4px 20px;
}

.exec-infographic-header {
  text-align: center;
  margin-bottom: 24px;
  padding: 20px 24px;
  border-radius: 16px;
  background: linear-gradient(135deg, #163a5f 0%, #0e7a8a 100%);
  color: #fff;
  box-shadow: 0 12px 32px rgba(18, 46, 74, 0.12);
}

.exec-infographic-kicker {
  margin: 0 0 6px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  opacity: 0.85;
}

.exec-infographic-title {
  margin: 0 0 10px;
  font-size: 1.35rem;
  font-weight: 700;
  line-height: 1.3;
}

.exec-infographic-summary {
  margin: 0;
  font-size: 14px;
  line-height: 1.6;
  opacity: 0.95;
  max-width: 820px;
  margin-inline: auto;
}

.exec-infographic-sequence {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: center;
  margin-bottom: 24px;
  padding: 14px;
  border-radius: 14px;
  background: #f0f9fb;
  border: 1px solid #c0d8e0;
}

.exec-infographic-seq-chip {
  display: inline-flex;
  flex-direction: column;
  gap: 2px;
  padding: 8px 12px;
  border-radius: 10px;
  background: #fff;
  border: 1px solid #c0d8e0;
  max-width: 200px;
}

.exec-infographic-seq-lane {
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: #0e7a8a;
}

.exec-infographic-seq-step {
  font-size: 12px;
  color: #163a5f;
  line-height: 1.35;
}

.exec-infographic-seq-arrow {
  color: #8ca5b2;
  font-weight: 700;
  font-size: 14px;
}

.exec-infographic-lanes {
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.exec-infographic-lane {
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #c0d8e0;
  background: #fbfeff;
}

.exec-infographic-lane-head {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 18px;
  background: linear-gradient(135deg, #163a5f, #2e5280);
  color: #fff;
  font-weight: 700;
  font-size: 15px;
}

.exec-infographic-lane-head i {
  opacity: 0.9;
  width: 1.1em;
  text-align: center;
}

.exec-infographic-lane-steps {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  padding: 18px;
  background:
    linear-gradient(90deg, rgba(192, 216, 224, 0.2) 0, rgba(192, 216, 224, 0.2) 1px, transparent 1px) 0 0 / 160px 100%,
    linear-gradient(180deg, #fff 0%, #f7fbfc 100%);
}

.exec-infographic-step-card {
  position: relative;
  min-width: 140px;
  max-width: 220px;
  padding: 12px 14px 12px 36px;
  border-radius: 12px;
  background: #fff;
  border: 1px solid #c0d8e0;
  box-shadow: 0 6px 16px rgba(18, 46, 74, 0.06);
}

.exec-infographic-step-card p {
  margin: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #334155;
}

.exec-infographic-step-num {
  position: absolute;
  left: 10px;
  top: 12px;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #0e7a8a;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.exec-infographic-step-arrow {
  color: #8ca5b2;
  font-weight: 700;
  font-size: 16px;
}

.exec-infographic-footnote {
  margin: 20px 0 0;
  text-align: center;
  font-size: 12px;
}

/* Responsive */
@media (max-width: 900px) {
  .wi-modal-panel {
    width: 96vw;
    height: 94vh;
    border-radius: 12px;
  }

  .wi-summary-grid {
    grid-template-columns: 1fr;
  }

  .wi-chat-bubble-ai {
    margin-right: 0;
  }

  .wi-chat-bubble-candidate {
    margin-left: 0;
  }

  .wi-header-toolbar {
    flex-wrap: wrap;
    justify-content: flex-end;
  }
}

@media (max-width: 600px) {
  .wi-header,
  .wi-action-bar,
  .wi-overview,
  .wi-tabs,
  .wi-body {
    padding-left: 16px;
    padding-right: 16px;
  }

  .wi-header-title {
    font-size: 1.2rem;
  }

}

.wi-clarification-panel {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.wi-section-title {
  margin: 0 0 12px;
  font-size: 14px;
  font-weight: 700;
  color: #0f172a;
}

.wi-timeline-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.wi-timeline-item {
  display: flex;
  gap: 10px;
  align-items: flex-start;
}

.wi-timeline-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  margin-top: 5px;
  background: #cbd5e1;
  flex-shrink: 0;
}

.wi-timeline-item--complete .wi-timeline-dot {
  background: #0e7a8a;
}

.wi-timeline-label {
  display: block;
  font-size: 13px;
  font-weight: 600;
  color: #0f172a;
}

.wi-timeline-date {
  display: block;
  font-size: 12px;
  color: #64748b;
}

.wi-clarification-round {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 12px 14px;
  background: #fff;
  margin-bottom: 12px;
}

.wi-clarification-round-title {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #0e7a8a;
}

.wi-clarification-qa {
  margin-bottom: 10px;
}

.wi-clarification-qa:last-child {
  margin-bottom: 0;
}

.wi-clarification-q,
.wi-clarification-a {
  margin: 0 0 6px;
  font-size: 13px;
  line-height: 1.5;
  color: #334155;
}

.wi-empty-note {
  margin: 0;
  font-size: 13px;
  color: #64748b;
}

.clarification-question-row {
  display: flex;
  gap: 8px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.clarification-question-row .form-control {
  flex: 1;
}

.clarification-remove-btn {
  margin-top: 4px;
}

.clarification-add-btn {
  margin-top: 4px;
}

.wi-clarification-round-status {
  font-weight: 500;
  color: #64748b;
  font-size: 12px;
}

.wi-candidate-link {
  margin: 0 0 14px;
  padding: 12px 14px;
  background: #f0f9fa;
  border: 1px solid #cce8ec;
  border-radius: 10px;
}

.wi-candidate-link-label {
  display: block;
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 700;
  color: #0e7a8a;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.wi-candidate-link-row {
  display: flex;
  align-items: flex-start;
  gap: 8px;
}

.wi-candidate-link-url {
  flex: 1;
  min-width: 0;
  font-size: 13px;
  line-height: 1.45;
  color: #0e7a8a;
  word-break: break-all;
}

.wi-candidate-link-hint {
  margin: 8px 0 0;
  font-size: 12px;
  color: #64748b;
}

.clarification-page {
  min-height: 100vh;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 32px 16px;
  background: linear-gradient(180deg, #e8f5f8 0%, #f8fafc 100%);
}

.clarification-card {
  width: min(720px, 100%);
  background: #fff;
  border: 1px solid #dbe5ec;
  border-radius: 16px;
  box-shadow: 0 12px 32px rgba(15, 23, 42, 0.08);
  padding: 24px;
}

.clarification-card--wide {
  width: min(920px, 100%);
}

.clarification-history-section {
  margin: 20px 0 24px;
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
}

.clarification-history-toggle {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  padding: 12px 16px;
  border: none;
  background: #f1f5f9;
  color: #0f172a;
  font-family: inherit;
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

.clarification-history-toggle:hover {
  background: #e2e8f0;
}

.clarification-history-toggle-label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

.clarification-history-badge {
  display: inline-flex;
  padding: 2px 8px;
  border-radius: 999px;
  background: #e2e8f0;
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.clarification-history-body {
  padding: 16px;
  border-top: 1px solid #e2e8f0;
}

.clarification-history-block + .clarification-history-block {
  margin-top: 16px;
  padding-top: 16px;
  border-top: 1px dashed #e2e8f0;
}

.clarification-history-subtitle {
  margin: 0 0 10px;
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.clarification-history-scroll {
  max-height: min(420px, 50vh);
  overflow: auto;
  padding: 8px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.clarification-history-scroll .wi-transcript-chat {
  padding: 4px 0;
}

.clarification-prior-round {
  display: flex;
  flex-direction: column;
  gap: 12px;
  padding: 12px;
  background: #fff;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.clarification-prior-q,
.clarification-prior-a {
  margin: 0;
  font-size: 14px;
  line-height: 1.5;
  color: #334155;
}

.clarification-prior-q strong,
.clarification-prior-a strong {
  color: #0f172a;
}

.clarification-questions-section {
  margin-top: 8px;
}

.clarification-section-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 700;
  color: #0f172a;
}

.clarification-header h1 {
  margin: 0 0 8px;
  font-size: 1.35rem;
  color: #0f172a;
}

.clarification-header p {
  margin: 0;
  color: #64748b;
  font-size: 14px;
}

.clarification-questions {
  margin-top: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
}

.clarification-question-block label {
  display: block;
  font-weight: 700;
  font-size: 13px;
  margin-bottom: 6px;
}

.clarification-question-text {
  margin: 0 0 8px;
  font-size: 14px;
  color: #0f172a;
}

.clarification-answer-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
}

.clarification-step-progress {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
  padding: 12px 16px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
}

.clarification-step-label {
  font-size: 13px;
  font-weight: 700;
  color: #334155;
  letter-spacing: 0.02em;
}

.clarification-step-dots {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 8px;
}

.clarification-step-dot {
  width: 12px;
  height: 12px;
  padding: 0;
  border: 2px solid #cbd5e1;
  border-radius: 50%;
  background: #fff;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.15s ease;
}

.clarification-step-dot:hover:not(:disabled) {
  border-color: #0ea5e9;
  transform: scale(1.1);
}

.clarification-step-dot.is-current {
  border-color: #0ea5e9;
  background: #0ea5e9;
  transform: scale(1.15);
}

.clarification-step-dot.is-answered:not(.is-current) {
  border-color: #22c55e;
  background: #dcfce7;
}

.clarification-step-dot:disabled {
  cursor: not-allowed;
  opacity: 0.6;
}

.clarification-questions--single {
  margin-top: 0;
}

.clarification-footer {
  margin-top: 20px;
  display: flex;
  justify-content: flex-end;
}

.clarification-footer--wizard {
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.clarification-footer--wizard .clarification-nav-btn.btn-sm,
.clarification-footer--wizard .btn-modal-save {
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
}

.clarification-nav-btn {
  min-width: 110px;
}

.clarification-nav-btn--next {
  margin-left: auto;
}

@media print {
  .wi-modal-backdrop,
  .wi-header-close,
  .wi-header-actions,
  .wi-tabs {
    display: none !important;
  }

  .wi-modal-panel {
    width: 100% !important;
    height: auto !important;
    max-height: none !important;
    box-shadow: none !important;
  }

  .wi-body {
    overflow: visible !important;
  }

  .process-diagram-canvas {
    transform: none !important;
  }
}
