:root {
  --bg: #f4f8fd;
  --bg-soft: #f9fbfe;
  --surface: #ffffff;
  --surface-soft: #fcfdff;
  --surface-tint: #f6faff;
  --border: #e6edf5;
  --border-strong: #d9e4ef;
  --text: #192637;
  --text-soft: #4c5f73;
  --muted: #8090a2;
  --accent: #2190e4;
  --accent-soft: #eaf5ff;
  --accent-strong: #0f77cd;
  --success: #57b56e;
  --success-soft: #edf9f0;
  --warning: #f0a44f;
  --warning-soft: #fff4e7;
  --danger: #ef6a6a;
  --danger-soft: #fff1f1;
  --neutral-soft: #f1f5f9;
  --shadow-soft: 0 12px 28px rgba(25, 38, 55, 0.05);
  --shadow-strong: 0 24px 54px rgba(25, 38, 55, 0.08);
  --radius-sm: 10px;
  --radius-md: 14px;
  --radius-lg: 18px;
  --radius-xl: 22px;
  --sticky-company-width: 214px;
  --sticky-contact-width: 214px;
}

* {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  min-height: 100%;
}

body {
  font-family: "Segoe UI", "Helvetica Neue", Arial, sans-serif;
  font-size: 13px;
  line-height: 1.45;
  color: var(--text);
  background:
    radial-gradient(circle at top center, rgba(33, 144, 228, 0.12), transparent 34%),
    linear-gradient(180deg, #f8fbff 0%, var(--bg) 100%);
}


body.is-recette-environment {
  padding-top: 38px;
  background:
    radial-gradient(circle at top center, rgba(249, 115, 22, 0.16), transparent 34%),
    linear-gradient(180deg, #fffaf2 0%, #fff7ed 100%);
}
body[data-auth-state="locked"] {
  overflow: hidden;
}

[hidden] {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
}

.app-shell {
  display: grid;
  grid-template-columns: 182px minmax(0, 1fr);
  min-height: 100vh;
}

body.is-recette-environment .app-shell,
body.is-recette-environment .login-screen {
  min-height: calc(100vh - 38px);
}

.recette-environment-banner {
  position: fixed;
  inset: 0 0 auto;
  z-index: 120;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  gap: 7px;
  padding: 7px 18px;
  overflow: hidden;
  border-bottom: 1px solid rgba(154, 52, 18, 0.4);
  background:
    repeating-linear-gradient(
      -45deg,
      #ea580c 0,
      #ea580c 10px,
      #f97316 10px,
      #f97316 20px
    );
  box-shadow: 0 3px 14px rgba(154, 52, 18, 0.28);
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  line-height: 1.2;
  letter-spacing: 0.01em;
  text-align: center;
}

.recette-environment-banner strong {
  letter-spacing: 0.08em;
}

.recette-environment-banner-icon {
  font-size: 15px;
  line-height: 1;
}

.recette-environment-banner-domain {
  margin-left: 8px;
  padding-left: 8px;
  border-left: 1px solid rgba(255, 255, 255, 0.56);
  font-size: 10px;
  font-weight: 600;
  opacity: 0.92;
}

.login-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px 16px;
}

.login-card {
  width: min(100%, 420px);
  padding: 26px 24px 24px;
  border: 1px solid rgba(210, 225, 239, 0.92);
  border-radius: 26px;
  background:
    radial-gradient(circle at top right, rgba(33, 144, 228, 0.1), transparent 28%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 251, 255, 0.98));
  box-shadow:
    0 28px 58px rgba(25, 38, 55, 0.1),
    inset 0 1px 0 rgba(255, 255, 255, 0.96);
}

.login-logo {
  width: 82px;
  height: 82px;
  display: block;
  margin-bottom: 14px;
  object-fit: contain;
}

.login-title {
  margin: 0;
  font-size: 31px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.login-text {
  margin: 10px 0 0;
  color: var(--text-soft);
  font-size: 14px;
  line-height: 1.5;
}

.login-form {
  display: grid;
  gap: 12px;
  margin-top: 18px;
}

.login-field {
  display: grid;
  gap: 6px;
  color: var(--text-soft);
  font-weight: 600;
}

.login-field input {
  min-height: 46px;
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.login-field input:focus {
  outline: 2px solid rgba(33, 144, 228, 0.18);
  outline-offset: 1px;
  border-color: #9ccff7;
}

.login-error {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(239, 106, 106, 0.24);
  border-radius: 13px;
  background: rgba(255, 241, 241, 0.92);
  color: #b14545;
}

.login-submit {
  min-height: 46px;
  border: 1px solid rgba(16, 126, 210, 0.28);
  border-radius: 14px;
  background: linear-gradient(135deg, var(--accent-strong), var(--accent));
  color: #fff;
  font-weight: 700;
  box-shadow: 0 14px 26px rgba(33, 144, 228, 0.22);
}

.login-submit:disabled {
  cursor: wait;
  opacity: 0.72;
}

.login-link {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--accent-strong);
  font-weight: 700;
}

.login-link:hover,
.login-link:focus-visible {
  text-decoration: underline;
}

.local-preview-link {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 14px;
  border: 1px solid rgba(13, 143, 114, 0.24);
  border-radius: 13px;
  background: rgba(237, 249, 240, 0.94);
  color: #0b7d5f;
  font-weight: 700;
  text-decoration: none;
}

.local-preview-link:hover,
.local-preview-link:focus-visible {
  border-color: rgba(13, 143, 114, 0.38);
  background: #e4f7eb;
  outline: none;
}

.view-debug-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 20px;
  padding: 0 7px;
  border: 1px solid rgba(128, 144, 162, 0.18);
  border-radius: 999px;
  background: rgba(246, 250, 255, 0.64);
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  vertical-align: middle;
}

.login-hint,
.login-success {
  margin: 0;
  font-size: 13px;
  line-height: 1.5;
  color: var(--text-soft);
}

.login-success {
  padding: 12px 14px;
  border: 1px solid rgba(73, 183, 120, 0.24);
  border-radius: 13px;
  background: rgba(239, 252, 243, 0.92);
  color: #24774a;
}

.app-shell[data-sidebar-collapsed="true"] {
  grid-template-columns: 82px minmax(0, 1fr);
}

.sidebar {
  display: grid;
  grid-template-rows: auto 1fr auto;
  gap: 18px;
  padding: 18px 12px 14px;
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  overflow-y: auto;
  border-right: 1px solid rgba(217, 228, 239, 0.85);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(18px);
}

.brand-lockup {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 2px 6px 6px;
}

.mobile-nav-toggle {
  display: none;
  margin-left: auto;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-soft);
  font-weight: 600;
}

.brand-icon {
  width: 28px;
  height: 28px;
  display: block;
  border-radius: 9px;
  overflow: hidden;
  box-shadow: 0 8px 18px rgba(33, 144, 228, 0.18);
}

.brand-icon img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
}

.brand-name {
  margin: 0;
  color: var(--accent);
  font-size: 12px;
  font-weight: 700;
}

.brand-subtitle {
  margin: 1px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.environment-version-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 128px;
  min-height: 24px;
  margin: 7px 0 0;
  padding: 4px 7px;
  border: 1px solid rgba(33, 144, 228, 0.18);
  border-radius: 999px;
  background: rgba(234, 245, 255, 0.78);
  color: var(--accent-strong);
  font-size: 10px;
  font-weight: 800;
  line-height: 1.18;
  white-space: normal;
  overflow-wrap: anywhere;
}

.login-environment-version-badge {
  max-width: 220px;
  margin-top: 12px;
}

.sidebar-environment-version-badge {
  display: block;
  max-width: 132px;
  min-height: 0;
  margin: 2px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--muted);
  font-size: 9px;
  font-weight: 400;
  line-height: 1.2;
  opacity: 0.68;
}

.sidebar-nav {
  display: grid;
  gap: 3px;
  align-content: start;
}

.nav-link,
.toolbar-button,
.action-button,
.mode-button,
.footer-link,
.chip-filter,
.chip-link,
.table-row {
  cursor: pointer;
  transition:
    background-color 140ms ease,
    color 140ms ease,
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.nav-link {
  display: flex;
  align-items: center;
  gap: 9px;
  width: 100%;
  padding: 9px 10px;
  border-radius: 11px;
  background: transparent;
  color: var(--text-soft);
  text-align: left;
}

.nav-link:hover,
.nav-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.nav-review-badge {
  display: inline-flex;
  min-width: 19px;
  height: 19px;
  margin-left: 5px;
  padding: 0 6px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: #dc2626;
  color: #ffffff;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
}

.nav-review-badge[hidden] {
  display: none;
}

.app-shell[data-sidebar-collapsed="true"] .brand-subtitle,
.app-shell[data-sidebar-collapsed="true"] .brand-name,
.app-shell[data-sidebar-collapsed="true"] .sidebar-environment-version-badge,
.app-shell[data-sidebar-collapsed="true"] .nav-link span:last-child {
  display: none;
}

.app-shell[data-sidebar-collapsed="true"] .brand-lockup {
  justify-content: center;
}

.app-shell[data-sidebar-collapsed="true"] .sidebar-footer {
  flex-direction: column;
}

.nav-link.is-profile-hidden {
  display: none !important;
}

.nav-icon {
  width: 16px;
  text-align: center;
  font-size: 12px;
}

.sidebar-footer {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.footer-link {
  padding: 7px 9px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
}

.footer-link:hover {
  background: rgba(233, 242, 250, 0.75);
  color: var(--text-soft);
}

.footer-link.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.workspace {
  padding: 18px 18px 22px;
}

.topbar {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.topbar-title {
  min-width: 0;
  display: grid;
  justify-items: start;
  align-content: start;
  gap: 6px;
  padding-top: 4px;
}

.topbar-title h1 {
  margin: 0;
  font-size: 28px;
  line-height: 1.06;
  font-weight: 700;
  letter-spacing: -0.03em;
  text-wrap: balance;
}

.topbar-title p {
  margin: 0;
  color: var(--muted);
  max-width: 18ch;
  line-height: 1.32;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  align-content: flex-start;
}

.topbar-actions > * {
  max-width: 100%;
}

.logout-button {
  border-color: rgba(148, 163, 184, 0.5);
  background: #ffffff;
  color: #334155;
}

.logout-button:hover {
  border-color: rgba(105, 187, 221, 0.8);
  color: #0f172a;
}

.cockpit-topbar-snooze-slot {
  display: none;
  position: relative;
  align-self: flex-start;
  margin-right: auto;
  min-width: 112px;
  max-width: 360px;
  transform: translate(calc(clamp(220px, 22vw, 300px) - 384px), 54px);
  z-index: 20;
}

.workspace[data-active-view="cockpit"] .cockpit-topbar-snooze-slot:not([hidden]) {
  display: block;
}

.cockpit-snooze-topbar-action {
  position: relative;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  max-width: 100%;
}

.cockpit-snooze-topbar-action.is-snoozed {
  flex-wrap: wrap;
  max-width: min(520px, calc(100vw - 680px));
}

.snooze-quick-button {
  min-height: 38px;
  padding: 0 16px;
  border: 1px solid rgba(13, 148, 136, 0.3);
  border-radius: 12px;
  background: linear-gradient(180deg, #27c6a3 0%, #10967f 100%);
  color: #fff;
  box-shadow: 0 12px 26px rgba(16, 150, 127, 0.22), inset 0 1px 0 rgba(255, 255, 255, 0.28);
  font-weight: 800;
  line-height: 1;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  white-space: nowrap;
  cursor: pointer;
}

.snooze-quick-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(16, 150, 127, 0.28), inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.snooze-quick-button:disabled {
  cursor: wait;
  opacity: 0.7;
  transform: none;
}

.snooze-quick-button.is-cancel {
  border-color: rgba(198, 73, 73, 0.26);
  background: linear-gradient(180deg, #fff 0%, #fff7f7 100%);
  color: #b4233a;
  box-shadow: 0 10px 22px rgba(148, 31, 48, 0.12);
}

.snooze-quick-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: #d9fff4;
  box-shadow: 0 0 0 4px rgba(217, 255, 244, 0.2);
}

.cockpit-snooze-return,
.cockpit-snooze-comment {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.cockpit-snooze-return {
  flex: 0 0 auto;
  max-width: 150px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cockpit-snooze-comment {
  flex: 1 1 220px;
  min-width: 180px;
  max-width: 100%;
  overflow: visible;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

.cockpit-snooze-feedback {
  flex: 1 1 220px;
  min-width: min(220px, 100%);
  max-width: 320px;
  padding: 5px 9px;
  border: 1px solid rgba(13, 148, 136, 0.22);
  border-radius: 999px;
  background: rgba(229, 255, 247, 0.92);
  color: #087864;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.2;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.snooze-popover {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  width: min(360px, calc(100vw - 32px));
  padding: 12px;
  border: 1px solid var(--border-strong);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 22px 48px rgba(38, 66, 96, 0.2);
  display: grid;
  gap: 10px;
}

.snooze-days-switch {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.snooze-days-switch .mode-button {
  min-width: 0;
  min-height: 34px;
  padding: 0 8px;
}

.task-days-field {
  align-content: start;
}

.task-days-switch .mode-button {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  border: 0;
  font: inherit;
}

.task-days-radio {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.task-days-switch .mode-button:has(.task-days-radio:checked) {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(22, 145, 232, 0.12);
}

.task-days-custom {
  display: none;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.task-days-field:has(.task-days-radio[value="custom"]:checked) .task-days-custom {
  display: grid;
}

.task-days-custom .inline-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.snooze-popover .field-label {
  display: grid;
  gap: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.snooze-popover .inline-input {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  padding: 9px 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  letter-spacing: 0;
  text-transform: none;
}

.snooze-popover .sales-chip-row {
  gap: 8px;
}

.snooze-popover .primary-button,
.snooze-popover .secondary-button {
  min-height: 34px;
  padding: 0 12px;
  border-radius: 10px;
  font-weight: 800;
  cursor: pointer;
}

.snooze-popover .primary-button {
  border: 1px solid rgba(13, 148, 136, 0.32);
  background: #0f9f87;
  color: #fff;
  box-shadow: 0 8px 16px rgba(16, 150, 127, 0.18);
}

.snooze-popover .secondary-button {
  border: 1px solid var(--border-strong);
  background: #fff;
  color: var(--text);
}

.search-box {
  display: flex;
  align-items: center;
  gap: 9px;
  min-width: 308px;
  height: 38px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 11px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.5);
}

.search-box input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text);
}

.search-clear-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 24px;
  width: 24px;
  height: 24px;
  border: 0;
  border-radius: 50%;
  background: rgba(91, 108, 125, 0.1);
  color: var(--muted);
  cursor: pointer;
  line-height: 1;
  transition:
    background 0.15s ease,
    color 0.15s ease,
    opacity 0.15s ease;
}

.search-clear-button:hover,
.search-clear-button:focus-visible {
  background: rgba(91, 108, 125, 0.18);
  color: var(--text);
}

.search-clear-button.is-hidden {
  opacity: 0;
  pointer-events: none;
}

.toolbar-button,
.action-button,
.scope-pill,
.mode-switch {
  min-height: 38px;
  border-radius: 11px;
}

.toolbar-button {
  padding: 0 13px;
  border: 1px solid var(--border-strong);
  background: rgba(255, 255, 255, 0.94);
  color: var(--text-soft);
}

.toolbar-button:hover {
  border-color: #c8d8ea;
  background: #fff;
}

.scope-pill {
  display: grid;
  align-content: center;
  min-width: 122px;
  padding: 0 14px;
  background: linear-gradient(135deg, #1491e8, #2a9fe9 58%, #58b6f2);
  color: #fff;
  border: 1px solid rgba(255, 255, 255, 0.28);
  box-shadow: 0 16px 30px rgba(33, 144, 228, 0.24);
}

.scope-label {
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  opacity: 0.84;
}

.mode-switch {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  min-width: 0;
  padding: 4px;
  border: 1px solid rgba(196, 213, 232, 0.95);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(247, 251, 255, 0.96));
  box-shadow: 0 14px 28px rgba(104, 139, 177, 0.1);
}

.mode-button {
  min-height: 30px;
  padding: 0 14px;
  border-radius: 9px;
  background: transparent;
  color: var(--text-soft);
  transition: background 160ms ease, color 160ms ease, box-shadow 160ms ease;
}

.mode-button:disabled {
  cursor: default;
  opacity: 0.52;
}

.mode-button.is-active {
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-weight: 600;
  box-shadow: inset 0 0 0 1px rgba(22, 145, 232, 0.12);
}

.collaborator-picker {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 34px;
  padding: 0 10px 0 10px;
  border-left: 1px solid rgba(205, 217, 232, 0.92);
}

.collaborator-picker-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.collaborator-select {
  min-width: 150px;
  max-width: 100%;
  min-height: 30px;
  padding: 0 28px 0 10px;
  border: 1px solid rgba(209, 220, 233, 0.96);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 248, 253, 0.98));
  color: var(--text);
  font-size: 14px;
  font-weight: 600;
  outline: none;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
  cursor: pointer;
}

.collaborator-select:invalid,
.collaborator-select option[value=""] {
  color: var(--muted);
}

.collaborator-select:hover {
  border-color: rgba(166, 192, 219, 0.98);
}

.collaborator-select:disabled {
  cursor: wait;
  color: var(--muted);
  background:
    linear-gradient(180deg, rgba(249, 251, 253, 0.98), rgba(242, 246, 250, 0.98));
  border-color: rgba(220, 228, 237, 0.96);
  box-shadow: none;
  opacity: 1;
}

.workspace[data-profile-type="collaborateur"] .scope-pill {
  background: linear-gradient(135deg, #0d8f72, #18a981 58%, #31c598);
  box-shadow: 0 16px 30px rgba(17, 153, 118, 0.24);
}

.workspace[data-profile-type="collaborateur"] .mode-switch {
  border-color: rgba(170, 214, 199, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 248, 0.98));
  box-shadow: 0 14px 28px rgba(66, 140, 113, 0.12);
}

.workspace[data-profile-type="collaborateur"] .mode-button.is-active {
  background: rgba(19, 166, 122, 0.14);
  color: #0b7d5f;
  box-shadow: inset 0 0 0 1px rgba(19, 166, 122, 0.14);
}

.workspace[data-profile-type="collaborateur"] .collaborator-picker {
  border-left-color: rgba(184, 221, 209, 0.96);
}

.workspace[data-profile-type="collaborateur"] .collaborator-select {
  border-color: rgba(180, 220, 207, 0.96);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(241, 251, 246, 0.99));
  color: #0b7d5f;
}

.workspace[data-profile-type="collaborateur"] #queue-scope-label {
  background: rgba(19, 166, 122, 0.14);
  color: #0b7d5f;
  border: 1px solid rgba(19, 166, 122, 0.12);
}

.chip-filter.is-locked {
  opacity: 1;
  cursor: default;
}

.filters-panel {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.filters-panel[hidden] {
  display: none;
}

.filter-group {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.filter-group-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.chip-filter,
.pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--text-soft);
}

.pill-action {
  cursor: pointer;
}

.pill-action.is-active {
  border-color: rgba(33, 144, 228, 0.18);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.chip-filter.is-active {
  border-color: rgba(33, 144, 228, 0.18);
  background: var(--accent-soft);
  color: var(--accent-strong);
}

.stats-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.stats-grid[hidden] {
  display: none !important;
}

.workspace[data-active-view="cockpit"] .stats-grid {
  margin-top: 10px;
  margin-bottom: 2px;
}

.data-source-banner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 12px;
  padding: 10px 14px;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius-md);
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

.data-source-banner[hidden] {
  display: none !important;
}

.data-source-banner strong {
  color: var(--text);
}

.data-source-banner.is-live {
  border-color: rgba(87, 181, 110, 0.34);
  background: rgba(237, 249, 240, 0.92);
}

.data-source-banner.is-fallback {
  border-color: rgba(240, 164, 79, 0.34);
  background: rgba(255, 244, 231, 0.94);
}

.data-source-banner.is-mock {
  border-color: rgba(33, 144, 228, 0.28);
  background: rgba(234, 245, 255, 0.92);
}

.data-source-banner.is-error {
  border-color: rgba(239, 106, 106, 0.34);
  background: rgba(255, 241, 241, 0.94);
}

.data-source-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: flex-end;
}

.view-freshness {
  display: inline-block;
  width: auto;
  max-width: none;
  margin: 2px 0 0;
  padding: 0;
  border-radius: 0;
  border: 0;
  background: transparent;
  color: #2f7d4f;
  font-size: 12px;
  font-weight: 600;
  line-height: 1.25;
  white-space: nowrap;
  word-break: keep-all;
  overflow: visible;
  text-overflow: clip;
  box-shadow: none;
}

.view-freshness.is-live {
  color: #2f7d4f;
}

.view-freshness.is-warning {
  color: #b36a1f;
  border-color: rgba(239, 189, 128, 0.92);
  background: rgba(255, 246, 235, 0.98);
}

.view-freshness.is-mock {
  color: var(--muted);
  border-color: rgba(212, 221, 232, 0.92);
  background: rgba(248, 250, 253, 0.96);
}

.source-chip {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(217, 228, 239, 0.9);
  color: var(--text-soft);
  font-size: 11px;
}

.stat-card,
.section-table,
.detail-panel,
.surface-panel,
.side-summary,
.portfolio-card,
.journal-drawer {
  background: rgba(255, 255, 255, 0.97);
  border: 1px solid var(--border);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-soft);
}

.stat-card {
  position: relative;
  display: grid;
  align-content: start;
  gap: 10px;
  overflow: hidden;
  padding: 20px 22px 18px;
  min-height: 156px;
  width: 100%;
  text-align: left;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(58, 132, 244, 0.07), transparent 28%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border: 1px solid #d7e4f2;
  box-shadow:
    0 18px 34px rgba(129, 168, 214, 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    border-color 160ms ease;
}

.stat-card::before {
  content: "";
  position: absolute;
  inset: 0 auto auto 0;
  width: 100%;
  height: 3px;
  background: linear-gradient(90deg, rgba(58, 132, 244, 0.52), rgba(58, 132, 244, 0.08));
}

.stat-card.is-clickable:hover {
  border-color: #bed6ee;
  box-shadow:
    0 26px 54px rgba(114, 158, 209, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.94);
  transform: translateY(-2px);
}

.stat-head {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 8px;
}

.stat-title {
  margin: 0;
  max-width: 20ch;
  font-size: 16px;
  line-height: 1.22;
  letter-spacing: -0.03em;
  font-weight: 680;
  color: #102746;
}

.stat-value {
  margin: 4px 0 0;
  font-size: 52px;
  line-height: 0.94;
  letter-spacing: -0.04em;
  font-weight: 750;
  color: #081321;
}

.stat-meta,
.muted-line,
.mini-note {
  color: var(--muted);
}

.stat-meta {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  line-height: 1.3;
}

.stat-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid #e7eef7;
  color: var(--text-soft);
}

.mini-note {
  font-size: 12px;
}

.workspace[data-active-view="cockpit"] .stat-card {
  min-height: 132px;
  padding: 15px 18px 14px;
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(58, 132, 244, 0.05), transparent 24%),
    linear-gradient(180deg, #ffffff 0%, #ffffff 100%);
  border-color: #d4e0ee;
  box-shadow:
    0 14px 24px rgba(129, 168, 214, 0.13),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.workspace[data-active-view="cockpit"] .stat-title {
  font-size: 14px;
  max-width: 18ch;
}

.workspace[data-active-view="cockpit"] .stat-value {
  font-size: 40px;
}

.workspace[data-active-view="cockpit"] .stat-meta {
  font-size: 12px;
}

.workspace[data-active-view="cockpit"] .stat-foot {
  margin-top: 10px;
  padding-top: 10px;
}

.workspace[data-active-view="cockpit"] .mini-note {
  font-size: 11px;
}

.delta-up {
  color: var(--success);
  font-weight: 600;
}

.delta-down {
  color: var(--danger);
  font-weight: 600;
}

.view {
  display: none;
}

.view.is-active {
  display: block;
  animation: fade-in 170ms ease;
}

@keyframes fade-in {
  from {
    opacity: 0;
    transform: translateY(5px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.home-dashboard,
.stacked-view {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.home-dashboard {
  grid-template-columns: 1.22fr 1.22fr 0.92fr;
  align-items: start;
}

.dashboard-column {
  display: grid;
  gap: 10px;
}

.surface-panel,
.detail-panel,
.side-summary,
.section-table,
.portfolio-card {
  padding: 14px 16px;
}

.surface-header {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 10px;
  margin-bottom: 10px;
}

.surface-kicker {
  margin: 0 0 3px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.surface-title {
  margin: 0;
  font-size: 18px;
  line-height: 1.18;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.scope-badge,
.section-count,
.status-badge,
.tiny-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  white-space: nowrap;
  border-radius: 999px;
  font-weight: 700;
}

.scope-badge {
  min-height: 26px;
  padding: 0 10px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 11px;
}

.dashboard-mosaic {
  display: grid;
  gap: 10px;
}

.dashboard-tile,
.metric-tile,
.detail-card,
.kanban-card {
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.dashboard-tile {
  padding: 14px 14px 10px;
  min-width: 0;
}

.dashboard-tile.executive {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.metric-list,
.bullet-list,
.timeline-list,
.plain-list {
  list-style: none;
  margin: 0;
  padding: 0;
}

.metric-head {
  display: grid;
  gap: 12px;
  align-items: center;
  min-height: 26px;
  padding: 3px 0 8px;
  margin-top: 2px;
  border-bottom: 1px solid #eef3f8;
  color: #7f93a8;
  font-size: 10px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.metric-head-2 {
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
}

.metric-head-3 {
  grid-template-columns: minmax(0, 1.15fr) minmax(72px, 0.7fr) minmax(88px, max-content);
}

.metric-head span:last-child {
  text-align: right;
}

.metric-head-3 span:nth-child(2),
.metric-list-3 li > span:nth-child(2) {
  text-align: right;
}

.dashboard-tile[data-dashboard-tile="A contacter aujourd'hui"] .metric-head-3,
.dashboard-tile[data-dashboard-tile="A contacter aujourd'hui"] .metric-list-3 li {
  grid-template-columns: minmax(0, 1.15fr) minmax(120px, 0.95fr) minmax(104px, max-content);
}

.dashboard-tile[data-dashboard-tile="A contacter aujourd'hui"] .metric-head-3 span:nth-child(2),
.dashboard-tile[data-dashboard-tile="A contacter aujourd'hui"] .metric-list-3 li > span:nth-child(2) {
  text-align: left;
}

.dashboard-tile[data-dashboard-tile="A reprendre cette semaine"] .metric-head-2,
.dashboard-tile[data-dashboard-tile="A reprendre cette semaine"] .metric-list-2 li {
  grid-template-columns: minmax(0, 1fr) minmax(180px, 1.35fr);
}

.dashboard-tile[data-dashboard-tile="A reprendre cette semaine"] .metric-head-2 span:last-child,
.dashboard-tile[data-dashboard-tile="A reprendre cette semaine"] .metric-list-2 li > strong {
  text-align: left;
}

.dashboard-tile[data-dashboard-tile="Rendez-vous à préparer"] .metric-head-2,
.dashboard-tile[data-dashboard-tile="Rendez-vous à préparer"] .metric-list-2 li {
  grid-template-columns: minmax(0, 1fr) 188px;
}

.metric-list-2 li,
.metric-list-3 li {
  display: grid;
  align-items: center;
  justify-content: stretch;
}

.metric-list-2 li {
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
}

.metric-list-3 li {
  grid-template-columns: minmax(0, 1.15fr) minmax(72px, 0.7fr) minmax(88px, max-content);
}

.metric-list-2 li > strong,
.metric-list-3 li > strong,
.metric-list-2 li > span:last-child,
.metric-list-3 li > span:last-child {
  text-align: right;
}

.metric-head span,
.metric-list li > span,
.metric-list li > strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.metric-list li,
.bullet-list li,
.timeline-list li,
.plain-list li {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 0;
  border-top: 1px solid #eef3f8;
}

.metric-list li:first-child,
.bullet-list li:first-child,
.timeline-list li:first-child,
.plain-list li:first-child {
  border-top: 0;
}

.metric-list-2 li,
.metric-list-3 li {
  display: grid;
  align-items: center;
  justify-content: stretch;
}

.metric-list-2 li {
  grid-template-columns: minmax(0, 1fr) minmax(92px, max-content);
}

.metric-list-3 li {
  grid-template-columns: minmax(0, 1.15fr) minmax(72px, 0.7fr) minmax(88px, max-content);
}

.metric-empty-state {
  grid-template-columns: minmax(0, 1fr) !important;
  color: #60758d;
  font-size: 13px;
}

.metric-empty-state > span {
  grid-column: 1 / -1;
}

.home-actions-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(280px, 0.82fr);
  gap: 12px;
  align-items: start;
}

.home-dashboard > .home-actions-layout {
  grid-column: 1 / -1;
}

.home-priority-panel {
  grid-row: span 2;
}

.home-priority-list,
.home-today-list,
.home-signal-grid {
  display: grid;
  gap: 10px;
}

.home-priority-card,
.home-empty-panel {
  border: 1px solid #dce8f4;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.home-priority-card.is-leading {
  border-color: rgba(105, 187, 221, 0.55);
  background: linear-gradient(180deg, #ffffff 0%, #f6fbff 100%);
}

.home-priority-main,
.home-today-row,
.home-signal-card {
  width: 100%;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.home-priority-main {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 0;
}

.home-priority-rank,
.home-today-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-strong);
  font-size: 12px;
  font-weight: 800;
}

.home-priority-copy {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-priority-copy strong,
.home-today-row strong {
  min-width: 0;
  color: #0c1b2a;
  font-size: 15px;
  overflow-wrap: anywhere;
}

.home-priority-copy span,
.home-priority-detail,
.home-priority-reason,
.home-today-row small,
.home-signal-card span,
.home-signal-card small {
  color: #60758d;
  font-size: 12px;
  line-height: 1.35;
}

.home-priority-badge,
.home-score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 0 9px;
  background: #edf8f0;
  color: #317a45;
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.home-priority-detail {
  display: grid;
  gap: 3px;
  margin-top: 10px;
  padding-left: 40px;
}

.home-priority-reason {
  margin: 8px 0 0;
  padding-left: 40px;
}

.home-priority-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding-left: 40px;
}

.home-score-chip {
  background: #edf6fb;
  color: #256f91;
}

.home-today-row {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: center;
  padding: 10px 0;
  border-top: 1px solid #eef3f8;
}

.home-today-row:first-child {
  border-top: 0;
}

.home-today-row > span:nth-child(2) {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.home-today-row em {
  color: #0c1b2a;
  font-size: 12px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.home-signal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.home-signal-card {
  display: grid;
  gap: 4px;
  min-height: 74px;
  padding: 10px;
  border: 1px solid #e2edf7;
  border-radius: 12px;
  background: #fff;
}

.home-signal-card strong {
  color: #0c1b2a;
  font-size: 24px;
  line-height: 1;
}

.home-priority-main:hover .home-priority-copy strong,
.home-today-row:hover strong,
.home-signal-card:hover span {
  color: var(--accent-strong);
}

.text-link,
.chip-link {
  background: transparent;
  color: var(--accent-strong);
  padding: 0;
  text-align: left;
}

.text-link {
  font-size: 12px;
}

.kpi-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.mini-kpi {
  padding: 13px 14px;
  border: 1px solid var(--border);
  border-radius: 15px;
  background: var(--surface-soft);
}

.mini-kpi strong {
  display: block;
  margin-bottom: 5px;
  font-size: 24px;
  line-height: 1;
}

.cockpit-layout,
.detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.92fr) 310px;
  gap: 12px;
  margin-top: 14px;
}

.cockpit-layout > *,
.detail-layout > * {
  min-width: 0;
}

.cockpit-layout {
  align-items: start;
}

#cockpit-mode-toolbar-slot {
  width: 100%;
  max-width: 100%;
  margin-top: 14px;
}

#cockpit-mode-toolbar-slot .cockpit-mode-toolbar-block {
  width: 100%;
  max-width: 100%;
}

#cockpit-mode-toolbar-slot .cockpit-mode-toolbar {
  padding: 7px;
  width: 100%;
}

#cockpit-mode-toolbar-slot .cockpit-mode-switch {
  display: grid;
  width: 100%;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 2px;
}

#cockpit-mode-toolbar-slot .cockpit-mode-switch .mode-button {
  min-width: 0;
  min-height: 36px;
  padding: 0 4px;
  justify-content: center;
  white-space: nowrap;
  font-size: 11px;
  line-height: 1.1;
}

#cockpit-mode-toolbar-slot .cockpit-mode-meta {
  display: none;
}


/* Cockpit active layout keeps the mode switch and queue in one left rail. */
.cockpit-left-rail {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
}

.cockpit-left-rail #cockpit-mode-toolbar-slot {
  margin-top: 0;
}

.cockpit-layout.is-cockpit-1b-layout {
  grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr);
  gap: 12px;
}

.cockpit-layout.is-cockpit-1b-layout .action-board {
  min-height: 0;
}

.cockpit-layout.is-cockpit-1b-layout .action-board > .surface-header {
  display: none;
}

.action-board {
  display: flex;
  flex-direction: column;
  align-self: start;
  min-width: 0;
  gap: 10px;
}

.queue-sections {
  display: grid;
  align-content: start;
  gap: 10px;
}

.queue-section {
  border: 1px solid var(--border);
  border-radius: 16px;
  overflow: hidden;
  background: var(--surface);
  box-shadow: var(--shadow-soft);
  scroll-margin-top: 18px;
}

.queue-section.is-focused {
  border-color: rgba(33, 144, 228, 0.34);
  box-shadow:
    0 0 0 2px rgba(33, 144, 228, 0.08),
    var(--shadow-strong);
}

.queue-section-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px 10px;
  border-bottom: 1px solid #edf2f7;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.section-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
  justify-content: center;
  padding: 4px;
  border: 1px solid rgba(218, 229, 241, 0.86);
  border-radius: 16px;
  background: rgba(248, 251, 255, 0.92);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.86);
}

