:root {
  --navy: #163a5f;
  --navy-deep: #0b2745;
  --navy-mid: #2e5280;
  --teal: #0e7a8a;
  --teal-light: #14a8bf;
  --teal-soft: #d8f2f5;
  --gold: #f0b534;
  --amber: #f59e0b;
  --ice: #e8f5f8;
  --ice-dark: #cbe9ef;
  --muted: #5a7a90;
  --line: #c0d8e0;
  --line-strong: #a9c4ce;
  --danger: #dc2626;
  --success: #16a34a;
  /* Light SaaS shell */
  --bg-gradient: linear-gradient(180deg, #f8fafc 0%, #f1f5f9 100%);
  --white: #ffffff;
  --gray-900: #111827;
  --gray-800: #1f2937;
  --gray-700: #374151;
  --gray-300: #d1d5db;
  --border-table: #f1f5f9;
  --text: #334155;
  --shadow-soft: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-card: 0 2px 8px rgba(0, 0, 0, 0.04);
  --shadow-elevated: 0 4px 14px rgba(15, 23, 42, 0.06);

  /* Compact typography system (mandatory scale) */
  --font-sans: Inter, 'Segoe UI', Roboto, Arial, sans-serif;
  --text-title: 22px; /* page title (h1) */
  --text-section: 18px; /* section title (h2) */
  --text-card-title: 16px; /* card title */
  --text-body: 13px; /* body */
  --text-table: 13px; /* table */
  --text-label: 12px; /* labels */
  --weight-regular: 400;
  --weight-medium: 500;
  --weight-semibold: 600;

  /* Spacing system */
  --space-1: 4px;
  --space-2: 8px;
  --space-3: 12px;
  --space-4: 16px;
  --space-5: 20px;
  --space-6: 24px;

  --page-pad: 18px;
  --card-pad: 16px;
  --section-gap: 16px;

  /* Button system — shared sizing across admin screens */
  --btn-font-size: 13px;
  --btn-font-weight: 600;
  --btn-radius: 10px;
  --btn-radius-sm: 8px;
  --btn-height: 36px;
  --btn-height-sm: 28px;
  --btn-height-lg: 40px;
  --btn-pad-x: 14px;
  --btn-sm-pad-x: 12px;
  --btn-icon-size: 32px;
  /* Legacy aliases */
  --btn-pad-y: 0px;
  --btn-pad-x-legacy: 12px;

  /* Scrollbar theme */
  --scrollbar-thumb: rgba(14, 122, 138, 0.55);
  --scrollbar-thumb-hover: rgba(14, 122, 138, 0.78);
  --scrollbar-track: rgba(232, 245, 248, 0.95);
}

* {
  box-sizing: border-box;
  margin: 0;
  padding: 0;
}

body {
  font-family: var(--font-sans);
  background: var(--bg-gradient);
  color: var(--gray-800);
  font-size: var(--text-body);
  line-height: 1.5;
  min-height: 100vh;
  margin: 0;
  position: relative;
  overflow-x: hidden;
}

/* Standard typography */
h1,
.text-title {
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  line-height: 1.25;
  color: var(--gray-900);
}

h2,
.text-section {
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  line-height: 1.3;
  color: var(--gray-900);
}

h3 {
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  line-height: 1.35;
  color: var(--gray-900);
}

.text-body {
  font-size: var(--text-body);
  font-weight: var(--weight-regular);
  line-height: 1.5;
}

.text-small {
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  line-height: 1.35;
  color: var(--muted);
}

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

.code-inline {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.mono-hint {
  margin-top: 6px;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.btn-reset {
  background: none;
  border: none;
  cursor: pointer;
  padding: 0;
  margin: 0;
  font: inherit;
}

.card-nested-flat {
  box-shadow: none;
  padding: var(--card-pad);
  margin-top: 0;
}

.card-section-spaced {
  margin-top: 14px;
}

.links-form-stack {
  padding: var(--space-2) 0 var(--space-4);
}

.interview-context-card {
  margin: 12px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(14, 122, 138, 0.25);
  border-radius: 10px;
  background: rgba(14, 122, 138, 0.04);
}

.interview-context-title {
  margin: 0 0 12px;
  font-size: 15px;
  font-weight: 600;
  color: var(--teal, #0e7a8a);
}

.interview-context-dl {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 10px 20px;
  margin: 0 0 12px;
}

.interview-context-dl dt {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #5a6a72);
  margin: 0 0 2px;
}

.interview-context-dl dd {
  margin: 0;
  font-size: 14px;
  font-weight: 500;
}

.interview-context-questions {
  margin-bottom: 10px;
}

.interview-context-questions-label {
  display: block;
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--text-muted, #5a6a72);
  margin-bottom: 6px;
}

.interview-context-category-list {
  margin: 0 0 8px;
  padding-left: 1.25rem;
  font-size: 14px;
}

.interview-context-total {
  margin: 0 0 4px;
  font-size: 14px;
}

.interview-context-split {
  margin: 0;
}

.interview-context-warning {
  margin-top: 10px;
}

.interview-context-info {
  margin: 8px 0 0;
}

.interview-context-status.ready {
  margin: 10px 0 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--teal, #0e7a8a);
}

.links-list-filters {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(180px, 1fr));
  gap: 12px 16px;
  padding-top: 8px;
  border-top: 1px solid rgba(169, 196, 206, 0.35);
}

.links-list-filters .form-group {
  margin-bottom: 0;
}

.links-list-header {
  display: flex;
  align-items: baseline;
  justify-content: flex-end;
  gap: 12px;
  margin-bottom: 8px;
}

.links-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}

.links-table th,
.links-table td {
  padding: 10px 12px;
  text-align: left;
  border-bottom: 1px solid rgba(169, 196, 206, 0.35);
  vertical-align: middle;
}

.links-table .col-actions {
  white-space: nowrap;
  width: 1%;
}

.links-cell-primary {
  font-weight: 500;
}

.links-cell-muted {
  font-size: 12px;
  color: var(--text-muted, #64748b);
}

.links-url-cell a {
  color: var(--teal);
  font-weight: 500;
}

.links-badge-otp {
  margin-left: 6px;
}

.badge-success {
  background: #dcfce7;
  color: #166534;
}

.badge-muted {
  background: #f1f5f9;
  color: #64748b;
}

.badge-info {
  background: #e0f2fe;
  color: #0369a1;
}

.badge-outline {
  background: transparent;
  border: 1px solid rgba(14, 122, 138, 0.35);
  color: var(--teal);
}

.btn-table-action {
  white-space: nowrap;
}

.btn-outline,
.btn.outline,
.btn-outline-teal {
  background: var(--white);
  color: var(--navy-mid);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn-outline-teal {
  color: var(--teal);
  border-color: rgba(14, 122, 138, 0.45);
}

.btn-outline:hover:not(:disabled),
.btn.outline:hover:not(:disabled),
.btn-outline-teal:hover:not(:disabled) {
  background: var(--ice);
  border-color: var(--teal-light);
  filter: none;
  transform: none;
  box-shadow: var(--shadow-card);
}

.btn-outline-teal:hover:not(:disabled) {
  background: rgba(14, 122, 138, 0.08);
  border-color: rgba(14, 122, 138, 0.55);
}

.subsection-title-no-margin {
  margin: 0 0 10px;
}

.checkbox-row-label {
  display: flex;
  gap: 8px;
  align-items: center;
}

.thank-you-card {
  max-width: 820px;
  margin: 18px auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
}

.thank-you-header {
  padding: 24px;
  border-bottom: 1px solid var(--border-table);
}

.thank-you-row {
  display: flex;
  align-items: center;
  gap: 14px;
}

.thank-you-icon-wrap {
  width: 54px;
  height: 54px;
  border-radius: 16px;
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 20px;
  box-shadow: var(--shadow-soft);
}

.thank-you-icon-wrap.success {
  background: linear-gradient(145deg, rgba(22, 163, 74, 0.95), rgba(20, 168, 191, 0.85));
}

.thank-you-icon-wrap.paused {
  background: linear-gradient(145deg, rgba(15, 23, 42, 0.92), rgba(20, 168, 191, 0.7));
}

.thank-you-text {
  min-width: 0;
}

.thank-you-eyebrow {
  font-size: 12px;
  font-weight: var(--weight-semibold);
  letter-spacing: 0.08em;
  color: var(--muted);
}

.thank-you-title {
  margin: 6px 0 0;
  font-size: var(--text-section);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
}

.thank-you-body {
  margin: 10px 0 0;
  font-size: var(--text-body);
  line-height: 1.55;
  color: var(--muted);
}

.thank-you-job {
  margin: 6px 0 10px;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.thank-you-closing {
  margin: 0 0 14px;
  padding: 14px 16px;
  border-left: 4px solid var(--teal, #0e7a8a);
  background: #f0f9fa;
  border-radius: 8px;
  color: #1e293b;
  font-size: 15px;
  line-height: 1.55;
}

.interview-completion-overlay {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(2px);
}

.interview-completion-panel {
  width: min(520px, 100%);
  padding: 28px 24px;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.18);
  text-align: center;
}

.interview-completion-icon {
  width: 56px;
  height: 56px;
  margin: 0 auto 14px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #ecfdf5;
  color: #059669;
  font-size: 24px;
}

.interview-completion-panel h2 {
  margin: 0 0 10px;
  font-size: 22px;
  color: #0f172a;
}

.interview-completion-message {
  margin: 0 0 10px;
  color: #334155;
  font-size: 15px;
  line-height: 1.6;
}

.interview-completion-sub {
  margin: 0;
  color: #64748b;
  font-size: 13px;
}

.thank-you-actions {
  padding: 20px 24px;
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.btn-plain-link {
  text-decoration: none;
}

.log-tabs-bar {
  padding: 0 16px 12px;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.table-cell-clip {
  max-width: 360px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.pre-stack-snippet {
  font-size: 12px;
  line-height: 1.35;
  max-height: 120px;
  overflow: auto;
  margin-top: 6px;
}

.visually-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

/* Reusable spacing utilities (container gap) */
.spacing-sm {
  gap: 8px;
}
.spacing-md {
  gap: 16px;
}
.spacing-lg {
  gap: 20px;
}

/* Global scrollbar styling (all screens) */
* {
  scrollbar-width: thin; /* Firefox */
  scrollbar-color: var(--scrollbar-thumb) var(--scrollbar-track); /* Firefox */
}

*::-webkit-scrollbar {
  width: 10px;
  height: 10px;
}

*::-webkit-scrollbar-track {
  background: var(--scrollbar-track);
  border-radius: 999px;
}

*::-webkit-scrollbar-thumb {
  background: var(--scrollbar-thumb);
  border-radius: 999px;
  border: 2px solid var(--scrollbar-track);
}

*::-webkit-scrollbar-thumb:hover {
  background: var(--scrollbar-thumb-hover);
}

*::-webkit-scrollbar-corner {
  background: transparent;
}

body::before,
body::after {
  content: "";
  position: fixed;
  border-radius: 50%;
  pointer-events: none;
  z-index: -1;
}

body::before {
  width: 420px;
  height: 420px;
  top: -140px;
  right: -120px;
  background: radial-gradient(circle, rgba(20, 168, 191, 0.08) 0%, rgba(20, 168, 191, 0) 72%);
}

body::after {
  width: 360px;
  height: 360px;
  bottom: -160px;
  left: -120px;
  background: radial-gradient(circle, rgba(240, 181, 52, 0.06) 0%, rgba(240, 181, 52, 0) 72%);
}

img {
  display: block;
  max-width: 100%;
}

/* Login specific (layout centering shared with otp-verification.css .auth-screen) */
.login-shell {
  width: 100%;
  max-width: 420px;
}

.login-card {
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(16px);
  padding: 28px 24px 24px;
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.85);
  width: 100%;
  max-width: 420px;
  margin: 0 auto;
  text-align: center;
  position: relative;
  overflow: hidden;
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 5px;
  background: linear-gradient(90deg, var(--teal) 0%, var(--gold) 48%, var(--navy-mid) 100%);
}

.login-header {
  margin-bottom: 20px;
}

.brand-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(232, 245, 248, 0.92);
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.brand-pill-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--teal), var(--gold));
}

.login-logo-frame {
  margin: 14px auto 16px;
  padding: 12px 14px;
  border-radius: 14px;
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.96), rgba(232, 245, 248, 0.9));
  border: 1px solid rgba(169, 196, 206, 0.45);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-logo {
  display: flex;
  align-items: center;
  justify-content: center;
}

.login-logo picture {
  display: block;
  width: 100%;
  max-width: 240px;
}

.login-logo img {
  width: 100%;
  max-width: none;
  height: auto;
}

.login-card h1 {
  font-size: 22px;
  font-weight: 700;
  color: var(--navy-deep);
  margin-bottom: 8px;
  line-height: 1.25;
}

.login-card p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
}

.login-card .form-group {
  margin-bottom: 14px;
  text-align: left;
}

.login-card .form-group label {
  font-size: 13px;
  margin-bottom: 6px;
}

.login-card .form-control {
  min-height: 40px;
  font-size: 14px;
  padding: 8px 12px;
  border-radius: 10px;
}

.login-card .btn-block {
  min-height: var(--btn-height-lg);
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  border-radius: var(--btn-radius);
  margin-top: 4px;
}

.form-alert {
  display: none;
  color: var(--danger);
  font-size: 13px;
  margin-bottom: 12px;
  background: #fee2e2;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid #fca5a5;
  text-align: left;
}

.form-alert-visible {
  display: flex;
  align-items: center;
}

.max-width-form {
  max-width: 520px;
}

.form-alert i {
  margin-right: 6px;
}

.form-group {
  margin-bottom: 20px;
  text-align: left;
}

.form-group label {
  display: block;
  font-size: 12px;
  font-weight: var(--weight-medium);
  color: var(--muted);
  margin-bottom: 6px;
}

.field-hint {
  color: var(--muted);
  font-weight: 500;
  text-transform: none;
  letter-spacing: normal;
}

.form-control {
  width: 100%;
  padding: 10px 10px;
  border: 1px solid rgba(169, 196, 206, 0.9);
  border-radius: 12px;
  font-size: var(--text-body);
  color: var(--text);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
  font-family: var(--font-sans);
  background: rgba(255, 255, 255, 0.98);
}

.form-control::placeholder {
  color: #8ea4b3;
}

.form-control:focus {
  outline: none;
  border-color: rgba(20, 168, 191, 0.75);
  box-shadow: 0 0 0 3px rgba(20, 168, 191, 0.14);
  transform: none;
}

.password-input-wrap {
  position: relative;
  width: 100%;
}

.password-input-wrap .password-input-control {
  padding-right: 42px;
}

/* Edge / IE built-in reveal — keep single custom eye toggle */
.password-input-wrap .password-input-control::-ms-reveal,
.password-input-wrap .password-input-control::-ms-clear {
  display: none;
}

/* .login-card .form-control padding shorthand overrides padding-right above */
.login-card .password-input-wrap .password-input-control {
  padding: 8px 42px 8px 12px;
}

.password-toggle-button {
  position: absolute;
  top: 50%;
  right: 8px;
  width: 30px;
  height: 30px;
  transform: translateY(-50%);
  border: none;
  border-radius: 8px;
  background: transparent;
  color: #64748b;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.password-toggle-button:hover {
  background: #f1f5f9;
  color: var(--navy);
}

.password-toggle-button:focus-visible {
  outline: 2px solid rgba(20, 168, 191, 0.45);
  outline-offset: 1px;
}

.password-toggle-button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.password-toggle-button i {
  font-size: 13px;
  line-height: 1;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  background: linear-gradient(135deg, var(--teal) 0%, var(--navy-mid) 100%);
  color: white;
  border: none;
  border-radius: var(--btn-radius);
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
  width: auto;
  text-align: center;
  text-decoration: none;
  box-shadow: var(--shadow-soft);
}

.btn:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: var(--shadow-elevated);
  filter: brightness(1.02);
}

.btn:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

.btn-sm {
  min-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);
  width: auto;
}