.task-global-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 8px 0 2px;
}

.pager-controls {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
}

.pager-button {
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: rgba(255, 255, 255, 0.86);
  color: var(--text-soft);
  font-size: 12px;
}

.pager-button-icon {
  width: 30px;
  min-width: 30px;
  padding: 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: #375a78;
  font-size: 19px;
  line-height: 1;
}

.pager-button:hover:not(:disabled) {
  border-color: var(--border-strong);
  background: #f6fbff;
}

.pager-button:disabled {
  opacity: 0.45;
  cursor: default;
}

.queue-section-heading {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.queue-section-heading.is-count-only {
  gap: 0;
}

.queue-section-title {
  margin: 0;
  min-width: 0;
  color: #10243d;
  font-size: 16px;
  font-weight: 800;
  letter-spacing: 0;
  line-height: 1.05;
}

.section-count {
  min-width: 52px;
  min-height: 30px;
  max-width: 100%;
  padding: 0 12px;
  border: 1px solid rgba(157, 202, 237, 0.95);
  border-radius: 999px;
  background: linear-gradient(180deg, #f6fbff 0%, #e6f3ff 100%);
  color: #0668b8;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.1;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 16px rgba(33, 105, 166, 0.08);
}

.table-head,
.table-row {
  display: grid;
  align-items: center;
  gap: 10px;
}

.table-head > span,
.table-row > span {
  min-width: 0;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.table-sort-button {
  width: 100%;
  min-height: 28px;
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 6px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-transform: inherit;
  letter-spacing: inherit;
}

.table-sort-button:hover {
  color: var(--text-soft);
}

.table-sort-button.is-active {
  color: var(--accent-strong);
}

.table-sort-indicator {
  font-size: 11px;
  line-height: 1;
  opacity: 0.8;
}

.queue-table .table-head,
.queue-table .table-row {
  grid-template-columns:
    minmax(0, 1.2fr)
    minmax(0, 1.02fr)
    minmax(0, 1.42fr)
    minmax(0, 1.3fr)
    minmax(78px, 0.62fr)
    minmax(88px, 0.78fr)
    minmax(118px, 0.9fr)
    20px;
  padding: 0 12px 0 14px;
}

.queue-table-shell {
  position: relative;
  min-width: 0;
  overflow: hidden;
}

.queue-table-scroll {
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-width: thin;
}

.queue-table-shell.is-florent-wide::before,
.queue-table-shell.is-florent-wide::after {
  display: none;
}

.queue-scroll-button {
  position: absolute;
  top: 12px;
  z-index: 8;
  width: 30px;
  height: 30px;
  border: 1px solid var(--border-strong);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--text-soft);
  box-shadow: var(--shadow-soft);
}

.queue-scroll-button.is-left {
  left: 8px;
}

.queue-scroll-button.is-right {
  right: 8px;
}

.queue-table-shell.is-at-start .queue-scroll-button.is-left,
.queue-table-shell.is-at-end .queue-scroll-button.is-right {
  opacity: 0.38;
}

.queue-table-standard .table-head,
.queue-table-standard .table-row {
  grid-template-columns: var(--cockpit-columns);
  min-width: max-content;
  position: relative;
  isolation: isolate;
}

.queue-table-standard {
  display: grid;
  grid-template-columns: var(--cockpit-columns);
  width: max-content;
}

.queue-table-standard .table-head,
.queue-table-standard .table-row {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  width: auto;
}

.queue-table-phoning .table-head,
.queue-table-phoning .table-row {
  grid-template-columns:
    minmax(0, 1.08fr)
    minmax(0, 0.98fr)
    minmax(150px, 0.9fr)
    minmax(128px, 0.78fr)
    minmax(230px, 1.5fr)
    minmax(88px, 0.58fr)
    minmax(116px, 0.76fr)
    20px;
}

.is-cockpit-1b-layout .queue-sections {
  gap: 0;
}

.is-cockpit-1b-layout .queue-section {
  border-radius: 16px;
}

.is-cockpit-1b-layout .queue-section-header {
  min-height: 50px;
  padding: 12px 14px 8px;
}

.is-cockpit-1b-layout .queue-table .table-head {
  display: none;
}

.is-cockpit-1b-layout .section-pagination {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 3px;
  width: auto;
  max-width: 100%;
  padding: 4px;
  border: 1px solid rgba(203, 221, 238, 0.92);
  border-radius: 16px;
  background: rgba(244, 249, 253, 0.96);
  box-shadow: 0 8px 18px rgba(25, 56, 92, 0.05);
}

.is-cockpit-1b-layout .section-pagination .mini-note {
  min-height: 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 3px;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: #6b8098;
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  white-space: nowrap;
}

.is-cockpit-1b-layout .section-pagination .pager-button {
  min-height: 30px;
  border-color: transparent;
  background: #ffffff;
  color: #315f86;
  font-weight: 700;
  box-shadow: 0 2px 5px rgba(25, 56, 92, 0.08);
  white-space: nowrap;
}

.is-cockpit-1b-layout .section-pagination .pager-button-icon {
  width: 30px;
  min-width: 30px;
  padding: 0;
  font-size: 21px;
}

.is-cockpit-1b-layout .queue-table-scroll {
  overflow: visible;
}

.is-cockpit-1b-layout .queue-table {
  display: grid;
  width: 100%;
}

.is-cockpit-1b-layout .queue-table-standard {
  grid-template-columns: minmax(0, 1fr);
}

.is-cockpit-1b-layout .queue-table-standard .table-row {
  width: 100%;
}

.is-cockpit-1b-layout .queue-table-standard .table-row > span {
  position: static;
  left: auto;
  z-index: auto;
  background: transparent;
  box-shadow: none;
}

.is-cockpit-1b-layout .queue-table .table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  min-height: 88px;
  padding: 14px 14px 13px;
  border-top: 1px solid #edf2f7;
  border-radius: 0;
}

.is-cockpit-1b-layout .queue-table .table-row.is-selected {
  margin: 8px;
  border: 1px solid rgba(210, 77, 87, 0.16);
  border-radius: 10px;
  background: rgba(255, 246, 246, 0.88);
}

.is-cockpit-1b-layout .queue-table .table-row > span {
  min-width: 0;
}

.is-cockpit-1b-layout .queue-table .table-row > span:nth-child(1) {
  grid-column: 1;
  grid-row: 1;
  padding-left: 0;
}

.is-cockpit-1b-layout .queue-table .table-row > span:nth-child(2) {
  grid-column: 1;
  grid-row: 2;
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 12px;
}

.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(3) {
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
}

.is-cockpit-1b-layout .queue-table-standard .table-row > span:nth-child(3) {
  grid-column: 1 / -1;
  grid-row: 3;
  margin-top: 9px;
}

.is-cockpit-1b-layout .queue-table-standard .table-row > span:nth-child(4) {
  display: none;
}

.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(4),
.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(6),
.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(6),
.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(7),
.is-cockpit-1b-layout .queue-table-phoning .table-row > span:nth-child(8) {
  display: none;
}

.is-cockpit-1b-layout .queue-table .row-company {
  gap: 9px;
}

.is-cockpit-1b-layout .queue-table-phoning .phone-pill {
  min-width: 38px;
  width: 38px;
  padding: 0;
  justify-content: center;
}

.is-cockpit-1b-layout .queue-table-phoning .phone-pill-number {
  display: none;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card {
  position: relative;
  grid-template-columns: 40px minmax(0, 1fr);
  align-items: start;
  column-gap: 12px;
  min-height: 108px;
  padding: 12px 12px 11px;
  overflow: hidden;
  background: rgba(255, 255, 255, 0.92);
  transition:
    background 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    transform 150ms ease;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  background: linear-gradient(180deg, rgba(33, 144, 228, 0.9), rgba(49, 95, 134, 0.55));
  opacity: 0;
  transition: opacity 150ms ease;
}

@media (hover: hover) and (pointer: fine) {
  .is-cockpit-1b-layout .queue-table .queue-row-call-card:hover {
    border-color: rgba(148, 194, 230, 0.5);
    background: linear-gradient(90deg, rgba(239, 248, 255, 0.96), rgba(255, 255, 255, 0.94));
    box-shadow:
      inset 0 0 0 1px rgba(33, 144, 228, 0.08),
      0 10px 20px rgba(35, 72, 110, 0.08);
    transform: translateY(-1px);
  }

  .is-cockpit-1b-layout .queue-table .queue-row-call-card:hover::before {
    opacity: 0.76;
  }
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card.is-selected {
  margin: 0;
  border-color: rgba(148, 194, 230, 0.42);
  border-radius: 0;
  background: linear-gradient(90deg, rgba(239, 248, 255, 0.94), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.08);
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card.is-selected::before {
  opacity: 0.86;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card > span:nth-child(1),
.is-cockpit-1b-layout .queue-table .queue-row-call-card > span:nth-child(2) {
  grid-row: 1;
  margin-top: 0;
}

.queue-rank {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  align-self: start;
  width: 29px;
  min-width: 25px;
  height: 25px;
  min-height: 25px;
  margin-top: 0;
  border-radius: 999px;
  color: #fff;
  font-size: 13px;
  font-weight: 750;
  line-height: 1;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.62),
    0 8px 14px rgba(37, 50, 70, 0.1);
}

.queue-rank.is-first {
  background: #ec3152;
}

.queue-rank.is-second {
  background: #ff950f;
}

.queue-rank.is-third {
  background: #f3b509;
}

.queue-rank.is-later {
  background: #9cabbc;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card .queue-rank.is-first {
  background: #ec3152;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card .queue-rank.is-second {
  background: #ff950f;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card .queue-rank.is-third {
  background: #f3b509;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card .queue-rank.is-later {
  background: #9cabbc;
}

.queue-call-copy {
  display: grid;
  gap: 4px;
  justify-items: start;
  align-content: start;
  min-width: 0;
  color: var(--text);
  line-height: 1.08;
  text-align: left;
}

.queue-call-head {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

.queue-score-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 34px;
  height: 18px;
  padding: 0 6px;
  border-radius: 999px;
  background: #ecf7ff;
  color: #0f6fb7;
  font-size: 10px;
  font-weight: 750;
  line-height: 1;
}

.queue-call-contact,
.queue-call-company,
.queue-call-subject {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.queue-call-contact {
  color: #17243a;
  font-size: 14px;
  font-weight: 500;
}

.queue-call-company {
  color: #334761;
  font-size: 12px;
  font-weight: 500;
}

.queue-call-subject {
  color: #ff950f;
  font-size: 12px;
  font-weight: 500;
}

.queue-row-call-card.is-selected .queue-call-subject {
  color: #ec3152;
}

.queue-row-call-card:nth-of-type(3) .queue-call-subject {
  color: #f3b509;
}

.queue-row-call-card:nth-of-type(n + 4) .queue-call-subject {
  color: #63758a;
}

.queue-table-phoning .table-head > span:nth-child(6),
.queue-table-phoning .table-row > span:nth-child(6) {
  align-items: stretch;
  justify-content: stretch;
}

.queue-table .table-head > span:first-child {
  padding-left: 28px;
}

.queue-table-standard .table-head > span:first-child {
  padding-left: 0;
}

.table-head-cell.has-leading-offset {
  padding-left: 28px;
}

.queue-table .table-head > span:last-child,
.queue-table .table-row > span:last-child {
  justify-content: center;
}

.queue-table-phoning .table-head > span:nth-child(7),
.queue-table-phoning .table-row > span:nth-child(7) {
  justify-content: flex-start;
}

.table-head {
  min-height: 31px;
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  background: var(--surface);
}

.table-row {
  min-height: 54px;
  border-top: 1px solid #eef3f8;
  background: transparent;
}

.table-row:hover {
  background: rgba(240, 246, 253, 0.7);
}

.queue-table-standard .table-head > span:nth-child(1),
.queue-table-standard .table-row > span:nth-child(1) {
  position: sticky;
  left: 0;
  z-index: 20;
  min-width: var(--sticky-contact-width);
  background: var(--surface);
  clip-path: inset(0);
  contain: paint;
  transform: translateZ(0);
  box-shadow: 1px 0 0 rgba(223, 232, 241, 0.92);
}

.queue-table-standard .table-head > span:nth-child(2),
.queue-table-standard .table-row > span:nth-child(2) {
  position: sticky;
  left: var(--sticky-contact-width);
  z-index: 20;
  min-width: var(--sticky-company-width);
  background: var(--surface);
  clip-path: inset(0);
  contain: paint;
  transform: translateZ(0);
  box-shadow: 1px 0 0 rgba(223, 232, 241, 0.92);
}

.queue-table-standard .table-head > span:nth-child(1),
.queue-table-standard .table-head > span:nth-child(2) {
  z-index: 21;
}

.queue-table-standard .table-row:hover > span:nth-child(1),
.queue-table-standard .table-row:hover > span:nth-child(2) {
  background: #f0f6fd;
}

.queue-table-standard .table-row.is-selected > span:nth-child(1),
.queue-table-standard .table-row.is-selected > span:nth-child(2) {
  background: #edf5ff;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card:hover > span:nth-child(2),
.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card.is-selected > span:nth-child(2) {
  background: transparent;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card:hover > .queue-rank.is-first,
.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card.is-selected > .queue-rank.is-first {
  background: #ec3152;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card:hover > .queue-rank.is-second,
.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card.is-selected > .queue-rank.is-second {
  background: #ff950f;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card:hover > .queue-rank.is-third,
.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card.is-selected > .queue-rank.is-third {
  background: #f3b509;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card:hover > .queue-rank.is-later,
.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card.is-selected > .queue-rank.is-later {
  background: #9cabbc;
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card > .queue-rank,
.is-cockpit-1b-layout .queue-table-phoning .queue-row-call-card > .queue-rank {
  position: static;
  z-index: auto;
  grid-column: 1;
  grid-row: 1;
  width: 29px;
  min-width: 25px;
  max-width: 25px;
  height: 25px;
  min-height: 25px;
  margin-top: 1px;
  justify-self: start;
  align-self: start;
  clip-path: none;
  contain: none;
  transform: none;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.62),
    0 8px 14px rgba(37, 50, 70, 0.1);
}

.is-cockpit-1b-layout .queue-table-standard .queue-row-call-card > .queue-call-copy,
.is-cockpit-1b-layout .queue-table-phoning .queue-row-call-card > .queue-call-copy {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  position: static;
  left: auto;
  z-index: auto;
  min-width: 0;
  width: 100%;
  padding-top: 0;
  background: transparent;
  clip-path: none;
  contain: none;
  transform: none;
  box-shadow: none;
  justify-content: start;
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card > .queue-call-copy:nth-child(2) {
  display: grid;
  grid-column: 2;
  grid-row: 1;
  width: 100%;
  margin-top: 0;
  color: var(--text);
  font-size: inherit;
}

.queue-table-standard .table-head > span:nth-child(n + 3),
.queue-table-standard .table-row > span:nth-child(n + 3) {
  position: relative;
  z-index: 1;
  overflow: hidden;
}

.table-row button {
  text-align: left;
}

.queue-row {
  width: 100%;
  color: var(--text);
}

.queue-row > span {
  min-height: 54px;
  align-items: center;
}

.queue-row-phoning > span {
  min-height: 62px;
}

.cockpit-mode-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.cockpit-mode-toolbar-block {
  display: grid;
  gap: 10px;
}

.cockpit-mode-switch {
  flex-shrink: 0;
}

.cockpit-mode-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.pill-outline {
  background: #f7fbff;
  border-color: #d6e6f5;
  color: var(--text-soft);
}

.cockpit-columns-shell,
.company-columns-shell {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
}

.cockpit-columns-head,
.company-columns-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.cockpit-columns-toggle,
.company-columns-toggle {
  min-height: 34px;
  padding: 0 12px;
}

.cockpit-columns-panel,
.company-columns-panel {
  display: grid;
  gap: 8px;
}

.cockpit-columns-actions,
.company-columns-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.cockpit-columns-group,
.company-columns-group {
  display: grid;
  gap: 8px;
}

.cockpit-columns-group-title,
.company-columns-group-title {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.cockpit-column-row,
.company-column-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 4px 6px;
  border: 1px solid rgba(223, 232, 241, 0.8);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.cockpit-column-row.is-fixed,
.company-column-row.is-fixed {
  background: rgba(240, 246, 253, 0.85);
}

.cockpit-column-row.is-selected,
.company-column-row.is-selected {
  border-color: #c6def2;
}

.cockpit-column-chip,
.company-column-chip {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  min-height: 34px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: #f7fbff;
  color: var(--text-soft);
}

.cockpit-column-chip.is-selected,
.company-column-chip.is-selected {
  border-color: #b8d7f3;
  background: var(--accent-soft);
  color: var(--accent-strong);
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.08);
}

.cockpit-column-chip:hover,
.company-column-chip:hover {
  border-color: #c6dced;
  background: #ffffff;
}

.cockpit-column-handle,
.company-column-handle {
  color: var(--muted);
  letter-spacing: -0.12em;
}

.empty-state-card {
  padding: 20px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.cockpit-inline-editor {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.cockpit-inline-editor-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.cockpit-inline-editor-grid,
.cockpit-action-editor-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.cockpit-action-editor-form {
  grid-template-columns: minmax(220px, 1.3fr) minmax(220px, 1.3fr) 132px 140px 150px auto;
  align-items: center;
}

.pill-highlight {
  background: #e9f6ef;
  color: #1f8f6b;
}

.linked-pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #eef7ff;
  color: #2a6aa4;
  font-size: 11px;
  font-weight: 600;
  white-space: nowrap;
}

.source-link-pill {
  cursor: pointer;
  border: 1px solid #d6e6f5;
  transition: transform 120ms ease, box-shadow 120ms ease, background 120ms ease;
}

.source-link-pill:hover {
  background: #e4f1ff;
  box-shadow: 0 6px 14px rgba(42, 106, 164, 0.12);
  transform: translateY(-1px);
}

.phone-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 34px;
  min-width: 128px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(233, 245, 255, 0.98) 100%);
  color: #134b7f;
  border: 1px solid rgba(82, 154, 216, 0.22);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(34, 119, 188, 0.1);
  font-size: 11px;
  font-weight: 760;
  letter-spacing: 0.01em;
  font-variant-numeric: tabular-nums;
}

.phone-cell {
  justify-content: flex-start;
}

.phone-pill-mark {
  position: relative;
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #1ea7ff 0%, #0c6fc4 100%);
  box-shadow: 0 5px 12px rgba(20, 116, 197, 0.24);
}

.phone-pill-mark::after {
  content: "\260E";
  color: #ffffff;
  font-family: "Segoe UI Symbol", "Arial Unicode MS", Arial, sans-serif;
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
  transform: rotate(-16deg);
}

.phone-pill-number {
  line-height: 1;
  white-space: nowrap;
}

.phone-pill.is-missing {
  background: #f3f5f7;
  color: var(--muted);
  border-color: rgba(151, 164, 180, 0.18);
  box-shadow: none;
}

.phone-pill.is-missing .phone-pill-mark {
  background: linear-gradient(135deg, #c8d2dd 0%, #97a6b7 100%);
  box-shadow: none;
}

.touch-mini {
  display: grid;
  gap: 2px;
  align-content: center;
}

.touch-mini strong {
  color: var(--text);
  font-size: 13px;
}

.touch-mini span {
  color: var(--muted);
  font-size: 11px;
}

.queue-row.is-selected {
  background: linear-gradient(180deg, rgba(33, 144, 228, 0.08), rgba(33, 144, 228, 0.05));
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.16);
}

.is-cockpit-1b-layout .queue-table .queue-row-call-card.is-selected {
  border-color: rgba(148, 194, 230, 0.42);
  background: linear-gradient(90deg, rgba(239, 248, 255, 0.94), rgba(255, 255, 255, 0.92));
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.08);
}

.row-company {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-weight: 600;
}

.row-company span:last-child,
.ellipsis {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.cell-clamp {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
  line-height: 1.28;
  max-height: calc(1.28em * 2);
  white-space: normal;
  align-items: flex-start;
  padding: 6px 0;
}

.cell-clamp-muted {
  color: #516579;
}

.action-brief,
.reason-brief {
  align-self: stretch;
  display: flex;
  align-items: center;
  min-width: 0;
  max-width: 100%;
}

.action-brief-surface {
  position: relative;
  display: grid;
  gap: 2px;
  width: min(100%, 240px);
  min-width: 0;
  max-width: 100%;
  justify-self: start;
  padding: 6px 8px 6px 10px;
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(244, 249, 255, 0.96) 100%);
  border: 1px solid rgba(33, 144, 228, 0.12);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.85),
    0 5px 14px rgba(148, 163, 184, 0.06);
  overflow: hidden;
}

.action-brief-surface::before {
  content: "";
  position: absolute;
  left: 0;
  top: 7px;
  bottom: 7px;
  width: 2px;
  border-radius: 999px;
  background: linear-gradient(180deg, #3aa0ff 0%, #7bbdff 100%);
}

.action-brief-kicker {
  font-size: 7px;
  line-height: 1;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: #6f86a1;
  font-weight: 700;
}

.action-brief-text,
.reason-brief-text {
  display: -webkit-box;
  width: 100%;
  min-width: 0;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
  line-height: 1.28;
}

.action-brief-text {
  color: #23384d;
  font-weight: 650;
  font-size: 11px;
  line-height: 1.25;
}

.queue-table-phoning .action-brief {
  align-items: stretch;
  justify-content: stretch;
  min-height: 44px;
}

.queue-table-phoning .action-brief-surface-phoning {
  width: 100%;
  min-height: 38px;
  padding: 7px 10px 7px 12px;
  border-radius: 13px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(246, 250, 255, 0.98) 100%);
  border-color: rgba(108, 136, 166, 0.16);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 8px 18px rgba(58, 86, 118, 0.06);
}

.queue-table-phoning .action-brief-surface-phoning::before {
  top: 8px;
  bottom: 8px;
  background: linear-gradient(180deg, #203f64 0%, #4b8bc4 100%);
}

.queue-table-phoning .action-brief-surface-phoning .action-brief-text {
  -webkit-line-clamp: 1;
  color: #17283a;
  font-size: 11px;
  font-weight: 720;
}

.reason-brief {
  align-self: stretch;
}

.reason-brief-text {
  align-items: center;
  min-height: 22px;
  padding: 0 0 0 12px;
  border-left: 1px solid rgba(143, 162, 184, 0.22);
  color: #687b90;
  font-size: 12px;
  line-height: 1.25;
}

.avatar {
  width: 20px;
  height: 20px;
  display: inline-grid;
  place-items: center;
  border-radius: 7px;
  background: #eaf1f8;
  color: #41566d;
  font-size: 11px;
  font-weight: 700;
  flex: 0 0 auto;
  overflow: hidden;
}

.avatar.has-photo {
  background: #dbe7f3;
  color: transparent;
}

.avatar-image {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.avatar-large {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  font-size: 16px;
}

.detail-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.contact-detail-header-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.contact-detail-action {
  min-width: 74px;
  white-space: nowrap;
}

.contact-detail-action:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.status-badge {
  min-height: 22px;
  padding: 0 9px;
  font-size: 10px;
  border: 1px solid transparent;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.tiny-badge {
  min-height: 20px;
  padding: 0 8px;
  font-size: 10px;
}

.status-a-traiter {
  background: var(--accent-soft);
  color: var(--accent-strong);
  border-color: rgba(33, 144, 228, 0.14);
}

.status-en-cours {
  background: var(--success-soft);
  color: #3c9152;
  border-color: rgba(60, 145, 82, 0.14);
}

.status-en-attente-retour {
  background: var(--warning-soft);
  color: #c5802c;
  border-color: rgba(197, 128, 44, 0.16);
}

.status-termine {
  background: var(--neutral-soft);
  color: #607082;
  border-color: rgba(96, 112, 130, 0.14);
}

.status-ignore {
  background: var(--danger-soft);
  color: var(--danger);
  border-color: rgba(210, 77, 87, 0.16);
}

.priority-cell {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.02em;
  white-space: nowrap;
  gap: 7px;
  padding: 0;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.priority-cell::before {
  content: "";
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: currentColor;
  opacity: 0.9;
}

.priority-cell.high {
  color: #c83e3e;
}

.priority-cell.medium {
  color: #bf7a18;
}

.priority-cell.low {
  color: #356f53;
}

.detail-panel {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 0;
}

.detail-panel-content {
  display: grid;
  gap: 10px;
}

.sales-contact-profile {
  display: grid;
  gap: 12px;
  min-width: 0;
  color: var(--text);
}

.sales-action-banner,
.sales-section,
.sales-context-panel {
  border: 1px solid rgba(211, 225, 240, 0.92);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
}

.sales-action-banner {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 14px;
  padding: 14px;
  background: linear-gradient(180deg, rgba(247, 251, 255, 0.98), rgba(255, 255, 255, 0.96));
}

.sales-profile-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-width: 0;
}

.sales-profile-head h3,
.sales-action-copy strong {
  margin: 0;
  color: #132238;
  font-size: 17px;
  line-height: 1.2;
  font-weight: 680;
}

.sales-profile-head p,
.sales-action-copy p,
.sales-section-head p,
.sales-context-panel p,
.sales-script-box p,
.sales-timeline-item p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.sales-action-copy {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.sales-action-row {
  display: grid;
  grid-template-columns: minmax(180px, 0.72fr) minmax(340px, 1.28fr);
  gap: 14px;
  align-items: end;
  min-width: 0;
}

.sales-action-properties {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  min-width: 0;
}

.sales-action-properties .sales-context-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 0 0 0 13px;
  background: transparent;
}

.sales-action-properties .sales-context-card::before {
  inset: 4px auto 4px 0;
}

.sales-action-properties .detail-label {
  line-height: 1;
}

.sales-action-properties h4 {
  margin: 0;
  color: #17283a;
  font-size: 13px;
  font-weight: 680;
  line-height: 1.18;
}

.sales-action-properties .sales-context-edit-form {
  gap: 3px;
}

.sales-action-properties .sales-context-select {
  min-height: 26px;
  padding: 2px 7px;
  border-radius: 7px;
  font-size: 12px;
}

.sales-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: #f0f6fc;
  color: #294a68;
  font-size: 12px;
  font-weight: 600;
}

.sales-chip.is-urgent {
  border: 1px solid rgba(236, 49, 82, 0.24);
  background: rgba(255, 239, 241, 0.94);
  color: #a10f2e;
}

.sales-chip.is-warning {
  border: 1px solid rgba(245, 150, 34, 0.28);
  background: rgba(255, 247, 232, 0.96);
  color: #8a4b00;
}

.sales-chip.is-due {
  border: 1px solid rgba(35, 128, 220, 0.22);
  background: rgba(235, 246, 255, 0.96);
  color: #21527d;
}

.sales-chip.is-waiting {
  border: 1px solid rgba(67, 103, 229, 0.22);
  background: rgba(239, 244, 255, 0.96);
  color: #2947a6;
}

.sales-chip.is-positive,
.sales-chip.is-calm {
  border: 1px solid rgba(24, 169, 104, 0.22);
  background: rgba(232, 248, 241, 0.96);
  color: #0f7548;
}

.sales-chip.is-neutral {
  border: 1px solid rgba(122, 144, 168, 0.18);
  background: rgba(245, 248, 252, 0.92);
  color: #40566e;
}

.crm-ai-email-section {
  gap: 16px;
  padding: 16px;
}

.crm-ai-email-section-head {
  display: flex;
  align-items: center;
  gap: 12px;
}

.crm-ai-email-section-icon {
  display: inline-grid;
  flex: 0 0 40px;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 50%;
  background: rgba(40, 120, 232, 0.1);
  color: #2878e8;
  font-size: 22px;
  line-height: 1;
}

.crm-ai-email-section-head h3,
.crm-ai-email-section-head p {
  margin: 0;
}

.crm-ai-email-section-head h3 {
  color: #132238;
  font-size: 18px;
  line-height: 1.25;
}

.crm-ai-email-section-head p {
  margin-top: 3px;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.4;
}

.crm-ai-email-section .primary-button,
.crm-ai-email-section .secondary-button {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 8px;
  font: inherit;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.2;
  cursor: pointer;
}

.crm-ai-email-section .primary-button {
  border: 1px solid #1267e8;
  background: linear-gradient(135deg, #1267e8, #0d73f6);
  color: #fff;
  box-shadow: 0 8px 18px rgba(18, 103, 232, 0.2);
}

.crm-ai-email-section .secondary-button {
  border: 1px solid rgba(40, 120, 232, 0.34);
  background: #fff;
  color: #1d5fb9;
}

.crm-ai-email-section .primary-button:disabled,
.crm-ai-email-section .secondary-button:disabled {
  border-color: rgba(151, 168, 188, 0.28);
  background: #f3f6f9;
  color: #8b9aab;
  box-shadow: none;
  cursor: not-allowed;
}

.crm-ai-email-card,
.crm-ai-email-empty {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.crm-ai-email-empty {
  padding: 12px;
  border: 1px solid rgba(211, 225, 240, 0.8);
  border-radius: 8px;
  background: #f8fbfe;
}

.crm-ai-email-empty strong,
.crm-ai-email-field p {
  color: #132238;
}

.crm-ai-email-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 600;
}

.crm-ai-email-warning {
  margin: 0;
  padding: 9px 10px;
  border: 1px solid rgba(245, 150, 34, 0.3);
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.96);
  color: #8a4b00;
  font-size: 13px;
  line-height: 1.4;
}

.crm-ai-email-validation,
.crm-ai-email-gmail-status,
.crm-ai-email-operation-status {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  font-size: 13px;
  line-height: 1.4;
}

.crm-ai-email-validation,
.crm-ai-email-gmail-status.is-error,
.crm-ai-email-operation-status.is-error {
  border: 1px solid rgba(192, 57, 43, 0.22);
  background: rgba(255, 242, 240, 0.96);
  color: #8f1f14;
}

.crm-ai-email-gmail-status.is-success,
.crm-ai-email-operation-status.is-success {
  border: 1px solid rgba(24, 169, 104, 0.22);
  background: rgba(232, 248, 241, 0.96);
  color: #0f7548;
}

.crm-ai-email-gmail-status.is-loading,
.crm-ai-email-operation-status.is-loading {
  border: 1px solid rgba(67, 112, 176, 0.2);
  background: rgba(240, 246, 255, 0.96);
  color: #244a7c;
}

.crm-ai-email-field {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.crm-ai-email-field p,
.crm-ai-email-field pre {
  margin: 0;
  padding: 10px;
  border: 1px solid rgba(211, 225, 240, 0.8);
  border-radius: 8px;
  background: #fbfdff;
  font-size: 13px;
  line-height: 1.45;
}

.crm-ai-email-field pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-family: inherit;
  color: #132238;
}

.crm-ai-email-input,
.crm-ai-email-textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(211, 225, 240, 0.95);
  border-radius: 8px;
  background: #fbfdff;
  color: #132238;
  font: inherit;
  font-size: 13px;
  line-height: 1.45;
}

.crm-ai-email-input {
  min-height: 38px;
  padding: 8px 10px;
}

.crm-ai-email-textarea {
  min-height: 190px;
  resize: vertical;
  padding: 10px;
}

.crm-ai-email-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.crm-ai-email-reasons {
  margin-top: 0;
}

.crm-ai-email-card.is-stale,
.crm-ai-email-card.is-no-go {
  padding: 10px;
  border: 1px solid rgba(245, 150, 34, 0.28);
  border-radius: 10px;
  background: rgba(255, 251, 244, 0.55);
}

.crm-ai-email-hint {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.4;
}

.crm-ai-email-evidence {
  padding: 10px;
  border: 1px solid rgba(211, 225, 240, 0.8);
  border-radius: 8px;
  background: #f8fbfe;
}

.crm-ai-email-evidence summary {
  cursor: pointer;
  color: #244a7c;
  font-size: 13px;
  font-weight: 700;
}

.crm-ai-email-evidence ul {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
}

.crm-ai-email-evidence li {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 6px 12px;
}

.crm-ai-email-evidence li span,
.crm-ai-email-evidence p {
  color: var(--text-soft);
  font-size: 12px;
}

.crm-ai-email-evidence p {
  margin: 10px 0 0;
  line-height: 1.4;
}

.crm-ai-email-choice-flow {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.crm-ai-email-proposal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.crm-ai-email-proposal {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(211, 225, 240, 0.95);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(28, 57, 88, 0.04);
}

.crm-ai-email-proposal.is-selected {
  border-color: #2878e8;
  box-shadow: 0 0 0 2px rgba(40, 120, 232, 0.12);
}

.crm-ai-email-proposal-head,
.crm-ai-email-finalizer-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.crm-ai-email-proposal-subject,
.crm-ai-email-proposal-body {
  margin: 0;
  color: #132238;
  font-size: 13px;
  line-height: 1.5;
}

.crm-ai-email-proposal-body {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}

.crm-ai-email-proposal-button,
.crm-ai-email-gmail-action > button {
  width: 100%;
}

.crm-ai-email-reject-row {
  display: flex;
  justify-content: center;
}

.crm-ai-email-reject-row > button {
  min-width: min(100%, 300px);
}

.crm-ai-email-reject-row > button.is-active {
  border-color: #2878e8;
  background: rgba(40, 120, 232, 0.08);
  color: #1d5fb9;
}

.crm-ai-email-choice-empty {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8fbfe;
  color: var(--text-soft);
  font-size: 13px;
  text-align: center;
}

.crm-ai-email-finalizer-grid {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(220px, 0.9fr);
  gap: 16px;
  align-items: stretch;
}

.crm-ai-email-finalizer,
.crm-ai-email-feedback-panel {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(211, 225, 240, 0.9);
  border-radius: 12px;
  background: #fff;
}

.crm-ai-email-finalizer h4 {
  margin: 0;
  color: #132238;
  font-size: 15px;
}

.crm-ai-email-save-status {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.crm-ai-email-save-status.is-success {
  color: #0f7548;
}

.crm-ai-email-save-status.is-error,
.crm-ai-email-save-status.is-dirty {
  color: #8f1f14;
}

.crm-ai-email-save-status.is-loading {
  color: #244a7c;
}

.crm-ai-email-feedback-panel > span {
  margin-top: -8px;
  color: var(--text-soft);
  font-size: 12px;
}

.crm-ai-email-feedback-options {
  display: grid;
  gap: 10px;
}

.crm-ai-email-feedback-options label {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #263c57;
  font-size: 13px;
  cursor: pointer;
}

.crm-ai-email-feedback-options input {
  width: 18px;
  height: 18px;
  margin: 0;
  accent-color: #2878e8;
}

.crm-ai-email-learning-note {
  margin: 4px 0 0;
  padding: 12px;
  border: 1px solid rgba(40, 120, 232, 0.24);
  border-radius: 10px;
  background: rgba(238, 246, 255, 0.9);
  color: #245ca6;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.5;
}

.crm-ai-email-gmail-action {
  display: grid;
  gap: 8px;
}

.crm-ai-email-gmail-action > p {
  margin: 0;
  color: var(--text-soft);
  font-size: 12px;
  text-align: center;
}

.sales-section {
  display: grid;
  gap: 10px;
  padding: 13px;
}

.sales-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.sales-channel-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.sales-channel {
  display: inline-grid;
  align-content: center;
  gap: 2px;
  min-width: 0;
  min-height: 34px;
  width: clamp(132px, 18vw, 236px);
  padding: 6px 9px;
  border: 1px solid rgba(218, 229, 241, 0.92);
  border-radius: 8px;
  background: #fbfdff;
}

.sales-channel.is-missing {
  background: #fbfcfe;
}

.sales-channel-label,
.sales-channel-status,
.sales-script-box span,
.sales-timeline-title,
.sales-edit-field > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sales-channel-value,
.sales-channel-value a {
  min-width: 0;
  overflow: hidden;
  color: #173557;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-channel-value a {
  text-decoration: none;
}

.sales-channel-status {
  color: #2d7f55;
  text-transform: none;
}

.sales-channel.is-missing .sales-channel-status,
.sales-muted {
  color: var(--muted);
}

.linkedin-signal-section {
  gap: 8px;
}

.linkedin-signal-card,
.linkedin-signal-empty {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(192, 213, 233, 0.92);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(251, 253, 255, 0.98), rgba(246, 251, 249, 0.98));
}

.linkedin-signal-card.is-conflict {
  border-color: rgba(245, 150, 34, 0.46);
  background: rgba(255, 249, 241, 0.98);
}

.linkedin-signal-card.is-stale {
  border-color: rgba(128, 148, 170, 0.38);
  background: rgba(248, 250, 252, 0.98);
}

.linkedin-signal-main {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.linkedin-signal-main strong,
.linkedin-signal-main p,
.linkedin-signal-details p,
.linkedin-signal-detail-list li,
.linkedin-signal-foot span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.linkedin-signal-main strong {
  display: block;
  color: #132238;
  font-size: 14px;
  line-height: 1.25;
}

.linkedin-signal-main p,
.linkedin-signal-empty p,
.linkedin-signal-details p {
  margin: 0;
  color: #4c6179;
  font-size: 13px;
  line-height: 1.35;
}

.linkedin-signal-empty strong {
  color: #173557;
  font-size: 13px;
}

.linkedin-signal-meta,
.linkedin-signal-foot {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: #5c7087;
  font-size: 11px;
  line-height: 1.2;
}

.linkedin-signal-meta {
  margin-bottom: 5px;
}

.linkedin-signal-pill {
  display: inline-flex;
  align-items: center;
  min-height: 21px;
  padding: 3px 8px;
  border: 1px solid rgba(19, 126, 214, 0.22);
  border-radius: 999px;
  background: rgba(238, 247, 255, 0.96);
  color: #12629d;
  font-weight: 800;
}

.linkedin-signal-toggle {
  min-height: 30px;
  padding: 5px 10px;
  border: 1px solid rgba(19, 126, 214, 0.25);
  border-radius: 999px;
  background: #fff;
  color: #12629d;
  cursor: pointer;
  font: inherit;
  font-size: 12px;
  font-weight: 800;
}

.linkedin-signal-toggle:hover,
.linkedin-signal-toggle:focus-visible {
  border-color: rgba(19, 126, 214, 0.5);
  background: rgba(238, 247, 255, 0.95);
  outline: 2px solid rgba(19, 126, 214, 0.14);
  outline-offset: 1px;
}

.linkedin-signal-details {
  display: grid;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(218, 229, 241, 0.92);
}

.linkedin-signal-detail-list {
  display: grid;
  gap: 5px;
}

.linkedin-signal-detail-list ul {
  display: grid;
  gap: 4px;
  margin: 0;
  padding-left: 18px;
  color: #173557;
  font-size: 12px;
  line-height: 1.35;
}

.linkedin-signal-warning {
  padding: 8px;
  border-radius: 8px;
  background: rgba(255, 247, 232, 0.96);
  color: #8a4b00 !important;
}

.linkedin-signal-detail-group {
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(207, 222, 237, 0.92);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.linkedin-signal-detail-group > summary {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 10px;
  color: #173557;
  cursor: pointer;
  font-size: 12px;
  font-weight: 800;
  list-style-position: inside;
}

.linkedin-signal-detail-group > summary span:last-child {
  color: #12629d;
  font-size: 11px;
  white-space: nowrap;
}

.linkedin-signal-detail-group-body {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-top: 1px solid rgba(218, 229, 241, 0.92);
}

.linkedin-signal-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  margin: 0;
  border: 1px solid rgba(226, 235, 244, 0.92);
  border-radius: 7px;
  overflow: hidden;
}

.linkedin-signal-facts > div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-right: 1px solid rgba(226, 235, 244, 0.92);
  border-bottom: 1px solid rgba(226, 235, 244, 0.92);
}

.linkedin-signal-facts > div:nth-child(even) {
  border-right: 0;
}

.linkedin-signal-facts > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.linkedin-signal-facts dt {
  color: #6a7f96;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.linkedin-signal-facts dd {
  min-width: 0;
  margin: 0;
  color: #173557;
  font-size: 12px;
  line-height: 1.4;
  overflow-wrap: anywhere;
}

.linkedin-signal-detail-collection {
  display: grid;
  gap: 6px;
}

.linkedin-signal-detail-collection h5 {
  display: flex;
  gap: 6px;
  align-items: center;
  margin: 0;
  color: #173557;
  font-size: 12px;
}

.linkedin-signal-detail-collection h5 span {
  display: inline-flex;
  justify-content: center;
  min-width: 20px;
  padding: 2px 6px;
  border-radius: 999px;
  background: rgba(225, 241, 253, 0.92);
  color: #12629d;
  font-size: 10px;
}

.linkedin-signal-record-list {
  display: grid;
  gap: 7px;
}

.linkedin-signal-record-list > article {
  min-width: 0;
}

.linkedin-signal-complete-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.linkedin-signal-complete-list li,
.linkedin-signal-value-list > * {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 7px;
  border: 1px solid rgba(200, 220, 237, 0.9);
  border-radius: 999px;
  background: rgba(245, 250, 254, 0.96);
  color: #23425f;
  font-size: 11px;
  line-height: 1.25;
}

.linkedin-signal-value-list {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.linkedin-signal-public-link {
  color: #12629d;
  font-weight: 750;
  text-decoration: underline;
  text-decoration-thickness: 1px;
  text-underline-offset: 2px;
}

.linkedin-signal-media-preview {
  display: grid;
  gap: 5px;
  justify-items: start;
}

.linkedin-signal-media-preview img {
  display: block;
  width: min(100%, 320px);
  max-height: 160px;
  object-fit: cover;
  border: 1px solid rgba(207, 222, 237, 0.92);
  border-radius: 7px;
}

.sales-profile-main {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sales-profile-name-form,
.sales-profile-role-form,
.sales-company-picker {
  min-width: 0;
}

.sales-profile-name-form {
  min-height: 27px;
  color: var(--text);
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
}

.sales-profile-name-form .sales-compact-input {
  min-height: 27px;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
}

.sales-profile-line {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 5px 8px;
  min-width: 0;
}

.sales-profile-line-label {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0;
  text-transform: uppercase;
}

.sales-compact-form {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.sales-compact-input {
  width: 100%;
  min-width: 0;
  min-height: 28px;
  padding: 4px 7px;
  border: 1px solid rgba(218, 229, 241, 0.94);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.86);
  color: #173557;
  font: inherit;
  font-size: 13px;
}

.sales-compact-input:focus,
.phone-number-input:focus,
.sales-inline-form .inline-edit-input:focus {
  border-color: rgba(19, 126, 214, 0.5);
  outline: 2px solid rgba(19, 126, 214, 0.14);
  outline-offset: 1px;
}

.company-association-hint {
  margin: 2px 0 0;
  color: #6a7f95;
  font-size: 11px;
  line-height: 1.25;
}

.company-association-hint.is-error {
  color: #c23838;
}

.company-association-results {
  display: grid;
  gap: 2px;
  max-height: 214px;
  overflow: auto;
  padding: 4px;
  border: 1px solid rgba(218, 229, 241, 0.96);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 12px 28px rgba(20, 51, 83, 0.12);
}

.company-association-option {
  display: grid;
  gap: 2px;
  width: 100%;
  min-width: 0;
  padding: 7px 8px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: #173557;
  font: inherit;
  font-size: 12px;
  text-align: left;
  cursor: pointer;
}

.company-association-option:hover,
.company-association-option:focus-visible {
  background: #eef7ff;
  outline: none;
}

.company-association-option strong,
.company-association-option span {
  overflow-wrap: anywhere;
}

.company-association-option span {
  color: #6a7f95;
  font-size: 11px;
}

.sales-phone-list,
.contact-phone-list {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.phone-number-list {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
}

.phone-number-pill {
  display: inline-grid;
  gap: 2px;
  max-width: 100%;
  min-height: 34px;
  padding: 6px 9px;
  border: 1px solid rgba(218, 229, 241, 0.94);
  border-radius: 8px;
  background: #fbfdff;
  color: #173557;
  text-decoration: none;
}

.phone-number-pill span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  line-height: 1;
  text-transform: uppercase;
}

.phone-number-pill strong {
  overflow: hidden;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.phone-number-pill.is-mobile {
  border-color: rgba(32, 164, 109, 0.22);
  background: rgba(231, 248, 240, 0.72);
}

.phone-number-pill.is-other {
  border-color: rgba(122, 144, 168, 0.24);
  background: rgba(245, 248, 252, 0.86);
}

.phone-number-pill.is-placeholder strong {
  color: #7a8fa6;
  font-weight: 600;
}

.phone-number-edit-form {
  position: relative;
  align-content: start;
  border-style: solid;
}

.phone-number-input {
  width: min(100%, 180px);
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: #173557;
  font-size: 12px;
  font-weight: 650;
  line-height: 1.15;
}

.phone-number-edit-form .inline-edit-status {
  min-height: 14px;
  font-size: 10px;
}

.sales-edit-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
}

.sales-edit-field {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sales-inline-form {
  grid-template-columns: minmax(0, 1fr);
  gap: 6px;
}

.sales-inline-form.has-inline-action {
  grid-template-columns: minmax(0, 1fr) 34px;
  align-items: center;
}

.sales-inline-form.has-inline-action .inline-edit-status {
  grid-column: 1 / -1;
}

.inline-edit-action-button {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border: 1px solid rgba(19, 126, 214, 0.24);
  border-radius: 8px;
  background: rgba(235, 246, 255, 0.92);
  color: #1167ad;
  font-size: 16px;
  font-weight: 800;
  line-height: 1;
  text-decoration: none;
}

.inline-edit-action-button:hover,
.inline-edit-action-button:focus-visible {
  border-color: rgba(19, 126, 214, 0.48);
  background: #e3f2ff;
  outline: 2px solid rgba(19, 126, 214, 0.14);
  outline-offset: 1px;
}

.sales-inline-form .inline-edit-input {
  min-height: 34px;
  padding: 7px 9px;
  font-size: 13px;
}

.sales-inline-form .inline-edit-status {
  justify-self: start;
  min-height: 18px;
  font-size: 11px;
  line-height: 1.25;
}

.sales-context-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0;
  overflow: hidden;
}

.sales-context-panel > div {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 12px 13px;
  border-bottom: 1px solid rgba(224, 233, 242, 0.86);
}

.sales-context-card {
  position: relative;
  overflow: hidden;
}

.sales-context-card::before {
  content: "";
  position: absolute;
  inset: 10px auto 10px 0;
  width: 4px;
  border-radius: 999px;
  background: rgba(129, 145, 164, 0.34);
}

.sales-context-card.is-positive {
  background: linear-gradient(90deg, rgba(232, 248, 241, 0.96), rgba(255, 255, 255, 0.96));
}

.sales-context-card.is-positive::before {
  background: #18a968;
}

.sales-context-card.is-positive h4,
.sales-context-card.is-positive p {
  color: #11613f;
}

.sales-context-card.is-urgent {
  background: linear-gradient(90deg, rgba(255, 239, 241, 0.98), rgba(255, 255, 255, 0.96));
}

.sales-context-card.is-urgent::before {
  background: #ec3152;
}

.sales-context-card.is-urgent h4 {
  color: #af1736;
}

.sales-context-card.is-urgent p {
  color: #8e1830;
  font-weight: 750;
}

.sales-context-panel > div:nth-child(odd) {
  border-right: 1px solid rgba(224, 233, 242, 0.86);
}

.sales-context-panel > div:nth-last-child(-n + 2) {
  border-bottom: 0;
}

.sales-context-panel h4 {
  margin: 0;
  color: #17283a;
  font-size: 14px;
  font-weight: 680;
  line-height: 1.25;
}

.sales-context-edit-form {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.sales-context-select {
  width: 100%;
  min-width: 0;
  min-height: 30px;
  padding: 3px 8px;
  border: 1px solid rgba(195, 213, 232, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #173557;
  font: inherit;
  font-size: 13px;
  font-weight: 560;
}

.sales-context-select:focus {
  border-color: rgba(19, 126, 214, 0.5);
  outline: 2px solid rgba(19, 126, 214, 0.14);
  outline-offset: 1px;
}

.sales-contact-profile .sales-profile-line .sales-compact-input,
.sales-contact-profile .sales-channel-grid .sales-inline-form .inline-edit-input,
.sales-contact-profile .sales-action-properties .sales-context-select {
  min-height: 30px;
  border: 1px solid rgba(170, 205, 231, 0.92);
  border-radius: 999px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(245, 250, 255, 0.96));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.9),
    0 5px 12px rgba(36, 94, 144, 0.06);
  color: #153655;
  cursor: pointer;
  font-weight: 700;
  transition: border-color 140ms ease, box-shadow 140ms ease, background 140ms ease, transform 140ms ease;
}

.sales-contact-profile .sales-profile-line .sales-compact-input {
  padding: 3px 12px;
}

.sales-contact-profile .sales-profile-line .sales-company-picker {
  justify-self: start;
  width: min(100%, 310px);
}

.sales-contact-profile .sales-profile-line .sales-profile-role-form {
  justify-self: start;
  width: min(100%, 520px);
}

.sales-contact-profile .sales-channel-grid .sales-inline-form .inline-edit-input {
  padding: 5px 12px;
}

.sales-contact-profile .sales-action-properties .sales-context-select {
  justify-self: start;
  width: min(100%, 190px);
  padding: 3px 10px;
}

.sales-contact-profile .sales-profile-line .sales-compact-input:hover,
.sales-contact-profile .sales-channel-grid .sales-inline-form .inline-edit-input:hover,
.sales-contact-profile .sales-action-properties .sales-context-select:hover {
  border-color: rgba(43, 139, 216, 0.58);
  background:
    linear-gradient(180deg, #ffffff, rgba(236, 247, 255, 0.98));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.95),
    0 7px 16px rgba(36, 94, 144, 0.09);
}

.sales-contact-profile .sales-profile-line .sales-compact-input:focus,
.sales-contact-profile .sales-channel-grid .sales-inline-form .inline-edit-input:focus,
.sales-contact-profile .sales-action-properties .sales-context-select:focus {
  border-color: rgba(19, 126, 214, 0.68);
  outline: none;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.96),
    0 0 0 3px rgba(19, 126, 214, 0.13),
    0 8px 18px rgba(36, 94, 144, 0.1);
}

.sales-timeline {
  display: grid;
  gap: 0;
  border: 1px solid rgba(224, 233, 242, 0.86);
  border-radius: 10px;
  overflow: hidden;
}

.contact-timeline-section .sales-section-head {
  align-items: flex-start;
  gap: 16px;
}

.contact-timeline-heading {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.contact-timeline-title {
  margin: 0;
  color: #102b4e;
  font-size: 24px;
  font-weight: 760;
  letter-spacing: -.02em;
}

.contact-timeline-subtitle {
  margin: 0;
  color: #60758c;
  font-size: 13px;
}

.contact-timeline-counts {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
  margin: 0;
}

.contact-timeline-count {
  display: inline-flex;
  align-items: baseline;
  gap: 5px;
  color: var(--text-soft);
  font-size: 12px;
}

.contact-timeline-count strong {
  color: #18304c;
  font-size: 15px;
  font-weight: 750;
}

.contact-timeline-toolbar {
  display: flex;
  gap: 12px;
  justify-content: space-between;
  align-items: center;
  margin: 14px 0;
  flex-wrap: wrap;
}

.contact-timeline-filters {
  display: flex;
  gap: 6px;
  flex-wrap: wrap;
}

.contact-timeline-filter {
  border: 1px solid rgba(190, 205, 220, 0.9);
  border-radius: 999px;
  background: #fff;
  color: #456078;
  padding: 6px 10px;
  font: inherit;
  font-size: 12px;
  cursor: pointer;
}

.contact-timeline-filter:hover,
.contact-timeline-filter:focus-visible,
.contact-timeline-filter.is-active {
  border-color: #1976d2;
  background: #eaf4ff;
  color: #0b5da7;
  outline: none;
}

.contact-timeline-period {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--text-soft);
  font-size: 12px;
}

.contact-timeline-period select {
  border: 1px solid rgba(190, 205, 220, 0.9);
  border-radius: 8px;
  background: #fff;
  color: #18304c;
  padding: 7px 9px;
  font: inherit;
  font-size: 12px;
}

.contact-timeline-freshness {
  color: var(--text-soft);
  font-size: 12px;
  white-space: nowrap;
  padding-top: 3px;
}

.contact-timeline-warning {
  margin: 8px 0;
  padding: 8px 10px;
  border-radius: 8px;
  background: #fff7e6;
  color: #8a5a00;
  font-size: 12px;
}

.contact-timeline-provenance {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  color: var(--text-soft);
  font-size: 11px;
}

.contact-timeline-provenance span {
  padding: 4px 8px;
  border-radius: 999px;
  background: #eef3f8;
}

.contact-timeline-link {
  color: #0b67b2;
  font-size: 12px;
  font-weight: 650;
}

.contact-timeline-load-more {
  display: block;
  margin: 14px auto 0;
}

.sales-timeline {
  border: 1px solid rgba(224, 233, 242, 0.86);
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  box-shadow: 0 8px 24px rgba(31, 66, 103, 0.06);
}

.sales-timeline-item {
  display: block;
  min-width: 0;
  background: #fff;
  border-bottom: 1px solid rgba(224, 233, 242, 0.78);
}

.sales-timeline-item:last-child {
  border-bottom: 0;
}

article.sales-timeline-item {
  padding: 14px 16px;
}

.sales-timeline-summary {
  display: grid;
  grid-template-columns: 90px 138px minmax(240px, .9fr) minmax(260px, 1.15fr) minmax(92px, auto);
  gap: 14px;
  align-items: start;
  min-width: 0;
  padding: 14px 16px;
  cursor: pointer;
  list-style: none;
}

.sales-timeline-summary::-webkit-details-marker {
  display: none;
}

.sales-timeline-kind {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  color: #7c90a5;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.sales-timeline-icon {
  display: inline-grid;
  width: 22px;
  height: 22px;
  place-items: center;
  border-radius: 7px;
  background: #edf4fb;
  color: #4f7496;
  font-size: 11px;
  font-weight: 800;
}

.sales-timeline-date {
  color: #18304c;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}

.sales-timeline-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  color: var(--text-soft);
  font-size: 13px;
  line-height: 1.45;
}

.sales-timeline-copy strong {
  min-width: 0;
  overflow: hidden;
  color: #18304c;
  font-size: 14px;
  font-weight: 700;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sales-timeline-preview {
  display: -webkit-box;
  overflow: hidden;
  color: #60758c;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.sales-timeline-preview.is-missing,
.contact-timeline-body.is-missing {
  color: #8b9aac;
  font-style: italic;
}

.sales-timeline-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 5px;
  min-height: 22px;
  color: #366487;
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.sales-timeline-toggle::after {
  content: "+";
  font-size: 16px;
  line-height: 1;
}

.sales-timeline-item[open] .sales-timeline-toggle::after {
  content: "−";
}

.sales-timeline-toggle-close {
  display: none;
}

.sales-timeline-item[open] .sales-timeline-toggle-open {
  display: none;
}

.sales-timeline-item[open] .sales-timeline-toggle-close {
  display: inline;
}

.sales-timeline-expanded {
  display: grid;
  gap: 8px;
  padding: 0 30px 18px 270px;
}

.contact-timeline-body {
  max-width: 860px;
  margin: 0;
  color: #536b82;
  font-size: 13px;
  line-height: 1.6;
  white-space: pre-wrap;
}

.sales-timeline-item strong {
  color: #18304c;
  font-size: 13px;
  font-weight: 650;
}

.sales-script-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.sales-script-box {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid rgba(224, 233, 242, 0.86);
  border-radius: 10px;
  background: #fbfdff;
}

.sales-script-box.is-empty {
  background: #fbfcfe;
}

.detail-card {
  padding: 12px;
}

.detail-card-phoning {
  border: 1px solid #d9e9fb;
  background: linear-gradient(180deg, #fbfdff 0%, #f4f9ff 100%);
}

.phoning-1b-panel {
  display: grid;
  gap: 10px;
  padding: 13px;
  border-color: rgba(33, 144, 228, 0.24);
  background: linear-gradient(180deg, #fbfdff 0%, #f3f8fe 100%);
  box-shadow:
    0 16px 34px rgba(33, 98, 160, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.92);
}

.phoning-1b-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.phoning-1b-head h3 {
  margin: 0;
  font-size: 15px;
  line-height: 1.1;
}

.phoning-1b-head p {
  margin: 4px 0 0;
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 650;
}

.phoning-1b-phone {
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 144px;
}

.phoning-1b-script {
  display: grid;
  gap: 8px;
  padding: 13px 14px;
  border: 1px solid rgba(33, 144, 228, 0.24);
  border-left: 4px solid var(--accent);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.88);
}

.phoning-1b-script p {
  margin: 0;
  color: #1d3147;
  font-size: 13px;
  font-weight: 650;
  line-height: 1.5;
}

.phoning-1b-context {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.phoning-1b-context > div {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid rgba(184, 207, 231, 0.68);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.72);
}

.phoning-1b-context strong {
  margin: 0;
  color: #21364c;
  font-size: 12px;
  line-height: 1.45;
}

.detail-card h3,
.side-summary h3 {
  margin: 0 0 9px;
  font-size: 13px;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px 12px;
}

.detail-field {
  display: grid;
  gap: 4px;
}

.detail-label {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.detail-value {
  color: var(--text);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.detail-value.is-muted {
  color: var(--muted);
}

.detail-link {
  color: var(--accent);
  font-weight: 600;
  text-decoration: none;
}

.detail-link:hover {
  text-decoration: underline;
}

.contact-insight-shell {
  display: grid;
  gap: 14px;
}

.contact-insight-hero {
  display: grid;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e4edf7;
  border-radius: 20px;
  background:
    radial-gradient(circle at top left, rgba(44, 132, 255, 0.11), transparent 38%),
    linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
  box-shadow: 0 14px 30px rgba(126, 167, 216, 0.12);
}

.contact-insight-rail {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 2px;
}

.contact-insight-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(42, 125, 243, 0.08);
  color: #3668a6;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.contact-insight-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr);
  gap: 12px;
}

.contact-insight-card {
  display: grid;
  align-content: start;
  gap: 7px;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: 16px;
  border: 1px solid rgba(212, 227, 244, 0.95);
}

.contact-insight-card.is-primary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(238, 246, 255, 0.98) 100%);
}

.contact-insight-card.is-secondary {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(245, 249, 255, 0.98) 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72);
}

.contact-insight-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.4;
  font-weight: 600;
  color: #19385e;
}


.contact-insight-edit-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 8px;
}

.contact-insight-select {
  width: 100%;
  min-height: 42px;
  padding: 9px 10px;
  border: 1px solid #d7e4f3;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
  color: #19385e;
  font: inherit;
  font-size: 14px;
  line-height: 1.25;
  font-weight: 500;
}

.contact-insight-select:focus {
  outline: 2px solid rgba(42, 125, 243, 0.24);
  border-color: #7fb2f4;
  background: #ffffff;
}
.contact-insight-context {
  margin: 0;
  font-size: 14px;
  line-height: 1.68;
  color: #5d7492;
}

.contact-insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-insight-chip {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 11px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: #edf5ff;
  color: #1f5fae;
  font: inherit;
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.contact-insight-chip.is-link:hover {
  background: #e2efff;
}

.contact-insight-chip.is-muted {
  background: #f2f5f9;
  color: var(--muted);
}
.contact-insight-chip.is-action {
  cursor: pointer;
}

.contact-insight-chip.is-action:hover,
.contact-insight-chip.is-action:focus-visible {
  border-color: #8cc7ff;
  background: #dceeff;
  outline: none;
}

.contact-chip-edit-form {
  width: min(100%, 360px);
  margin-top: 8px;
}

.contact-chip-select,
.contact-chip-input {
  width: 100%;
  min-height: 36px;
  border: 1px solid var(--border-strong);
  border-radius: 10px;
  background: #ffffff;
  color: var(--text);
  font: inherit;
  font-size: 13px;
  font-weight: 650;
  padding: 0 12px;
}

.contact-chip-input {
  font-weight: 500;
}

.contact-chip-status {
  margin-top: 6px;
}

@media (max-width: 960px) {
  .contact-insight-rail {
    flex-direction: column;
    align-items: flex-start;
  }

  .contact-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-insight-card {
    min-height: auto;
  }
}

.contact-metric-strip {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-metric-card {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid #e8eef5;
  background: #ffffff;
}

.contact-metric-card strong {
  font-size: 24px;
  line-height: 1;
  color: var(--text);
}

.contact-activity-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.contact-activity-card {
  display: grid;
  grid-template-columns: 12px minmax(0, 1fr);
  gap: 10px;
  min-height: 108px;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.86);
}

.contact-activity-dot {
  width: 10px;
  height: 10px;
  margin-top: 4px;
  border-radius: 999px;
  background: #2c84ff;
  box-shadow: 0 0 0 4px rgba(44, 132, 255, 0.14);
}

.contact-activity-body {
  display: grid;
  min-width: 0;
  gap: 5px;
}

.contact-activity-head {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.contact-activity-title {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 750;
}

.contact-activity-value {
  min-width: 0;
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.contact-activity-detail {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.contact-activity-card.tone-email .contact-activity-dot {
  background: #2c84ff;
  box-shadow: 0 0 0 4px rgba(44, 132, 255, 0.14);
}

.contact-activity-card.tone-call .contact-activity-dot {
  background: #1eaf72;
  box-shadow: 0 0 0 4px rgba(30, 175, 114, 0.14);
}

.contact-activity-card.tone-meeting .contact-activity-dot {
  background: #f0a126;
  box-shadow: 0 0 0 4px rgba(240, 161, 38, 0.15);
}

.contact-activity-card.tone-next .contact-activity-dot {
  background: #7a5cff;
  box-shadow: 0 0 0 4px rgba(122, 92, 255, 0.14);
}

.contact-activity-card.is-missing {
  background: rgba(248, 251, 255, 0.72);
}

.contact-activity-card.is-missing .contact-activity-value,
.contact-activity-card.is-missing .contact-activity-detail {
  color: var(--muted);
}
.company-insight-shell {
  display: grid;
  gap: 16px;
}

.company-insight-hero {
  display: grid;
  gap: 12px;
  padding: 18px;
  border-radius: 18px;
  background:
    linear-gradient(145deg, rgba(17, 122, 255, 0.08), rgba(17, 122, 255, 0.02)),
    #f9fbff;
  border: 1px solid rgba(17, 122, 255, 0.1);
}

.company-insight-head {
  display: grid;
  gap: 8px;
}

.company-insight-summary {
  margin: 0;
  font-size: 15px;
  line-height: 1.6;
  color: var(--text);
}

.company-insight-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.company-insight-chip,
.company-side-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(17, 122, 255, 0.08);
  color: var(--accent);
  font-size: 13px;
  font-weight: 600;
}

.company-insight-chip.is-muted,
.company-side-pill.is-muted {
  background: rgba(148, 163, 184, 0.14);
  color: var(--muted);
}

.company-metric-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.company-metric-card {
  display: grid;
  gap: 6px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7eef7;
}

.company-metric-card strong {
  font-size: 20px;
  line-height: 1.2;
  color: var(--text);
}

.company-pulse-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-pulse-card {
  display: grid;
  gap: 12px;
  padding: 16px 18px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e7eef7;
}

.company-pulse-card.tone-signal {
  box-shadow: inset 0 0 0 1px rgba(16, 185, 129, 0.08);
}

.company-pulse-card.tone-risk {
  box-shadow: inset 0 0 0 1px rgba(239, 68, 68, 0.08);
}

.company-pulse-list {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 10px;
}

.company-pulse-list li {
  position: relative;
  padding-left: 16px;
  color: var(--text);
  line-height: 1.5;
}

.company-pulse-list li::before {
  content: "";
  position: absolute;
  left: 0;
  top: 9px;
  width: 7px;
  height: 7px;
  border-radius: 999px;
  background: rgba(17, 122, 255, 0.4);
}

.company-pulse-card.tone-signal .company-pulse-list li::before {
  background: rgba(16, 185, 129, 0.8);
}

.company-pulse-card.tone-risk .company-pulse-list li::before {
  background: rgba(239, 68, 68, 0.8);
}

.company-next-step-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px 18px;
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(17, 122, 255, 0.08), rgba(17, 122, 255, 0.02));
  border: 1px solid rgba(17, 122, 255, 0.12);
}

.company-next-step-card strong {
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
}

.company-next-step-card span {
  white-space: nowrap;
  color: var(--accent);
  font-weight: 700;
}

.company-side-stack {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.detail-field-editable {
  align-content: start;
}

.inline-edit-form {
  display: flex;
  gap: 8px;
  align-items: center;
}

.inline-edit-input {
  min-height: 38px;
  width: 100%;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: 11px;
  background: #fff;
  color: var(--text);
  font: inherit;
}

.inline-edit-input:focus {
  outline: none;
  border-color: rgba(23, 145, 231, 0.45);
  box-shadow: 0 0 0 3px rgba(23, 145, 231, 0.12);
}

.inline-edit-status {
  font-size: 0.84rem;
}

.inline-edit-status.is-muted {
  color: var(--muted);
}

.inline-edit-status.is-saving {
  color: #1d7fda;
}

.inline-edit-status.is-success {
  color: #17915f;
}

.inline-edit-status.is-error {
  color: #d05050;
}

.message-box {
  min-height: 90px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #fff;
  color: var(--text-soft);
}

.touchpoint-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.touchpoint-grid-compact {
  grid-template-columns: 1fr;
}

.touchpoint-card {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border: 1px solid var(--border);
  border-radius: 12px;
  background: #f8fbfe;
  position: relative;
  overflow: visible;
}

.touchpoint-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: #d7e6f5;
}

.touchpoint-card-meeting::before {
  background: #1f8f6b;
}

.touchpoint-card-email::before {
  background: #1f7ae0;
}

.touchpoint-card-call::before {
  background: #e58a1f;
}

.touchpoint-card-note::before {
  display: none;
}

.touchpoint-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.touchpoint-title {
  color: var(--muted);
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
  min-width: 0;
}

.touchpoint-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: #eaf3fb;
  color: #245d8f;
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
  white-space: nowrap;
}

.touchpoint-chip.is-muted {
  background: #f0f3f6;
  color: var(--muted);
}

.touchpoint-value {
  color: var(--text);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.touchpoint-value.is-missing {
  color: var(--text-soft);
}

.touchpoint-hint {
  color: var(--text-soft);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.timeline-list-compact {
  margin-top: 10px;
}

@media (max-width: 1200px) {
  .touchpoint-grid {
    grid-template-columns: 1fr;
  }

  .contact-metric-strip {
      grid-template-columns: 1fr;
    }

  .contact-activity-grid {
    grid-template-columns: 1fr;
  }

  .company-metric-strip,
  .company-pulse-grid {
      grid-template-columns: 1fr;
    }

  .company-next-step-card {
      flex-direction: column;
      align-items: flex-start;
    }
    }

.action-button {
  display: inline-flex;
  align-items: stretch;
  justify-content: flex-start;
  min-height: 68px;
  padding: 0;
  border-radius: 14px;
  background: #f6faff;
  color: var(--text-soft);
  border: 1px solid #dbe7f3;
  text-align: left;
}

.action-button:hover {
  background: #eef6fd;
  border-color: var(--border-strong);
}

.action-button.primary {
  background: linear-gradient(135deg, #1791e7, #2ba5f0);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(33, 144, 228, 0.2);
}

.action-button-phoning {
  background: linear-gradient(135deg, #1f8f6b, #30a37e);
  color: #fff;
  font-weight: 600;
  box-shadow: 0 10px 20px rgba(31, 143, 107, 0.18);
}

.action-button-phoning:disabled {
  background: #eef2f5;
  color: var(--muted);
  box-shadow: none;
}

.action-button-content {
  display: grid;
  gap: 3px;
  width: 100%;
  padding: 12px 14px;
}

.action-button-label {
  font-size: 15px;
  line-height: 1.2;
  font-weight: 700;
}

.action-button-hint {
  font-size: 12px;
  line-height: 1.25;
  color: inherit;
  opacity: 0.82;
}

.action-button.compact {
  justify-content: center;
  align-items: center;
  min-height: 34px;
  padding: 0 11px;
  text-align: center;
}

.portfolio-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  margin-top: 12px;
}

.portfolio-card {
  display: grid;
  align-content: start;
  min-height: 218px;
}

.portfolio-card h3 {
  margin: 0;
  font-size: 14px;
}

.portfolio-card-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
}

.portfolio-table {
  width: 100%;
  margin: 0 auto;
}

.portfolio-table .table-head,
.portfolio-table .table-row {
  grid-template-columns:
    minmax(0, 1.34fr)
    34px
    30px
    minmax(76px, 0.72fr);
  gap: 4px;
  padding: 0 6px;
}

.portfolio-table .table-head {
  min-height: 27px;
  font-size: 10px;
  letter-spacing: 0.06em;
}

.portfolio-table .table-row {
  min-height: 39px;
}

.portfolio-table .table-head > span:last-child,
.portfolio-table .table-row > span:last-child {
  justify-content: flex-start;
}

.portfolio-table .table-head > span {
  min-width: 0;
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.portfolio-table .table-head > span:nth-child(2),
.portfolio-table .table-head > span:nth-child(3),
.portfolio-table .table-row > span:nth-child(2),
.portfolio-table .table-row > span:nth-child(3) {
  justify-content: center;
}

@media (max-width: 1760px) {
  .cockpit-layout,
  .detail-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .detail-panel {
    min-width: 0;
  }
}

.stacked-view {
  margin-top: 14px;
}

.section-table {
  overflow: hidden;
}

#contacts-view.section-table {
  overflow: visible;
}

.table-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: start;
  gap: 12px;
  padding-bottom: 10px;
}

.filter-belt {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.contact-form-card {
  margin: 0 0 12px;
  padding: 14px 16px 16px;
  border: 1px solid var(--border);
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.97);
  box-shadow: var(--shadow-soft);
}

.opportunity-create-card {
  padding: 14px 16px;
  border-radius: 16px;
  box-shadow: none;
}

.contact-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.opportunity-create-card .contact-form-grid {
  gap: 10px 12px;
}

.field {
  display: grid;
  gap: 6px;
}

.field span {
  font-size: 12px;
  color: var(--text-soft);
}

.field input,
.field select,
.field textarea {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
}

.field textarea {
  min-height: 92px;
  padding: 10px 12px;
  resize: vertical;
}

.priority-segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  min-height: 40px;
}

.priority-option {
  display: flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--border-strong);
  border-radius: 12px;
  background: #fff;
  color: var(--text);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.priority-option:focus-visible {
  outline: 2px solid #1da1f2;
  outline-offset: 2px;
}

.priority-option.is-selected {
  border-color: #1da1f2;
  background: #eaf7ff;
  color: #075985;
}

.opportunity-contact-field {
  position: relative;
}

.opportunity-contact-field [data-opportunity-contact-results] {
  display: grid;
  gap: 4px;
}

.opportunity-contact-results {
  margin-top: 2px;
}

.need-detail-form {
  display: grid;
  gap: 16px;
}

.need-detail-edit-grid {
  align-items: start;
}

.detail-input {
  width: 100%;
  min-height: 38px;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  font: inherit;
  padding: 8px 10px;
}

.detail-input:focus {
  border-color: var(--accent);
  outline: 2px solid rgba(33, 144, 228, 0.16);
  outline-offset: 1px;
}

.detail-textarea {
  min-height: 86px;
  resize: vertical;
}

.need-summary-edit {
  display: grid;
  gap: 10px;
  margin: 0;
}

.need-attachments-block {
  display: grid;
  gap: 12px;
  margin: 0;
}

.attachment-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.attachment-pending {
  display: grid;
  gap: 8px;
}

.attachment-pending[hidden] {
  display: none;
}

.attachment-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: 44px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  padding: 8px 10px;
}

.attachment-item span {
  display: grid;
  gap: 2px;
}

.attachment-item small {
  color: var(--muted);
}

.attachment-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.attachment-actions .toolbar-button {
  min-height: 32px;
  padding: 0 10px;
}

.opportunity-create-card .field textarea {
  min-height: 72px;
}

.field-wide {
  grid-column: 1 / -1;
}

.contact-form-actions {
  grid-column: 1 / -1;
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  padding-top: 4px;
}

.opportunity-create-card .contact-form-actions {
  padding-top: 0;
}

.opportunity-create-card .contact-form-actions .action-button {
  min-height: 36px;
  align-items: center;
}

.form-feedback {
  grid-column: 1 / -1;
  margin: 0;
  color: #b42318;
  font-size: 12px;
  font-weight: 700;
}

.large-table .table-head,
.large-table .table-row {
  padding: 0 12px;
}

.large-table .table-head {
  min-height: 32px;
}

.large-table .table-row {
  min-height: 44px;
}

.large-table .table-row,
.portfolio-table .table-row {
  width: 100%;
  color: var(--text);
}

.company-table .table-head,
.company-table .table-row {
  grid-template-columns:
    minmax(0, 1.74fr)
    minmax(60px, 0.58fr)
    minmax(0, 1.08fr)
    minmax(126px, 1fr);
}

.company-table .table-head > span:first-child {
  padding-left: 28px;
}

.company-table .table-head > span:last-child,
.company-table .table-row > span:last-child {
  justify-content: flex-start;
}

.company-table-shell {
  margin-top: 6px;
}

.company-table-wide {
  display: grid;
  grid-template-columns: var(--company-columns);
  width: max-content;
  min-width: 100%;
}

.company-table-wide .table-head,
.company-table-wide .table-row {
  grid-column: 1 / -1;
  grid-template-columns: subgrid;
  min-width: max-content;
  width: auto;
  position: relative;
  isolation: isolate;
}

.company-table-wide .table-head > span,
.company-table-wide .table-row > span {
  min-height: 54px;
}

.company-table-wide .table-head > span:first-child,
.company-table-wide .table-row > span:first-child {
  position: sticky;
  left: 0;
  z-index: 20;
  min-width: 300px;
  background: var(--surface);
  clip-path: inset(0);
  contain: paint;
  transform: translateZ(0);
  box-shadow: 1px 0 0 rgba(223, 232, 241, 0.92);
}

.company-table-wide .table-head > span:first-child {
  z-index: 21;
  padding-left: 12px;
}

.company-table-wide .table-row:hover > span:first-child {
  background: #f0f6fd;
}

.company-edit-row {
  width: 100%;
  color: var(--text);
}

.company-cell {
  display: flex !important;
  align-items: center;
  gap: 8px;
  min-width: 0;
  overflow: visible !important;
}

.company-name-cell {
  padding-right: 8px;
}

.company-name-cell .avatar {
  flex: 0 0 auto;
}

.company-cell-editor {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 40px;
  align-items: center;
  gap: 5px;
  width: 100%;
  min-width: 0;
}

.company-cell-input {
  min-width: 0;
  width: 100%;
  min-height: 32px;
  padding: 0 9px;
  border: 1px solid #dbe7f3;
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  font: inherit;
  font-size: 12px;
}

.company-cell-input:focus {
  outline: none;
  border-color: rgba(23, 145, 231, 0.52);
  box-shadow: 0 0 0 3px rgba(23, 145, 231, 0.12);
}

.company-cell-save,
.company-open-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 32px;
  border: 1px solid #cfe1f1;
  border-radius: 999px;
  background: #eef7ff;
  color: var(--accent-strong);
  font-size: 11px;
  font-weight: 700;
}

.company-cell-save {
  padding: 0 8px;
}

.company-cell-save:hover,
.company-open-button:hover {
  background: #e3f1ff;
  border-color: #b8d7f3;
}

.company-cell-save:disabled {
  cursor: default;
  opacity: 0.6;
}

.company-open-button {
  flex: 0 0 auto;
  padding: 0 10px;
}

.company-cell-status {
  grid-column: 1 / -1;
  font-size: 10px;
  line-height: 1.2;
}

.company-cell-status.is-saving {
  color: #1d7fda;
}

.company-cell-status.is-success {
  color: #17915f;
}

.company-cell-status.is-error {
  color: #d05050;
}

.hygiene-table .table-head,
.hygiene-table .table-row {
  grid-template-columns:
    minmax(82px, 0.62fr)
    minmax(0, 1.6fr)
    minmax(0, 1fr)
    minmax(92px, 0.72fr)
    minmax(126px, 0.88fr);
}

.hygiene-table .table-head > span:last-child,
.hygiene-table .table-row > span:last-child {
  justify-content: flex-start;
}

.hygiene-table .table-row small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}
.task-action-row {
  width: 100%;
  border: 0;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
}

.task-action-row:hover,
.task-action-row:focus-visible,
.task-action-row.is-selected {
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.18);
  outline: none;
}

.task-detail-card {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 32px rgba(31, 48, 73, 0.08);
}

.task-detail-card .detail-grid,
.task-detail-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-detail-form .contact-form-actions {
  padding-top: 2px;
}

.task-detail-form .contact-form-actions .action-button {
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 152px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
}

.task-detail-context {
  margin: 0;
  box-shadow: none;
}

.task-form-card {
  margin-top: 12px;
}

.task-form-card .contact-form-actions {
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 12px;
  padding-top: 10px;
}

.task-form-card .contact-form-actions .action-button {
  width: auto;
  min-width: 112px;
  min-height: 42px;
  padding: 0 18px;
  white-space: nowrap;
}

.task-form-card .contact-form-actions .action-button.primary {
  min-width: 148px;
}

.task-empty-state .action-button {
  width: fit-content;
  margin-top: 4px;
}

.task-summary-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin: 2px 0 14px;
}

.task-summary-pill {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 10px;
  min-height: 48px;
  padding: 10px 12px;
  border: 1px solid #dbe7f3;
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 10px 24px rgba(31, 48, 73, 0.06);
}

.task-summary-pill strong {
  color: var(--text);
  font-size: 22px;
  line-height: 1;
}

.task-summary-pill span {
  color: var(--text-soft);
  font-size: 12px;
  font-weight: 700;
}

.task-priority-chip {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 9px;
  border: 1px solid rgba(96, 112, 130, 0.14);
  border-radius: 999px;
  background: var(--neutral-soft);
  color: #607082;
  font-size: 10px;
  font-weight: 800;
  text-transform: uppercase;
}

.task-priority-chip.is-high {
  border-color: rgba(210, 77, 87, 0.18);
  background: var(--danger-soft);
  color: var(--danger);
}

.task-empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed #cbd9e8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-soft);
}

.task-empty-state strong {
  color: var(--text);
  font-size: 16px;
}

.task-empty-state span {
  font-size: 13px;
}

.hygiene-arbitrage-row {
  border-left: 3px solid transparent;
}

.hygiene-arbitrage-row:hover,
.hygiene-arbitrage-row:focus-visible {
  border-left-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.18);
  outline: none;
}

.hygiene-arbitrage-row.is-prepared {
  background: rgba(237, 249, 240, 0.55);
}

.contacts-table .table-head,
.contacts-table .table-row {
  grid-template-columns:
    minmax(0, 1.3fr)
    minmax(0, 1fr)
    minmax(0, 0.86fr)
    minmax(0, 0.82fr)
    minmax(74px, 0.55fr)
    minmax(0, 1.18fr)
    minmax(0, 1.16fr)
    minmax(84px, 0.7fr)
    minmax(116px, 0.82fr);
  padding: 0 12px;
}

.contacts-table .table-head > span:first-child {
  padding-left: 38px;
}

.contacts-table .table-head > span:nth-child(8),
.contacts-table .table-row > span:nth-child(8) {
  justify-content: flex-start;
}

.contacts-table .table-head > span:last-child,
.contacts-table .table-row > span:last-child {
  justify-content: flex-start;
}

.contact-row-action {
  align-items: flex-start;
  display: grid;
  gap: 5px;
  min-width: 0;
}

.contacts-table .table-row {
  align-items: start;
  min-height: 58px;
  padding-bottom: 10px;
  padding-top: 10px;
}

.contacts-table .table-row > span {
  align-items: flex-start;
}

.contact-score-cell {
  color: #12324c;
  font-weight: 800;
  justify-content: center;
}

.contact-row-multiline {
  display: block;
  line-height: 1.3;
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.contact-row-role {
  max-width: 100%;
  overflow: hidden;
  overflow-wrap: normal;
  text-overflow: ellipsis;
}


.kanban-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}
[data-view-panel="needs"] .kanban-grid {
  grid-template-columns: minmax(0, 1fr);
  width: 100%;
}

[data-view-panel="needs"] .opportunity-simple-section,
[data-view-panel="needs"] .opportunity-table {
  width: 100%;
}

.workspace[data-active-view="needs"] #needs-view {
  grid-template-columns: minmax(0, 1fr);
  width: min(100%, 1180px);
}

.opportunity-empty-state {
  display: grid;
  gap: 10px;
  padding: 18px;
  border: 1px dashed #cbd9e8;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text-soft);
}

.opportunity-empty-state .surface-title {
  margin-top: 2px;
}

.opportunity-empty-state p:last-child {
  margin: 0;
  font-size: 13px;
}

.opportunity-table .table-head,
.opportunity-table .table-row {
  grid-template-columns:
    minmax(96px, 0.52fr)
    minmax(260px, 1.35fr)
    minmax(150px, 0.75fr)
    minmax(260px, 1.15fr);
}

.opportunity-table .table-row {
  width: 100%;
  color: var(--text);
  text-align: left;
}

.opportunity-table .table-head > span,
.opportunity-table .table-row > span {
  justify-content: flex-start;
  text-align: left;
}

.opportunity-table .table-row > span[data-label="Opportunité"] {
  display: grid;
  gap: 2px;
  align-items: center;
  justify-items: start;
}

.opportunity-table .table-row strong {
  display: block;
  font-size: 13px;
}

.opportunity-table .table-row > span[data-label="Opportunité"] {
  align-items: flex-start;
  flex-direction: column;
  gap: 2px;
}

.opportunity-table .table-row small {
  display: block;
  margin-top: 2px;
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 600;
}

.contacts-loading-state {
  border-style: dashed;
  background: rgba(255, 255, 255, 0.82);
}

.staffing-summary-grid,
.staffing-card-grid {
  display: grid;
  gap: 10px;
}

.staffing-summary-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin: 12px 0;
}

.staffing-summary-card {
  display: grid;
  gap: 5px;
  min-height: 122px;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  background:
    radial-gradient(circle at top right, rgba(33, 144, 228, 0.1), transparent 32%),
    linear-gradient(180deg, #fff 0%, #f8fbff 100%);
  box-shadow: var(--shadow-soft);
}

.staffing-summary-card.is-clickable {
  appearance: none;
  position: relative;
  width: 100%;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition:
    transform 150ms ease,
    border-color 150ms ease,
    box-shadow 150ms ease,
    background 150ms ease;
}

.staffing-summary-card.is-clickable::after {
  content: "Ouvrir";
  position: absolute;
  right: 16px;
  top: 16px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(33, 144, 228, 0.1);
  color: #1d76bd;
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  opacity: 0;
  transform: translateY(-3px);
  transition:
    opacity 150ms ease,
    transform 150ms ease;
}

.staffing-summary-card.is-clickable:hover,
.staffing-summary-card.is-clickable:focus-visible,
.staffing-summary-card.is-clickable.is-active {
  border-color: rgba(33, 144, 228, 0.38);
  background:
    radial-gradient(circle at top right, rgba(33, 144, 228, 0.16), transparent 36%),
    linear-gradient(180deg, #fff 0%, #f4faff 100%);
  box-shadow: 0 16px 34px rgba(33, 144, 228, 0.14);
}

.staffing-summary-card.is-clickable:hover,
.staffing-summary-card.is-clickable:focus-visible {
  transform: translateY(-2px);
}

.staffing-summary-card.is-clickable:hover::after,
.staffing-summary-card.is-clickable:focus-visible::after {
  opacity: 1;
  transform: translateY(0);
}

.staffing-summary-card.is-clickable:focus-visible {
  outline: 3px solid rgba(33, 144, 228, 0.22);
  outline-offset: 3px;
}

.staffing-summary-card strong {
  font-size: 34px;
  line-height: 1;
  letter-spacing: -0.04em;
}

.staffing-summary-card span {
  color: var(--text);
  font-weight: 700;
}

.staffing-summary-card small {
  color: var(--text-soft);
}

.staffing-tabs {
  margin: 4px 0 12px;
}

.staffing-team-guide {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.9fr);
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(197, 218, 237, 0.96);
  border-radius: 24px;
  background:
    radial-gradient(circle at 12% 10%, rgba(110, 167, 128, 0.16), transparent 30%),
    linear-gradient(135deg, #ffffff 0%, #f5faf7 45%, #f5f9ff 100%);
  box-shadow: 0 18px 40px rgba(73, 116, 148, 0.1);
}

.staffing-team-guide h3 {
  margin: 0 0 6px;
  font-size: 22px;
  letter-spacing: -0.04em;
}

.staffing-guide-steps {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.staffing-guide-steps li {
  display: flex;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(214, 226, 240, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--text);
  font-weight: 700;
}

.staffing-guide-steps strong {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #193044;
  color: #fff;
  font-size: 13px;
  flex: 0 0 auto;
}

.staffing-guide-safe {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #496173;
  font-size: 13px;
  font-weight: 700;
}

.staffing-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.staffing-actionable-notice {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid rgba(205, 222, 238, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
  color: #567089;
  font-size: 13px;
  font-weight: 700;
}

.staffing-action-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #dbe7f3;
  border-radius: 20px;
  background: linear-gradient(180deg, #fff 0%, #fbfdff 100%);
  box-shadow: var(--shadow-soft);
}

.staffing-card-head,
.staffing-card-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
}

.staffing-action-card h3 {
  margin: 0;
  font-size: 20px;
  letter-spacing: -0.03em;
}

.staffing-card-context {
  margin: 0;
  color: var(--text-soft);
  font-weight: 650;
}

.staffing-card-footer {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.staffing-action-controls {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 8px;
}

.staffing-review-callout {
  display: grid;
  width: 100%;
  gap: 4px;
  margin-bottom: 14px;
  padding: 16px 18px;
  border: 1px solid rgba(37, 99, 235, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(219, 234, 254, 0.94), rgba(239, 246, 255, 0.98));
  color: var(--text);
  text-align: left;
  box-shadow: 0 12px 28px rgba(37, 99, 235, 0.08);
}

.staffing-review-callout:hover,
.staffing-review-callout:focus-visible {
  border-color: rgba(37, 99, 235, 0.52);
  box-shadow: 0 14px 32px rgba(37, 99, 235, 0.14);
  transform: translateY(-1px);
}

.staffing-review-callout strong {
  font-size: 18px;
}

.staffing-review-callout small {
  color: var(--muted);
  line-height: 1.45;
}

.talent-matcher-note {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.talent-matcher-note textarea,
.talent-matcher-verification input[type="date"] {
  width: 100%;
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  padding: 9px 11px;
  color: var(--ink);
  font: inherit;
}

.talent-matcher-verification {
  border: 1px solid #cddfed;
  border-radius: 14px;
  padding: 10px 12px;
  background: #f6faff;
}

.talent-matcher-verification summary {
  cursor: pointer;
  color: #193044;
  font-weight: 800;
}

.talent-matcher-verification-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.talent-matcher-verification-grid label {
  display: grid;
  gap: 5px;
  color: var(--ink);
  font-size: 0.8rem;
  font-weight: 700;
}

.talent-matcher-verification-grid .talent-matcher-check {
  grid-template-columns: auto 1fr;
  align-items: start;
}

.talent-matcher-check input {
  margin-top: 3px;
}

.talent-matcher-private-access {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(35, 128, 220, 0.24);
  border-radius: 14px;
  background: rgba(239, 247, 255, 0.94);
}

.talent-matcher-private-access-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.talent-matcher-private-access-head h4,
.talent-matcher-private-access-grid p {
  margin: 0;
}

.talent-matcher-private-access-head h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.talent-matcher-private-access-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.talent-matcher-private-access-grid p {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.86);
}

.talent-matcher-private-access-grid span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.talent-matcher-private-access-grid strong {
  overflow-wrap: anywhere;
  color: var(--ink);
}

.talent-matcher-private-cv {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(35, 128, 220, 0.2);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
}

.talent-matcher-private-cv summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 800;
}

.talent-matcher-private-cv pre {
  max-height: 420px;
  margin: 12px 0 8px;
  overflow: auto;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-family: inherit;
  font-size: 0.84rem;
  line-height: 1.55;
}

.talent-matcher-private-cv small {
  color: var(--muted);
}

.talent-matcher-human-verification,
.talent-matcher-reusable-verification,
.talent-matcher-verification-status {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
}

.talent-matcher-human-verification {
  border: 1px solid rgba(75, 98, 126, 0.2);
  background: rgba(255, 255, 255, 0.92);
}

.talent-matcher-reusable-verification {
  border: 1px solid rgba(41, 145, 99, 0.28);
  background: rgba(235, 250, 243, 0.94);
}

.talent-matcher-reusable-verification h4,
.talent-matcher-reusable-verification p {
  margin: 0;
}

.talent-matcher-reusable-verification h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.talent-matcher-reusable-verification > .action-button {
  justify-self: start;
}

.talent-matcher-human-verification h4,
.talent-matcher-verification-status p,
.talent-matcher-verification-status strong {
  margin: 0;
}

.talent-matcher-human-verification h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1rem;
}

.talent-matcher-quick-verification {
  display: grid;
  gap: 10px;
  margin: 4px 0 8px;
  padding: 12px;
  border: 1px solid rgba(75, 98, 126, 0.2);
  border-radius: 12px;
  background: rgba(239, 247, 255, 0.72);
}

.talent-matcher-quick-verification legend {
  padding: 0 6px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
}

.talent-matcher-quick-verification .talent-matcher-check {
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 700;
}

.talent-matcher-quick-verification .action-button {
  justify-self: start;
}

.talent-matcher-verification-status {
  border: 1px solid rgba(199, 137, 36, 0.28);
  background: rgba(255, 248, 231, 0.9);
}

.talent-matcher-verification-status.is-ready {
  border-color: rgba(41, 145, 99, 0.28);
  background: rgba(235, 250, 243, 0.94);
}

.talent-matcher-verification-status > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.talent-matcher-verification-status small {
  color: var(--muted);
}

.talent-matcher-result-group {
  display: grid;
  gap: 12px;
  margin-top: 20px;
  padding-top: 18px;
  border-top: 1px solid rgba(41, 145, 99, 0.24);
}

.talent-matcher-result-group.is-empty {
  padding: 16px;
  border: 1px solid rgba(190, 87, 45, 0.3);
  border-radius: 16px;
  background: rgba(255, 248, 240, 0.82);
}

.talent-matcher-result-group-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.talent-matcher-result-group-head h4,
.talent-matcher-result-group-head p {
  margin: 0;
}

.talent-matcher-result-group-head h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.12rem;
}

.talent-matcher-result-group-head p {
  max-width: 560px;
  color: var(--muted);
  line-height: 1.5;
  text-align: right;
}

.talent-matcher-additional-results {
  margin-top: 18px;
  border: 1px solid rgba(104, 126, 148, 0.28);
  border-radius: 16px;
  background: rgba(246, 249, 252, 0.9);
}

.talent-matcher-additional-results > summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 14px 16px;
  cursor: pointer;
}

.talent-matcher-additional-results > summary > span {
  display: flex;
  align-items: center;
  gap: 10px;
}

.talent-matcher-additional-results > summary strong {
  color: var(--ink);
}

.talent-matcher-additional-results > summary small {
  color: var(--muted);
}

.talent-matcher-additional-results-list {
  display: grid;
  gap: 12px;
  padding: 0 14px 14px;
}

.talent-matcher-result-card.is-outside-review-scope {
  border-style: dashed;
  background: rgba(250, 252, 254, 0.94);
  box-shadow: none;
}

.talent-matcher-outside-scope-note {
  display: grid;
  gap: 5px;
  padding: 12px;
  border: 1px solid rgba(104, 126, 148, 0.24);
  border-radius: 12px;
  background: rgba(239, 244, 248, 0.82);
}

.talent-matcher-outside-scope-note strong,
.talent-matcher-outside-scope-note p {
  margin: 0;
}

.talent-matcher-outside-scope-note p {
  color: var(--muted);
  line-height: 1.45;
}

.talent-matcher-review-progress {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(41, 145, 99, 0.24);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(235, 250, 243, 0.96), rgba(246, 251, 255, 0.96));
}

.talent-matcher-private-readiness {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(33, 144, 228, 0.28);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(238, 247, 255, 0.98), rgba(249, 252, 255, 0.98));
}

.talent-matcher-review-assignment {
  display: grid;
  gap: 14px;
  margin: 18px 0;
  padding: 16px;
  border: 1px solid rgba(112, 82, 180, 0.3);
  border-radius: 16px;
  background: linear-gradient(135deg, rgba(247, 243, 255, 0.98), rgba(251, 249, 255, 0.98));
}

.talent-matcher-review-assignment.is-claimed {
  border-color: rgba(41, 145, 99, 0.42);
  background: linear-gradient(135deg, rgba(235, 250, 243, 0.96), rgba(246, 251, 255, 0.96));
}

.talent-matcher-review-assignment.is-blocked {
  border-color: rgba(190, 87, 45, 0.48);
  background: linear-gradient(135deg, rgba(255, 246, 238, 0.98), rgba(255, 251, 247, 0.98));
}

.talent-matcher-private-readiness.is-ready {
  border-color: rgba(41, 145, 99, 0.42);
  background: linear-gradient(135deg, rgba(235, 250, 243, 0.96), rgba(246, 251, 255, 0.96));
}

.talent-matcher-private-readiness.is-blocked {
  border-color: rgba(190, 87, 45, 0.42);
  background: linear-gradient(135deg, rgba(255, 246, 238, 0.98), rgba(255, 251, 247, 0.98));
}