.btn.btn-outline,
.btn.btn-outline-teal,
.btn.outline {
  background: var(--white);
  color: var(--navy-mid);
  border: 1px solid var(--line-strong);
  box-shadow: none;
}

.btn.btn-outline-teal {
  color: var(--teal);
  border-color: rgba(14, 122, 138, 0.45);
}

.btn.btn-outline:hover:not(:disabled),
.btn.outline:hover:not(:disabled),
.btn.btn-outline-teal:hover:not(:disabled) {
  background: var(--ice);
  border-color: var(--teal-light);
  filter: none;
  transform: none;
  box-shadow: var(--shadow-card);
}

.btn.btn-outline-teal:hover:not(:disabled) {
  background: rgba(14, 122, 138, 0.08);
  border-color: rgba(14, 122, 138, 0.55);
}

.btn-block {
  width: 100%;
}

.login-help {
  margin-top: 18px;
  padding-top: 18px;
  border-top: 1px solid rgba(192, 216, 224, 0.72);
  color: var(--muted);
  font-size: 13px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.login-help strong {
  color: var(--navy);
}

.login-help i {
  color: var(--teal);
}

/* Dashboard specific styles */
.dashboard-layout {
  display: flex;
  min-height: 100vh;
}

.sidebar {
  width: 250px;
  background: linear-gradient(180deg, var(--navy-deep) 0%, var(--navy) 100%);
  color: white;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  box-shadow: 2px 0 16px rgba(15, 23, 42, 0.08);
  z-index: 100;
  transition: width 0.28s ease, transform 0.28s ease;
}

.sidebar::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 240px;
  background: radial-gradient(circle at top right, rgba(20, 168, 191, 0.22), transparent 66%);
  pointer-events: none;
}

.sidebar-header {
  padding: 16px 14px 10px;
  flex-shrink: 0;
}

.sidebar-brand-block {
  position: relative;
  z-index: 1;
  padding: 16px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.sidebar-logo {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  padding: 10px 10px;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.sidebar-logo picture {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 220px;
}

.sidebar-logo img {
  width: 100%;
  max-width: none;
  height: auto;
  margin: 0 auto;
  object-fit: contain;
}

.sidebar-logo-mark {
  display: none;
  width: 46px;
  height: auto;
}

.sidebar-copy {
  margin-top: 14px;
}

.sidebar-eyebrow {
  display: block;
  margin-bottom: 6px;
  color: rgba(232, 245, 248, 0.78);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.15em;
  text-transform: uppercase;
}

.sidebar-copy strong {
  display: block;
  font-size: 18px;
  color: white;
}

.sidebar-copy p {
  margin-top: 8px;
  color: rgba(232, 245, 248, 0.72);
  font-size: 13px;
  line-height: 1.55;
}

.sidebar-nav {
  padding: 8px 12px;
  flex: 1 1 auto;
  min-height: 0;
  overflow-y: auto;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.sidebar-menu {
  flex: 1 1 auto;
  overflow-y: auto;
}

.nav-label {
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  /* Explicitly pin typography — prevents any inherited value from a parent */
  font-size: 13px;
  font-weight: 500;
  line-height: 1.2;
}

.nav-item,
.sidebar-item {
  display: flex;
  align-items: center;
  width: 100%;
  padding: 8px 10px;
  color: rgba(255, 255, 255, 0.78);
  text-decoration: none;
  font-weight: 500;
  font-size: 13px;
  line-height: 1.2;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
  cursor: pointer;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  /* Prevent flex compression when the sidebar-nav overflows */
  flex-shrink: 0;
}

.nav-item:hover,
.sidebar-item:hover {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.nav-item.active,
.sidebar-item.active {
  background: rgba(255, 255, 255, 0.14);
  border-color: rgba(255, 255, 255, 0.1);
  color: white;
}

.nav-item i,
.sidebar-item i {
  margin-right: 8px;
  font-size: 13px;
  width: 18px;
  text-align: center;
  color: rgba(255, 255, 255, 0.78);
  flex-shrink: 0;
}

.nav-item.active i,
.nav-item:hover i,
.sidebar-item.active i,
.sidebar-item:hover i {
  color: var(--teal-light);
}

.sidebar-footer {
  margin-top: auto;
  padding: 8px 12px 12px;
  flex-shrink: 0;
}

.nav-item-logout {
  color: rgba(255, 255, 255, 0.78);
  border-color: transparent;
  background: transparent;
  text-align: left;
}

.nav-item-logout i {
  color: rgba(255, 255, 255, 0.78);
}

.nav-item-logout:hover {
  background: rgba(255, 255, 255, 0.09);
  color: white;
}

.nav-item-logout:hover i {
  color: var(--teal-light);
}

.session-pill {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
}

.session-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background: #34d399;
  box-shadow: 0 0 0 6px rgba(52, 211, 153, 0.16);
}

.main-content {
  flex: 1;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-width: 0;
}

.topbar {
  background: #ffffff;
  backdrop-filter: none;
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 16px;
  border-bottom: 1px solid #e5e7eb;
  position: sticky;
  top: 0;
  z-index: 90;
  box-shadow: none;
}

.topbar-heading {
  display: flex;
  align-items: center;
  gap: 16px;
  min-width: 0;
  flex: 1 1 auto;
}

.topbar-menu-button {
  width: var(--btn-height);
  height: var(--btn-height);
  min-width: var(--btn-height);
  min-height: var(--btn-height);
  padding: 0;
  border-radius: var(--btn-radius);
  background: transparent;
  border: 1px solid transparent;
  box-shadow: none;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  color: #475569;
  cursor: pointer;
  transition: background 0.15s ease, border-color 0.15s ease, color 0.15s ease;
}

.topbar-menu-button:hover {
  background: #f8fafc;
  border-color: #e2e8f0;
  color: #0f172a;
  transform: none;
  box-shadow: none;
}

.topbar-menu-button i {
  font-size: 15px;
}

.topbar-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.topbar-label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-title {
  font-size: clamp(1.45rem, 1.7vw, 1.95rem);
  font-weight: 700;
  color: var(--navy-deep);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-page-title {
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.user-menu {
  position: relative;
}

.user-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 40px;
  font-size: 14px;
  cursor: pointer;
  padding: 4px 6px;
  border-radius: 10px;
  background: transparent;
  border: none;
  box-shadow: none;
  color: inherit;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-profile:hover {
  background: rgba(248, 250, 252, 0.95);
  box-shadow: none;
  transform: none;
}

.avatar-wrap {
  position: relative;
  flex-shrink: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.avatar-status {
  position: absolute;
  right: 0;
  bottom: 0;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #0d9488;
  border: 1.5px solid #ffffff;
  box-sizing: border-box;
}

.user-profile-name {
  color: #334155;
  font-weight: 600;
  letter-spacing: 0;
  white-space: nowrap;
  max-width: min(220px, 40vw);
  overflow: hidden;
  text-overflow: ellipsis;
}

.avatar {
  width: 30px;
  height: 30px;
  background: #e2e8f0;
  color: #334155;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 12px;
  box-shadow: inset 0 0 0 1px rgba(148, 163, 184, 0.35);
  flex-shrink: 0;
}

.user-menu-chevron {
  color: #94a3b8;
  font-size: 10px;
  margin-left: 0;
  transition: transform 0.2s ease;
}

.user-menu.open .user-menu-chevron {
  transform: rotate(180deg);
}

.user-menu-dropdown {
  position: absolute;
  top: calc(100% + 6px);
  right: 0;
  width: 190px;
  padding: 6px;
  border-radius: 10px;
  background: #ffffff;
  border: 1px solid #e5e7eb;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.1);
  display: none;
  flex-direction: column;
  gap: 2px;
  z-index: 150;
}

.user-menu.open .user-menu-dropdown {
  display: flex;
}

.user-menu-item {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  padding: 8px 10px;
  border: none;
  border-radius: 7px;
  background: transparent;
  color: #334155;
  text-decoration: none;
  font: inherit;
  font-size: 13px;
  font-weight: 500;
  text-align: left;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

.user-menu-item i {
  width: 16px;
  color: #64748b;
  font-size: 12px;
  text-align: center;
}

.user-menu-item:hover {
  background: #f8fafc;
  color: #0f172a;
}

.sidebar-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  border: none;
  background: rgba(11, 39, 69, 0.48);
  backdrop-filter: blur(4px);
  z-index: 95;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.28s ease;
}

.content-area {
  padding: var(--page-pad);
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
}

/* Standard page header (inside content cards) */
.page-header {
  padding: 0 0 var(--space-4);
  margin-bottom: var(--space-3);
  border-bottom: 1px solid var(--border-table);
}

.header-row-title-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  flex-wrap: wrap;
}

.page-header-primary {
  flex-shrink: 0;
}

.header-row-1 {
  margin-bottom: 0;
}

.header-row-2 {
  display: flex;
  align-items: center;
  gap: 12px;
}

.template-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.template-filters-row {
  flex-wrap: wrap;
}

.template-filters-row .filter-select {
  min-width: 160px;
  max-width: 220px;
}

.csv-summary-stats {
  margin: 0.75rem 0 0;
  padding-left: 1.25rem;
}

.question-groups-master {
  margin: 1rem 0 1.5rem;
  padding: 1rem 1.25rem;
  border: 1px solid rgba(192, 216, 224, 0.7);
  border-radius: 12px;
  background: rgba(248, 252, 255, 0.6);
}

.question-groups-master-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

.subsection-title {
  margin: 0;
  font-size: 1.05rem;
  font-weight: 600;
  color: var(--navy, #0b2745);
}

.questions-section-head {
  margin-bottom: 12px;
}

.admin-table-compact td,
.admin-table-compact th {
  padding-top: 8px;
  padding-bottom: 8px;
}

.admin-table tr.row-selected {
  background: rgba(20, 168, 191, 0.08);
}

.link-button {
  background: none;
  border: none;
  padding: 0;
  color: var(--teal, #14a8bf);
  font-weight: 600;
  cursor: pointer;
  text-align: left;
}

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

.scope-toggle-row {
  display: flex;
  flex-direction: column;
  gap: 8px;
  margin-top: 6px;
}

.scope-toggle-option {
  display: flex;
  align-items: center;
  gap: 8px;
  font-weight: 500;
  cursor: pointer;
}

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

.title-group {
  display: flex;
  align-items: center;
  gap: 10px;
}

.page-icon {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(232, 245, 248, 0.92);
  border: 1px solid rgba(169, 196, 206, 0.42);
  color: var(--navy);
  flex-shrink: 0;
}

.page-icon i {
  font-size: 16px;
}

.page-title {
  margin: 0;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  white-space: nowrap;
  overflow: visible;
}

.page-title i {
  font-size: 16px;
}

.page-title-text {
  margin: 0;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  color: var(--gray-900);
  white-space: nowrap;
  overflow: visible;
}

.search-container {
  flex: 1;
  display: flex;
  justify-content: center;
}

.search-container .search-box {
  width: min(600px, 100%);
}

.action-buttons {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.search-box {
  width: 100%;
  position: relative;
}

.search-box .search-box-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.search-box .search-box-input {
  padding-left: 34px;
  padding-right: 38px;
  border-radius: 10px;
  background: var(--white);
  height: 36px;
  border: 1px solid var(--gray-300);
  box-shadow: none;
}

.search-box .search-box-input:focus {
  border-color: rgba(20, 168, 191, 0.55);
  box-shadow: 0 0 0 2px rgba(20, 168, 191, 0.12);
}

.search-box .search-box-clear {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  width: 26px;
  height: 26px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: #fff;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  transition: background 0.2s ease, transform 0.2s ease, border-color 0.2s ease;
}

.search-box .search-box-clear:hover {
  background: var(--ice);
  border-color: var(--line-strong);
  transform: translateY(-50%) scale(1.05);
}

@media (max-width: 1180px) {
  .header-row-2 {
    flex-direction: column;
    align-items: stretch;
  }

  .search-container {
    justify-content: stretch;
  }

  .search-container .search-box {
    width: 100%;
  }

  .action-buttons {
    justify-content: flex-start;
  }
}

.view-section {
  display: none;
  animation: fadeIn 0.32s ease;
}

.view-section.active {
  display: block;
}

@keyframes fadeIn {
  from { opacity: 0; transform: translateY(10px); }
  to { opacity: 1; transform: translateY(0); }
}

.card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  margin-bottom: var(--section-gap);
  border: 1px solid var(--border-table);
  backdrop-filter: none;
}

/* Dashboard campaign selector card */
.dashboard-campaign-card {
  padding: 12px 14px;
}

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

.dashboard-campaign-title {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--navy);
}

.dashboard-campaign-icon {
  width: 38px;
  height: 38px;
  border-radius: 12px;
  background: rgba(232, 245, 248, 0.92);
  border: 1px solid rgba(169, 196, 206, 0.42);
  color: var(--navy);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.dashboard-campaign-icon i {
  font-size: 18px;
}

.dashboard-campaign-badge {
  display: inline-flex;
  align-items: center;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  border: 1px solid #bfdbfe;
  color: #0369a1;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-campaign-body {
  display: grid;
  gap: 6px;
  max-width: 560px;
}

.dashboard-campaign-label {
  font-size: 13px;
  font-weight: 700;
  color: var(--muted);
}

.card-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid var(--border-table);
}

.card-title {
  font-size: var(--text-card-title);
  font-weight: var(--weight-semibold);
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 8px;
}

.card-title i {
  color: var(--teal);
}

.card-subtitle {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: var(--weight-medium);
}

.card-subtext {
  color: var(--muted);
  font-size: 14px;
  margin-top: 6px;
}

.card-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(280px, 1fr);
  gap: 24px;
  position: relative;
  overflow: hidden;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96) 0%, rgba(250, 252, 253, 0.98) 48%, rgba(233, 246, 249, 0.98) 100%);
}

.card-hero::before {
  content: "";
  position: absolute;
  top: -120px;
  right: -120px;
  width: 260px;
  height: 260px;
  border-radius: 50%;
  background: radial-gradient(circle, rgba(20, 168, 191, 0.18) 0%, rgba(20, 168, 191, 0) 72%);
}

.section-kicker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(232, 245, 248, 0.9);
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-title {
  margin-top: 18px;
  font-size: clamp(2rem, 3vw, 2.65rem);
  line-height: 1.08;
  color: var(--navy-deep);
}

.hero-copy {
  margin-top: 14px;
  max-width: 640px;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.7;
}

.hero-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 20px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 10px 14px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(169, 196, 206, 0.4);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
  box-shadow: 0 8px 18px rgba(18, 46, 74, 0.05);
}

.meta-pill i {
  color: var(--teal);
}

.hero-summary {
  position: relative;
  z-index: 1;
  padding: 24px;
  border-radius: 24px;
  background: linear-gradient(160deg, var(--navy) 0%, var(--navy-mid) 100%);
  color: white;
  box-shadow: 0 18px 34px rgba(18, 46, 74, 0.18);
}

.hero-summary-label {
  color: rgba(232, 245, 248, 0.82);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.hero-summary-value {
  margin-top: 12px;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 700;
}

.hero-summary-trend {
  margin-top: 14px;
  color: #c7f9f0;
  font-size: 14px;
  font-weight: 600;
  display: flex;
  align-items: center;
  gap: 8px;
}

.hero-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 20px;
}

.hero-summary-item {
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
}

.hero-summary-item span {
  display: block;
  font-size: 12px;
  color: rgba(232, 245, 248, 0.74);
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.hero-summary-item strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

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

.stat-card {
  --stat-color: var(--teal);
  --stat-soft: rgba(14, 122, 138, 0.12);
  position: relative;
  padding: 18px;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: none;
  border: 1px solid rgba(192, 216, 224, 0.85);
  overflow: hidden;
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.stat-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 22px rgba(18, 46, 74, 0.08);
}

.dashboard-clickable {
  cursor: pointer;
}

.stat-card.stat-blue {
  --stat-color: #2563eb;
  --stat-soft: rgba(37, 99, 235, 0.12);
}

.stat-card.stat-orange {
  --stat-color: #f59e0b;
  --stat-soft: rgba(245, 158, 11, 0.12);
}

.stat-card.stat-green {
  --stat-color: #16a34a;
  --stat-soft: rgba(22, 163, 74, 0.12);
}

.stat-foot {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 12px;
}

.stat-trend {
  font-size: 12px;
  font-weight: 700;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 6px;
  white-space: nowrap;
}

.trend-up {
  color: #16a34a;
}

.trend-down {
  color: #dc2626;
}

.trend-neutral {
  color: var(--muted);
}

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

.dashboard-tight {
  margin-top: 16px;
}

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

.dashboard-title {
  margin: 0;
  font-size: 22px;
  font-weight: 600;
  color: var(--navy-deep);
}

.dashboard-subtitle {
  margin-top: 4px;
  font-size: 14px;
  color: var(--muted);
  font-weight: 500;
}

.dashboard-inline-campaign {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-inline-label {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
}

.dashboard-inline-select {
  height: 42px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.95);
  border: 1px solid rgba(192, 216, 224, 0.85);
  box-shadow: none;
  min-width: 220px;
}

.dashboard-chart-card,
.dashboard-list-card {
  box-shadow: none;
  border: 1px solid rgba(192, 216, 224, 0.85);
  padding: 18px;
}

.dashboard-section-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--navy-deep);
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 14px;
}

.dashboard-section-title i {
  color: var(--teal);
}

.dashboard-empty {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.dashboard-chart-split {
  display: grid;
  grid-template-columns: 220px 1fr;
  gap: 18px;
  align-items: center;
}

.dashboard-pie-wrap {
  position: relative;
  width: 200px;
  height: 200px;
  margin: 0 auto;
}

.dashboard-pie {
  width: 200px;
  height: 200px;
  transform: rotate(-90deg);
}

.dashboard-pie-track {
  fill: none;
  stroke: rgba(148, 163, 184, 0.28);
  stroke-width: 14;
}

.dashboard-pie-completed {
  fill: none;
  stroke: #16a34a;
  stroke-width: 14;
  stroke-linecap: round;
  transition: stroke-dasharray 0.35s ease;
}

.dashboard-pie-center {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
}

.dashboard-pie-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-deep);
}

.dashboard-pie-label {
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
  color: var(--muted);
}

.dashboard-legend {
  display: grid;
  gap: 10px;
  font-size: 14px;
  color: var(--text);
}

.legend-row {
  display: flex;
  align-items: center;
  gap: 10px;
}

.legend-muted {
  color: var(--muted);
}

.legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}

.legend-green {
  background: #16a34a;
}

.legend-orange {
  background: #f59e0b;
}

.dashboard-bar-chart {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  height: 180px;
}

.bar-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
  align-items: center;
}

.bar-stack {
  width: 100%;
  height: 140px;
  border-radius: 14px;
  border: 1px solid rgba(192, 216, 224, 0.75);
  background: rgba(248, 251, 252, 0.96);
  overflow: hidden;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.bar {
  width: 100%;
}

.bar-pending {
  background: rgba(245, 158, 11, 0.55);
}

.bar-completed {
  background: rgba(22, 163, 74, 0.75);
}

.bar-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
}

.dashboard-action-row {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.dashboard-action-item {
  padding: 16px 16px;
  border-radius: 18px;
  background: rgba(248, 251, 252, 0.96);
  border: 1px solid rgba(192, 216, 224, 0.78);
}

.dashboard-action-kicker {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 10px;
}

.dashboard-action-value {
  font-size: 26px;
  font-weight: 600;
  color: var(--navy-deep);
  margin-bottom: 10px;
}

.dashboard-action-note {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.dashboard-activity {
  display: grid;
  gap: 10px;
}

.activity-row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 12px;
  border-radius: 16px;
  background: rgba(248, 251, 252, 0.96);
  border: 1px solid rgba(192, 216, 224, 0.78);
  color: var(--text);
}

.activity-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  flex-shrink: 0;
}

.activity-green {
  background: #16a34a;
}

.activity-orange {
  background: #f59e0b;
}

.activity-blue {
  background: #2563eb;
}

.activity-navy {
  background: var(--navy-mid);
}

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

  .dashboard-chart-split {
    grid-template-columns: 1fr;
  }

  .dashboard-action-row {
    grid-template-columns: 1fr;
  }

  .dashboard-header {
    flex-direction: column;
    align-items: stretch;
  }

  .dashboard-inline-select {
    width: 100%;
    min-width: 0;
  }
}
.stat-card::after {
  content: "";
  position: absolute;
  left: 24px;
  right: 24px;
  bottom: 0;
  height: 4px;
  border-radius: 999px 999px 0 0;
  background: linear-gradient(90deg, var(--stat-color), rgba(255, 255, 255, 0));
}

.stat-card.stat-teal {
  --stat-color: var(--teal);
  --stat-soft: rgba(14, 122, 138, 0.12);
}

.stat-card.stat-navy {
  --stat-color: var(--navy-mid);
  --stat-soft: rgba(46, 82, 128, 0.12);
}

.stat-card.stat-amber {
  --stat-color: var(--amber);
  --stat-soft: rgba(245, 158, 11, 0.12);
}

.stat-card.stat-sky {
  --stat-color: var(--teal-light);
  --stat-soft: rgba(20, 168, 191, 0.12);
}

.stat-top {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.stat-label {
  color: var(--muted);
  font-size: 12px;
  font-weight:600;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.stat-icon {
  width: 48px;
  height: 48px;
  border-radius: 16px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--stat-color);
  background: var(--stat-soft);
  font-size: 18px;
  flex-shrink: 0;
}

.stat-value {
  margin-top: 18px;
  font-size: 38px;
  line-height: 1;
  font-weight: 600;
  color: var(--navy-deep);
}

.stat-foot {
  margin-top: 16px;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.trend {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
  font-weight: 500;
}

.trend.positive {
  color: var(--success);
}

.trend.neutral {
  color: var(--muted);
}

.stat-note {
  color: var(--muted);
  font-size: 13px;
}

.dashboard-lower-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr);
  gap: 24px;
  align-items: stretch;
}

.side-stack {
  display: flex;
  flex-direction: column;
  gap: 24px;
}

.activity-list {
  display: flex;
  flex-direction: column;
}

.activity-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 16px;
  align-items: start;
  padding: 18px 0;
  border-bottom: 1px solid rgba(192, 216, 224, 0.85);
}

.activity-item:first-child {
  padding-top: 0;
}

.activity-item:last-child {
  padding-bottom: 0;
  border-bottom: none;
}

.activity-avatar {
  width: 44px;
  height: 44px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  color: white;
  background: linear-gradient(135deg, var(--teal), var(--navy-mid));
  box-shadow: 0 12px 22px rgba(20, 168, 191, 0.18);
}

.activity-avatar.secondary {
  background: linear-gradient(135deg, var(--navy-mid), var(--navy-deep));
}

.activity-avatar.amber {
  background: linear-gradient(135deg, var(--gold), var(--amber));
}

.activity-title {
  color: var(--text);
  font-size: 15px;
  line-height: 1.55;
}

.activity-sub {
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.activity-time {
  color: var(--muted);
  font-size: 13px;
  white-space: nowrap;
  padding-top: 2px;
}

.action-grid {
  display: grid;
  gap: 12px;
}

.action-tile {
  width: 100%;
  border: 1px solid rgba(169, 196, 206, 0.36);
  background: linear-gradient(135deg, rgba(248, 251, 252, 0.98), rgba(232, 245, 248, 0.92));
  border-radius: 20px;
  padding: 18px;
  display: flex;
  align-items: flex-start;
  gap: 14px;
  text-align: left;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
  text-decoration: none;
  color: inherit;
}

.action-tile:hover {
  transform: translateY(-2px);
  box-shadow: 0 16px 26px rgba(18, 46, 74, 0.08);
  border-color: rgba(20, 168, 191, 0.3);
}

.action-icon {
  width: 44px;
  height: 44px;
  border-radius: 15px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, var(--navy-mid), var(--teal));
  color: white;
  font-size: 17px;
  flex-shrink: 0;
}

.action-copy strong {
  display: block;
  color: var(--navy-deep);
  font-size: 15px;
}

.action-copy span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.pulse-list {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.pulse-item {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.pulse-item-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  font-size: 14px;
  color: var(--text);
}

.pulse-item-header strong {
  color: var(--navy-deep);
  font-size: 16px;
}

.progress-track {
  width: 100%;
  height: 10px;
  border-radius: 999px;
  background: var(--ice);
  overflow: hidden;
}

.progress-fill {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--teal-light));
}

.progress-fill.navy {
  background: linear-gradient(90deg, var(--navy-mid), var(--navy));
}

.progress-fill.amber {
  background: linear-gradient(90deg, var(--gold), var(--amber));
}