.talent-matcher-private-readiness h4,
.talent-matcher-private-readiness p,
.talent-matcher-review-assignment h4,
.talent-matcher-review-assignment p {
  margin: 0;
}

.talent-matcher-private-readiness h4,
.talent-matcher-review-assignment h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.05rem;
}

.talent-matcher-review-progress.is-complete {
  border-color: rgba(41, 145, 99, 0.5);
}

.talent-matcher-review-progress.is-overdue {
  border-color: rgba(190, 87, 45, 0.55);
  background: linear-gradient(135deg, rgba(255, 246, 238, 0.98), rgba(255, 251, 247, 0.98));
}

.talent-matcher-review-progress-head,
.talent-matcher-review-progress-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.talent-matcher-review-progress h4,
.talent-matcher-review-progress p {
  margin: 0;
}

.talent-matcher-review-progress h4 {
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.05rem;
}

.talent-matcher-pilot-journeys {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.talent-matcher-pilot-attestation-form {
  display: grid;
  gap: 12px;
  padding-top: 4px;
}

.talent-matcher-pilot-attestation-form .action-button {
  justify-self: start;
}

.talent-matcher-review-clock {
  display: grid;
  grid-template-columns: auto auto;
  align-items: baseline;
  gap: 2px 10px;
  text-align: right;
}

.talent-matcher-review-clock span,
.talent-matcher-review-clock small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.talent-matcher-review-clock strong {
  color: var(--ink);
  font-size: 1.35rem;
  font-variant-numeric: tabular-nums;
}

.talent-matcher-review-clock small {
  grid-column: 2;
}

.talent-matcher-review-progress progress {
  width: 100%;
  height: 10px;
  accent-color: #299163;
}

.talent-matcher-review-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.talent-matcher-review-metrics p {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.82);
}