.progress-fill.success {
  background: linear-gradient(90deg, #3bc970, var(--success));
}

table {
  width: 100%;
  border-collapse: collapse;
  font-size: var(--text-table);
}

th,
td {
  padding: 11px 12px;
  text-align: left;
  border-bottom: 1px solid var(--border-table);
}

th {
  font-weight: var(--weight-semibold);
  font-size: var(--text-label);
  color: #14365A ;/*var(--muted);*/
  text-transform: uppercase;
  letter-spacing: 0.12em;
}
--weight-semibold
td {
  font-size: var(--text-table);
  color: var(--text);
  vertical-align: middle;
}

tr:last-child td {
  border-bottom: none;
}

tbody tr:hover td {
  background: #f8fafc;
}

tbody tr td {
  min-height: 44px;
}

.admin-table-rows tbody tr td {
  vertical-align: middle;
}

.badge {
  display: inline-block;
  padding: 3px 7px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 500;
}

.badge-teal {
  background: var(--ice-dark);
  color: var(--teal);
}

.badge-navy {
  background: #dde7f0;
  color: var(--navy);
}

.badge-amber {
  background: #fff3e0;
  color: #b45309;
}

.badge-role-admin {
  background: #dbeafe;
  color: #1e3a8a;
  border: 1px solid #93c5fd;
}

.badge-role-user {
  background: #f3f4f6;
  color: #374151;
  border: 1px solid #d1d5db;
}

.badge-role-supervisor {
  background: #f3e8ff;
  color: #6b21a8;
  border: 1px solid #d8b4fe;
}

.empty-state {
  text-align: center;
  padding: 28px 16px;
  color: var(--muted);
}

.empty-state i {
  font-size: 28px;
  color: var(--line-strong);
  margin-bottom: 10px;
}

/* Form layouts */
textarea.form-control {
  min-height: 100px;
  resize: vertical;
}

.action-buttons {
  display: flex;
  gap: 8px;
}

.btn-icon {
  background: transparent;
  color: var(--muted);
  border: none;
  font-size: 14px;
  cursor: pointer;
  padding: 0;
  width: var(--btn-icon-size);
  height: var(--btn-icon-size);
  min-width: var(--btn-icon-size);
  min-height: var(--btn-icon-size);
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: color 0.2s ease, transform 0.2s ease, background 0.2s ease;
}

.btn-icon:hover {
  background: rgba(148, 163, 184, 0.18);
  transform: scale(1.1);
}

.action-edit {
  color: #2563eb;
}

.action-edit:hover {
  color: #1e40af;
}

.action-delete {
  color: #dc2626;
}

.action-delete:hover {
  color: #991b1b;
}

.action-view {
  color: #6b7280;
}

.action-view:hover {
  color: #374151;
}

.btn-primary {
  background: var(--navy);
  color: var(--white);
  border: none;
}

.btn-danger {
  background: #dc2626;
  color: #fff;
  border: 1px solid #b91c1c;
}

.btn-secondary {
  width: auto;
  background: rgba(255, 255, 255, 0.9);
  color: var(--navy);
  border: 1px solid rgba(169, 196, 206, 0.58);
  box-shadow: none;
}

.btn-secondary:hover {
  background: #f8fafc;
  box-shadow: var(--shadow-card);
}

/* Quick layout helpers */
.grid-2 {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: var(--section-gap);
}

.mt-4 {
  margin-top: 16px;
}

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

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

.table-scroll {
  overflow-x: auto;
  max-width: 100%;
}

.no-border {
  border: none !important;
}

.pager-actions {
  display: flex;
  gap: 8px;
}

.filters-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px 14px;
  padding: 0 0 12px;
  border-bottom: 1px solid var(--border-table);
  margin-bottom: 12px;
}

.filters-grid-span {
  grid-column: 1 / -1;
}

.filter-label {
  font-size: var(--text-label);
  font-weight: var(--weight-medium);
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--muted);
  margin-bottom: 6px;
}

.search-inline {
  position: relative;
}

.search-inline .search-inline-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--muted);
  font-size: 13px;
  pointer-events: none;
}

.search-inline .form-control {
  padding-left: 34px;
}

.search-inline-has-clear .form-control {
  padding-right: 34px;
}

.reports-table {
  min-width: 1100px;
}

/* Flex / toolbar utilities (no inline layout styles) */
.flex-row-wrap {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.flex-row-gap-sm {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.flex-col-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.flex-grow {
  flex: 1;
  min-width: 0;
}

.flex-push-end {
  margin-left: auto;
}

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

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

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

.mt-form {
  margin-top: 14px;
}

.toolbar-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding-bottom: 12px;
  margin-bottom: 14px;
  border-bottom: 1px solid var(--border-table);
}

.toolbar-row-compact {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  padding: 12px 0;
}

.btn.btn-sm.btn-solid-success {
  background: var(--success);
  color: #fff;
  border: 1px solid #15803d;
  box-shadow: none;
}

.btn.btn-sm.btn-solid-success:hover {
  filter: brightness(1.03);
}

.btn.btn-sm.btn-solid-danger {
  background: var(--danger);
  color: #fff;
  border: 1px solid #b91c1c;
  box-shadow: none;
}

.btn.btn-sm.btn-solid-danger:hover {
  filter: brightness(1.03);
}

.tabs-segmented {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
  flex-wrap: wrap;
}

.tab-btn-active {
  box-shadow: inset 0 -2px 0 #0d9488;
}

.modal-z-high.user-modal-root,
.user-modal-root.modal-z-high {
  z-index: 3200;
}

.user-modal-panel.modal-wide-detail {
  max-width: min(1100px, calc(100vw - 48px));
  max-height: min(calc(100vh - 48px), 820px);
}

.transcript-stack {
  font-size: var(--text-body);
  line-height: 1.5;
}

.transcript-block {
  margin-bottom: 12px;
}

.text-block-strong {
  display: block;
  font-weight: var(--weight-semibold);
}

.assign-user-stack {
  list-style: none;
  margin: 0;
  padding: 0;
}

.assign-user-item {
  padding: 8px 6px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.9);
}

.assign-user-row {
  display: flex;
  gap: 10px;
  align-items: center;
  cursor: pointer;
}

.modal-panel-narrow {
  max-width: 640px;
}

.form-alert.mb-sm-form {
  margin-bottom: 12px;
}

.form-alert-visible.mb-sm-form {
  margin-bottom: 12px;
}

.form-alert-visible.form-alert-success {
  background: rgba(22, 163, 74, 0.1);
  border: 1px solid rgba(22, 163, 74, 0.35);
  color: var(--gray-800);
}

.btn-link-inline {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  text-decoration: none;
}

.sticky-thead-row th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.cell-nowrap-top {
  white-space: nowrap;
  vertical-align: top;
}

.badge-compact-sm {
  font-size: 12px;
}

.bulk-import-result-table tbody tr:first-child td {
  border-top: none;
}

.field-hint-block {
  font-size: var(--text-body);
  color: var(--muted);
}

.field-hint-tight {
  font-size: var(--text-label);
  color: var(--muted);
}

.approved-reports-scroll {
  max-height: 260px;
  overflow-y: auto;
  border: 1px solid var(--border-table);
  border-radius: 10px;
  padding: 10px;
}

.approved-campaign-block {
  margin-bottom: 12px;
  border: 1px solid rgba(226, 232, 240, 0.95);
  border-radius: 10px;
}

.approved-campaign-name {
  font-weight: var(--weight-semibold);
  font-size: var(--text-body);
  color: var(--gray-900);
}

.approved-campaign-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 10px;
  border: none;
  background: #f8fafc;
  cursor: pointer;
  font-family: inherit;
  font-size: var(--text-body);
  text-align: left;
}

.report-select-stack {
  display: flex;
  flex-direction: column;
  margin-top: 8px;
  gap: 4px;
}

.report-select-row {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 6px 10px;
  border-radius: 8px;
  border: none;
  background: rgba(255, 255, 255, 0.92);
}

.report-select-row.is-checked {
  background: rgba(22, 163, 74, 0.08);
}

.report-meta-inline {
  margin-left: 8px;
  font-size: 12px;
  color: var(--muted);
  font-weight: var(--weight-regular);
}

.assign-toolbar {
  margin-bottom: 10px;
}

.assign-picker-scroll {
  max-height: 360px;
  overflow-y: auto;
  border: 1px solid var(--border-table);
  border-radius: 10px;
  padding: 8px;
}

.assign-picker-empty {
  margin: 8px;
}

.file-list-heading {
  margin-top: 10px;
}

.file-list-ul {
  margin-top: 8px;
  padding-left: 18px;
}

.file-list-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 6px;
}

.file-list-name {
  flex: 1;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.file-list-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.field-hint-paragraph {
  margin-top: 8px;
}

.stack-muted-block {
  margin-top: 12px;
}

.bulk-results-scroll {
  max-height: min(52vh, 420px);
  overflow: auto;
  border: 1px solid var(--border-table);
  border-radius: 10px;
}

.table-plain {
  width: 100%;
  border-collapse: collapse;
}

.table-plain thead th {
  background: var(--ice);
}

.table-plain th,
.table-plain td {
  vertical-align: top;
}

.break-all-email {
  word-break: break-all;
}

.pagination-ellipsis {
  padding: 0 6px;
  opacity: 0.75;
}

.pagination-end {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: center;
}

.pagination-pages {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
  align-items: center;
}

.page-btn-current {
  cursor: default;
  opacity: 0.92;
}

.page-num-current[disabled] {
  cursor: default;
  opacity: 0.92;
}

/* Swimlane diagram (Interview reports) */
.swimlane-scroll {
  overflow-x: auto;
  padding-bottom: 8px;
}

.swimlane-row {
  display: flex;
  align-items: stretch;
  min-height: 52px;
  border: 1px solid var(--gray-300);
  border-radius: 8px;
  margin-bottom: 10px;
  overflow: hidden;
  background: #fff;
}

.swimlane-label {
  width: 160px;
  min-width: 160px;
  padding: 12px;
  font-weight: var(--weight-semibold);
  background: #f8fafc;
  border-right: 1px solid var(--gray-300);
  display: flex;
  align-items: center;
}

.swimlane-steps {
  display: flex;
  align-items: center;
  flex: 1;
  padding: 8px;
  gap: 4px;
  flex-wrap: wrap;
}

.swimlane-step-pill {
  background: #fff;
  border: 1px solid var(--gray-300);
  border-radius: 6px;
  padding: 8px 12px;
  font-size: 13px;
  max-width: 220px;
}

.swimlane-placeholder {
  color: #d1d5db;
  padding: 8px;
}

.swimlane-arrow {
  color: #6b7280;
  font-size: 16px;
}

/* Standalone admin pages */
.admin-page-shell {
  position: relative;
  z-index: 1;
  max-width: 1320px;
  margin: 0 auto;
  padding: 20px 20px 28px;
}

.admin-page-topbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 26px;
}

.admin-page-topbar .topbar-heading {
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
  padding: 14px 18px;
  border-radius: 24px;
  border: 1px solid rgba(255, 255, 255, 0.82);
  box-shadow: 0 16px 32px rgba(18, 46, 74, 0.08);
}

.breadcrumb-link {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
  color: var(--navy-mid);
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
}

.breadcrumb-link:hover {
  color: var(--teal);
}

.admin-page-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
  gap: 24px;
  align-items: start;
}

.page-card {
  background: #ffffff;
  border-radius: 12px;
  box-shadow: var(--shadow-card);
  padding: var(--card-pad);
  border: 1px solid var(--border-table);
  backdrop-filter: none;
}

.page-card + .page-card {
  margin-top: 24px;
}

.page-intro {
  display: flex;
  align-items: flex-start;
  gap: 16px;
  margin-bottom: 26px;
}

.page-intro-icon {
  width: 58px;
  height: 58px;
  border-radius: 20px;
  display: flex;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, rgba(14, 122, 138, 0.14), rgba(46, 82, 128, 0.14));
  color: var(--teal);
  font-size: 22px;
  flex-shrink: 0;
}

.page-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 14px;
  border-radius: 999px;
  background: rgba(232, 245, 248, 0.9);
  color: var(--navy-mid);
  font-size: 12px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.12em;
}

.page-title {
  margin-top: 14px;
  font-size: clamp(2rem, 2.5vw, 2.5rem);
  line-height: 1.08;
  color: var(--navy-deep);
}

.page-copy {
  margin-top: 12px;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.7;
  max-width: 760px;
}

.form-grid-2,
.form-grid-3 {
  display: grid;
  gap: 20px;
}

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

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

.section-block {
  margin-top: 28px;
}

.section-block:first-of-type {
  margin-top: 0;
}

.section-block-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--navy-deep);
}

.section-block-copy {
  margin-top: 6px;
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

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

.check-card {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 15px 16px;
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(248, 251, 252, 0.98), rgba(232, 245, 248, 0.92));
  border: 1px solid rgba(169, 196, 206, 0.34);
}

.check-card input {
  margin-top: 4px;
  accent-color: var(--teal);
}

.check-card strong {
  display: block;
  color: var(--navy-deep);
  font-size: 14px;
}

.check-card span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.pill-group {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 16px;
}

.pill {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 12px;
  border-radius: 999px;
  background: rgba(232, 245, 248, 0.92);
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.pill i {
  color: var(--teal);
}

.bullet-list {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.bullet-item {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(248, 251, 252, 0.94);
  border: 1px solid rgba(169, 196, 206, 0.28);
}

.bullet-item i {
  color: var(--teal);
  margin-top: 4px;
}

.bullet-item strong {
  display: block;
  color: var(--navy-deep);
  font-size: 14px;
}

.bullet-item span {
  display: block;
  margin-top: 4px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.metric-stack {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.metric-card {
  padding: 16px;
  border-radius: 20px;
  background: linear-gradient(140deg, rgba(255, 255, 255, 0.98), rgba(232, 245, 248, 0.9));
  border: 1px solid rgba(169, 196, 206, 0.34);
}

.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.metric-card strong {
  display: block;
  margin-top: 8px;
  color: var(--navy-deep);
  font-size: 24px;
}

.metric-card p {
  margin-top: 8px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.tag-list {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.tag {
  padding: 9px 12px;
  border-radius: 999px;
  background: #dde7f0;
  color: var(--navy);
  font-size: 13px;
  font-weight: 600;
}

.form-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 28px;
}

.page-note {
  margin-top: 18px;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(232, 245, 248, 0.84);
  border: 1px solid rgba(169, 196, 206, 0.32);
  color: var(--text);
  font-size: 14px;
  line-height: 1.6;
}

.page-note strong {
  color: var(--navy-deep);
}

/* Toast Notifications */
#toast-container {
  position: fixed;
  bottom: 24px;
  right: 24px;
  z-index: 9000;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

/* Override any later toast styles (admin-dashboard.css) */
#toast-container .toast {
  border-left: 4px solid transparent;
}

#toast-container .toast i {
  color: inherit;
}
.toast {
  background: var(--navy);
  color: white;
  padding: 14px 20px;
  border-radius: 16px;
  box-shadow: 0 20px 32px rgba(0, 0, 0, 0.14);
  font-size: 14px;
  font-weight: 500;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 260px;
  animation: slideInToast 0.3s cubic-bezier(0.175, 0.885, 0.32, 1.275) forwards;
}

.toast-success,
#toast-container .toast-success {
  border-left-color: var(--success);
  background: #ecfdf5;
  color: #166534;
}

.toast-error,
#toast-container .toast-error {
  border-left-color: var(--danger);
  background: #fef2f2;
  color: var(--danger);
}

.toast-warning,
#toast-container .toast-warning {
  border-left-color: var(--amber);
  background: #fffbeb;
  color: #b45309;
}