.talent-matcher-review-metrics span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 800;
  text-transform: uppercase;
}

.talent-matcher-review-metrics strong {
  color: var(--ink);
  font-size: 1.15rem;
}


.form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.form-grid label {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 0.85rem;
  font-weight: 700;
}

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  border: 1px solid #d8e4ee;
  border-radius: 10px;
  padding: 10px 12px;
  color: var(--ink);
  font: inherit;
  resize: vertical;
}

.form-field-wide {
  grid-column: 1 / -1;
}

.form-actions {
  display: flex;
  justify-content: flex-end;
}

.staffing-outcome-trigger {
  width: max-content;
  min-width: 0;
  min-height: 38px;
  justify-self: start;
  border-radius: 999px;
  padding: 0 16px;
  box-shadow: 0 12px 22px rgba(33, 144, 228, 0.16);
}

.staffing-outcome-trigger:disabled {
  cursor: wait;
  opacity: 0.76;
}

.staffing-outcome-feedback {
  margin: 0 0 12px;
  padding: 11px 14px;
  border: 1px solid rgba(205, 222, 238, 0.96);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.88);
  color: #31506d;
  font-weight: 750;
  box-shadow: 0 12px 24px rgba(18, 48, 75, 0.06);
}

.staffing-outcome-feedback.is-success {
  border-color: rgba(36, 163, 117, 0.28);
  background: linear-gradient(135deg, rgba(238, 255, 247, 0.96), rgba(255, 255, 255, 0.92));
  color: #17664c;
}

.staffing-outcome-feedback.is-error {
  border-color: rgba(225, 85, 85, 0.3);
  background: linear-gradient(135deg, rgba(255, 243, 243, 0.98), rgba(255, 255, 255, 0.92));
  color: #8b2d2d;
}

.staffing-outcome-feedback.is-pending {
  border-color: rgba(37, 150, 230, 0.28);
  background: linear-gradient(135deg, rgba(239, 248, 255, 0.98), rgba(255, 255, 255, 0.9));
  color: #17608d;
}

.staffing-outcome-panel {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(180, 210, 235, 0.95);
  border-radius: 18px;
  background: linear-gradient(135deg, rgba(246, 251, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.staffing-outcome-panel strong {
  display: block;
  color: var(--text);
  font-size: 14px;
}

.staffing-outcome-panel p {
  margin: 3px 0 0;
  color: var(--text-soft);
  font-size: 12px;
}

.staffing-outcome-options {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.staffing-outcome-choice,
.staffing-outcome-cancel {
  border: 1px solid rgba(190, 212, 232, 0.95);
  border-radius: 999px;
  background: #fff;
  color: #18324a;
  cursor: pointer;
  font: inherit;
}

.staffing-outcome-choice {
  display: grid;
  gap: 1px;
  min-width: 132px;
  padding: 8px 12px;
  text-align: left;
}

.staffing-outcome-choice span {
  font-size: 13px;
  font-weight: 800;
}

.staffing-outcome-choice small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
}

.staffing-outcome-choice:hover,
.staffing-outcome-cancel:hover {
  border-color: rgba(35, 150, 229, 0.45);
  box-shadow: 0 10px 22px rgba(23, 107, 172, 0.1);
}

.staffing-outcome-choice:disabled,
.staffing-outcome-cancel:disabled {
  cursor: wait;
  opacity: 0.7;
}

.staffing-outcome-cancel {
  padding: 8px 12px;
  color: var(--text-soft);
  font-weight: 750;
}

.staffing-table .table-head,
.staffing-table .table-row {
  grid-template-columns:
    minmax(0, 1.45fr)
    minmax(0, 1fr)
    minmax(120px, 0.72fr)
    minmax(110px, 0.58fr);
}

.staffing-table .table-row span {
  min-width: 0;
}

.staffing-table .talent-matcher-run-summary {
  flex-direction: column;
  align-items: flex-start;
}

.staffing-table .table-row.is-selected {
  border-color: rgba(35, 150, 229, 0.42);
  background:
    linear-gradient(90deg, rgba(233, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 72%),
    #ffffff;
  box-shadow:
    inset 3px 0 0 rgba(35, 150, 229, 0.72),
    0 10px 24px rgba(23, 107, 172, 0.08);
}

.staffing-table small {
  display: block;
  margin-top: 3px;
  color: var(--muted);
}

@media (max-width: 760px) {
  .staffing-table .table-row {
    grid-template-columns: 1fr;
    gap: 8px;
    align-items: start;
    padding: 14px;
  }

  .staffing-table .table-row > span,
  .staffing-table .table-row > span:first-child strong,
  .staffing-table .table-row > span:first-child small {
    display: block;
  }
}

.staffing-detail-panel {
  margin-top: 12px;
  border-color: rgba(179, 208, 231, 0.92);
  background:
    radial-gradient(circle at top right, rgba(35, 150, 229, 0.08), transparent 30%),
    linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.staffing-detail-panel h3 {
  margin: 4px 0 8px;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.staffing-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.staffing-hygiene-panel {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.staffing-hygiene-card {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(205, 222, 237, 0.96);
  border-radius: 22px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 30px rgba(96, 135, 177, 0.1);
}

.staffing-hygiene-card.is-primary {
  grid-column: 1 / -1;
  min-height: 132px;
  background:
    radial-gradient(circle at top right, rgba(35, 150, 229, 0.11), transparent 32%),
    linear-gradient(135deg, #ffffff 0%, #f5fbff 100%);
}

.staffing-hygiene-card.is-safe {
  border-color: rgba(87, 181, 110, 0.28);
  background:
    radial-gradient(circle at top right, rgba(87, 181, 110, 0.1), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fff9 100%);
}

.staffing-hygiene-card h3 {
  margin: 0;
  max-width: 720px;
  font-size: 22px;
  line-height: 1.16;
  letter-spacing: -0.03em;
}

.staffing-hygiene-card .action-button {
  width: max-content;
}

@media (min-width: 761px) {
  .queue-table > .table-head,
  .contacts-table .table-head,
  .company-table-wide .table-head,
  .portfolio-table .table-head,
  .staffing-table .table-head {
    position: sticky;
    top: 0;
    z-index: 30;
    background: rgba(255, 255, 255, 0.97);
    backdrop-filter: blur(14px);
    box-shadow:
      0 1px 0 rgba(217, 228, 239, 0.96),
      0 10px 22px rgba(25, 38, 55, 0.08);
  }

  .company-table-wide .table-head > span:first-child,
  .queue-table-standard .table-head > span:nth-child(1),
  .queue-table-standard .table-head > span:nth-child(2) {
    z-index: 32;
    background: rgba(255, 255, 255, 0.97);
  }
}

.kanban-card {
  width: 100%;
  padding: 13px;
  text-align: left;
}

.kanban-card:hover {
  border-color: #d5e4f2;
  box-shadow: 0 10px 22px rgba(25, 38, 55, 0.06);
}

.detail-layout {
  margin-top: 14px;
}

.surface-panel h2,
.side-summary h2 {
  margin: 0;
}

.summary-block {
  display: grid;
  gap: 12px;
}

.summary-block + .summary-block {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid #eef3f8;
}

.summary-title {
  margin: 0;
  font-size: 16px;
  font-weight: 700;
}

.summary-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}

.side-summary {
  display: grid;
  align-content: start;
  gap: 10px;
}

.meeting-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 16px;
  border: 1px solid #dce8f3;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(29, 54, 84, 0.05);
}

.meeting-page-head .muted-line {
  margin: 6px 0 0;
  max-width: 72ch;
}

.meeting-page-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(92px, 1fr));
  gap: 8px;
}

.meeting-stat {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 10px 11px;
  border: 1px solid #e1ebf4;
  border-radius: 8px;
  background: #f8fbfe;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.meeting-stat strong {
  color: #11243a;
  font-size: 20px;
  line-height: 1;
  letter-spacing: 0;
}

.meeting-next-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 10px;
  padding: 10px 12px;
  border: 1px solid #dce8f3;
  border-radius: 8px;
  background: #f9fbfd;
  color: var(--text-soft);
  font-size: 13px;
}

.meeting-next-strip strong {
  color: var(--text);
}

.meeting-list {
  display: grid;
  gap: 8px;
  margin-top: 10px;
}

.meeting-row {
  width: 100%;
  min-height: 104px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr) minmax(180px, 0.32fr);
  gap: 14px;
  align-items: stretch;
  padding: 10px;
  border: 1px solid #d9e6f2;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(26, 48, 75, 0.05);
  transition:
    border-color 140ms ease,
    box-shadow 140ms ease,
    transform 140ms ease;
}

.meeting-row:hover,
.meeting-row:focus-visible {
  border-color: #b9d2e8;
  box-shadow: 0 14px 26px rgba(28, 58, 91, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.meeting-date-rail {
  display: grid;
  place-items: center;
  align-content: center;
  gap: 1px;
  min-height: 84px;
  border-radius: 8px;
  background: #eef5fb;
  color: #35506b;
  text-align: center;
}

.meeting-date-rail strong {
  color: #10243b;
  font-size: 26px;
  line-height: 0.95;
}

.meeting-date-rail span,
.meeting-date-rail small {
  font-size: 11px;
  line-height: 1.2;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.meeting-row-main {
  min-width: 0;
  display: grid;
  align-content: start;
  gap: 6px;
}

.meeting-row-title {
  color: #10243b;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.2;
}

.meeting-row-context {
  color: #45576d;
  font-size: 13px;
  line-height: 1.45;
  display: -webkit-box;
  overflow: hidden;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
}

.meeting-row-action {
  width: fit-content;
  max-width: 100%;
  padding: 5px 8px;
  border-radius: 8px;
  background: #f3f7fb;
  color: #24374d;
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.meeting-row-meta {
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.3;
  text-align: right;
}

.meeting-highlight {
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.meeting-detail-hero {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  padding: 12px 14px;
  border: 1px solid #c6d9e8;
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f5f9fd 100%);
  box-shadow: 0 10px 22px rgba(28, 52, 81, 0.08);
}

.meeting-detail-heading {
  min-width: 0;
}

.meeting-detail-heading .surface-title {
  font-size: 22px;
  line-height: 1.1;
}

.meeting-detail-heading p:not(.surface-kicker) {
  margin: 6px 0 0;
  color: #40536a;
  line-height: 1.38;
}

.meeting-detail-status {
  min-width: 150px;
  display: grid;
  justify-items: end;
  gap: 6px;
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.meeting-detail-status strong {
  color: var(--text);
  font-size: 13px;
}

.meeting-fact-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid #cfddea;
  border-radius: 8px;
  background: #f3f7fb;
}

.meeting-fact-strip .detail-field {
  padding: 2px 12px;
  border-left: 1px solid #cfdae6;
}

.meeting-fact-strip .detail-field:first-child {
  border-left: 0;
  padding-left: 0;
}

.meeting-detail-context {
  margin-top: 8px;
  padding: 10px 12px;
  border: 1px solid #ceddea;
  border-radius: 8px;
  background: #fbfdff;
}

.meeting-context-card {
  margin-top: 8px;
  padding: 12px;
  border: 1px solid #c7d9e8;
  border-radius: 8px;
  background: #f7fafc;
  box-shadow: 0 10px 22px rgba(36, 72, 110, 0.07);
}

.meeting-context-summary {
  margin: 0;
  padding: 8px 10px;
  border: 1px solid #d4e2ee;
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-size: 13px;
  line-height: 1.4;
}

.meeting-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 8px;
}

.meeting-context-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.meeting-context-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  border: 1px solid #cfdeeb;
  border-radius: 8px;
  overflow: hidden;
  background: #ffffff;
}

.meeting-context-fact {
  min-width: 0;
  display: grid;
  grid-template-columns: 120px minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 8px 10px;
  border-top: 1px solid #dbe6ef;
  color: var(--text);
  line-height: 1.35;
}

.meeting-context-fact:nth-child(1),
.meeting-context-fact:nth-child(2) {
  border-top: 0;
}

.meeting-context-fact:nth-child(2n) {
  border-left: 1px solid #dbe6ef;
}

.meeting-context-fact:nth-child(4n + 1),
.meeting-context-fact:nth-child(4n + 2) {
  background: #ffffff;
}

.meeting-context-fact:nth-child(4n + 3),
.meeting-context-fact:nth-child(4n + 4) {
  background: #f5f8fb;
}

.meeting-context-fact-value {
  min-width: 0;
  overflow-wrap: anywhere;
}

.meeting-email-threads {
  display: grid;
  gap: 8px;
}

.meeting-email-thread-list {
  display: grid;
  gap: 8px;
}

.meeting-email-thread {
  display: grid;
  gap: 6px;
  padding: 11px 12px;
  border: 1px solid #dcebf6;
  border-radius: 8px;
  background: #ffffff;
}

.meeting-email-thread-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
}

.meeting-email-thread-head strong {
  min-width: 0;
  color: var(--text);
  font-size: 14px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.meeting-email-thread-head span,
.meeting-email-thread-meta {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.meeting-email-thread-meta,
.meeting-email-thread-excerpt {
  margin: 0;
}

.meeting-email-thread-excerpt {
  color: #42526f;
  font-size: 13px;
  line-height: 1.45;
}

.meeting-context-field {
  min-height: 76px;
  padding: 12px;
  border: 1px solid #e8f0f7;
  border-radius: 8px;
  background: #ffffff;
}

.meeting-context-field .detail-value {
  margin-top: 8px;
  line-height: 1.4;
}

.meeting-context-field.is-link {
  border-color: #cfe6f5;
  background: #f8fcff;
}

.meeting-context-link {
  color: #0874b8;
  font-weight: 700;
  text-decoration: none;
}

.meeting-context-link:hover {
  text-decoration: underline;
}

.meeting-context-date {
  display: inline-flex;
  justify-self: end;
  margin-top: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
  white-space: nowrap;
}

.meeting-context-timeline {
  display: grid;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid #d8e5f0;
}

.meeting-context-timeline > .detail-label {
  margin-top: 0;
  color: #5e7188;
}

.meeting-context-timeline-item {
  display: grid;
  gap: 5px;
  padding: 10px 11px;
  border: 1px solid #cfdeeb;
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(36, 72, 110, 0.04);
}

.meeting-context-timeline-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.meeting-context-timeline-head strong {
  color: #10243b;
  font-size: 13px;
}

.meeting-context-timeline-text {
  margin: 0;
  color: #24364b;
  font-size: 13px;
  line-height: 1.4;
}

.meeting-context-missing {
  display: grid;
  gap: 4px;
  margin-top: 10px;
  padding: 10px 0 0;
  border-top: 1px solid #d8e5f0;
}

.meeting-activity-card {
  margin-top: 10px;
  padding: 14px;
  border: 1px solid #e6eef6;
  border-radius: 8px;
  background: #ffffff;
}

.meeting-side-card {
  border-color: #dfeaf4;
  background: #ffffff;
}

.meeting-side-card.is-primary {
  background: #f8fbfe;
}

.meeting-activity-list {
  display: grid;
  gap: 8px;
}

.meeting-activity-item {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-top: 1px solid #eef3f8;
}

.meeting-activity-item:first-child {
  border-top: 0;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 28, 43, 0.36);
  backdrop-filter: blur(10px);
}

.arbitrage-dialog {
  width: min(620px, 100%);
  max-height: calc(100vh - 44px);
  overflow: auto;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  box-shadow: var(--shadow-strong);
}

.arbitrage-dialog-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 18px 14px;
  border-bottom: 1px solid var(--border);
}

.arbitrage-dialog-head h2 {
  margin: 2px 0 0;
  font-size: 22px;
  line-height: 1.12;
}

.icon-button {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border: 1px solid var(--border-strong);
  border-radius: 8px;
  background: var(--surface-soft);
  color: var(--text-soft);
  cursor: pointer;
}

.icon-button:hover,
.icon-button:focus-visible {
  background: var(--accent-soft);
  color: var(--accent-strong);
  outline: none;
}

.arbitrage-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  padding: 16px 18px 0;
}

.arbitrage-summary > div {
  min-width: 0;
  display: grid;
  gap: 3px;
  padding: 11px 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface-soft);
}

.arbitrage-summary strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.arbitrage-guardrail {
  margin: 14px 18px 0;
  padding: 11px 12px;
  border: 1px solid rgba(240, 164, 79, 0.36);
  border-radius: 8px;
  background: var(--warning-soft);
  color: #8a5c21;
}

.arbitrage-choice-list {
  display: grid;
  gap: 10px;
  padding: 16px 18px 0;
}

.arbitrage-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.arbitrage-choice:hover,
.arbitrage-choice:focus-visible,
.arbitrage-choice.is-selected {
  border-color: rgba(33, 144, 228, 0.34);
  background: var(--accent-soft);
  outline: none;
}

.choice-radio {
  width: 16px;
  height: 16px;
  margin-top: 2px;
  border: 2px solid var(--border-strong);
  border-radius: 999px;
  background: var(--surface);
}

.arbitrage-choice.is-selected .choice-radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 8px var(--accent);
}