.toast-info,
#toast-container .toast-info {
  border-left-color: #3b82f6;
  background: #eff6ff;
  color: #1d4ed8;
}

.toast-closing {
  animation: fadeOutToast 0.22s ease forwards;
}

.toast i { font-size: 16px; }

@keyframes slideInToast {
  from { transform: translateX(100%); opacity: 0; }
  to { transform: translateX(0); opacity: 1; }
}
@keyframes fadeOutToast {
  from { transform: translateX(0); opacity: 1; }
  to { transform: translateX(50px); opacity: 0; }
}

/* Confirmation modal */
.confirm-modal-root {
  position: fixed;
  inset: 0;
  z-index: 8000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.confirm-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 39, 69, 0.5);
  backdrop-filter: blur(10px);
}

.confirm-modal-panel {
  position: relative;
  z-index: 1;
  width: 100%;
  max-width: 520px;
  background: rgba(255, 255, 255, 0.98);
  border-radius: 22px;
  box-shadow: var(--shadow-soft);
  border: 1px solid rgba(255, 255, 255, 0.9);
  overflow: hidden;
  animation: global-api-loader-enter 0.25s cubic-bezier(0.22, 1, 0.36, 1) both;
}

.confirm-modal-head {
  display: flex;
  align-items: flex-start;
  gap: 14px;
  padding: 20px 22px 16px;
  border-bottom: 1px solid rgba(192, 216, 224, 0.65);
}