.arbitrage-choice span:last-child {
  display: grid;
  gap: 3px;
}

.arbitrage-choice strong,
.arbitrage-choice span,
.arbitrage-choice em {
  min-width: 0;
}

.arbitrage-choice span span {
  color: var(--text-soft);
}

.arbitrage-choice em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
}

.arbitrage-result {
  margin: 14px 18px 0;
  padding: 11px 12px;
  border: 1px solid rgba(87, 181, 110, 0.34);
  border-radius: 8px;
  background: var(--success-soft);
  color: #326f42;
}

.arbitrage-dialog-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 18px;
}

.email-arbitrage-panel {
  border-color: rgba(33, 144, 228, 0.22);
  background: rgba(240, 246, 252, 0.84);
}

.email-arbitrage-choice-list {
  display: grid;
  gap: 10px;
}

.email-arbitrage-choice {
  width: 100%;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  text-align: left;
  cursor: pointer;
}

.email-arbitrage-choice:hover,
.email-arbitrage-choice:focus-visible,
.email-arbitrage-choice.is-selected {
  border-color: rgba(33, 144, 228, 0.42);
  background: var(--accent-soft);
  outline: none;
}

.email-arbitrage-choice.is-selected .choice-radio {
  border-color: var(--accent);
  box-shadow: inset 0 0 0 4px var(--surface), inset 0 0 0 8px var(--accent);
}

.email-arbitrage-choice span:last-child {
  min-width: 0;
  display: grid;
  gap: 3px;
}

.email-arbitrage-choice em {
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--accent-strong);
  font-size: 13px;
  font-style: normal;
  font-weight: 700;
}

.email-arbitrage-choice small {
  color: var(--text-soft);
  font-size: 12px;
}

.email-arbitrage-actions {
  display: flex;
  justify-content: flex-end;
}

.email-arbitrage-actions .action-button {
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 136px;
  min-height: 40px;
  padding: 0 18px;
  border-radius: 12px;
  text-align: center;
  white-space: nowrap;
}

.email-arbitrage-warning {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(240, 164, 79, 0.36);
  border-radius: 8px;
  background: var(--warning-soft);
  color: #8a5c21;
}

.journal-drawer {
  margin-top: 12px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.88);
}

.activity-log {
  display: grid;
  gap: 6px;
}

.activity-entry {
  padding: 8px 10px;
  border-radius: 10px;
  background: var(--surface-soft);
  border: 1px solid #edf2f7;
  color: var(--text-soft);
}

.journal-drawer[hidden] {
  display: none;
}