.confirm-modal-icon {
  width: 44px;
  height: 44px;
  border-radius: 14px;
  background: linear-gradient(145deg, var(--teal) 0%, #0a5f6d 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.confirm-modal-icon.is-danger {
  background: linear-gradient(145deg, #dc2626 0%, #b91c1c 100%);
}

.confirm-modal-title {
  font-size: 1.1rem;
  font-weight: 700;
  color: var(--navy);
  margin: 2px 0 6px;
}

.confirm-modal-sub {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.confirm-modal-foot {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 16px 22px 18px;
  background: rgba(232, 245, 248, 0.5);
}

.btn-modal-save.is-danger {
  background: linear-gradient(135deg, #dc2626, #b91c1c);
  box-shadow: 0 16px 32px rgba(220, 38, 38, 0.24);
}

@media (max-width: 1180px) {
  .card-hero,
  .dashboard-lower-grid,
  .admin-page-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 960px) {
  .dashboard-layout {
    position: relative;
  }

  .sidebar {
    position: fixed;
    left: 0;
    top: 0;
    bottom: 0;
    width: min(290px, calc(100vw - 40px));
    height: 100vh;
    transform: translateX(-100%);
  }

  .sidebar-nav {
    flex-direction: column;
    overflow: hidden;
    padding-top: 8px;
    padding-bottom: 8px;
  }

  .nav-item {
    min-width: 0;
  }

  .sidebar-footer {
    display: block;
  }

  .topbar {
    min-height: 56px;
    padding: 0 14px;
    flex-wrap: nowrap;
  }

  .content-area {
    padding: 20px;
  }

  .topbar-actions {
    width: auto;
    justify-content: flex-end;
    flex-wrap: nowrap;
  }

  .user-menu {
    width: auto;
  }

  .campaign-selector {
    width: 100%;
  }

  .user-profile {
    width: auto;
    justify-content: space-between;
  }

  .dashboard-layout.sidebar-open .sidebar {
    transform: translateX(0);
  }

  .sidebar-backdrop {
    display: block;
  }

  .dashboard-layout.sidebar-open .sidebar-backdrop {
    opacity: 1;
    pointer-events: auto;
  }

  .grid-2,
  .form-grid-2,
  .form-grid-3,
  .check-grid {
    grid-template-columns: 1fr;
  }

  .admin-page-topbar {
    flex-direction: column;
    align-items: flex-start;
  }
}

@media (max-width: 640px) {
  .login-card {
    padding: 24px 18px 20px;
    border-radius: 16px;
  }

  .login-card h1 {
    font-size: 20px;
  }

  .topbar {
    align-items: center;
  }

  .topbar-heading {
    width: 100%;
  }

  .topbar-menu-button {
    width: 36px;
    height: 36px;
    border-radius: 10px;
  }

  .topbar-title {
    font-size: 20px;
  }

  .sidebar-logo {
    padding: 10px 8px;
  }

  .sidebar-logo img {
    max-width: 132px;
  }

  .stats-grid,
  .hero-summary-grid {
    grid-template-columns: 1fr;
  }

  .activity-item {
    grid-template-columns: auto 1fr;
  }

  .activity-time {
    grid-column: 2;
    padding-top: 0;
  }

  .card {
    padding: 20px;
    overflow-x: auto;
  }

  .card-header {
    flex-direction: column;
    align-items: flex-start;
  }

  .card,
  .sidebar-brand-block {
    border-radius: 20px;
  }

  .page-card,
  .admin-page-topbar .topbar-heading {
    border-radius: 22px;
  }

  .admin-page-shell {
    padding: 20px 16px 36px;
  }

  .toast {
    min-width: 0;
    width: calc(100vw - 32px);
  }

  table {
    min-width: 620px;
  }
}

/* Auto-layout refinements */
.sidebar-nav {
  scrollbar-width: thin;
}

.campaign-selector {
  grid-column: 2;
  justify-self: center;
  width: 100%;
  max-width: 320px;
}

.campaign-active-pill {
  margin: 8px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 12px;
  border-radius: 999px;
  background: #e0f2fe;
  border: 1px solid #bfdbfe;
  color: #0f3b62;
  max-width: 100%;
}

.campaign-active-pill-label {
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  font-weight: 700;
  color: #0369a1;
}

.campaign-active-pill strong {
  font-size: 13px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.campaign-select-dropdown,
.campaign-selector select {
  min-width: 0;
  width: 100%;
}

input,
select,
textarea,
button {
  max-width: 100%;
}

@media (max-width: 1180px) {
  .topbar-heading {
    flex-wrap: wrap;
  }

  .topbar {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .campaign-selector {
    grid-column: 1 / -1;
    justify-self: center;
  }

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

  .hero-summary-grid {
    grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  }
}

@media (max-width: 960px) {
  .sidebar-nav {
    scroll-snap-type: x proximity;
    -webkit-overflow-scrolling: touch;
  }

  .nav-item {
    scroll-snap-align: start;
  }

  .topbar {
    width: 100%;
    grid-template-columns: auto 1fr;
  }

  .topbar-heading,
  .campaign-selector {
    grid-column: 1 / -1;
    width: 100%;
  }

  .campaign-selector {
    width: 100%;
    max-width: none;
  }

  .topbar-actions {
    justify-content: flex-end;
    justify-self: end;
  }

  .content-area {
    padding: 18px;
  }

  table {
    display: block;
    width: 100%;
    overflow-x: auto;
    white-space: nowrap;
    -webkit-overflow-scrolling: touch;
  }
}

@media (max-width: 640px) {
  .sidebar-header {
    padding: 14px 12px 8px;
  }

  .sidebar-nav {
    padding: 8px 12px;
    gap: 6px;
  }

  .nav-item {
    padding: 8px 10px;
  }

  .content-area {
    padding: 16px;
  }

  .header-actions,
  .form-actions {
    width: 100%;
  }

  .header-actions > *,
  .form-actions > * {
    width: 100%;
    justify-content: center;
  }

  .card,
  .page-card,
  .admin-page-topbar .topbar-heading {
    padding: 18px;
  }

  table {
    min-width: max-content;
  }

  th,
  td {
    padding: 12px 14px;
  }

  .content-area table {
    min-width: 0;
    display: block;
    overflow: visible;
    white-space: normal;
  }

  .content-area table thead {
    display: none;
  }

  .content-area table tbody,
  .content-area table tr,
  .content-area table td {
    display: block;
    width: 100%;
  }

  .content-area table tr {
    margin-bottom: 14px;
    border: 1px solid rgba(192, 216, 224, 0.9);
    border-radius: 18px;
    background: rgba(255, 255, 255, 0.94);
    box-shadow: 0 10px 22px rgba(18, 46, 74, 0.05);
    overflow: hidden;
  }

  .content-area table tr:last-child {
    margin-bottom: 0;
  }

  .content-area table td {
    position: relative;
    padding: 14px 14px 14px 44%;
    min-height: 48px;
    border-bottom: 1px solid rgba(192, 216, 224, 0.85);
    white-space: normal;
  }

  .content-area table td:last-child {
    border-bottom: none;
  }

  .content-area table td::before {
    content: attr(data-label);
    position: absolute;
    left: 14px;
    top: 14px;
    width: calc(44% - 20px);
    color: var(--muted);
    font-size: 11px;
    font-weight: 700;
    line-height: 1.4;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .content-area table td .action-buttons {
    justify-content: flex-start;
    flex-wrap: wrap;
  }

  .user-menu-dropdown {
    width: 190px;
  }
}

.dashboard-layout.sidebar-collapsed .sidebar {
  width: 96px;
}

.dashboard-layout.sidebar-collapsed .sidebar-copy,
.dashboard-layout.sidebar-collapsed .nav-label {
  display: none;
}

.dashboard-layout.sidebar-collapsed .sidebar-brand-block {
  padding: 12px;
}

.dashboard-layout.sidebar-collapsed .sidebar-logo {
  padding: 12px 10px;
}

.dashboard-layout.sidebar-collapsed .sidebar-logo picture {
  display: none;
}

.dashboard-layout.sidebar-collapsed .sidebar-logo-mark {
  display: block;
}

.dashboard-layout.sidebar-collapsed .nav-item {
  justify-content: center;
  padding-left: 8px;
  padding-right: 8px;
}

.dashboard-layout.sidebar-collapsed .nav-item i {
  margin-right: 0;
}

/* Users management: list + modals */
.users-active-card .users-card-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 8px;
}

.users-active-card .users-card-title-row {
  display: flex;
  align-items: center;
  gap: 12px;
}

.users-active-card .users-card-title-row h2 {
  margin: 0;
  font-size: 1.25rem;
  font-weight: 700;
  color: var(--navy);
}

.users-active-card .users-card-subtitle {
  margin: 0;
  font-size: 14px;
  font-weight: 600;
  color: var(--muted);
}

.users-active-card .users-card-title-row i {
  color: var(--teal);
  font-size: 1.35rem;
}

.users-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.btn-add-user,
.btn-users-bulk,
.btn-jargon-bulk {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-add-user {
  border: none;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow-card);
}

.btn-add-user:hover {
  background: var(--navy-deep);
}

/* Users screen — bulk CSV import (secondary outline) */
.btn-users-bulk {
  border: 1px solid var(--gray-300);
  background: #fff;
  color: var(--navy-mid);
  box-shadow: none;
}

.btn-users-bulk:hover {
  background: #f8fafc;
  border-color: var(--teal-light);
  box-shadow: var(--shadow-card);
}

.btn-users-bulk:active {
  transform: translateY(0);
}

.btn-link-muted {
  background: transparent;
  border: none;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.btn-link-muted:hover {
  color: var(--navy-mid);
}

.users-pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  padding: 12px 0 4px;
  border-top: 1px solid var(--border-table);
  margin-top: 8px;
  font-size: 14px;
  color: var(--muted);
}

.user-modal-root {
  position: fixed;
  inset: 0;
  z-index: 2400;
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 24px 20px 32px;
  overflow-y: auto;
  -webkit-overflow-scrolling: touch;
}

.user-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(11, 39, 69, 0.48);
  backdrop-filter: blur(10px);
}

.user-modal-panel {
  position: relative;
  width: 100%;
  max-width: 820px;
  max-height: min(calc(100vh - 48px), 780px);
  margin: auto 0;
  background: var(--white);
  border-radius: 16px;
  box-shadow: var(--shadow-soft);
  border: 1px solid var(--border-table);
  display: flex;
  flex-direction: column;
  overflow: hidden;
  min-height: 0;
}

.user-modal-panel.modal-panel-narrow {
  max-width: 640px;
}

/* Direct child: form or div wrapper — must stay flex so .user-modal-body can scroll */
.user-modal-panel > .user-modal-form {
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
  overflow: hidden;
  max-height: 100%;
}

.user-modal-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 15px 20px ;
  border-bottom: 1px solid rgba(192, 216, 224, 0.65);
  flex-shrink: 0;
}

.user-modal-header-main {
  display: flex;
  gap: 14px;
  align-items: flex-start;
}

.user-modal-icon {
  width: 40px;
  height: 40px;
  border-radius: 9px;
  background: linear-gradient(145deg, var(--teal) 0%, #0a5f6d 100%);
  color: var(--white);
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.user-modal-title {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--navy);
  margin: 0 0 4px;
  line-height: 1.2;
}

.user-modal-subtitle {
  margin: 0;
  font-size: 13px;
  color: var(--muted);
  font-weight: 500;
}

.bulk-dropzone {
  margin-top: 8px;
  padding: 18px 16px;
  border-radius: 16px;
  border: 1.5px dashed rgba(148, 163, 184, 0.9);
  background: #f9fafb;
  cursor: pointer;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bulk-dropzone-active {
  border-color: var(--teal);
  background: #ecfeff;
  box-shadow: 0 0 0 1px rgba(45, 212, 191, 0.4);
}

.bulk-dropzone-inner {
  display: flex;
  align-items: center;
  gap: 12px;
  justify-content: flex-start;
}

.bulk-dropzone-icon {
  width: 40px;
  height: 40px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0369a1;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  flex-shrink: 0;
}

.bulk-dropzone-text {
  font-size: 14px;
  color: var(--navy);
  line-height: 1.5;
}

.bulk-dropzone-subtext {
  font-size: 13px;
  color: var(--muted);
}

.bulk-file-chip {
  margin-top: 10px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  font-size: 13px;
}

.bulk-file-name {
  font-weight: 600;
  color: #1d4ed8;
}

.bulk-file-size {
  color: var(--muted);
}

.bulk-file-remove {
  border: none;
  background: transparent;
  color: #b91c1c;
  cursor: pointer;
  font-size: 12px;
  font-weight: 600;
}

.user-modal-close {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 18px;
  transition: background 0.2s ease, color 0.2s ease;
  flex-shrink: 0;
}

.user-modal-close:hover {
  background: var(--ice);
  color: var(--navy);
}

.user-modal-body {
  padding: 20px 24px;
  overflow-x: hidden;
  overflow-y: auto;
  flex: 1 1 auto;
  min-height: 0;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior: contain;
  touch-action: pan-y;
}

.user-modal-field {
  margin-bottom: 18px;
}

.user-modal-field label,
.user-modal-field .field-label {
  display: block;
  font-size: 11px;
  font-weight: 500;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 8px;
}

.user-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 12px;
  padding: 15px 20px;
  border-top: 1px solid rgba(192, 216, 224, 0.65);
  background: linear-gradient(180deg, rgba(248, 252, 253, 0.5) 0%, #fff 40%);
  flex: 0 0 auto;
  flex-shrink: 0;
}

.btn-modal-cancel,
.btn-modal-save {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  font-family: inherit;
  font-size: var(--btn-font-size);
  font-weight: var(--btn-font-weight);
  line-height: 1.2;
  cursor: pointer;
}

.btn-modal-cancel {
  border: 1px solid var(--line-strong);
  background: var(--white);
  color: var(--navy-mid);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-modal-cancel:hover:not(:disabled) {
  background: var(--ice);
  border-color: var(--teal-light);
}

.btn-modal-save {
  border: none;
  background: linear-gradient(145deg, var(--teal) 0%, #0a6572 100%);
  color: var(--white);
  box-shadow: 0 6px 18px rgba(14, 122, 138, 0.35);
  transition: transform 0.15s ease, box-shadow 0.2s ease;
}

.btn-modal-save:hover:not(:disabled) {
  transform: translateY(-1px);
  box-shadow: 0 10px 24px rgba(14, 122, 138, 0.42);
}

.btn-modal-save:disabled,
.btn-modal-cancel:disabled {
  opacity: 0.7;
  cursor: not-allowed;
  transform: none;
}

/* Question template modal: dynamic questions */
.template-questions-block .field-label {
  display: block;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--navy);
  margin-bottom: 12px;
}

.template-question-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
}

.template-q-index {
  flex-shrink: 0;
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: var(--navy);
  color: var(--white);
  font-size: 13px;
  font-weight: 700;
  display: flex;
  align-items: center;
  justify-content: center;
}

.template-q-input {
  flex: 1;
  min-width: 0;
}

.template-q-remove {
  flex-shrink: 0;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: var(--white);
  color: var(--muted);
  cursor: pointer;
  display: flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s ease, color 0.2s ease, border-color 0.2s ease;
}

.template-q-remove:hover {
  background: #fef2f2;
  border-color: #fecaca;
  color: var(--danger);
}

.btn-add-question-outline {
  width: 100%;
  margin-top: 4px;
  min-height: var(--btn-height);
  padding: 0 var(--btn-pad-x);
  border-radius: var(--btn-radius);
  border: 2px dashed var(--teal-light);
  background: rgba(232, 245, 248, 0.5);
  color: var(--teal);
  font-family: inherit;
  font-weight: var(--btn-font-weight);
  font-size: var(--btn-font-size);
  line-height: 1.2;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: var(--space-2);
  transition: background 0.2s ease, border-color 0.2s ease;
}

.btn-add-question-outline:hover {
  background: var(--ice);
  border-color: var(--teal);
}

.template-preview-ol {
  margin: 0 0 8px 1.1rem;
  padding: 0;
  font-size: 14px;
  color: var(--text);
  line-height: 1.45;
}

.template-preview-ol li {
  margin-bottom: 4px;
}

.badge-status-active {
  background: #dcfce7;
  color: #15803d;
  border: 1px solid #86efac;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.badge-status-inactive {
  background: #f3f4f6;
  color: #b91c1c;
  border: 1px solid #d1d5db;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

button.badge.badge-status-toggle {
  font: inherit;
  font-size: inherit;
  line-height: inherit;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
}

button.badge.badge-status-toggle:disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.users-active-card tbody .users-table-row:hover {
  background: #f8fafc;
}

/* Jargon dictionary page */
.jargon-page-card .jargon-page-head {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 8px;
}

.jargon-page-title {
  margin: 0 0 6px;
  font-size: var(--text-title);
  font-weight: var(--weight-semibold);
  color: var(--navy-deep);
}

.jargon-page-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: var(--text-body);
  color: var(--muted);
  line-height: 1.45;
}

.compact-subtitle {
  margin-top: 0;
}

.job-description-cell {
  max-width: 360px;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.45;
  color: var(--text-muted, #475569);
  font-size: 13px;
}

.jargon-page-actions {
  align-items: center;
}

.btn-jargon-bulk {
  border: 1px solid var(--gray-300);
  background: var(--white);
  color: var(--navy-mid);
  box-shadow: none;
}

.btn-jargon-bulk:hover {
  background: #f8fafc;
  border-color: var(--teal-light);
  color: var(--navy);
  box-shadow: var(--shadow-card);
}

.label-required {
  color: var(--teal);
  font-weight: 700;
}

.jargon-bulk-panel {
  max-width: 560px;
}

.bulk-hint {
  border-radius: 14px;
  padding: 14px 16px;
  margin-bottom: 14px;
  font-size: 14px;
  line-height: 1.5;
}

.bulk-hint strong {
  display: block;
  margin-bottom: 8px;
  color: var(--navy);
}

.bulk-hint ul {
  margin: 0 0 0 1.1rem;
  padding: 0;
  color: var(--text);
}

.bulk-hint li {
  margin-bottom: 4px;
}

.bulk-hint-info {
  background: #f0f7ff;
  border: 1px solid rgba(46, 82, 128, 0.25);
  color: var(--navy-mid);
}

.bulk-hint-example {
  background: #fff9f0;
  border: 1px solid rgba(180, 83, 9, 0.28);
  color: var(--text);
}

.bulk-hint-note {
  margin: 10px 0 0;
  font-size: 13px;
  color: var(--muted);
}

.bulk-example-pre {
  margin: 8px 0 0;
  padding: 12px 14px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(180, 83, 9, 0.15);
  font-family: 'JetBrains Mono', ui-monospace, monospace;
  font-size: 12px;
  line-height: 1.45;
  overflow-x: auto;
  white-space: pre;
}

.bulk-file-input-hidden {
  position: fixed;
  left: -9999px;
  top: 0;
  width: 1px;
  height: 1px;
  opacity: 0.01;
}

.bulk-dropzone {
  width: 100%;
  min-height: 160px;
  border: 2px dashed var(--ice-dark);
  border-radius: 16px;
  background: rgba(232, 245, 248, 0.45);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  padding: 24px 16px;
  transition: border-color 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.bulk-dropzone:hover,
.bulk-dropzone-active {
  border-color: var(--teal-light);
  background: var(--ice);
  box-shadow: 0 8px 24px rgba(14, 122, 138, 0.12);
}

.bulk-dropzone-icon {
  font-size: 2.25rem;
  color: var(--teal);
  margin-bottom: 4px;
}

.bulk-dropzone-title {
  font-weight: 700;
  font-size: 15px;
  color: var(--navy);
}

.bulk-dropzone-sub {
  font-size: 13px;
  color: var(--muted);
}

/* Multi-select dropdown (campaigns) */
.ms-root {
  position: relative;
  width: 100%;
}

.ms-root.is-disabled {
  opacity: 0.7;
}

.ms-trigger {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  border-radius: 14px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.92);
  color: var(--navy);
  box-shadow: 0 10px 22px rgba(18, 46, 74, 0.06);
  cursor: pointer;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.12s ease;
  text-align: left;
}

.ms-trigger:hover {
  border-color: rgba(20, 168, 191, 0.55);
  box-shadow: 0 14px 28px rgba(14, 122, 138, 0.1);
}

.ms-trigger.is-open,
.ms-trigger:focus-visible {
  outline: none;
  border-color: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(20, 168, 191, 0.18);
}

.ms-trigger-text {
  font-size: 14px;
  font-weight: 600;
  color: var(--navy);
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ms-trigger-text.is-placeholder {
  font-weight: 600;
  color: rgba(90, 122, 144, 0.92);
}

.ms-trigger-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(232, 245, 248, 0.8);
  border: 1px solid rgba(192, 216, 224, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  flex-shrink: 0;
}

.ms-popover {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(192, 216, 224, 0.85);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  z-index: 2600;
  overflow: hidden;
  animation: ms-popover-in 0.18s ease both;
}

@keyframes ms-popover-in {
  from {
    opacity: 0;
    transform: translateY(-4px) scale(0.99);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.ms-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border-bottom: 1px solid rgba(192, 216, 224, 0.65);
  background: linear-gradient(180deg, rgba(232, 245, 248, 0.7) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.ms-action {
  border: none;
  background: transparent;
  color: var(--teal);
  font-weight: 700;
  font-size: 13px;
  cursor: pointer;
  padding: 6px 8px;
  border-radius: 10px;
  transition: background 0.15s ease, color 0.15s ease;
}

.ms-action:hover {
  background: rgba(14, 122, 138, 0.1);
}

.ms-action:disabled {
  opacity: 0.55;
  cursor: not-allowed;
}

.ms-actions-sep {
  color: rgba(90, 122, 144, 0.8);
}

.ms-list {
  max-height: 240px;
  overflow: auto;
  padding: 10px 10px 12px;
  background: rgba(232, 245, 248, 0.5);
}

.ms-item {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 10px;
  border-radius: 14px;
  cursor: pointer;
  user-select: none;
  background: rgba(232, 245, 248, 0.6);
  border: 1px solid rgba(192, 216, 224, 0.55);
  margin-bottom: 10px;
}

.ms-item:last-child {
  margin-bottom: 0;
}

.ms-item.is-checked {
  background: rgba(216, 242, 245, 0.95);
  border-color: rgba(14, 122, 138, 0.25);
}

.ms-item input[type='checkbox'] {
  width: 18px;
  height: 18px;
  accent-color: var(--teal);
}

.ms-item-label {
  font-weight: 700;
  font-size: 13px;
  color: var(--navy-deep);
  line-height: 1.25;
}

.ms-empty {
  padding: 14px 12px;
  color: var(--muted);
  font-size: 13px;
}

/* Job title combobox (Job Descriptions) */
.jt-combo {
  position: relative;
  width: 100%;
}

.jt-combo.is-disabled {
  opacity: 0.72;
}

.jt-combo-control {
  display: flex;
  align-items: center;
  gap: 6px;
  min-height: 38px;
  padding: 4px 8px 4px 10px;
  border-radius: 12px;
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 22px rgba(18, 46, 74, 0.06);
  transition: border-color 0.2s ease, box-shadow 0.2s ease;
}

.jt-combo-control.is-open,
.jt-combo-control:focus-within {
  border-color: var(--teal-light);
  box-shadow: 0 0 0 4px rgba(20, 168, 191, 0.16);
}

.jt-combo-leading-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(232, 245, 248, 0.9);
  border: 1px solid rgba(192, 216, 224, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  flex-shrink: 0;
  font-size: 13px;
}

.jt-combo-input {
  flex: 1;
  min-width: 0;
  border: none;
  background: transparent;
  padding: 4px 2px;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text);
  font-family: var(--font-sans);
}

.jt-combo-input::placeholder {
  color: #8ea4b3;
  font-weight: 400;
}

.jt-combo-input:focus {
  outline: none;
}

.jt-combo-status {
  flex-shrink: 0;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.03em;
  text-transform: uppercase;
  padding: 3px 6px;
  border-radius: 999px;
  line-height: 1;
}

.jt-combo-status.is-existing {
  color: var(--teal);
  background: rgba(14, 122, 138, 0.1);
  border: 1px solid rgba(14, 122, 138, 0.2);
}

.jt-combo-status.is-new {
  color: #9a6b16;
  background: rgba(255, 236, 179, 0.75);
  border: 1px solid rgba(214, 168, 58, 0.35);
}

.jt-combo-toggle {
  width: 28px;
  height: 28px;
  border-radius: 10px;
  font-size: 11px;
  border: 1px solid rgba(192, 216, 224, 0.75);
  background: rgba(232, 245, 248, 0.8);
  color: var(--navy-mid);
  display: flex;
  align-items: center;
  justify-content: center;
  cursor: pointer;
  flex-shrink: 0;
  transition: background 0.15s ease, border-color 0.15s ease;
}

.jt-combo-toggle:hover:not(:disabled) {
  background: rgba(216, 242, 245, 0.95);
  border-color: rgba(14, 122, 138, 0.25);
}

.jt-combo-toggle:disabled {
  cursor: not-allowed;
}

.jt-combo-popover {
  position: absolute;
  left: 0;
  right: 0;
  margin-top: 10px;
  background: rgba(255, 255, 255, 0.99);
  border: 1px solid rgba(192, 216, 224, 0.85);
  border-radius: 18px;
  box-shadow: var(--shadow-soft);
  z-index: 2600;
  overflow: hidden;
  animation: ms-popover-in 0.18s ease both;
}

.jt-combo-popover-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  padding: 8px 12px;
  border-bottom: 1px solid rgba(192, 216, 224, 0.65);
  background: linear-gradient(180deg, rgba(232, 245, 248, 0.75) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.jt-combo-popover-title {
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  color: var(--navy-mid);
}

.jt-combo-popover-meta {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
}

.jt-combo-list {
  max-height: 220px;
  overflow: auto;
  padding: 8px;
  background: rgba(232, 245, 248, 0.45);
}

.jt-combo-option {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  margin-bottom: 6px;
  border-radius: 12px;
  border: 1px solid rgba(192, 216, 224, 0.55);
  background: rgba(255, 255, 255, 0.92);
  cursor: pointer;
  text-align: left;
  transition: background 0.15s ease, border-color 0.15s ease, transform 0.12s ease;
}

.jt-combo-option:last-child {
  margin-bottom: 0;
}

.jt-combo-option:hover,
.jt-combo-option.is-highlighted {
  background: rgba(216, 242, 245, 0.95);
  border-color: rgba(14, 122, 138, 0.28);
}

.jt-combo-option.is-selected {
  border-color: rgba(14, 122, 138, 0.35);
  box-shadow: inset 0 0 0 1px rgba(14, 122, 138, 0.12);
}

.jt-combo-option-create {
  background: rgba(255, 248, 230, 0.95);
  border-color: rgba(214, 168, 58, 0.35);
}

.jt-combo-option-create:hover,
.jt-combo-option-create.is-highlighted {
  background: rgba(255, 241, 204, 0.98);
  border-color: rgba(214, 168, 58, 0.5);
}

.jt-combo-option-icon {
  width: 32px;
  height: 32px;
  border-radius: 12px;
  background: rgba(232, 245, 248, 0.9);
  border: 1px solid rgba(192, 216, 224, 0.7);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  flex-shrink: 0;
  font-size: 13px;
}

.jt-combo-option-create .jt-combo-option-icon {
  background: rgba(255, 236, 179, 0.75);
  border-color: rgba(214, 168, 58, 0.35);
  color: #9a6b16;
}

.jt-combo-option-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.jt-combo-option-label {
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text);
  line-height: 1.3;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.jt-combo-option-sub {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted);
  line-height: 1.2;
}

.jt-combo-option-tag {
  flex-shrink: 0;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: #9a6b16;
  background: rgba(255, 236, 179, 0.8);
  border: 1px solid rgba(214, 168, 58, 0.35);
  padding: 3px 6px;
  border-radius: 999px;
}

.jt-combo-option-check {
  width: 20px;
  height: 20px;
  border-radius: 999px;
  background: rgba(14, 122, 138, 0.12);
  color: var(--teal);
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  font-size: 10px;
}

.jt-combo-empty {
  padding: 12px 10px;
  color: var(--muted);
  font-size: 12px;
  text-align: center;
}

.jt-combo-hint {
  margin-top: 6px;
  margin-bottom: 0;
  font-size: 12px;
}

.jt-combo-readonly-value {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 6px 10px;
  border-radius: 12px;
  border: 1px solid rgba(192, 216, 224, 0.75);
  background: rgba(248, 252, 253, 0.95);
}

.jt-combo-readonly-icon {
  width: 30px;
  height: 30px;
  border-radius: 10px;
  background: rgba(232, 245, 248, 0.9);
  border: 1px solid rgba(192, 216, 224, 0.75);
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--navy-mid);
  flex-shrink: 0;
  font-size: 13px;
}

.jt-combo-readonly-text {
  flex: 1;
  font-size: var(--text-body);
  font-weight: 500;
  color: var(--text);
}

/* Global API loading overlay (axios client) */
.global-api-loader {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  pointer-events: all;
}

.global-api-loader__backdrop {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    145deg,
    rgba(11, 39, 69, 0.42) 0%,
    rgba(14, 122, 138, 0.28) 50%,
    rgba(11, 39, 69, 0.38) 100%
  );
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
}

.global-api-loader__panel {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 10px;
  padding: 32px 40px 28px;
  max-width: 320px;
  width: 100%;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(232, 245, 248, 0.96) 100%);
  border: 1px solid var(--ice-dark);
  border-radius: 20px;
  box-shadow: var(--shadow-soft), 0 0 0 1px rgba(255, 255, 255, 0.6) inset;
  animation: global-api-loader-enter 0.35s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes global-api-loader-enter {
  from {
    opacity: 0;
    transform: translateY(12px) scale(0.96);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
  }
}

.global-api-loader__visual {
  position: relative;
  width: 88px;
  height: 88px;
  margin-bottom: 4px;
}

.global-api-loader__rings {
  position: relative;
  width: 100%;
  height: 100%;
}

.global-api-loader__ring {
  position: absolute;
  inset: 0;
  border-radius: 50%;
  border: 3px solid transparent;
}

.global-api-loader__ring--outer {
  border-top-color: var(--teal-light);
  border-right-color: rgba(20, 168, 191, 0.25);
  animation: global-api-loader-spin 1.1s linear infinite;
}

.global-api-loader__ring--inner {
  inset: 12px;
  border-bottom-color: var(--gold);
  border-left-color: rgba(240, 181, 52, 0.35);
  animation: global-api-loader-spin-reverse 0.85s linear infinite;
}

@keyframes global-api-loader-spin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes global-api-loader-spin-reverse {
  to {
    transform: rotate(-360deg);
  }
}

.global-api-loader__logo {
  position: absolute;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  object-fit: contain;
  filter: drop-shadow(0 4px 12px rgba(14, 122, 138, 0.2));
  animation: global-api-loader-pulse 1.6s ease-in-out infinite;
}

@keyframes global-api-loader-pulse {
  0%,
  100% {
    opacity: 1;
    transform: translate(-50%, -50%) scale(1);
  }
  50% {
    opacity: 0.88;
    transform: translate(-50%, -50%) scale(0.94);
  }
}

.global-api-loader__title {
  font-size: 17px;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: 0.02em;
  margin-top: 4px;
}

.global-api-loader__subtitle {
  font-size: 13px;
  color: var(--muted);
  text-align: center;
  line-height: 1.45;
  max-width: 240px;
}

/* Interview report — AI document review status */
.report-doc-badge {
  display: inline-block;
  font-size: 12px;
  font-weight: 600;
  padding: 3px 10px;
  border-radius: 999px;
  letter-spacing: 0.02em;
  text-transform: capitalize;
}

.report-doc-pending {
  background: #f3f4f6;
  color: #4b5563;
  border: 1px solid #e5e7eb;
}

.report-doc-approved {
  background: rgba(22, 163, 74, 0.12);
  color: var(--success);
  border: 1px solid rgba(22, 163, 74, 0.35);
}

.report-doc-disapproved {
  background: rgba(220, 38, 38, 0.1);
  color: var(--danger);
  border: 1px solid rgba(220, 38, 38, 0.35);
}

/* Change password OTP modal */
.change-password-otp-modal .change-password-otp-inputs {
  justify-content: center;
  margin: 8px 0 4px;
}

.change-password-otp-modal .change-password-otp-resend {
  text-align: center;
  margin: 0;
}

.change-password-otp-modal .resend-link {
  font-size: 14px;
  color: var(--teal);
  font-weight: 600;
}

.change-password-otp-modal .resend-link:hover:not(:disabled) {
  text-decoration: underline;
}

/* Workflow documentation & process diagram */
.workflow-doc-root,
.executive-summary-panel {
  max-height: min(60vh, 520px);
  overflow: auto;
  padding-right: 4px;
}

.workflow-doc-title {
  margin: 0 0 12px;
  font-size: 1.1rem;
  color: var(--text-primary, #111827);
}

.workflow-doc-section {
  margin-bottom: 16px;
}

.workflow-doc-heading {
  margin: 0 0 6px;
  font-size: 0.92rem;
  color: var(--text-secondary, #374151);
}

.workflow-doc-text {
  margin: 0;
  line-height: 1.55;
  color: var(--text-body, #4b5563);
  white-space: pre-wrap;
}

.workflow-doc-list {
  margin: 0;
  padding-left: 1.25rem;
  color: var(--text-body, #4b5563);
}

.transcript-meta {
  font-size: 0.78rem;
  color: var(--text-muted, #6b7280);
  margin-bottom: 4px;
}

.process-diagram-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.process-diagram-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.process-diagram-canvas {
  min-height: 180px;
  padding: 8px 4px 16px;
}

.process-diagram-title {
  margin: 0 0 10px;
  font-size: 1rem;
}

.flow-diagram {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
  max-width: 640px;
}

.flow-step {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fafc;
}

.flow-step-decision {
  border-color: #fcd34d;
  background: #fffbeb;
}

.flow-step-actor {
  font-size: 0.78rem;
  font-weight: 700;
  color: #0369a1;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.flow-step-action {
  font-size: 0.95rem;
  color: #111827;
}

.flow-step-arrow {
  text-align: center;
  color: #9ca3af;
  line-height: 1;
}

@media print {
  .user-modal-backdrop,
  .user-modal-close,
  .process-diagram-toolbar,
  .tabs-segmented,
  .toolbar-row {
    display: none !important;
  }

  .user-modal-root,
  .user-modal-panel {
    position: static !important;
    box-shadow: none !important;
    max-height: none !important;
  }

  .process-diagram-canvas {
    transform: none !important;
  }
}

/* Role Knowledge repository */
.rk-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  margin-top: 16px;
}

.rk-sidebar,
.rk-main {
  padding: 16px;
}

.rk-sidebar-title,
.rk-sources-title {
  margin: 0 0 12px;
  font-size: 0.9375rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.rk-role-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.rk-role-item {
  width: 100%;
  text-align: left;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.rk-role-item.is-active {
  border-color: var(--teal);
  background: #f0f9fb;
}

.rk-role-name {
  display: block;
  font-weight: 600;
  color: var(--navy-deep);
}

.rk-role-meta {
  display: block;
  margin-top: 4px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.rk-main-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}

.rk-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
}

.rk-doc-title {
  margin: 0 0 4px;
  font-size: 1.25rem;
  color: var(--navy-deep);
}

.rk-sources {
  margin-bottom: 20px;
  padding: 12px;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  background: #fafcfd;
}

.rk-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.rk-source-item {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 8px 12px;
}

.rk-source-date {
  display: block;
  font-size: 0.8125rem;
  color: var(--muted);
}

.rk-source-item.is-highlighted {
  background: #eef6ff;
  border-color: #93c5fd;
}

.ek-main {
  margin-top: 0;
}

/* Enterprise Knowledge — header action group */
.ek-header-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

/* Enterprise Knowledge — flow diagram wrapper */
.ek-diagram-wrap {
  margin: 20px 0 24px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 10px;
  overflow: hidden;
}

.ek-diagram-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-header-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: 14px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.ek-diagram-header i {
  color: #6366f1;
  font-size: 15px;
}

.ek-diagram-loading {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 16px 20px;
  margin: 16px 0;
  background: var(--card-header-bg, #f8fafc);
  border: 1px dashed var(--border-color, #e2e8f0);
  border-radius: 8px;
  font-size: 13px;
  color: var(--text-muted, #64748b);
}

.ss-search-bar {
  display: flex;
  gap: 12px;
  align-items: center;
  padding: 16px;
  margin-bottom: 16px;
}

.ss-search-box {
  flex: 1;
}

.ss-results {
  padding: 16px;
}

.ss-results-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 14px;
}

.ss-result-item {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px 16px;
  background: #fff;
}

.ss-result-meta {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.ss-result-type {
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--navy-deep);
}

.ss-result-score {
  font-size: 0.8125rem;
  color: var(--muted);
}

.ss-result-title {
  margin: 0 0 8px;
  font-size: 1rem;
}

.ss-result-text {
  margin: 0 0 12px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.8375rem;
  line-height: 1.6;
  color: #1a2f42;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

.ss-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ka-page {
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - 140px);
}

.ka-chat {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 520px;
  padding: 0;
  overflow: hidden;
}

.ka-thread {
  flex: 1;
  overflow-y: auto;
  padding: 20px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  background: #f8fafb;
}

.ka-empty {
  margin: auto;
  max-width: 560px;
  text-align: center;
}

.ka-suggestions {
  list-style: none;
  margin: 16px 0 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ka-suggestions li {
  padding: 10px 14px;
  border: 1px dashed #cbd5e1;
  border-radius: 10px;
  color: var(--muted);
  font-size: 0.9375rem;
}

.ka-message {
  display: flex;
  flex-direction: column;
  max-width: 92%;
}

.ka-message-user {
  align-self: flex-end;
}

.ka-message-assistant {
  align-self: flex-start;
}

.ka-message-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 4px;
}

.ka-message-user .ka-message-label {
  text-align: right;
}

.ka-message-bubble {
  border-radius: 14px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}

.ka-message-user .ka-message-bubble {
  background: #e8f2ff;
  border-color: #bfdbfe;
}

.ka-message-not-found .ka-message-bubble {
  background: #fff8f0;
  border-color: #fed7aa;
}

.ka-message-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  line-height: 1.6;
}

.ka-message-loading {
  opacity: 0.85;
}

.ka-sources {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.ka-sources-title {
  margin: 0 0 10px;
  font-size: 0.875rem;
  color: var(--navy-deep);
}

.ka-source-group + .ka-source-group {
  margin-top: 12px;
}

.ka-source-group-title {
  margin: 0 0 8px;
  font-size: 0.8125rem;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.ka-sources-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ka-source-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
}

.ka-source-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}

.ka-source-snippet {
  margin: 8px 0 0;
  font-size: 0.875rem;
  color: var(--muted);
  line-height: 1.5;
}

.ka-input-bar {
  display: flex;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 20px;
  border-top: 1px solid #e2e8f0;
  background: #fff;
}

.ka-input {
  flex: 1;
  resize: vertical;
  min-height: 52px;
}

.ka-send-btn {
  flex-shrink: 0;
  min-width: 88px;
}

@media (max-width: 700px) {
  .ka-message {
    max-width: 100%;
  }

  .ka-input-bar {
    flex-direction: column;
    align-items: stretch;
  }

  .ka-send-btn {
    width: 100%;
  }
}

/* ── Knowledge Assistant — structured answer sections ── */

.ka-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.ka-section-title {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 0.8125rem;
  font-weight: 700;
  color: var(--navy-deep);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 10px;
}

.ka-section-title i {
  color: var(--primary);
  font-size: 0.875rem;
}

/* Workflow steps */
.ka-steps-list {
  margin: 0;
  padding-left: 0;
  list-style: none;
  display: grid;
  gap: 8px;
  counter-reset: ka-steps;
}

.ka-step-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  counter-increment: ka-steps;
}

.ka-step-item::before {
  content: counter(ka-steps);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: var(--primary);
  color: #fff;
  font-size: 0.75rem;
  font-weight: 700;
  flex-shrink: 0;
  align-self: flex-start;
  margin-bottom: 4px;
}

.ka-step-action {
  font-size: 0.9375rem;
  line-height: 1.5;
  color: var(--text-dark);
}

.ka-step-meta {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}

.ka-step-actor,
.ka-step-system {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 0.8125rem;
  color: var(--muted);
}

.ka-step-actor i,
.ka-step-system i {
  font-size: 0.8125rem;
}

/* Decision points */
.ka-decision-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 8px;
}

.ka-decision-item {
  padding: 10px 12px;
  border-radius: 10px;
  background: #fffbf0;
  border: 1px solid #fde68a;
  display: grid;
  gap: 4px;
}

.ka-decision-item strong {
  color: var(--navy-deep);
  font-size: 0.9375rem;
}

.ka-decision-condition,
.ka-decision-action {
  display: block;
  font-size: 0.875rem;
  color: var(--muted);
}

/* Business rules */
.ka-tag-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 6px;
}

.ka-tag-item {
  padding: 8px 12px;
  border-radius: 8px;
  background: #f0f4ff;
  border: 1px solid #c7d2fe;
  font-size: 0.9rem;
  color: #3730a3;
  line-height: 1.5;
}

/* Inline side-by-side sections */
.ka-inline-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.ka-section-inline {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}

.ka-badge-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ka-badge {
  padding: 4px 10px;
  border-radius: 20px;
  font-size: 0.8125rem;
  font-weight: 500;
}

.ka-badge-system {
  background: #e0f2fe;
  color: #0369a1;
  border: 1px solid #bae6fd;
}

.ka-badge-role {
  background: #dcfce7;
  color: #166534;
  border: 1px solid #bbf7d0;
}

/* Suggested follow-up questions */
.ka-suggested-section {
  background: #f8fafb;
  border-radius: 10px;
  padding: 12px;
  border: 1px dashed #cbd5e1;
  margin-top: 16px;
  padding-top: 12px;
  border-top-style: dashed;
}

.ka-suggestions-followup {
  margin-top: 8px;
}

.ka-suggestions-followup li {
  padding: 0;
  border: none;
}

.ka-suggestion-btn {
  width: 100%;
  text-align: left;
  background: #fff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  padding: 8px 12px;
  font-size: 0.9rem;
  color: var(--primary);
  cursor: pointer;
  transition: background 0.15s, border-color 0.15s;
  line-height: 1.4;
}

.ka-suggestion-btn:hover {
  background: #eff6ff;
  border-color: var(--primary);
}

@media (max-width: 700px) {
  .ka-inline-sections {
    grid-template-columns: 1fr;
  }
}

/* ── Knowledge Assistant — swimlane diagram ── */

.ka-diagram-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e2e8f0;
}

.ka-swimlane {
  display: grid;
  grid-auto-columns: 1fr;
  grid-auto-flow: column;
  gap: 10px;
  overflow-x: auto;
  padding: 4px 2px 8px;
}

.ka-lane {
  border: 2px solid;
  border-radius: 10px;
  overflow: hidden;
  min-width: 140px;
}

.ka-lane-header {
  color: #fff;
  font-size: 0.8125rem;
  font-weight: 700;
  text-align: center;
  padding: 7px 10px;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  line-height: 1.3;
}

.ka-lane-steps {
  padding: 10px 8px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
}

.ka-lane-step-row {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.ka-lane-arrow {
  color: #94a3b8;
  font-size: 0.875rem;
  line-height: 1.4;
  text-align: center;
}

.ka-lane-step {
  width: 100%;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid rgba(0, 0, 0, 0.08);
  font-size: 0.8125rem;
  line-height: 1.4;
  text-align: center;
  color: #1e293b;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.04);
}

@media (max-width: 700px) {
  .ka-swimlane {
    grid-auto-flow: row;
    grid-auto-columns: unset;
    grid-template-columns: 1fr;
  }
}

/* ────────────────────────────────────── */

.kr-templates,
.kr-report {
  padding: 16px;
  margin-bottom: 16px;
}

.kr-section-title {
  margin: 0 0 14px;
  font-size: 1rem;
}

.kr-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 12px;
}

.kr-template-card {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.kr-template-title {
  margin: 0;
  font-size: 0.98rem;
}

.kr-report-header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  margin-bottom: 12px;
}

.kr-report-title {
  margin: 0 0 4px;
}

.kr-export-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

.kr-report-body {
  margin: 0 0 16px;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.9375rem;
  line-height: 1.6;
  color: #1a2f42;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 14px 16px;
}

.kr-report-body-not-found {
  background: #fff8f0;
  border-color: #fed7aa;
}

@media (max-width: 900px) {
  .kr-report-header {
    flex-direction: column;
  }

  .kr-export-actions {
    width: 100%;
  }

  .kr-export-actions .btn {
    flex: 1;
  }
}

.rk-section + .rk-section {
  margin-top: 16px;
}

.rk-section-title {
  margin: 0 0 8px;
  font-size: 1rem;
  color: var(--navy-deep);
}

.rk-section-body {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-family: inherit;
  font-size: 0.8375rem;
  line-height: 1.6;
  color: #1a2f42;
  background: #f8fafb;
  border: 1px solid #e2e8f0;
  border-radius: 10px;
  padding: 12px 14px;
}

@media (max-width: 900px) {
  .rk-layout {
    grid-template-columns: 1fr;
  }
}

/* ── Executive Infographic (PNG + Blueprint fallback) ────────────────── */
.ek-exec-infographic {
  margin-bottom: 28px;
}

/* PNG image wrapper */
.ek-exec-image-wrap {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ek-exec-image-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 600;
}

.ek-exec-image-header i {
  font-size: 14px;
  opacity: 0.9;
}

.ek-exec-badge {
  margin-left: auto;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.07em;
  background: rgba(255,255,255,0.25);
  color: #fff;
  padding: 2px 8px;
  border-radius: 999px;
}

.ek-exec-badge--outline {
  background: transparent;
  border: 1px solid currentColor;
  color: var(--text-muted, #64748b);
}

.ek-exec-image {
  display: block;
  width: 100%;
  max-width: 100%;
  height: auto;
  object-fit: contain;
}

.ek-exec-image-footer {
  padding: 8px 16px;
  font-size: 11px;
  color: var(--text-muted, #94a3b8);
  text-align: center;
  background: var(--card-header-bg, #f8fafc);
  border-top: 1px solid var(--border-color, #e2e8f0);
}

/* Blueprint fallback renderer */
.ek-exec-blueprint {
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ek-exec-blueprint-header {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 16px;
  background: var(--card-header-bg, #f8fafc);
  border-bottom: 1px solid var(--border-color, #e2e8f0);
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.ek-exec-blueprint-header i {
  color: #6366f1;
  font-size: 14px;
}

.ek-exec-bp-title-row {
  padding: 16px 20px 12px;
  background: linear-gradient(135deg, #1e3a5f 0%, #0d9488 100%);
  color: #fff;
}

.ek-exec-bp-title {
  margin: 0 0 4px;
  font-size: 17px;
  font-weight: 700;
  color: #fff;
}

.ek-exec-bp-subtitle {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.ek-exec-bp-overview {
  margin: 0;
  font-size: 12.5px;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

.ek-exec-bp-sections {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ek-exec-bp-section-row {
  display: flex;
  align-items: center;
}

.ek-exec-bp-section {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid;
  border-radius: 10px;
  min-width: 155px;
  max-width: 190px;
  box-shadow: 0 2px 6px rgba(0,0,0,0.06);
}

.ek-exec-bp-icon {
  font-size: 22px;
  flex-shrink: 0;
  line-height: 1;
}

.ek-exec-bp-content {
  min-width: 0;
}

.ek-exec-bp-sec-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ek-exec-bp-sec-desc {
  font-size: 11.5px;
  line-height: 1.45;
  opacity: 0.82;
}

.ek-exec-bp-arrow {
  font-size: 20px;
  color: var(--text-muted, #94a3b8);
  padding: 0 6px;
  flex-shrink: 0;
}

.ek-exec-bp-highlights {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 14px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ek-exec-bp-highlight-pill {
  display: inline-flex;
  align-items: center;
  padding: 4px 12px;
  font-size: 12px;
  font-weight: 500;
  background: #eff6ff;
  color: #1e40af;
  border: 1px solid #bfdbfe;
  border-radius: 999px;
  line-height: 1.4;
}

.ek-exec-bp-note {
  margin: 0;
  padding: 10px 20px;
  font-size: 12px;
  color: var(--text-muted, #94a3b8);
  font-style: italic;
}

@media (max-width: 700px) {
  .ek-exec-bp-sections {
    flex-direction: column;
  }
  .ek-exec-bp-section-row {
    flex-direction: column;
    width: 100%;
  }
  .ek-exec-bp-section {
    max-width: 100%;
    width: 100%;
  }
}

/* ── Enterprise Knowledge: section blocks ─────────────────────────────── */
.ek-section {
  margin-bottom: 24px;
  padding: 0;
}

.ek-section-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.ek-section-header i {
  color: #6366f1;
  font-size: 15px;
  width: 18px;
  text-align: center;
}

.ek-section-title {
  margin: 0;
  font-size: 15px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
}

.ek-section-body {
  margin: 0;
  padding: 14px 16px;
  font-family: inherit;
  font-size: 0.855rem;
  line-height: 1.7;
  color: var(--text-secondary, #334155);
  background: var(--card-header-bg, #f8fafc);
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 8px;
  white-space: pre-wrap;
  word-break: break-word;
}

/* ── Enterprise Knowledge: infographic ───────────────────────────────── */
.ek-infographic {
  margin-bottom: 28px;
  border: 1px solid var(--border-color, #e2e8f0);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
}

.ek-infographic-header {
  padding: 16px 20px 14px;
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%);
  color: #fff;
}

.ek-infographic-title {
  margin: 0 0 4px;
  font-size: 16px;
  font-weight: 700;
  color: #fff;
}

.ek-infographic-subtitle {
  margin: 0 0 6px;
  font-size: 13px;
  color: rgba(255,255,255,0.85);
}

.ek-infographic-overview {
  margin: 0;
  font-size: 13px;
  color: rgba(255,255,255,0.9);
  line-height: 1.55;
}

.ek-infographic-section-label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--text-muted, #64748b);
  margin-bottom: 12px;
}

.ek-infographic-stages-section {
  padding: 16px 20px;
  border-bottom: 1px solid var(--border-color, #e2e8f0);
}

.ek-infographic-stages {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  gap: 0;
}

.ek-infographic-stage-row {
  display: flex;
  align-items: center;
  gap: 0;
}

.ek-infographic-stage {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  padding: 12px 14px;
  border: 2px solid;
  border-radius: 8px;
  min-width: 160px;
  max-width: 200px;
}

.ek-infographic-stage-icon {
  font-size: 20px;
  flex-shrink: 0;
  line-height: 1;
}

.ek-infographic-stage-content {
  min-width: 0;
}

.ek-infographic-stage-title {
  font-size: 13px;
  font-weight: 700;
  line-height: 1.3;
  margin-bottom: 4px;
}

.ek-infographic-stage-desc {
  font-size: 11.5px;
  line-height: 1.45;
  opacity: 0.85;
}

.ek-infographic-arrow {
  font-size: 20px;
  color: var(--text-muted, #94a3b8);
  padding: 0 6px;
  flex-shrink: 0;
  line-height: 1;
}

.ek-infographic-bottom {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0;
}

@media (max-width: 700px) {
  .ek-infographic-bottom {
    grid-template-columns: 1fr;
  }
  .ek-infographic-stages {
    flex-direction: column;
  }
  .ek-infographic-stage-row {
    flex-direction: column;
    width: 100%;
  }
  .ek-infographic-stage {
    max-width: 100%;
    width: 100%;
  }
}

.ek-infographic-roles-section {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
  border-right: 1px solid var(--border-color, #e2e8f0);
}

.ek-infographic-rules-section {
  padding: 16px 20px;
  border-top: 1px solid var(--border-color, #e2e8f0);
}

.ek-infographic-roles {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ek-infographic-role {
  padding: 8px 12px;
  background: #f1f5f9;
  border-radius: 6px;
  border-left: 3px solid #6366f1;
}

.ek-infographic-role-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-primary, #1e293b);
  margin-bottom: 2px;
}

.ek-infographic-role-resp {
  font-size: 12px;
  color: var(--text-muted, #64748b);
  line-height: 1.45;
}

.ek-infographic-rules {
  margin: 0;
  padding: 0;
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ek-infographic-rule {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font-size: 12.5px;
  color: var(--text-secondary, #334155);
  line-height: 1.45;
}

.ek-infographic-rule i {
  color: #22c55e;
  font-size: 12px;
  margin-top: 2px;
  flex-shrink: 0;
}