@media (min-width: 1025px) {
  .workspace[data-active-view="cockpit"] {
    height: 100vh;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto auto auto minmax(0, 1fr);
  }

  .workspace[data-active-view="cockpit"] .view[data-view-panel="cockpit"].is-active {
    min-height: 0;
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
  }

  .workspace[data-active-view="cockpit"] #cockpit-mode-toolbar-slot {
    height: 58px;
    overflow: hidden;
  }

  .workspace[data-active-view="cockpit"] #cockpit-mode-toolbar-slot .cockpit-mode-toolbar-block {
    max-height: 58px;
    overflow: hidden;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    align-items: stretch;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .action-board,
  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .detail-panel {
    max-height: 100%;
    scrollbar-gutter: stable;
    padding-bottom: 6px;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .cockpit-left-rail {
    min-height: 0;
    height: 100%;
    overflow: hidden;
    display: grid;
    grid-template-rows: auto minmax(0, 1fr);
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .action-board {
    overflow: hidden;
    display: grid;
    grid-template-rows: minmax(0, 1fr);
    align-self: stretch;
    gap: 0;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .detail-panel {
    overflow-y: auto;
    overscroll-behavior: contain;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-sections,
  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-section,
  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-table-shell {
    min-height: 0;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-sections {
    height: 100%;
    display: block;
    overflow-x: hidden;
    overflow-y: auto;
    overscroll-behavior: contain;
    scrollbar-gutter: stable;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-section {
    min-height: 0;
    overflow: visible;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-table-shell {
    min-height: 0;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-table-scroll {
    min-height: 0;
    overflow-x: hidden;
    overflow-y: visible;
  }

  .workspace[data-active-view="cockpit"] .cockpit-layout.is-cockpit-1b-layout .queue-section-header {
    position: sticky;
    top: 0;
    z-index: 4;
    background: var(--surface);
  }
}

@media (max-width: 1400px) {
  .stats-grid,
  .portfolio-strip,
  .kanban-grid,
  .staffing-summary-grid,
  .staffing-hygiene-panel,
  .staffing-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-dashboard,
  .cockpit-layout,
  .detail-layout {
    grid-template-columns: 1fr;
  }

  .meeting-page-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .meeting-fact-strip,
  .meeting-context-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .home-actions-layout {
    grid-template-columns: 1fr;
  }

  .home-priority-panel {
    grid-row: auto;
  }
}

@media (min-width: 1025px) and (max-width: 1760px) {
  .cockpit-layout.is-cockpit-1b-layout {
    grid-template-columns: clamp(220px, 22vw, 300px) minmax(0, 1fr);
  }
}

@media (max-width: 1024px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .cockpit-layout.is-cockpit-1b-layout {
    grid-template-columns: 1fr;
  }

  .cockpit-layout.is-cockpit-1b-layout .action-board {
    position: static;
  }

  #cockpit-mode-toolbar-slot {
    width: 100%;
  }

  .sidebar {
    position: static;
    top: auto;
    align-self: stretch;
    height: auto;
    overflow: visible;
    gap: 12px;
    border-right: 0;
    border-bottom: 1px solid rgba(217, 228, 239, 0.85);
  }

  .sidebar-nav {
    grid-auto-flow: column;
    grid-auto-columns: max-content;
    overflow-x: auto;
    overflow-y: hidden;
    padding-bottom: 2px;
  }

  .topbar {
    grid-template-columns: 1fr;
  }

  .topbar-actions {
    justify-content: flex-start;
  }

  .cockpit-topbar-snooze-slot {
    width: auto;
    max-width: 100%;
    margin-right: 0;
    order: 3;
    transform: none;
  }

  .snooze-popover {
    position: static;
    margin-top: 8px;
    width: 100%;
  }

  .cockpit-snooze-topbar-action.is-snoozed {
    flex-wrap: wrap;
    max-width: 100%;
  }

  .cockpit-snooze-comment {
    min-width: 100%;
  }

  .search-box {
    min-width: 0;
    width: 100%;
  }

  .stats-grid,
  .portfolio-strip,
  .home-dashboard,
  .kanban-grid,
  .staffing-summary-grid,
  .staffing-hygiene-panel,
  .staffing-card-grid {
    grid-template-columns: 1fr;
  }

  .home-priority-main,
  .home-today-row {
    grid-template-columns: 28px minmax(0, 1fr);
  }

  .home-priority-badge,
  .home-today-row em {
    grid-column: 2;
    justify-self: start;
  }

  .home-priority-detail,
  .home-priority-reason,
  .home-priority-footer {
    padding-left: 38px;
  }

  .cockpit-inline-editor-grid,
  .cockpit-action-editor-form {
    grid-template-columns: 1fr;
  }

  .meeting-page-head,
  .meeting-row,
  .meeting-detail-hero {
    grid-template-columns: 1fr;
  }

  .meeting-page-stats,
  .meeting-fact-strip,
  .meeting-context-facts,
  .meeting-context-profile-grid {
    grid-template-columns: 1fr;
  }

  .meeting-fact-strip .detail-field,
  .meeting-fact-strip .detail-field:first-child {
    padding: 8px 0;
    border-left: 0;
    border-top: 1px solid #e2ebf4;
  }

  .meeting-fact-strip .detail-field:first-child {
    border-top: 0;
  }

  .meeting-context-fact {
    grid-template-columns: 1fr;
    gap: 4px;
  }

  .meeting-context-fact:nth-child(2),
  .meeting-context-fact:nth-child(2n) {
    border-left: 0;
  }

  .meeting-context-fact:nth-child(2) {
    border-top: 1px solid #edf3f8;
  }

  .meeting-context-date {
    justify-self: start;
  }

  .meeting-row-meta,
  .meeting-detail-status {
    justify-items: start;
    text-align: left;
  }

  .meeting-date-rail {
    grid-template-columns: auto auto auto;
    justify-content: start;
    place-items: center start;
    min-height: 0;
    padding: 9px 10px;
    gap: 7px;
  }

  .meeting-page-head,
  .meeting-detail-hero {
    padding: 14px;
  }

  .meeting-row-title {
    font-size: 16px;
  }
}

@media (max-width: 760px) {
  .app-shell {
    grid-template-columns: 1fr;
  }


  body.is-recette-environment .app-shell,
  body.is-recette-environment .login-screen {
    min-height: calc(100vh - 44px);
  }

  .recette-environment-banner {
    min-height: 44px;
    gap: 5px;
    padding: 7px 10px;
    font-size: 10px;
  }

  .recette-environment-banner-domain {
    display: none;
  }
  }

@media (max-width: 760px) {

  .home-signal-grid {
    grid-template-columns: 1fr;
  }

  .home-priority-card,
  .home-empty-panel {
    padding: 10px;
  }

  .sidebar {
    position: sticky;
    top: 0;
    z-index: 40;
    padding: 10px 10px 12px;
    grid-template-rows: auto;
    gap: 10px;
    background: rgba(255, 255, 255, 0.94);
    backdrop-filter: blur(22px);
    border-bottom: 0;
  }

  .queue-scroll-button {
    display: none;
  }

  .brand-lockup {
    position: relative;
    gap: 10px;
    align-items: center;
    padding: 4px 2px;
  }

  .brand-subtitle {
    font-size: 12px;
  }

  .mobile-nav-toggle {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    min-width: 78px;
    border-color: #c9daec;
    box-shadow: 0 8px 18px rgba(110, 146, 188, 0.16);
  }

  .sidebar-nav {
    display: none;
    grid-auto-flow: row;
    grid-auto-columns: unset;
    position: absolute;
    top: calc(100% + 10px);
    left: 0;
    right: 0;
    grid-template-columns: 1fr;
    gap: 6px;
    margin: 0;
    padding: 10px;
    border: 1px solid rgba(211, 224, 238, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow:
      0 24px 48px rgba(105, 142, 188, 0.22),
      0 8px 18px rgba(105, 142, 188, 0.12);
    overflow: visible;
  }

  .sidebar[data-mobile-open="true"] .sidebar-nav {
    display: flex;
    flex-direction: column;
  }

  .nav-link {
    min-width: 0;
    width: 100%;
    min-height: 54px;
    padding: 0 14px;
    border: 1px solid rgba(223, 233, 244, 0.96);
    border-radius: 14px;
    background: #f9fbfe;
    display: flex;
    align-items: center;
    gap: 10px;
    white-space: normal;
    line-height: 1.2;
    font-weight: 600;
  }

  .nav-icon {
    display: block;
    width: 18px;
    text-align: center;
    font-size: 13px;
    color: var(--muted);
    flex-shrink: 0;
  }

  .nav-link.is-active {
    border-color: rgba(171, 207, 240, 0.96);
    background: linear-gradient(180deg, #eef7ff 0%, #e7f2ff 100%);
    box-shadow: inset 0 0 0 1px rgba(33, 144, 228, 0.08);
  }

  .nav-link.is-active .nav-icon,
  .nav-link:hover .nav-icon {
    color: var(--accent-strong);
  }

  .sidebar-footer {
    display: none;
  }

  .workspace {
    padding: 14px 12px 18px;
  }

  .contact-detail-header {
    display: grid;
  }

  .contact-detail-header-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    width: 100%;
  }

  .contact-detail-header-actions .toolbar-button {
    width: auto;
    min-width: 0;
  }

  .sales-contact-profile .sales-profile-head {
    grid-template-columns: minmax(0, 1fr);
    align-items: start;
  }

  .sales-contact-profile .sales-profile-main {
    width: 100%;
  }

  .sales-contact-profile .sales-profile-line {
    grid-template-columns: minmax(0, 1fr);
    justify-items: start;
    gap: 4px;
  }

  .sales-contact-profile .sales-profile-line .sales-company-picker,
  .sales-contact-profile .sales-profile-line .sales-profile-role-form {
    width: 100%;
  }

  .sales-contact-profile .sales-profile-line .sales-compact-input {
    width: 100%;
    font-size: 12px;
  }

  .sales-contact-profile .sales-profile-line .sales-profile-role-form .sales-compact-input {
    font-size: 11px;
  }

  .topbar {
    gap: 14px;
  }

  .topbar-title {
    display: grid;
    gap: 10px;
    width: 100%;
    padding: 2px 2px 0;
  }

  .topbar-title h1 {
    margin: 0;
    font-size: 34px;
    line-height: 0.96;
    letter-spacing: -0.05em;
    max-width: none;
    text-wrap: balance;
  }

  .topbar-title p {
    margin: 0;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: break-word;
  }

  #view-subtitle {
    max-width: 18ch;
    color: #6f859d;
    font-size: 15px;
    line-height: 1.25;
    font-weight: 500;
  }

  .view-freshness {
    display: flex;
    align-items: center;
    width: 100%;
    max-width: none;
    min-height: 48px;
    padding: 11px 14px;
    border-radius: 18px;
    font-size: 15px;
    line-height: 1.25;
    box-shadow:
      0 10px 24px rgba(114, 168, 124, 0.08),
      inset 0 1px 0 rgba(255, 255, 255, 0.84);
  }

  .topbar-actions {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .scope-pill,
  .mode-switch,
  .toolbar-button {
    width: 100%;
  }

  .mode-switch {
    justify-content: space-between;
    flex-wrap: wrap;
  }

  .mode-button {
    flex: 1 1 120px;
  }

  .collaborator-picker {
    width: 100%;
    justify-content: space-between;
    border-left: 0;
    border-top: 1px solid rgba(190, 205, 222, 0.9);
    padding: 10px 4px 4px;
  }

  .collaborator-select {
    min-width: 0;
    width: 100%;
  }

  .action-board .surface-header {
    display: grid;
    gap: 10px;
  }

  .action-board .surface-title {
    font-size: 18px;
    line-height: 1.1;
  }

  .scope-badge {
    justify-self: start;
  }

  .cockpit-mode-toolbar,
  .cockpit-columns-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .cockpit-mode-toolbar {
    gap: 10px;
    flex-wrap: wrap;
    align-items: stretch;
  }

  .cockpit-mode-toolbar-block,
  .cockpit-mode-meta {
    width: 100%;
  }

  .cockpit-mode-meta {
    justify-content: flex-start;
  }

  .cockpit-mode-meta .pill {
    min-width: 0;
    justify-content: center;
  }

  .task-summary-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .queue-section {
    border-radius: 20px;
    padding: 12px;
  }

  .queue-section-header {
    display: grid;
    grid-template-columns: 1fr;
    gap: 10px;
    align-items: start;
  }

  .queue-section-header > div:first-child {
    width: 100%;
    justify-content: space-between;
  }

  .queue-table .table-head,
  .queue-table .table-row,
  .large-table .table-head,
  .large-table .table-row,
  .portfolio-table .table-head,
  .portfolio-table .table-row {
    grid-template-columns: 1fr;
    padding: 10px 12px;
  }

  .table-head {
    display: none;
  }

  .queue-table {
    display: grid;
    gap: 10px;
  }

  .queue-row {
    gap: 10px;
    padding: 14px;
    border: 1px solid rgba(214, 226, 240, 0.96);
    border-radius: 20px;
    background: rgba(255, 255, 255, 0.98);
    box-shadow: 0 12px 26px rgba(125, 160, 204, 0.12);
  }

  .queue-row > span {
    min-height: auto;
    display: grid;
    gap: 5px;
    align-items: start;
  }

  .queue-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    text-transform: uppercase;
    letter-spacing: 0.08em;
  }

  .queue-row > span:last-child,
  .queue-row > span:last-child::before {
    display: none;
  }

  .queue-row .row-company {
    font-weight: 650;
  }

  .queue-row .action-brief,
  .queue-row .reason-brief {
    min-height: auto;
  }

  .queue-row .action-brief-surface,
  .queue-row .reason-brief {
    width: 100%;
  }

  .queue-row .status-badge,
  .queue-row .phone-pill,
  .queue-row .linked-pill {
    justify-self: start;
  }

  .phoning-1b-head,
  .phoning-1b-context {
    grid-template-columns: 1fr;
  }

  .phoning-1b-head {
    display: grid;
  }

  .phoning-1b-phone {
    width: 100%;
  }

  .sales-action-banner,
  .sales-action-row,
  .sales-action-properties,
  .sales-context-panel,
  .sales-edit-grid,
  .sales-script-grid,
  .contact-timeline-toolbar {
    align-items: stretch;
  }

  .sales-action-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .contact-timeline-filters {
    width: 100%;
  }

  .contact-timeline-period {
    justify-content: space-between;
  }
  .sales-timeline-summary {
    grid-template-columns: minmax(0, 1fr) 20px;
    gap: 8px 12px;
    padding: 12px 14px;
  }

  .sales-timeline-kind,
  .sales-timeline-date {
    grid-column: 1;
  }

  .sales-timeline-kind {
    grid-row: 1;
  }

  .sales-timeline-date {
    grid-row: 2;
    font-size: 12px;
  }

  .sales-timeline-copy {
    grid-column: 1 / -1;
    grid-row: 3;
  }

  .sales-timeline-preview {
    grid-column: 1 / -1;
    grid-row: 4;
  }

  .sales-timeline-toggle {
    grid-column: 2;
    grid-row: 1 / span 2;
    justify-self: end;
  }

  .sales-timeline-expanded {
    padding: 0 14px 14px;
  }

  .sales-channel-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .sales-section-head {
    display: grid;
    gap: 4px;
  }

  .linkedin-signal-main {
    grid-template-columns: minmax(0, 1fr);
  }

  .linkedin-signal-toggle {
    justify-self: start;
  }

  .linkedin-signal-foot {
    gap: 5px;
  }

  .linkedin-signal-detail-group > summary {
    align-items: flex-start;
  }

  .linkedin-signal-detail-group > summary span:last-child {
    white-space: normal;
    text-align: right;
  }

  .linkedin-signal-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .linkedin-signal-facts > div,
  .linkedin-signal-facts > div:nth-child(even),
  .linkedin-signal-facts > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(226, 235, 244, 0.92);
  }

  .linkedin-signal-facts > div:last-child {
    border-bottom: 0;
  }

  .sales-context-panel > div,
  .sales-context-panel > div:nth-child(odd),
  .sales-context-panel > div:nth-last-child(-n + 2) {
    border-right: 0;
    border-bottom: 1px solid rgba(224, 233, 242, 0.86);
  }

  .sales-context-panel > div:last-child {
    border-bottom: 0;
  }

  .hygiene-table .table-row > span {
    display: grid;
    gap: 5px;
    justify-items: start;
  }

  .hygiene-table .table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .opportunity-table .table-row > span {
    display: grid;
    gap: 5px;
    justify-items: start;
  }

  .opportunity-table .table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.08em;
    text-transform: uppercase;
  }

  .detail-panel {
    position: static;
    top: auto;
  }

  .staffing-team-guide {
    grid-template-columns: 1fr;
    padding: 14px;
    border-radius: 20px;
  }

  .staffing-guide-safe {
    grid-column: auto;
  }

  .talent-matcher-verification-grid {
    grid-template-columns: 1fr;
  }

  .talent-matcher-private-access-grid {
    grid-template-columns: 1fr;
  }

  .talent-matcher-verification-status > div {
    align-items: flex-start;
    flex-direction: column;
  }

  .talent-matcher-result-group-head,
  .talent-matcher-additional-results > summary {
    align-items: stretch;
    flex-direction: column;
  }

  .talent-matcher-result-group-head p {
    text-align: left;
  }

  .talent-matcher-additional-results > summary > span {
    align-items: flex-start;
    flex-direction: column;
  }

  .talent-matcher-review-progress-head,
  .talent-matcher-review-progress-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .talent-matcher-review-clock {
    justify-content: start;
    text-align: left;
  }

  .talent-matcher-review-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .talent-matcher-review-progress-actions .action-button,
  .talent-matcher-review-assignment .action-button {
    width: 100%;
  }

  .talent-matcher-reusable-verification > .action-button {
    width: 100%;
  }


  .staffing-action-controls .action-button,
  .talent-matcher-verification > .action-button {
    width: 100%;
  }

  .contact-form-grid {
    grid-template-columns: 1fr;
  }

  .contact-form-actions {
    justify-content: stretch;
  }

  .task-form-card .contact-form-actions {
    justify-content: flex-end;
  }

  .task-detail-form .contact-form-actions .action-button {
    width: 100%;
  }

  .email-arbitrage-actions .action-button {
    width: 100%;
  }

  .task-detail-card .detail-grid,
  .task-detail-form {
    grid-template-columns: 1fr;
  }

  .task-form-card .contact-form-actions .action-button {
    flex: 0 1 auto;
  }

  .modal-backdrop {
    align-items: stretch;
    padding: 12px;
  }

  .arbitrage-dialog {
    max-height: calc(100vh - 24px);
  }

  .arbitrage-summary {
    grid-template-columns: 1fr;
  }

  .arbitrage-dialog-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  .form-grid {
    grid-template-columns: 1fr;
  }

  .form-field-wide {
    grid-column: auto;
  }

  .form-actions {
    justify-content: stretch;
  }

  .form-actions .action-button {
    width: 100%;
  }

  .company-columns-shell {
    padding: 12px;
    border-radius: 18px;
  }

  .company-table-wide {
    display: grid;
    grid-template-columns: var(--company-columns);
    width: max-content;
    min-width: 100%;
  }

  .company-table-wide .table-head {
    display: grid;
  }

  .company-table-wide .table-head,
  .company-table-wide .table-row {
    grid-column: 1 / -1;
    grid-template-columns: subgrid;
    min-width: max-content;
    width: auto;
    padding: 0 12px;
  }

  .company-table-wide .table-row {
    gap: 10px;
    border: 0;
    border-top: 1px solid #eef3f8;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .company-table-wide .table-head > span,
  .company-table-wide .table-row > span {
    display: flex;
    min-height: 54px;
  }

  .company-table-wide .table-head > span:first-child,
  .company-table-wide .table-row > span:first-child {
    position: sticky;
    left: 0;
    min-width: 300px;
    z-index: 20;
    background: var(--surface);
  }

  .company-table-wide .table-head > span:first-child {
    z-index: 21;
  }

  .company-table-wide .company-cell-editor {
    grid-template-columns: minmax(0, 1fr) 40px;
  }
}


/* TALENT-MATCHER-WORKFLOW-V1 */
.staffing-workflow-nav {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
  margin: 4px 0 18px;
}

.staffing-tabs-primary {
  margin: 0;
}

.staffing-tabs-primary .pill {
  min-height: 42px;
  padding-inline: 18px;
  font-weight: 800;
}

.staffing-more-tabs {
  position: relative;
  margin-left: auto;
}

.staffing-more-tabs > summary {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 1px solid var(--border);
  border-radius: 999px;
  background: var(--surface);
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
  list-style: none;
}

.staffing-more-tabs > summary::-webkit-details-marker {
  display: none;
}

.staffing-more-tabs[open] > summary {
  border-color: rgba(33, 144, 228, 0.48);
  background: var(--accent-soft);
  color: var(--accent);
}

.staffing-tabs-secondary {
  justify-content: flex-end;
  max-width: 760px;
  margin: 10px 0 0;
}

.talent-matcher-page-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 0.8fr);
  gap: 32px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
  border: 1px solid rgba(190, 218, 241, 0.9);
  border-radius: 22px;
  background: linear-gradient(135deg, rgba(235, 247, 255, 0.96), rgba(255, 255, 255, 0.98));
}

.talent-matcher-page-copy {
  display: grid;
  gap: 9px;
}

.talent-matcher-page-copy h3,
.talent-matcher-page-copy p,
.talent-matcher-step-head h4,
.talent-matcher-step-head p,
.talent-matcher-launch p,
.talent-matcher-section-head h3,
.talent-matcher-section-head p {
  margin: 0;
}

.talent-matcher-page-copy h3 {
  color: var(--text);
  font-size: clamp(22px, 2.2vw, 30px);
  letter-spacing: -0.03em;
}

.talent-matcher-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.talent-matcher-journey li {
  display: grid;
  gap: 8px;
  justify-items: center;
  padding: 12px 8px;
  border-radius: 14px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  text-align: center;
}

.talent-matcher-journey li strong,
.talent-matcher-step-head > span {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #e7eef6;
  color: var(--text-soft);
}

.talent-matcher-journey li.is-active {
  background: rgba(255, 255, 255, 0.9);
  color: var(--accent);
  box-shadow: 0 8px 24px rgba(43, 92, 132, 0.08);
}

.talent-matcher-journey li.is-active strong,
.talent-matcher-step:first-child .talent-matcher-step-head > span {
  background: var(--accent);
  color: #fff;
}

.talent-matcher-wizard {
  display: grid;
  gap: 0;
  padding: 0;
  overflow: hidden;
}

.talent-matcher-step {
  display: grid;
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
  gap: 24px;
  padding: 24px;
  border-bottom: 1px solid var(--border);
}

.talent-matcher-step-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.talent-matcher-step-head > div {
  display: grid;
  gap: 5px;
}

.talent-matcher-step-head h4 {
  color: var(--text);
  font-size: 16px;
}

.talent-matcher-step-head p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.talent-matcher-launch {
  display: flex;
  gap: 24px;
  align-items: center;
  justify-content: space-between;
  padding: 20px 24px;
  background: #f6fbff;
}

.talent-matcher-launch p {
  display: grid;
  gap: 4px;
}

.talent-matcher-launch p span {
  color: var(--muted);
  font-size: 13px;
}

.talent-matcher-launch .action-button {
  align-items: center;
  justify-content: center;
  min-width: 190px;
  min-height: 52px;
  padding: 0 20px;
  text-align: center;
}

.talent-matcher-mission-prefill {
  grid-column: 1 / -1;
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(105, 187, 221, 0.28);
  border-radius: 12px;
  background: rgba(240, 246, 252, 0.9);
}

.talent-matcher-new-mission-callout {
  display: flex;
  gap: 8px 14px;
  align-items: center;
  padding: 14px 16px;
  border: 1px solid rgba(31, 174, 132, 0.34);
  border-radius: 14px;
  background: rgba(235, 251, 246, 0.94);
  color: var(--text-soft);
}

.talent-matcher-new-mission-callout strong {
  color: #14795d;
}

.field-help {
  margin-left: 6px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}

.talent-matcher-optional-criteria {
  border-bottom: 1px solid var(--border);
  background: rgba(246, 251, 255, 0.72);
}

.talent-matcher-optional-criteria > summary,
.talent-matcher-history > summary {
  list-style: none;
  cursor: pointer;
}

.talent-matcher-optional-criteria > summary::-webkit-details-marker,
.talent-matcher-history > summary::-webkit-details-marker {
  display: none;
}

.talent-matcher-optional-criteria > summary {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
  padding: 17px 24px;
  color: var(--text-soft);
  font-size: 14px;
  font-weight: 800;
}

.talent-matcher-optional-criteria > summary::after,
.talent-matcher-history > summary::after {
  content: "+";
  color: var(--accent);
  font-size: 20px;
  line-height: 1;
}

.talent-matcher-optional-criteria[open] > summary::after,
.talent-matcher-history[open] > summary::after {
  content: "−";
}

.talent-matcher-optional-criteria > summary small {
  margin-left: auto;
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.talent-matcher-optional-criteria .talent-matcher-step {
  border-top: 1px solid var(--border);
  border-bottom: 0;
}

.talent-matcher-history {
  margin-top: 22px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.8);
  overflow: hidden;
}

.talent-matcher-history > summary {
  display: flex;
  gap: 18px;
  align-items: center;
  padding: 18px 20px;
}

.talent-matcher-history > .talent-matcher-queue-table {
  margin: 0 16px 16px;
}

.talent-matcher-review-queue {
  display: grid;
  gap: 14px;
}

.talent-matcher-section-head {
  display: flex;
  gap: 18px;
  align-items: flex-end;
  justify-content: space-between;
}

.talent-matcher-section-head > div {
  display: grid;
  gap: 5px;
}

.talent-matcher-decision-workspace {
  margin-top: 22px;
}

.talent-matcher-pilot-panel {
  margin-top: 18px;
  border: 1px dashed var(--border-strong);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.72);
}

.talent-matcher-pilot-panel > summary {
  padding: 14px 18px;
  color: var(--text-soft);
  cursor: pointer;
  font-size: 13px;
  font-weight: 800;
}

.talent-matcher-pilot-panel > .talent-matcher-review-progress {
  margin: 0 14px 14px;
}

@media (max-width: 1024px) {
  .talent-matcher-page-head,
  .talent-matcher-step {
    grid-template-columns: 1fr;
  }

  .talent-matcher-page-head {
    gap: 20px;
  }
}

@media (max-width: 760px) {
  .staffing-workflow-nav,
  .talent-matcher-launch,
  .talent-matcher-section-head {
    align-items: stretch;
    flex-direction: column;
  }

  .staffing-more-tabs {
    width: 100%;
    margin-left: 0;
  }

  .staffing-more-tabs > summary,
  .talent-matcher-launch .action-button {
    width: 100%;
  }

  .staffing-tabs-secondary {
    justify-content: flex-start;
  }

  .talent-matcher-optional-criteria > summary {
    align-items: flex-start;
    flex-direction: column;
    padding: 16px;
  }

  .talent-matcher-optional-criteria > summary small {
    margin-left: 0;
  }

  .talent-matcher-new-mission-callout {
    align-items: flex-start;
    flex-direction: column;
  }

  .talent-matcher-page-head,
  .talent-matcher-step,
  .talent-matcher-launch {
    padding: 16px;
  }

  .talent-matcher-journey {
    gap: 2px;
  }

  .talent-matcher-journey li {
    padding-inline: 4px;
  }
}
/* /TALENT-MATCHER-WORKFLOW-V1 */

/* RADAR-V1 */
.radar-view {
  display: grid;
  gap: 18px;
  padding: 20px;
}

.radar-page-head,
.radar-head-actions,
.radar-pagination,
.radar-pagination > div,
.radar-detail-section > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.radar-page-head {
  align-items: flex-start;
}

.radar-page-head > div:first-child {
  display: grid;
  gap: 5px;
}

.radar-head-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.radar-summary-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.radar-summary-card {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0, rgba(29, 161, 242, 0.12), transparent 45%),
    rgba(255, 255, 255, 0.94);
}

.radar-summary-card span,
.radar-summary-card small {
  color: var(--text-soft);
  font-size: 12px;
}

.radar-summary-card strong {
  color: var(--text);
  font-size: 24px;
  line-height: 1.05;
}

.radar-create-card {
  padding: 18px;
  border: 1px solid rgba(29, 161, 242, 0.3);
  border-radius: 18px;
  background: rgba(234, 247, 255, 0.55);
}

.radar-create-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.radar-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 9px;
  color: var(--text-soft);
  font-size: 13px;
}

.radar-checkbox input {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
}

.radar-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(125px, 0.72fr)) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.78);
}

.radar-layout {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.radar-layout.has-detail {
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.42fr);
  align-items: start;
}

.radar-table {
  overflow: hidden;
  border: 1px solid var(--border);
  border-radius: 16px;
  background: var(--surface);
}

.radar-table-head,
.radar-table-row {
  display: grid;
  grid-template-columns:
    minmax(64px, 0.38fr)
    minmax(210px, 1.8fr)
    minmax(135px, 0.85fr)
    minmax(130px, 0.8fr)
    minmax(180px, 1.2fr);
  gap: 12px;
  align-items: center;
}

.radar-table-head {
  min-height: 42px;
  padding: 0 14px;
  border-bottom: 1px solid var(--border);
  background: rgba(245, 248, 252, 0.95);
  color: var(--text-soft);
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.radar-table-row {
  width: 100%;
  min-height: 78px;
  padding: 11px 14px;
  border: 0;
  border-bottom: 1px solid var(--border);
  background: #fff;
  color: var(--text);
  cursor: pointer;
  text-align: left;
}

.radar-table-row:last-child {
  border-bottom: 0;
}

.radar-table-row:hover,
.radar-table-row.is-selected {
  background: #f3faff;
}

.radar-table-row:focus-visible {
  position: relative;
  z-index: 1;
  outline: 2px solid #1da1f2;
  outline-offset: -2px;
}

.radar-table-row > span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.radar-table-row strong,
.radar-table-row small,
.radar-table-row em {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.radar-table-row small,
.radar-table-row em {
  color: var(--text-soft);
  font-size: 12px;
}

.radar-table-row em {
  font-style: normal;
}

.radar-priority {
  display: inline-flex;
  width: 32px;
  height: 32px;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #eef3f8;
  font-weight: 900;
}

.radar-priority.is-a {
  background: #fff0ed;
  color: #b42318;
}

.radar-priority.is-b {
  background: #eaf7ff;
  color: #075985;
}

.radar-priority.is-c {
  color: #4b5563;
}

.radar-status-chip {
  display: inline-flex;
  width: fit-content;
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef7f1;
  color: #176b3a;
  font-size: 11px;
  font-weight: 800;
}

.radar-pagination {
  padding: 12px 2px 0;
  color: var(--text-soft);
  font-size: 12px;
}

.radar-detail-card {
  position: sticky;
  top: 14px;
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow-soft);
}

.radar-detail-facts,
.radar-detail-section {
  display: grid;
  gap: 10px;
}

.radar-detail-facts > div,
.radar-detail-section {
  padding: 12px;
  border: 1px solid var(--border);
  border-radius: 13px;
  background: #fafbfd;
}

.radar-detail-facts span,
.radar-detail-section p,
.radar-detail-section li span {
  color: var(--text-soft);
  font-size: 12px;
}

.radar-detail-facts p,
.radar-detail-section p {
  margin: 5px 0 0;
}

.radar-detail-section ul {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.radar-detail-section li {
  display: grid;
  gap: 2px;
}

.radar-gates,
.radar-alert,
.radar-empty-state {
  display: grid;
  gap: 5px;
  padding: 16px;
  border: 1px solid var(--border);
  border-radius: 14px;
}

.radar-gates p,
.radar-alert span,
.radar-empty-state p {
  margin: 0;
  color: var(--text-soft);
  font-size: 13px;
}

.radar-gates.is-blocked,
.radar-alert {
  border-color: rgba(180, 35, 24, 0.24);
  background: #fff7f5;
}

.radar-gates.is-ready {
  border-color: rgba(23, 107, 58, 0.24);
  background: #f3fbf6;
}

.radar-empty-state {
  min-height: 150px;
  place-content: center;
  text-align: center;
}

@media (max-width: 1180px) {
  .radar-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .radar-filter-bar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .radar-search-field {
    grid-column: 1 / -1;
  }

  .radar-layout.has-detail {
    grid-template-columns: 1fr;
  }

  .radar-detail-card {
    position: static;
  }
}

@media (max-width: 760px) {
  .radar-view {
    padding: 14px;
  }

  .radar-page-head,
  .radar-head-actions,
  .radar-pagination {
    align-items: stretch;
    flex-direction: column;
  }

  .radar-head-actions .action-button {
    width: 100%;
  }

  .radar-summary-grid,
  .radar-filter-bar,
  .radar-create-form {
    grid-template-columns: 1fr;
  }

  .radar-search-field,
  .radar-create-form .field-wide {
    grid-column: auto;
  }

  .radar-table-head {
    display: none;
  }

  .radar-table-row {
    grid-template-columns: 58px 1fr;
    min-height: 0;
  }

  .radar-table-row > span:nth-child(n + 3) {
    grid-column: 2;
  }

  .radar-table-row > span::before {
    content: attr(data-label);
    color: var(--muted);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 0.03em;
    text-transform: uppercase;
  }
}
/* /RADAR-V1 */

@media (max-width: 760px) {
  .crm-ai-email-proposal-grid,
  .crm-ai-email-finalizer-grid {
    grid-template-columns: 1fr;
  }

  .crm-ai-email-proposal,
  .crm-ai-email-finalizer,
  .crm-ai-email-feedback-panel {
    padding: 13px;
  }

  .crm-ai-email-reject-row > button {
    width: 100%;
  }

  .crm-ai-email-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .crm-ai-email-actions > button {
    width: 100%;
  }

  .crm-ai-email-evidence li {
    display: grid;
    justify-content: stretch;
  }
}
