:root {
  color-scheme: light;
  --bg: #f2f2f2;
  --surface: #ffffff;
  --surface-2: #eef5f5;
  --ink: #0f2f4a;
  --muted: #5d7180;
  --line: #d7e1e4;
  --line-strong: #aec4cc;
  --brand-blue: #0f2f4a;
  --brand-blue-hover: #1c466b;
  --accent: #2fa6a3;
  --accent-dark: #0f2f4a;
  --accent-highlight: #4fc5c1;
  --theme-primary: #0b3551;
  --theme-secondary: #1fa7a0;
  --theme-accent: #34d399;
  --theme-button: #0b3551;
  --theme-bg: #f4f8f9;
  --theme-gradient: linear-gradient(135deg, #0b3551 0%, #1fa7a0 68%, #34d399 135%);
  --theme-primary-rgb: 11, 53, 81;
  --theme-secondary-rgb: 31, 167, 160;
  --theme-accent-rgb: 52, 211, 153;
  --theme-card-radius: 8px;
  --theme-button-radius: 8px;
  --theme-panel-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
  --theme-density-gap: 18px;
  --theme-density-padding: 18px;
  --accent-soft: #e2f5f4;
  --gold: #b97814;
  --rose: #9f3f4d;
  --blue: #1c466b;
  --shadow: 0 18px 45px rgba(15, 47, 74, 0.1);
  --radius: 8px;
  --app-font:
    Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI",
    sans-serif;
  --nav-font:
    Manrope, Inter, "Plus Jakarta Sans", "SF Pro Text", ui-sans-serif, system-ui,
    -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.gtm-planner-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.gtm-planner-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #063550 0%, #0b5360 52%, #17b7af 100%);
  box-shadow: 0 20px 50px rgba(5, 39, 54, 0.22);
}

.gtm-planner-hero h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.gtm-planner-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.gtm-hero-metrics {
  display: grid;
  gap: 6px;
  min-width: 240px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
}

.gtm-hero-metrics span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.gtm-planner-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.gtm-planner-card {
  border: 1px solid rgba(8, 65, 78, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(8, 51, 65, 0.1);
}

.gtm-planner-input-card,
.gtm-history-panel,
.gtm-result-panel {
  padding: 20px;
}

.gtm-card-header,
.gtm-result-header,
.gtm-action-row,
.gtm-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.gtm-card-header h3,
.gtm-result-header h3 {
  margin: 0;
}

.gtm-step-pill,
.gtm-readiness-badge {
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #07324b, #15aaa6);
}

.gtm-step-pill {
  width: 34px;
  height: 34px;
  font-weight: 800;
}

.gtm-form-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  margin-top: 16px;
}

.gtm-form-grid label {
  display: grid;
  gap: 7px;
  color: #07324b;
  font-weight: 800;
}

.gtm-form-grid input,
.gtm-form-grid textarea,
.gtm-form-grid select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(8, 65, 78, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: #083044;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.gtm-wide {
  grid-column: 1 / -1;
}

.gtm-link-panel {
  margin-top: 18px;
  padding: 16px;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(13, 80, 95, 0.08), rgba(30, 190, 181, 0.12));
}

.gtm-link-grid {
  margin-top: 10px;
}

.gtm-action-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.gtm-action-row .primary-button,
.gtm-action-row .secondary-button {
  flex: 1 1 180px;
}

.gtm-history-list,
.gtm-result-stack {
  display: grid;
  gap: 12px;
}

.gtm-history-list {
  margin-top: 16px;
}

.gtm-results-history {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  margin-top: 0;
}

.gtm-history-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(8, 65, 78, 0.12);
  border-radius: 8px;
  background: #f8fcfc;
}

.gtm-results-history .gtm-history-card {
  min-height: 100%;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 250, 248, 0.94));
}

.gtm-history-card.active {
  border-color: rgba(23, 183, 175, 0.45);
  box-shadow: inset 0 0 0 1px rgba(23, 183, 175, 0.18);
}

.gtm-history-card h4,
.gtm-history-card p {
  margin: 0;
}

.gtm-history-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #8b1d2c;
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 51, 65, 0.12);
  cursor: pointer;
}

.gtm-history-meta {
  flex-wrap: wrap;
  color: #315566;
  font-size: 12px;
}

.gtm-history-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.gtm-history-actions .compact-button {
  flex: 1 1 120px;
}

.gtm-empty-result {
  display: grid;
  min-height: 120px;
  align-items: center;
  padding: 18px;
  border: 1px dashed rgba(8, 65, 78, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(232, 250, 248, 0.62), rgba(255, 255, 255, 0.92));
}

.gtm-result-header {
  display: block;
  padding: 20px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #062f48 0%, #0b5360 56%, #17b7af 100%);
  box-shadow: 0 16px 34px rgba(8, 51, 65, 0.14);
  border-bottom: 1px solid rgba(8, 65, 78, 0.1);
}

.gtm-result-header > div {
  min-width: 0;
}

.gtm-result-header .eyebrow,
.gtm-result-header p {
  color: rgba(255, 255, 255, 0.84);
}

.gtm-result-page-active .gtm-planner-layout {
  display: none;
}

.gtm-result-page-active .gtm-result-panel {
  padding: 24px;
}

.gtm-result-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border: 1px solid rgba(23, 183, 175, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(232, 250, 248, 0.96));
  box-shadow: 0 14px 30px rgba(8, 51, 65, 0.08);
}

.gtm-results-hub {
  display: grid;
  gap: 16px;
}

.gtm-result-summary-card h3,
.gtm-result-summary-card p {
  margin: 0;
}

.gtm-result-summary-card > div {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.gtm-readiness-badge {
  min-width: 116px;
  min-height: 86px;
  padding: 12px;
  text-align: center;
}

.gtm-readiness-badge strong {
  font-size: 28px;
}

.gtm-result-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(220px, 360px) max-content;
  align-items: center;
  gap: 14px;
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  overflow: hidden;
  padding: 14px 16px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 10%, rgba(49, 220, 205, 0.3), transparent 32%),
    linear-gradient(120deg, #062f48 0%, #0b5360 58%, #17b7af 120%);
  box-shadow: 0 16px 34px rgba(8, 51, 65, 0.12);
}

.gtm-result-toolbar-title {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.gtm-result-toolbar-title h3,
.gtm-result-toolbar-title p {
  margin: 0;
}

.gtm-result-toolbar-title h3 {
  overflow: hidden;
  color: #fff;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gtm-result-toolbar .eyebrow,
.gtm-result-toolbar-readiness span,
.gtm-result-toolbar-readiness small {
  color: rgba(255, 255, 255, 0.78);
}

.gtm-result-toolbar-readiness {
  display: grid;
  grid-template-columns: auto minmax(80px, 1fr) auto;
  align-items: center;
  gap: 6px 10px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.gtm-result-toolbar-readiness span {
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  white-space: nowrap;
}

.gtm-result-toolbar-readiness strong {
  color: #fff;
  font-size: 20px;
  line-height: 1;
  white-space: nowrap;
}

.gtm-result-toolbar-readiness small {
  grid-column: 1 / -1;
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.gtm-result-toolbar .compact-button {
  min-width: 0;
  white-space: nowrap;
}

.gtm-result-header-actions {
  display: grid;
  gap: 12px;
  min-width: min(360px, 100%);
}

.gtm-readiness-inline {
  display: grid;
  gap: 6px;
  min-width: 280px;
  padding: 12px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.gtm-readiness-inline span,
.gtm-readiness-inline small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  text-transform: uppercase;
}

.gtm-readiness-inline strong {
  color: #fff;
  font-size: 24px;
  line-height: 1;
}

.gtm-readiness-track {
  height: 9px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.24);
}

.gtm-readiness-track em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #d8fff7, #34d399);
}

.deal-coach-shell {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.deal-coach-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px 32px;
  border-radius: 8px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 15%, rgba(46, 220, 205, 0.28), transparent 32%),
    linear-gradient(120deg, #062f48 0%, #0a5362 56%, #17b7af 100%);
  box-shadow: 0 20px 50px rgba(5, 39, 54, 0.22);
}

.deal-coach-hero h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.05;
}

.deal-coach-hero p {
  margin: 0;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.88);
}

.deal-coach-hero-card {
  display: grid;
  gap: 6px;
  min-width: 230px;
  padding: 16px 18px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.13);
}

.deal-coach-hero-card span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
  letter-spacing: 0;
}

.deal-coach-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.deal-coach-card {
  border: 1px solid rgba(8, 65, 78, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 16px 34px rgba(8, 51, 65, 0.1);
}

.deal-coach-input-card,
.deal-coach-history-panel,
.deal-coach-result-panel {
  padding: 20px;
}

.deal-coach-result-panel {
  display: none;
}

.deal-coach-result-page-active .deal-coach-layout {
  display: none;
}

.deal-coach-result-page-active .deal-coach-result-panel {
  display: block;
}

.deal-coach-card-header,
.deal-coach-action-row,
.deal-coach-result-header,
.deal-coach-history-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.deal-coach-card-header h3,
.deal-coach-result-header h3,
.deal-coach-section h4,
.deal-coach-history-card h4,
.deal-coach-history-card p {
  margin: 0;
}

.deal-coach-step {
  display: inline-grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 999px;
  color: #fff;
  font-weight: 900;
  background: linear-gradient(135deg, #07324b, #15aaa6);
}

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

.deal-coach-form-grid label {
  display: grid;
  gap: 7px;
  color: #07324b;
  font-weight: 800;
}

.deal-coach-form-grid input,
.deal-coach-form-grid textarea,
.deal-coach-form-grid select {
  width: 100%;
  min-width: 0;
  border: 1px solid rgba(8, 65, 78, 0.18);
  border-radius: 8px;
  padding: 11px 12px;
  color: #083044;
  background: #fff;
  font: inherit;
  resize: vertical;
}

.deal-coach-wide,
.deal-coach-section-wide {
  grid-column: 1 / -1;
}

.deal-coach-action-row {
  flex-wrap: wrap;
  margin-top: 18px;
}

.deal-coach-action-row .primary-button,
.deal-coach-action-row .secondary-button {
  flex: 1 1 170px;
}

.deal-coach-history-list,
.deal-coach-mini-stack {
  display: grid;
  gap: 12px;
}

.deal-coach-history-list {
  margin-top: 16px;
}

.deal-coach-history-card,
.deal-coach-mini-card,
.deal-coach-section {
  border: 1px solid rgba(8, 65, 78, 0.12);
  border-radius: 8px;
  background: #f8fcfc;
}

.deal-coach-history-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 14px;
}

.deal-coach-history-card.active {
  border-color: rgba(23, 183, 175, 0.45);
  box-shadow: inset 0 0 0 1px rgba(23, 183, 175, 0.18);
}

.deal-coach-history-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 999px;
  color: #8b1d2c;
  background: #fff;
  box-shadow: 0 8px 18px rgba(8, 51, 65, 0.12);
  cursor: pointer;
}

.deal-coach-history-meta {
  flex-wrap: wrap;
  color: #315566;
  font-size: 12px;
}

.deal-coach-empty-result {
  display: grid;
  min-height: 220px;
  place-items: center;
  text-align: center;
}

.deal-coach-result-summary-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 253, 252, 0.86));
}

.deal-coach-result-summary-card h3,
.deal-coach-result-summary-card p {
  margin: 0;
}

.deal-coach-result-summary-card p:not(.eyebrow) {
  margin-top: 6px;
  color: #315566;
}

.deal-coach-result-header {
  align-items: flex-start;
  padding-bottom: 18px;
  border-bottom: 1px solid rgba(8, 65, 78, 0.1);
}

.deal-coach-score-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin: 18px 0;
}

.deal-coach-score-card {
  display: grid;
  gap: 4px;
  min-height: 92px;
  padding: 16px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(135deg, #07324b, #0a6b78 58%, #16b5ad);
  box-shadow: 0 14px 28px rgba(8, 51, 65, 0.16);
}

.deal-coach-score-card span,
.deal-coach-score-card small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 800;
}

.deal-coach-score-card strong {
  font-size: 30px;
  line-height: 1;
}

.deal-coach-result-grid {
  display: block;
  columns: 3 260px;
  column-gap: 14px;
}

.deal-coach-section {
  display: grid;
  gap: 12px;
  width: 100%;
  margin: 0 0 14px;
  padding: 16px;
  align-content: start;
  min-height: 0;
  break-inside: avoid;
  page-break-inside: avoid;
}

.deal-coach-masonry-card {
  display: inline-grid;
  vertical-align: top;
}

.deal-coach-section-wide {
  display: grid;
  grid-column: auto;
}

.deal-coach-wide-stack {
  display: grid;
  gap: 14px;
  margin-top: 0;
}

.deal-coach-highlight {
  background: linear-gradient(135deg, rgba(7, 50, 75, 0.06), rgba(23, 183, 175, 0.12));
}

.deal-coach-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.deal-coach-mini-card,
.deal-coach-candidate-card,
.deal-coach-copy-box {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(8, 65, 78, 0.1);
}

.deal-coach-mini-stack.compact-grid {
  grid-template-columns: 1fr;
}

.deal-coach-more-button {
  justify-self: start;
}

.deal-coach-more-modal-card {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.deal-coach-modal-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.deal-coach-mini-card p,
.deal-coach-copy-box p {
  margin: 0;
  white-space: pre-wrap;
}

.deal-coach-mini-card strong,
.deal-coach-copy-box strong {
  display: block;
  color: #07324b;
}

.deal-coach-candidate-card b {
  width: fit-content;
  padding: 5px 9px;
  border-radius: 999px;
  color: #07324b;
  background: rgba(23, 183, 175, 0.16);
}

@media (max-width: 980px) {
  .deal-coach-hero,
  .deal-coach-card-header,
  .deal-coach-result-header {
    align-items: flex-start;
    flex-direction: column;
  }

  .deal-coach-layout {
    grid-template-columns: 1fr;
  }

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

  .deal-coach-result-grid {
    columns: 2 260px;
  }
}

@media (max-width: 640px) {
  .deal-coach-hero {
    padding: 22px;
  }

  .deal-coach-hero h2 {
    font-size: 28px;
  }

  .deal-coach-form-grid,
  .deal-coach-score-grid {
    grid-template-columns: 1fr;
  }

  .deal-coach-result-summary-card {
    align-items: stretch;
    flex-direction: column;
  }

  .deal-coach-result-grid {
    columns: 1;
  }
}

.gtm-result-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
  margin-top: 18px;
}

.gtm-result-section {
  display: grid;
  gap: 14px;
  padding: 18px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(7, 50, 75, 0.08), rgba(23, 183, 175, 0.13)),
    #f7fbfb;
  border: 1px solid rgba(8, 65, 78, 0.12);
  box-shadow: 0 14px 30px rgba(8, 51, 65, 0.07);
}

.gtm-result-section-wide {
  grid-column: 1 / -1;
}

.gtm-result-section h4 {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  justify-self: start;
  margin: 0;
  min-width: min(100%, 320px);
  padding: 10px 14px;
  border-radius: 8px;
  color: #fff;
  background: linear-gradient(120deg, #063550, #15aaa6);
  box-shadow: 0 10px 22px rgba(8, 51, 65, 0.12);
}

.gtm-mini-card,
.gtm-copy-grid > div,
.gtm-roadmap > div,
.gtm-roadmap-card {
  padding: 12px;
  border-radius: 8px;
  background: #fff;
  border: 1px solid rgba(8, 65, 78, 0.1);
  box-shadow: 0 10px 22px rgba(8, 51, 65, 0.05);
}

.gtm-mini-card p,
.gtm-copy-grid p,
.gtm-roadmap-card p {
  margin: 0 0 8px;
}

.gtm-mini-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.gtm-mini-card strong,
.gtm-copy-grid strong,
.gtm-roadmap strong,
.gtm-roadmap-card strong {
  display: block;
  color: #07324b;
}

.gtm-result-stack-horizontal {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.gtm-more-button {
  justify-self: start;
  margin-top: 12px;
}

.gtm-roadmap-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.gtm-roadmap-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 180px;
}

.gtm-roadmap-card .compact-button {
  align-self: end;
  width: 100%;
  margin-top: auto;
}

.gtm-more-modal-card {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.gtm-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.gtm-roadmap,
.gtm-copy-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

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

.gtm-result-list {
  margin: 8px 0 0;
  padding-left: 18px;
}

@media (max-width: 1100px) {
  .gtm-planner-layout,
  .gtm-result-grid {
    grid-template-columns: 1fr;
  }

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

  .gtm-result-section-wide {
    grid-column: auto;
  }

  .gtm-roadmap-row,
  .gtm-modal-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .gtm-result-toolbar {
    grid-template-columns: minmax(0, 1fr) minmax(220px, 320px);
  }

  .gtm-result-toolbar .compact-button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 720px) {
  .gtm-planner-hero,
  .gtm-result-header,
  .gtm-result-summary-card {
    flex-direction: column;
    align-items: stretch;
  }

  .gtm-form-grid,
  .gtm-roadmap,
  .gtm-copy-grid,
  .gtm-result-stack-horizontal {
    grid-template-columns: 1fr;
  }

  .gtm-result-page-active .gtm-result-panel {
    padding: 16px;
  }

  .gtm-result-toolbar {
    grid-template-columns: 1fr;
  }

  .gtm-result-toolbar-title h3 {
    white-space: normal;
  }

  .gtm-result-toolbar .compact-button {
    justify-self: stretch;
  }
}

body.auth-locked:not(.show-public-site):not(.show-login):not(.show-set-password) .public-site,
body.auth-locked .project-home,
body.auth-locked .app,
body.auth-locked .profile-menu,
body.auth-locked .processing-panel,
body.auth-locked .company-notification-panel,
body.auth-locked .voice-dialer-panel,
body.auth-locked .voice-call-widget,
body.auth-locked .company-push-permission-card,
body.auth-locked .ai-chat-panel,
body.auth-locked .desktop-only-workspace,
body.auth-locked .employee-portal {
  display: none !important;
}

.workspace-startup-screen {
  display: none;
}

body.workspace-starting .workspace-startup-screen {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  min-height: 100vh;
  padding: 32px;
  background:
    radial-gradient(circle at 18% 20%, rgba(79, 197, 193, 0.22), transparent 30%),
    linear-gradient(135deg, #071f34 0%, #0f2f4a 56%, #1fa7a0 130%);
  color: #ffffff;
}

body.workspace-starting .project-home,
body.workspace-starting .app,
body.workspace-starting .processing-panel,
body.workspace-starting .company-notification-panel,
body.workspace-starting .voice-dialer-panel,
body.workspace-starting .voice-call-widget,
body.workspace-starting .company-push-permission-card,
body.workspace-starting .ai-chat-panel,
body.workspace-starting .profile-menu {
  pointer-events: none;
  visibility: hidden;
}

.workspace-startup-shell {
  width: min(1080px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(280px, 0.8fr);
  gap: 22px;
  align-items: stretch;
}

.workspace-startup-main,
.workspace-startup-aside {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.1);
  box-shadow: 0 28px 80px rgba(0, 0, 0, 0.24);
  backdrop-filter: blur(18px);
}

.workspace-startup-main {
  border-radius: 8px;
  padding: clamp(28px, 4vw, 48px);
}

.workspace-startup-logo {
  display: flex;
  align-items: center;
  gap: 14px;
  margin-bottom: 26px;
}

.workspace-startup-logo img {
  width: 54px;
  height: 54px;
  object-fit: contain;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  padding: 8px;
}

.workspace-startup-logo span {
  font-family: var(--nav-font);
  font-size: 1.2rem;
  font-weight: 900;
  letter-spacing: 0.12em;
}

.workspace-startup-main h2,
.workspace-startup-aside h3 {
  margin: 0;
  font-family: var(--nav-font);
  line-height: 1.05;
}

.workspace-startup-main h2 {
  max-width: 680px;
  font-size: clamp(2rem, 4vw, 3.65rem);
}

.workspace-startup-copy,
.workspace-startup-aside p {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.65;
}

.workspace-startup-copy {
  max-width: 620px;
  margin: 18px 0 26px;
}

.workspace-startup-progress {
  position: relative;
  height: 10px;
  overflow: visible;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.workspace-startup-progress span {
  display: block;
  height: 100%;
  width: var(--workspace-startup-progress, 0%);
  border-radius: inherit;
  background: linear-gradient(90deg, #4fc5c1, #ffffff);
  box-shadow: 0 0 18px rgba(79, 197, 193, 0.42);
  transition: width 260ms ease;
}

.workspace-startup-status {
  margin: 16px 0 0;
  font-weight: 800;
}

.workspace-startup-percent {
  margin: 10px 0 0;
  color: rgba(255, 255, 255, 0.84);
  font-weight: 900;
  letter-spacing: 0.02em;
}

.workspace-startup-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 24px 0 0;
  padding: 0;
  list-style: none;
}

.workspace-startup-steps li {
  min-height: 44px;
  display: flex;
  align-items: center;
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.66);
  background: rgba(255, 255, 255, 0.08);
  font-weight: 700;
}

.workspace-startup-steps li.active {
  border-color: rgba(79, 197, 193, 0.72);
  color: #ffffff;
  background: rgba(79, 197, 193, 0.18);
}

.workspace-startup-aside {
  border-radius: 8px;
  padding: 34px;
  align-self: stretch;
}

.workspace-startup-aside span {
  display: inline-flex;
  margin-bottom: 18px;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workspace-startup-aside h3 {
  font-size: clamp(1.5rem, 2.4vw, 2.4rem);
}

.device-list-more {
  width: 100%;
  justify-content: center;
  margin-top: 8px;
}

@media (max-width: 820px) {
  body.workspace-starting .workspace-startup-screen {
    padding: 18px;
  }

  .workspace-startup-shell {
    grid-template-columns: 1fr;
  }

  .workspace-startup-steps {
    grid-template-columns: 1fr;
  }
}

body:not(.show-set-password) .set-password-screen {
  display: none !important;
}

.candidate-registration-modal {
  position: fixed;
  inset: 0;
  z-index: 2300;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 31, 52, 0.52);
  backdrop-filter: blur(12px);
}

.candidate-registration-modal.hidden {
  display: none !important;
}

.candidate-registration-panel {
  width: min(760px, 100%);
  max-height: min(88vh, 760px);
  overflow: auto;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(174, 196, 204, 0.78);
  box-shadow: 0 28px 80px rgba(15, 47, 74, 0.24);
}

.candidate-registration-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  padding: 24px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
}

.candidate-registration-header h2,
.candidate-registration-header p {
  margin: 0;
}

.candidate-registration-header h2 {
  font-family: var(--nav-font);
  font-size: clamp(1.35rem, 3vw, 2rem);
  line-height: 1.12;
}

.candidate-registration-header > div > p:last-child {
  margin-top: 8px;
  max-width: 560px;
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.candidate-registration-header .eyebrow {
  color: rgba(255, 255, 255, 0.74);
}

.candidate-registration-header .icon-button {
  flex: 0 0 auto;
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
}

.candidate-add-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  padding: 24px;
}

.candidate-add-choice-card {
  min-height: 190px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: flex-start;
  gap: 10px;
  padding: 22px;
  border-radius: 8px;
  border: 1px solid var(--line);
  background: linear-gradient(180deg, #ffffff, #f4f8f9);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.candidate-add-choice-card:hover,
.candidate-add-choice-card:focus-visible {
  border-color: rgba(47, 166, 163, 0.58);
  box-shadow: 0 22px 44px rgba(15, 47, 74, 0.14);
  transform: translateY(-1px);
}

.candidate-add-choice-card span {
  display: inline-flex;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-add-choice-card strong {
  font-family: var(--nav-font);
  font-size: 1.15rem;
  line-height: 1.18;
}

.candidate-add-choice-card small {
  color: var(--muted);
  line-height: 1.55;
}

.candidate-add-choice-card.accent {
  background: linear-gradient(135deg, #0f2f4a, #0f766e);
  color: #ffffff;
  border-color: rgba(79, 197, 193, 0.4);
}

.candidate-add-choice-card.accent span {
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.candidate-add-choice-card.accent small {
  color: rgba(255, 255, 255, 0.78);
}

.candidate-invite-form {
  padding: 24px;
}

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

.candidate-invite-grid label,
.public-candidate-registration-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: var(--ink);
  font-size: 0.78rem;
  font-weight: 900;
}

.candidate-invite-grid .wide,
.public-candidate-registration-grid .wide {
  grid-column: 1 / -1;
}

.candidate-invite-grid input,
.candidate-invite-grid select,
.candidate-invite-grid textarea,
.public-candidate-registration-grid input,
.public-candidate-registration-grid textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 11px 12px;
  font: inherit;
}

.candidate-invite-grid textarea,
.public-candidate-registration-grid textarea {
  resize: vertical;
}

.candidate-invite-result {
  margin-top: 16px;
  padding: 14px;
  border-radius: 8px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  background: #e9f8f6;
  color: var(--ink);
}

.candidate-invite-result strong,
.candidate-invite-result p,
.candidate-invite-result small {
  display: block;
  margin: 0;
  overflow-wrap: anywhere;
}

.candidate-invite-result p {
  margin-top: 6px;
  color: var(--muted);
}

.candidate-invite-result small {
  margin-top: 8px;
  color: #0f766e;
}

.public-candidate-registration-page {
  min-height: 74vh;
  background:
    radial-gradient(circle at 18% 10%, rgba(79, 197, 193, 0.18), transparent 34%),
    linear-gradient(180deg, #f4f8f9, #eef5f5);
}

.candidate-registration-public-shell {
  width: min(980px, calc(100% - 32px));
  margin: 0 auto;
  padding: clamp(42px, 8vw, 92px) 0;
}

.candidate-registration-public-card {
  border-radius: 8px;
  border: 1px solid var(--line);
  background: #ffffff;
  box-shadow: 0 24px 70px rgba(15, 47, 74, 0.14);
  padding: clamp(24px, 5vw, 44px);
}

.candidate-registration-public-card h1 {
  max-width: 760px;
  margin: 0;
  color: var(--ink);
  font-family: var(--nav-font);
  font-size: clamp(2rem, 5vw, 3.4rem);
  line-height: 1.04;
}

.candidate-registration-public-card > p,
.candidate-registration-public-intro {
  max-width: 720px;
  color: var(--muted);
  line-height: 1.65;
}

.public-candidate-registration-form {
  margin-top: 26px;
}

.public-candidate-registration-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

.public-candidate-file-field {
  justify-content: center;
  min-height: 84px;
  border: 1px dashed rgba(47, 166, 163, 0.62);
  border-radius: 8px;
  background: #f4fbfa;
  padding: 16px;
  cursor: pointer;
}

.public-candidate-file-field input {
  padding: 0;
  border: 0;
  background: transparent;
}

.public-candidate-privacy {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 10px;
  align-items: start;
  margin: 18px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.public-candidate-registration-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 14px;
  margin-top: 22px;
}

.public-candidate-registration-actions span {
  color: var(--muted);
  font-weight: 800;
}

.public-registration-loader {
  width: 100%;
  height: 10px;
  margin-top: 22px;
  overflow: hidden;
  border-radius: 999px;
  background: #e0ecef;
}

.public-registration-loader span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f2f4a, #2fa6a3);
  animation: public-registration-loader 1.2s ease-in-out infinite alternate;
}

.public-candidate-registration-success {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  margin-top: 18px;
  min-width: 136px;
  padding: 14px 16px 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.public-candidate-registration-success small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.public-candidate-registration-success strong {
  font-size: 1rem;
  line-height: 1.1;
}

.public-candidate-registration-success span {
  color: rgba(255, 255, 255, 0.9);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

@keyframes public-registration-loader {
  from {
    transform: translateX(0);
  }
  to {
    transform: translateX(138%);
  }
}

@media (max-width: 760px) {
  .candidate-add-choice-grid,
  .candidate-invite-grid,
  .public-candidate-registration-grid {
    grid-template-columns: 1fr;
  }

  .candidate-registration-modal {
    padding: 14px;
  }

  .candidate-registration-header,
  .candidate-invite-form {
    padding: 18px;
  }
}

body.show-set-password .public-site,
body.show-set-password .login-screen,
body.show-set-password .project-home,
body.show-set-password .app,
body.show-set-password .employee-portal,
body.show-set-password .profile-menu,
body.show-set-password .processing-panel,
body.show-set-password .company-notification-panel,
body.show-set-password .voice-dialer-panel,
body.show-set-password .voice-call-widget,
body.show-set-password .company-push-permission-card,
body.show-set-password .ai-chat-panel,
body.show-set-password .desktop-only-workspace {
  display: none !important;
}

body.auth-ready:not(.show-public-site) .public-site {
  display: none !important;
}

body.auth-ready.show-public-site .project-home,
body.auth-ready.show-public-site .app,
body.auth-ready.show-public-site .employee-portal,
body.auth-ready.show-public-site .profile-menu,
body.auth-ready.show-public-site .processing-panel,
body.auth-ready.show-public-site .company-notification-panel,
body.auth-ready.show-public-site .voice-dialer-panel,
body.auth-ready.show-public-site .voice-call-widget,
body.auth-ready.show-public-site .company-push-permission-card,
body.auth-ready.show-public-site .ai-chat-panel,
body.auth-ready.show-public-site .desktop-only-workspace {
  display: none !important;
}

body.auth-locked:not(.show-login) .login-screen {
  display: none !important;
}

body.show-login .public-site {
  display: none !important;
}

body.show-login .set-password-screen {
  display: none !important;
}

body.auth-ready .login-screen {
  display: none;
}

body.employee-mode .project-home,
body.employee-mode .app,
body.employee-mode .desktop-only-workspace,
body.employee-mode .profile-menu,
body.employee-mode .processing-panel,
body.employee-mode .company-notification-panel,
body.employee-mode .voice-dialer-panel,
body.employee-mode .voice-call-widget,
body.employee-mode .company-push-permission-card,
body.employee-mode .ai-chat-panel {
  display: none !important;
}

.desktop-only-workspace {
  display: none;
}

.employee-portal.hidden {
  display: none !important;
}

.demo-mode-banner {
  display: none;
  align-items: center;
  justify-content: center;
  gap: 12px;
  padding: 9px 18px;
  background:
    radial-gradient(circle at 20% 20%, rgba(79, 197, 193, 0.28), transparent 32%),
    linear-gradient(135deg, #0f2f4a 0%, #123d5e 58%, #2fa6a3 100%);
  color: #ffffff;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.12);
  font-size: 0.88rem;
  line-height: 1.35;
  position: sticky;
  top: 75px;
  z-index: 9;
}

body.demo-mode.auth-ready .demo-mode-banner {
  display: flex;
}

.demo-mode-banner strong {
  font-weight: 850;
  letter-spacing: 0.01em;
}

.demo-mode-banner span {
  color: rgba(255, 255, 255, 0.84);
}

.employee-demo-mode-banner {
  top: 74px;
  z-index: 29;
}

.public-site {
  min-height: 100vh;
  background: #ffffff;
  color: #0f2f4a;
}

.public-header {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  min-height: 76px;
  padding: 0 3.5rem;
  background: rgba(2, 18, 33, 0.96);
  color: #ffffff;
  box-shadow: 0 12px 34px rgba(2, 18, 33, 0.22);
  backdrop-filter: blur(14px);
  isolation: isolate;
}

.public-brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: inherit;
  text-decoration: none;
  min-width: max-content;
}

.public-brand img {
  width: 42px;
  height: 42px;
  border-radius: 10px;
  object-fit: contain;
  background: #ffffff;
}

.public-brand span {
  display: grid;
  gap: 0.1rem;
}

.public-brand strong {
  color: inherit;
  font-size: 1rem;
  line-height: 1.1;
}

.public-brand small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.72rem;
  font-weight: 800;
}

.public-nav {
  display: flex;
  align-items: center;
  gap: 0.32rem;
  padding: 0.32rem;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
  font-size: 0.88rem;
  font-weight: 900;
}

.public-nav a,
.public-nav-trigger,
.public-footer a,
.public-footer button {
  color: inherit;
  text-decoration: none;
}

.public-nav a,
.public-nav-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 0.86rem;
  border: 1px solid transparent;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.9);
  line-height: 1;
  white-space: nowrap;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.public-nav a:hover,
.public-nav-trigger:hover,
.public-nav-dropdown:focus-within .public-nav-trigger,
.public-nav-dropdown:hover .public-nav-trigger,
.public-footer a:hover,
.public-footer button:hover {
  color: #ffffff;
}

.public-nav-dropdown {
  position: relative;
}

.public-nav-dropdown::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  top: 100%;
  height: 0.8rem;
}

.public-nav-trigger {
  gap: 0.35rem;
  background: rgba(255, 255, 255, 0.06);
  font: inherit;
  cursor: pointer;
}

.public-nav-trigger::after {
  content: "";
  width: 0.42rem;
  height: 0.42rem;
  border-right: 2px solid currentColor;
  border-bottom: 2px solid currentColor;
  transform: translateY(-0.12rem) rotate(45deg);
}

.public-nav-dropdown:hover .public-nav-trigger,
.public-nav-dropdown:focus-within .public-nav-trigger {
  border-color: rgba(85, 212, 208, 0.45);
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.95), rgba(15, 47, 74, 0.92));
  box-shadow: 0 10px 24px rgba(47, 166, 163, 0.22);
  transform: translateY(-1px);
}

.public-nav > a:hover,
.public-nav > a:focus-visible {
  border-color: rgba(85, 212, 208, 0.45);
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.95), rgba(15, 47, 74, 0.92));
  box-shadow: 0 10px 24px rgba(47, 166, 163, 0.22);
  color: #ffffff;
  transform: translateY(-1px);
}

.public-nav-menu {
  position: absolute;
  top: calc(100% + 0.7rem);
  left: 0;
  z-index: 30;
  display: grid;
  gap: 0.35rem;
  min-width: 230px;
  padding: 0.65rem;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 34%),
    #ffffff;
  box-shadow: 0 22px 52px rgba(2, 18, 33, 0.32);
  opacity: 0;
  transform: translateY(8px);
  pointer-events: none;
  transition:
    opacity 0.18s ease,
    transform 0.18s ease;
}

.public-nav-dropdown:hover .public-nav-menu,
.public-nav-dropdown:focus-within .public-nav-menu {
  opacity: 1;
  transform: translateY(0);
  pointer-events: auto;
}

.public-nav-menu a {
  display: block;
  padding: 0.72rem 0.8rem;
  border-radius: 9px;
  background: transparent;
  color: #0f2f4a;
  justify-content: flex-start;
  min-height: 0;
}

.public-nav-menu a:hover {
  background: rgba(47, 166, 163, 0.14);
  color: #0f2f4a;
  box-shadow: none;
  transform: none;
}

.public-menu-toggle {
  display: none;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 4px;
  width: 44px;
  height: 44px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.09);
  color: #ffffff;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.public-menu-toggle span {
  width: 18px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

.public-menu-toggle:hover,
body.public-menu-open .public-menu-toggle {
  border-color: rgba(85, 212, 208, 0.45);
  background: rgba(47, 166, 163, 0.22);
  box-shadow: 0 12px 26px rgba(47, 166, 163, 0.2);
}

.public-login-button,
.public-primary-cta,
.public-secondary-cta,
.public-text-cta,
.login-back-public {
  min-height: 46px;
  border-radius: 8px;
  font-weight: 950;
  cursor: pointer;
  text-decoration: none;
}

.public-login-button {
  padding: 0 1.2rem;
  border: 1px solid #2fa6a3;
  background: #2fa6a3;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 166, 163, 0.24);
}

.public-login-button:hover,
.public-primary-cta:hover {
  background: #228c89;
  border-color: #228c89;
}

.public-login-button.is-returning-user {
  border-color: rgba(255, 255, 255, 0.24);
  background: linear-gradient(135deg, #0b3552, #2fa6a3);
  box-shadow: 0 14px 30px rgba(11, 53, 82, 0.28);
}

.public-login-button.is-returning-user:hover {
  border-color: rgba(85, 212, 208, 0.55);
  background: linear-gradient(135deg, #092b43, #228c89);
}

.public-login-button.is-account-widget {
  display: inline-flex;
  align-items: center;
  justify-content: flex-start;
  gap: 0.72rem;
  min-width: 220px;
  max-width: min(320px, 28vw);
  min-height: 52px;
  padding: 0.42rem 0.82rem 0.42rem 0.5rem;
  border-color: rgba(255, 255, 255, 0.2);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(85, 212, 208, 0.18), transparent 56%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.055));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 14px 32px rgba(2, 18, 33, 0.24);
  backdrop-filter: blur(12px);
}

.public-login-button.is-account-widget:hover,
.public-login-button.is-account-widget:focus-visible {
  border-color: rgba(85, 212, 208, 0.58);
  background:
    radial-gradient(circle at 0% 0%, rgba(85, 212, 208, 0.26), transparent 58%),
    linear-gradient(135deg, rgba(15, 47, 74, 0.92), rgba(47, 166, 163, 0.78));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 16px 36px rgba(47, 166, 163, 0.26);
  transform: translateY(-1px);
}

.public-account-avatar {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  width: 38px;
  height: 38px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background:
    radial-gradient(circle at 30% 24%, rgba(255, 255, 255, 0.95), rgba(255, 255, 255, 0.78) 42%, rgba(47, 166, 163, 0.32));
  color: #0f2f4a;
  box-shadow:
    0 8px 18px rgba(2, 18, 33, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.65);
}

.public-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.public-account-avatar span {
  font-size: 0.78rem;
  font-weight: 950;
  line-height: 1;
}

.public-account-copy {
  display: grid;
  min-width: 0;
  gap: 0.12rem;
  text-align: left;
}

.public-account-copy strong,
.public-account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.public-account-copy strong {
  color: #ffffff;
  font-size: 0.88rem;
  line-height: 1.08;
}

.public-account-copy small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.72rem;
  font-weight: 850;
  line-height: 1.12;
}

.public-hero {
  position: relative;
  display: grid;
  align-items: stretch;
  min-height: 620px;
  padding: 0;
  overflow: hidden;
  background: #061a2d;
}

.public-hero-slide {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  padding: 5rem 3.5rem 6rem;
  background-image: var(--public-hero-image);
  background-position: center;
  background-size: cover;
  opacity: 0;
  pointer-events: none;
  transition:
    opacity 0.9s ease,
    transform 5s ease;
  transform: scale(1.015);
}

.public-hero-slide::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.98) 0%, rgba(255, 255, 255, 0.86) 34%, rgba(255, 255, 255, 0.16) 66%),
    linear-gradient(180deg, rgba(15, 47, 74, 0.08), rgba(15, 47, 74, 0.14));
}

.public-hero-slide.is-active {
  z-index: 1;
  opacity: 1;
  pointer-events: auto;
  transform: scale(1);
}

.public-hero-slide:not(.is-active) .public-hero-content {
  visibility: hidden;
}

.public-hero-slide-strategist {
  --public-hero-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=82");
  padding-bottom: 7.5rem;
}

.public-hero-slide-motivator {
  --public-hero-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1800&q=82");
}

.public-hero-slide-workforce {
  --public-hero-image: url("https://images.unsplash.com/photo-1551836022-d5d88e9218df?auto=format&fit=crop&w=1800&q=82");
}

.public-hero-slide-hours {
  --public-hero-image: url("https://images.unsplash.com/photo-1556761175-4b46a572b786?auto=format&fit=crop&w=1800&q=82");
}

.public-hero-slide-pain {
  --public-hero-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1800&q=82");
}

.public-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 1.15rem;
  width: min(620px, 100%);
}

.public-hero-slide.is-active .public-hero-content {
  animation: publicHeroContentIn 0.72s ease both;
}

.public-hero-controls {
  position: absolute;
  left: 3.5rem;
  bottom: 2rem;
  z-index: 3;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.public-hero-controls button {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 0.78rem;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: #0f2f4a;
  font: inherit;
  font-size: 0.78rem;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.1);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.public-hero-controls button:hover,
.public-hero-controls button.is-active {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #ffffff;
  transform: translateY(-1px);
}

.public-hero-module-cta {
  min-width: min(100%, 210px);
}

.public-eyebrow {
  margin: 0;
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.public-hero h1,
.public-section h2,
.public-contact-section h2 {
  margin: 0;
  color: #0f2f4a;
  font-weight: 950;
  line-height: 1.04;
  letter-spacing: 0;
}

.public-hero h1 {
  max-width: 600px;
  font-size: clamp(2.15rem, 3.55vw, 3.85rem);
}

.public-hero p:not(.public-eyebrow) {
  max-width: 560px;
  margin: 0;
  color: #233b51;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.65;
}

.public-hero-actions {
  display: flex;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.public-primary-cta,
.public-secondary-cta,
.public-text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 1.25rem;
}

.public-primary-cta {
  border: 1px solid #2fa6a3;
  background: #2fa6a3;
  color: #ffffff;
}

.public-secondary-cta {
  border: 1px solid rgba(15, 47, 74, 0.22);
  background: #ffffff;
  color: #0f2f4a;
}

.public-secondary-cta.dark {
  margin-top: 1rem;
  border-color: rgba(47, 166, 163, 0.4);
  background: #0f2f4a;
  color: #ffffff;
}

.public-text-cta {
  min-height: 46px;
  color: #0f2f4a;
}

@keyframes publicHeroContentIn {
  from {
    opacity: 0;
    transform: translateY(12px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  .public-hero-slide,
  .public-hero-slide.is-active .public-hero-content,
  .public-hero-controls button {
    animation: none;
    transition: none;
  }
}

.public-quick-grid,
.public-section,
.public-contact-section,
.public-footer {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  scroll-margin-top: 132px;
}

.public-quick-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1.3rem;
  padding-top: 2rem;
  padding-bottom: 2rem;
  border-bottom: 1px solid rgba(15, 47, 74, 0.1);
  background: #ffffff;
}

.public-quick-grid article,
.public-feature-grid article,
.public-integration-grid article,
.public-intelligence-grid article,
.public-steps article,
.public-proof article,
.public-executive-stack article {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.public-quick-grid article {
  display: grid;
  gap: 0.7rem;
  padding: 1.15rem;
}

.public-icon {
  display: inline-grid;
  place-items: center;
  width: 58px;
  height: 58px;
  border-radius: 999px;
  background: #e8f7f6;
  color: #2fa6a3;
}

.public-icon svg {
  width: 30px;
  height: 30px;
  fill: currentColor;
}

.public-icon.mini {
  width: 44px;
  height: 44px;
}

.public-icon.mini svg {
  width: 24px;
  height: 24px;
}

.public-quick-grid h3,
.public-feature-grid h3,
.public-integration-grid h3,
.public-intelligence-grid h3,
.public-steps h3,
.public-dark-panel h3,
.public-executive-stack strong {
  margin: 0;
  color: #0f2f4a;
  font-size: 1.05rem;
  line-height: 1.25;
}

.public-quick-grid p,
.public-section p,
.public-feature-grid p,
.public-integration-grid p,
.public-intelligence-grid p,
.public-steps p,
.public-proof span,
.public-executive-stack span,
.public-footer p {
  margin: 0;
  color: #526779;
  line-height: 1.65;
}

.public-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.public-section-head {
  display: grid;
  gap: 0.7rem;
  max-width: 820px;
  margin-bottom: 1.5rem;
}

.public-section h2,
.public-contact-section h2 {
  font-size: clamp(2rem, 3vw, 3.2rem);
}

.public-two-column {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 0.8fr);
  gap: 2rem;
  align-items: center;
}

.public-two-column.reverse {
  grid-template-columns: minmax(360px, 0.8fr) minmax(0, 1fr);
}

.public-two-column > div:first-child,
.public-two-column > div:last-child {
  display: grid;
  gap: 1rem;
}

.public-dark-panel {
  padding: 1.5rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.24), transparent 34%),
    #0f2f4a;
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.2);
}

.public-dark-panel h3 {
  color: #ffffff;
}

.public-dark-panel ul {
  display: grid;
  gap: 0.65rem;
  margin: 0;
  padding-left: 1.2rem;
}

.public-dark-panel li {
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.public-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.public-feature-grid article {
  display: grid;
  align-content: start;
  gap: 0.65rem;
  min-height: 210px;
  padding: 1.15rem;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.public-feature-grid article:hover {
  border-color: rgba(47, 166, 163, 0.44);
  box-shadow: 0 22px 44px rgba(15, 47, 74, 0.14);
  transform: translateY(-2px);
}

.public-integration-grid article {
  display: grid;
  align-content: start;
  gap: 0.7rem;
  min-height: 190px;
  padding: 1.2rem;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.public-integration-grid article:hover {
  border-color: rgba(47, 166, 163, 0.46);
  box-shadow: 0 22px 44px rgba(15, 47, 74, 0.13);
  transform: translateY(-2px);
}

.public-feature-grid article span {
  justify-self: start;
  padding: 0.35rem 0.55rem;
  border-radius: 999px;
  background: #e8f7f6;
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
}

.public-feature-grid article.public-feature-more {
  position: relative;
  overflow: hidden;
  background:
    radial-gradient(circle at top right, rgba(79, 197, 193, 0.38), transparent 42%),
    linear-gradient(135deg, #0f2f4a 0%, #123d5e 58%, #2fa6a3 100%);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.2);
}

.public-feature-grid article.public-feature-more span {
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.public-feature-grid article.public-feature-more h3,
.public-feature-grid article.public-feature-more p {
  color: #ffffff;
}

.public-feature-more-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 42px;
  margin-top: auto;
  padding: 0 1rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-weight: 950;
  text-decoration: none;
  transition:
    background 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.public-feature-more-link:hover {
  background: #ffffff;
  color: #0f2f4a;
  box-shadow: 0 14px 30px rgba(2, 18, 33, 0.22);
  transform: translateY(-1px);
}

.public-intelligence {
  display: grid;
  gap: 1.5rem;
  background: #f4f8f8;
}

.public-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-intelligence-grid article {
  display: grid;
  gap: 0.65rem;
  padding: 1.15rem;
  border-left: 4px solid #2fa6a3;
}

.public-module-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
}

.public-module-grid span {
  min-height: 58px;
  display: inline-flex;
  align-items: center;
  padding: 0.8rem 1rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font-weight: 950;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.public-image-band {
  overflow: hidden;
  min-height: 420px;
  border-radius: 8px;
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.16);
}

.public-image-band img {
  width: 100%;
  height: 100%;
  min-height: 420px;
  object-fit: cover;
}

.public-check-list {
  display: grid;
  gap: 0.6rem;
}

.public-check-list span {
  padding: 0.75rem 0.9rem;
  border-radius: 8px;
  background: #eef8f8;
  color: #0f2f4a;
  font-weight: 900;
}

.public-executive-stack {
  display: grid;
  gap: 1rem;
}

.public-executive-stack article {
  display: grid;
  gap: 0.3rem;
  padding: 1.1rem;
  border-left: 4px solid #2fa6a3;
}

.public-steps {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-steps article {
  display: grid;
  gap: 0.7rem;
  padding: 1.2rem;
}

.public-steps b {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #ffffff;
}

.public-proof {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 1rem;
}

.public-proof article {
  display: grid;
  gap: 0.4rem;
  padding: 1.2rem;
  background: #f8fbfb;
}

.public-proof strong {
  color: #0f2f4a;
  font-size: 1.15rem;
}

.public-workflow-band {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 34%),
    #f4f8f8;
}

.public-workflow-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.public-workflow-grid article {
  display: grid;
  gap: 0.45rem;
  padding: 1.2rem;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.public-workflow-grid strong {
  color: #0f2f4a;
  font-size: 1.08rem;
}

.public-workflow-grid span {
  color: #526779;
  line-height: 1.6;
}

.public-workflow-grid a {
  justify-self: start;
  margin-top: 0.35rem;
  color: #0f2f4a;
  font-weight: 900;
  text-decoration: none;
  border-bottom: 2px solid rgba(47, 166, 163, 0.45);
}

.public-workflow-grid a:hover {
  color: #159d9a;
  border-bottom-color: #159d9a;
}

.public-contact-section {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin: 2rem 3.5rem 3.5rem;
  padding: 2rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at right, rgba(47, 166, 163, 0.24), transparent 34%),
    #0f2f4a;
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.2);
}

.public-contact-section h2,
.public-contact-section p {
  color: #ffffff;
}

.public-contact-section p {
  max-width: 720px;
  opacity: 0.88;
}

.public-download-page {
  background: #f4f8f9;
  color: #0f2f4a;
}

.download-hero {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  padding: 5rem 3.5rem;
  background:
    radial-gradient(circle at 82% 18%, rgba(47, 166, 163, 0.3), transparent 32%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 55%, #2fa6a3 130%);
  color: #ffffff;
}

.download-hero-copy {
  display: grid;
  gap: 1.1rem;
  max-width: 760px;
}

.download-hero h1 {
  margin: 0;
  max-width: 760px;
  color: #ffffff;
  font-size: clamp(2.3rem, 5vw, 4.8rem);
  line-height: 1.02;
}

.download-hero p:not(.public-eyebrow) {
  max-width: 700px;
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 1.08rem;
  line-height: 1.7;
}

.download-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: center;
}

.download-hero-actions .public-primary-cta,
.download-hero-actions .public-secondary-cta,
.download-hero-actions .public-text-cta {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  margin: 0;
  padding: 0 0.9rem;
  font-size: 0.9rem;
  line-height: 1.1;
  white-space: nowrap;
}

.download-hero .public-text-cta {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.download-install-status {
  min-height: 1.4rem;
  font-weight: 850;
  color: #e7ffff !important;
}

.download-device-showcase {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: end;
}

.download-phone-preview {
  display: grid;
  gap: 0.7rem;
  justify-items: center;
  color: #ffffff;
}

.download-phone-frame {
  display: grid;
  gap: 0.85rem;
  width: min(100%, 255px);
  min-height: 430px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 32px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.95), rgba(244, 250, 251, 0.98)),
    #ffffff;
  box-shadow: 0 28px 70px rgba(2, 18, 33, 0.34);
  color: #0f2f4a;
}

.android-preview .download-phone-frame {
  min-height: 390px;
}

.download-phone-status,
.download-app-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.download-phone-status span:first-child {
  font-size: 0.72rem;
  font-weight: 900;
}

.download-phone-status span:last-child {
  width: 46px;
  height: 13px;
  border-radius: 999px;
  background: #0f2f4a;
  opacity: 0.16;
}

.download-app-header {
  justify-content: flex-start;
  gap: 0.65rem;
}

.download-app-header img {
  width: 40px;
  height: 40px;
  border-radius: 12px;
  object-fit: contain;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 47, 74, 0.12);
}

.download-app-header div,
.download-app-card,
.download-app-list {
  display: grid;
  gap: 0.22rem;
}

.download-app-header small,
.download-app-card small {
  color: #5d7180;
  font-size: 0.74rem;
  line-height: 1.4;
}

.download-app-card {
  padding: 1rem;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.08);
}

.download-app-card.accent {
  min-height: 150px;
  align-content: center;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.32), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #1f8f91);
  color: #ffffff;
}

.download-app-card.accent small,
.download-app-card.accent span {
  color: rgba(255, 255, 255, 0.84);
}

.download-app-card span,
.download-feature-band span {
  color: #2fa6a3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-app-card strong {
  font-size: 1.35rem;
  line-height: 1.12;
}

.download-app-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}

.download-app-grid span,
.download-app-list span {
  padding: 0.75rem;
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 12px;
  background: #eef8f8;
  color: #0f2f4a;
  font-size: 0.78rem;
  font-weight: 900;
}

.download-feature-band,
.download-trust-section {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding: 3.5rem;
}

.download-feature-band article,
.download-install-panel,
.download-trust-grid article {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.download-feature-band article {
  display: grid;
  gap: 0.55rem;
  padding: 1.3rem;
}

.download-feature-band h2,
.download-install-panel h2,
.download-trust-section h2 {
  margin: 0;
  color: #0f2f4a;
  line-height: 1.12;
}

.download-feature-band p,
.download-trust-section p {
  margin: 0;
  color: #526779;
  line-height: 1.65;
}

.download-install-panel {
  margin: 0 3.5rem 2rem;
  padding: 1.5rem;
}

.download-panel-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.download-steps {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.85rem;
  padding: 0;
  margin: 0;
  list-style: none;
}

.download-steps li {
  display: grid;
  align-content: start;
  gap: 0.6rem;
  min-height: 150px;
  padding: 1rem;
  border-radius: 12px;
  background: #eef8f8;
  color: #0f2f4a;
  line-height: 1.5;
}

.download-steps b {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #ffffff;
}

.download-trust-section {
  grid-template-columns: minmax(0, 0.72fr) minmax(0, 1fr);
  align-items: start;
  padding-top: 1rem;
}

.download-trust-section > div:first-child {
  display: grid;
  gap: 0.8rem;
}

.download-trust-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-trust-grid article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.download-trust-grid strong {
  color: #0f2f4a;
}

.download-trust-grid span {
  color: #526779;
  line-height: 1.5;
}

.download-choice-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.download-choice-card {
  display: grid;
  align-content: start;
  gap: 0.8rem;
  min-height: 265px;
  padding: 1.35rem;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.24), transparent 36%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 24px 56px rgba(2, 18, 33, 0.22);
  color: #ffffff;
  backdrop-filter: blur(12px);
}

.download-choice-card span {
  color: #9df2ef;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-choice-card h2,
.download-choice-card p {
  margin: 0;
}

.download-choice-card h2 {
  color: #ffffff;
  font-size: 1.45rem;
  line-height: 1.12;
}

.download-choice-card p {
  color: rgba(255, 255, 255, 0.84) !important;
  line-height: 1.65;
}

.download-choice-card .secondary-button {
  align-self: end;
  justify-self: start;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.22);
}

.download-choice-card .secondary-button:hover,
.download-choice-card .secondary-button:focus-visible {
  border-color: transparent;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.32), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #1f8f91 100%);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(15, 47, 74, 0.24);
}

.download-choice-info,
.download-choice-compare,
.download-choice-flow,
.download-choice-faq,
.download-choice-cta {
  padding: 3rem 3.5rem;
}

.download-choice-info {
  display: grid;
  grid-template-columns: minmax(0, 0.76fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
}

.download-choice-intro,
.download-choice-compare > div:first-child,
.download-choice-faq > div:first-child {
  display: grid;
  gap: 0.75rem;
}

.download-choice-intro h2,
.download-choice-compare h2,
.download-choice-faq h2,
.download-choice-cta h2 {
  margin: 0;
  color: #0f2f4a;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.06;
}

.download-choice-intro p:not(.public-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: #526779;
  font-size: 1.02rem;
  line-height: 1.75;
}

.download-choice-detail-grid,
.download-choice-flow,
.download-choice-faq-grid {
  display: grid;
  gap: 1rem;
}

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

.download-choice-detail-grid article,
.download-choice-flow article,
.download-choice-faq-grid article {
  display: grid;
  gap: 0.65rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.download-choice-detail-grid article,
.download-choice-faq-grid article {
  padding: 1.25rem;
}

.download-choice-detail-grid span,
.download-choice-flow span {
  color: #2fa6a3;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.download-choice-detail-grid h3,
.download-choice-flow h3 {
  margin: 0;
  color: #0f2f4a;
  line-height: 1.15;
}

.download-choice-detail-grid p,
.download-choice-flow p {
  margin: 0;
  color: #526779;
  line-height: 1.65;
}

.download-choice-detail-grid ul {
  display: grid;
  gap: 0.45rem;
  margin: 0;
  padding-left: 1.1rem;
  color: #0f2f4a;
  font-weight: 850;
  line-height: 1.45;
}

.download-choice-compare {
  display: grid;
  grid-template-columns: minmax(0, 0.64fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  background:
    radial-gradient(circle at right, rgba(47, 166, 163, 0.13), transparent 34%),
    #eef7f7;
}

.download-choice-table {
  display: grid;
  gap: 0.75rem;
}

.download-choice-table div {
  display: grid;
  grid-template-columns: minmax(150px, 0.45fr) repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  align-items: center;
  padding: 0.95rem;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.06);
}

.download-choice-table strong {
  color: #0f2f4a;
}

.download-choice-table span,
.download-choice-faq-grid span {
  color: #526779;
  line-height: 1.55;
}

.download-choice-flow {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding-top: 2.5rem;
}

.download-choice-flow article {
  padding: 1.35rem;
}

.download-choice-faq {
  display: grid;
  grid-template-columns: minmax(0, 0.58fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 2.5rem;
}

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

.download-choice-faq-grid strong {
  color: #0f2f4a;
  line-height: 1.25;
}

.download-choice-cta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  margin: 0 3.5rem 3.5rem;
  padding: 2rem;
  border-radius: 14px;
  background:
    radial-gradient(circle at right, rgba(47, 166, 163, 0.3), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #1f8f91 120%);
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.2);
}

.download-choice-cta h2 {
  color: #ffffff;
}

.download-section-head {
  display: grid;
  gap: 0.8rem;
  max-width: 820px;
}

.download-section-head h2,
.download-employee-copy h2 {
  margin: 0;
  color: #0f2f4a;
  font-size: clamp(2rem, 4vw, 3.4rem);
  line-height: 1.04;
}

.download-section-head p:not(.public-eyebrow),
.download-employee-copy p:not(.public-eyebrow) {
  margin: 0;
  color: #526779;
  font-size: 1.02rem;
  line-height: 1.75;
}

.download-desktop-section {
  display: grid;
  gap: 1.6rem;
  padding: 3.5rem;
}

.download-desktop-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: 1.2rem;
  align-items: stretch;
}

.download-laptop-preview,
.download-desktop-benefits article,
.download-browser-grid article {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.download-laptop-preview {
  display: grid;
  gap: 0.85rem;
  padding: 1.2rem;
}

.download-laptop-preview > strong {
  color: #0f2f4a;
  text-align: center;
}

.download-laptop-frame {
  padding: 0.85rem;
  border-radius: 18px;
  background: linear-gradient(135deg, #0f2f4a, #163c59 62%, #2fa6a3 140%);
  box-shadow: 0 24px 60px rgba(15, 47, 74, 0.22);
}

.download-laptop-topbar {
  display: flex;
  align-items: center;
  gap: 0.42rem;
  padding: 0.15rem 0.2rem 0.75rem;
  color: rgba(255, 255, 255, 0.8);
  font-size: 0.78rem;
}

.download-laptop-topbar span {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.52);
}

.download-laptop-topbar strong {
  margin-left: auto;
  color: #ffffff;
}

.download-laptop-screen {
  display: grid;
  gap: 0.9rem;
  min-height: 360px;
  padding: 1rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at 78% 12%, rgba(47, 166, 163, 0.18), transparent 34%),
    #f4f8f9;
}

.download-dashboard-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0.9rem;
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #17445f);
  color: #ffffff;
}

.download-dashboard-head div {
  display: grid;
  gap: 0.18rem;
}

.download-dashboard-head small {
  color: rgba(255, 255, 255, 0.7);
  font-weight: 850;
}

.download-dashboard-head span {
  padding: 0.35rem 0.62rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #e7ffff;
  font-size: 0.72rem;
  font-weight: 900;
}

.download-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.65rem;
}

.download-dashboard-grid article {
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4a;
}

.download-dashboard-grid span {
  color: #2fa6a3;
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.download-dashboard-grid small {
  color: #5d7180;
  line-height: 1.35;
}

.download-dashboard-table {
  display: grid;
  gap: 0.55rem;
}

.download-dashboard-table span {
  height: 42px;
  border: 1px solid rgba(15, 47, 74, 0.07);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(47, 166, 163, 0.16), transparent 22%),
    #ffffff;
}

.download-desktop-benefits {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.download-desktop-benefits article {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
}

.download-desktop-benefits strong,
.download-browser-grid h3 {
  color: #0f2f4a;
}

.download-desktop-benefits span,
.download-browser-grid li {
  color: #526779;
  line-height: 1.55;
}

.download-desktop-install {
  border-color: rgba(47, 166, 163, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 34%),
    #ffffff;
}

.download-browser-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.download-browser-grid article {
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.download-browser-grid h3,
.download-browser-grid p {
  margin: 0;
}

.download-browser-grid ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding-left: 1.15rem;
}

.download-employee-section {
  display: grid;
  grid-template-columns: minmax(0, 0.92fr) minmax(320px, 0.9fr);
  gap: 2rem;
  align-items: center;
  margin: 0;
  padding: 5rem 3.5rem;
  border-radius: 0;
  background:
    radial-gradient(circle at 82% 16%, rgba(47, 166, 163, 0.3), transparent 30%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 55%, #2fa6a3 130%);
  color: #ffffff;
  box-shadow: none;
}

.download-employee-copy {
  display: grid;
  gap: 1rem;
}

.download-employee-copy h2 {
  color: #ffffff;
}

.download-employee-copy p:not(.public-eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.download-employee-login {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.download-employee-section .download-device-showcase {
  align-items: center;
}

.public-content-page {
  background: #f7fbfb;
}

.public-page-hero {
  padding: 5rem 3.5rem;
  background:
    radial-gradient(circle at 86% 10%, rgba(47, 166, 163, 0.32), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #2fa6a3 132%);
  color: #ffffff;
}

.public-page-hero > div {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.public-page-hero h1 {
  margin: 0;
  max-width: 820px;
  color: #ffffff;
  font-size: clamp(2.1rem, 4vw, 4rem);
  line-height: 1.04;
}

.public-page-hero p:not(.public-eyebrow) {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
}

.public-contact-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.72fr) minmax(0, 1fr);
  gap: 1.5rem;
  padding: 4.5rem 3.5rem;
}

.public-contact-info-card,
.public-contact-form,
.public-legal-content article {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.public-contact-info-card {
  display: grid;
  align-content: start;
  gap: 1rem;
  padding: 1.4rem;
}

.public-contact-info-card h2,
.public-legal-content h2 {
  margin: 0;
  color: #0f2f4a;
  line-height: 1.18;
}

.public-contact-lines {
  display: grid;
  gap: 0.75rem;
}

.public-contact-lines span {
  display: grid;
  gap: 0.18rem;
  padding: 0.85rem;
  border-radius: 10px;
  background: #eef8f8;
  color: #0f2f4a;
  font-weight: 850;
}

.public-contact-lines strong {
  color: #2fa6a3;
  font-size: 0.78rem;
  text-transform: uppercase;
}

.public-contact-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 1.4rem;
}

.public-contact-form label {
  display: grid;
  gap: 0.45rem;
  color: #0f2f4a;
  font-weight: 900;
}

.public-contact-form input,
.public-contact-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
}

.public-contact-form input {
  min-height: 46px;
  padding: 0 0.9rem;
}

.public-contact-form textarea {
  resize: vertical;
  padding: 0.85rem 0.9rem;
  line-height: 1.55;
}

.public-form-wide,
.public-contact-form .public-primary-cta,
.public-form-message {
  grid-column: 1 / -1;
}

.public-form-message {
  margin: 0;
  color: #2fa6a3;
  font-weight: 900;
}

.public-legal-content {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding: 4.5rem 3.5rem;
}

.public-legal-content article {
  display: grid;
  gap: 0.65rem;
  padding: 1.3rem;
}

.public-guides-page {
  background:
    radial-gradient(circle at 8% 18%, rgba(47, 166, 163, 0.08), transparent 28%),
    #f7fbfb;
}

.public-guides-hero {
  background:
    radial-gradient(circle at 86% 12%, rgba(47, 166, 163, 0.38), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 54%, #217f80 132%);
}

.guide-search-panel,
.guide-category-grid,
.guide-layout,
.guide-faq-section {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.guide-search-panel {
  display: grid;
  gap: 1rem;
  padding-top: 2.2rem;
  padding-bottom: 1.2rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.guide-search-panel label {
  display: grid;
  gap: 0.55rem;
  max-width: 920px;
  color: #0f2f4a;
  font-weight: 950;
}

.guide-search-panel input {
  width: 100%;
  min-height: 54px;
  box-sizing: border-box;
  padding: 0 1rem;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 12px;
  background: #f7fbfb;
  color: #0f2f4a;
  font: inherit;
  font-weight: 650;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.06);
}

.guide-search-panel input:focus {
  outline: none;
  border-color: #2fa6a3;
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.16);
}

.guide-search-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.guide-search-hints span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.75rem;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
  font-size: 0.84rem;
  font-weight: 900;
}

.guide-category-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: #ffffff;
}

.guide-category-grid article,
.guide-section,
.guide-sticky-nav,
.guide-faq-grid details {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.guide-category-grid article {
  display: grid;
  gap: 0.7rem;
  align-content: start;
  padding: 1.2rem;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 42%),
    #ffffff;
}

.guide-category-grid article span,
.guide-section .public-eyebrow {
  color: #2fa6a3;
}

.guide-category-grid article span {
  font-weight: 950;
  letter-spacing: 0.08em;
}

.guide-category-grid h2,
.guide-section h2,
.guide-faq-section h2 {
  margin: 0;
  color: #0f2f4a;
  line-height: 1.12;
}

.guide-category-grid p,
.guide-section p,
.guide-manual-grid p,
.guide-step-grid p,
.guide-process-list span,
.guide-faq-grid p {
  color: #526779;
  line-height: 1.62;
}

.guide-category-grid a,
.guide-sticky-nav a {
  color: #0f2f4a;
  font-weight: 950;
  text-decoration: none;
}

.guide-category-grid a:hover,
.guide-sticky-nav a:hover {
  color: #2fa6a3;
}

.guide-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.26fr) minmax(0, 1fr);
  gap: 1.4rem;
  align-items: start;
  padding-top: 3.5rem;
  padding-bottom: 3.5rem;
}

.guide-sticky-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 42%),
    #ffffff;
}

.guide-sticky-nav strong {
  color: #0f2f4a;
}

.guide-content {
  display: grid;
  gap: 1.3rem;
}

.guide-section {
  display: grid;
  gap: 1rem;
  padding: clamp(1.15rem, 2.2vw, 1.6rem);
}

.guide-step-grid,
.guide-manual-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.guide-step-grid.compact {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.guide-step-grid article,
.guide-manual-grid article {
  display: grid;
  gap: 0.45rem;
  padding: 1rem;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 12px;
  background: #f7fbfb;
}

.guide-step-grid b {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.guide-step-grid h3,
.guide-manual-grid h3 {
  margin: 0;
  color: #0f2f4a;
}

.guide-process-list {
  display: grid;
  gap: 0.75rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.guide-process-list li {
  display: grid;
  gap: 0.25rem;
  padding: 1rem;
  border-left: 4px solid #2fa6a3;
  border-radius: 12px;
  background: #f7fbfb;
}

.guide-process-list strong {
  color: #0f2f4a;
}

.guide-callout {
  display: flex;
  gap: 0.8rem;
  align-items: flex-start;
  padding: 1rem;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2f4a, #217f80);
  color: #ffffff;
}

.guide-callout strong,
.guide-callout span {
  color: #ffffff;
}

.guide-faq-section {
  display: grid;
  gap: 1.2rem;
  padding-top: 3.5rem;
  padding-bottom: 4rem;
  background: #eef6f6;
}

.guide-faq-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.guide-faq-grid details {
  padding: 1rem;
}

.guide-faq-grid summary {
  color: #0f2f4a;
  cursor: pointer;
  font-weight: 950;
  line-height: 1.35;
}

.guide-faq-grid p {
  margin: 0.75rem 0 0;
}

.guide-searchable.is-hidden-by-search {
  display: none;
}

@media (max-width: 1100px) {
  .guide-category-grid,
  .guide-step-grid.compact,
  .guide-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .guide-layout {
    grid-template-columns: 1fr;
  }

  .guide-sticky-nav {
    position: static;
  }
}

@media (max-width: 760px) {
  .guide-search-panel,
  .guide-category-grid,
  .guide-layout,
  .guide-faq-section {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .guide-category-grid,
  .guide-step-grid,
  .guide-step-grid.compact,
  .guide-manual-grid,
  .guide-faq-grid {
    grid-template-columns: 1fr;
  }

  .guide-search-panel {
    padding-top: 1.4rem;
  }
}

.public-feature-detail-page {
  background: #f7fbfb;
}

.feature-page-hero {
  position: relative;
  overflow: hidden;
}

.feature-page-hero::after {
  content: "";
  position: absolute;
  right: -8%;
  bottom: -20%;
  width: min(520px, 52vw);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.18), rgba(47, 166, 163, 0.1) 45%, transparent 70%);
  pointer-events: none;
}

.feature-page-intro,
.feature-browser,
.feature-detail-grid,
.feature-workflow-deep {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
}

.feature-page-intro {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 2.2rem;
  padding-bottom: 2.2rem;
  background: #ffffff;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.feature-page-intro article {
  display: grid;
  gap: 0.45rem;
  padding: 1.15rem;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 42%),
    #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.07);
}

.feature-page-intro strong {
  color: #0f2f4a;
  line-height: 1.18;
}

.feature-page-intro span {
  color: #526779;
  line-height: 1.58;
}

.feature-browser {
  display: grid;
  grid-template-columns: 1fr;
  gap: 2rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
  background:
    radial-gradient(circle at 14% 12%, rgba(47, 166, 163, 0.08), transparent 30%),
    #f7fbfb;
}

.feature-category-stack {
  display: grid;
  gap: clamp(2rem, 4vw, 3.8rem);
}

.feature-category-section {
  display: grid;
  gap: 1.25rem;
  padding: clamp(1.1rem, 2.4vw, 1.6rem);
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 22px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.11), transparent 34%),
    #ffffff;
  box-shadow: 0 24px 58px rgba(15, 47, 74, 0.08);
}

.feature-category-section.is-reversed {
  background:
    radial-gradient(circle at top left, rgba(15, 47, 74, 0.08), transparent 34%),
    #fafdfe;
}

.feature-category-heading {
  max-width: 880px;
}

.feature-category-heading h2,
.feature-category-heading p {
  margin: 0;
}

.feature-category-heading h2 {
  margin-top: 0.45rem;
  color: #0f2f4a;
  font-size: clamp(2rem, 3vw, 3rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.feature-category-heading > p:not(.public-eyebrow) {
  margin-top: 0.65rem;
  color: #526779;
  font-size: 1.02rem;
  font-weight: 650;
  line-height: 1.62;
}

.feature-category-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.32fr) minmax(0, 1fr);
  gap: 1.25rem;
  align-items: start;
}

.feature-category-section.is-reversed .feature-category-layout {
  grid-template-columns: minmax(0, 1fr) minmax(260px, 0.32fr);
}

.feature-category-section.is-reversed .feature-category-heading {
  margin-left: auto;
  text-align: right;
}

.feature-category-section.is-reversed .feature-category-nav {
  order: 2;
}

.feature-category-section.is-reversed .feature-category-panel {
  order: 1;
}

.feature-browser-nav {
  position: sticky;
  top: 100px;
  display: grid;
  gap: 0.85rem;
  max-height: calc(100vh - 130px);
  overflow: auto;
  padding: 1rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 16px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 38%),
    #ffffff;
  box-shadow: 0 20px 48px rgba(15, 47, 74, 0.1);
}

.feature-category-panel {
  min-height: 560px;
}

.feature-browser-category {
  display: grid;
  gap: 0.48rem;
}

.feature-browser-mobile-picker {
  display: none;
  gap: 0.45rem;
  color: #0f2f4a;
  font-weight: 950;
}

.feature-browser-mobile-picker select {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(47, 166, 163, 0.26);
  border-radius: 12px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 900;
  padding: 0 0.85rem;
}

.feature-browser-category-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  padding: 0.55rem 0.65rem;
  border-radius: 10px;
  background: #edf7f7;
  color: #0f2f4a;
  font-size: 0.82rem;
  font-weight: 950;
  line-height: 1.25;
}

.feature-browser-category-title span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #ffffff;
  color: #2fa6a3;
  font-size: 0.72rem;
}

.feature-browser-module-list {
  display: grid;
  gap: 0.35rem;
}

.feature-browser-module {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.65rem;
  width: 100%;
  min-height: 42px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-size: 0.88rem;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.feature-browser-module small {
  flex: 0 0 auto;
  color: #2fa6a3;
  font-size: 0.7rem;
  font-weight: 950;
}

.feature-browser-module:hover,
.feature-browser-module:focus-visible,
.feature-browser-module.is-active {
  border-color: rgba(47, 166, 163, 0.44);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(47, 166, 163, 0.22);
  transform: translateY(-1px);
}

.feature-browser-module:hover small,
.feature-browser-module:focus-visible small,
.feature-browser-module.is-active small {
  color: rgba(255, 255, 255, 0.82);
}

.feature-browser-panel {
  position: relative;
  display: grid;
  gap: 1rem;
  min-height: 640px;
  padding: clamp(1.2rem, 2.4vw, 2rem);
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 24px 58px rgba(15, 47, 74, 0.12);
  overflow: hidden;
}

.feature-browser-panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  background: linear-gradient(90deg, #0f2f4a, #2fa6a3);
}

.feature-browser-panel.is-switching {
  animation: featurePanelIn 0.22s ease both;
}

@keyframes featurePanelIn {
  from {
    opacity: 0.64;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

.feature-browser-top {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(240px, 0.36fr);
  gap: 1rem;
  align-items: stretch;
}

.feature-browser-copy {
  position: relative;
  display: grid;
  gap: 0.65rem;
  align-content: center;
  min-height: 218px;
  padding: clamp(1rem, 2.1vw, 1.45rem);
  border-radius: 16px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  box-shadow: inset 0 -120px 140px rgba(15, 47, 74, 0.28);
  overflow: hidden;
  isolation: isolate;
}

.feature-browser-copy::before,
.feature-browser-copy::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-browser-copy::before {
  z-index: -2;
  background: var(--feature-hero-image) center/cover;
  filter: saturate(0.95) contrast(1.02);
  opacity: 0.46;
  transform: scale(1.04);
}

.feature-browser-copy::after {
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(15, 47, 74, 0.95) 0%, rgba(15, 47, 74, 0.82) 47%, rgba(47, 166, 163, 0.58) 100%),
    radial-gradient(circle at 86% 15%, rgba(255, 255, 255, 0.18), transparent 32%),
    linear-gradient(180deg, rgba(255, 255, 255, 0), rgba(15, 47, 74, 0.16));
}

.feature-hero-recruitment {
  --feature-hero-image: url("https://images.unsplash.com/photo-1552664730-d307ca884978?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-pitch {
  --feature-hero-image: url("https://images.unsplash.com/photo-1551434678-e076c223a692?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-candidates {
  --feature-hero-image: url("https://images.unsplash.com/photo-1551836022-deb4988cc6c0?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-vacancy {
  --feature-hero-image: url("https://images.unsplash.com/photo-1497366811353-6870744d04b2?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-outreach {
  --feature-hero-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-calls {
  --feature-hero-image: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-mail {
  --feature-hero-image: url("https://images.unsplash.com/photo-1516321318423-f06f85e504b3?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-intelligence {
  --feature-hero-image: url("https://images.unsplash.com/photo-1551288049-bebda4e38f71?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-operations {
  --feature-hero-image: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-compliance,
.feature-hero-documents {
  --feature-hero-image: url("https://images.unsplash.com/photo-1450101499163-c8848c66ca85?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-finance {
  --feature-hero-image: url("https://images.unsplash.com/photo-1554224155-6726b3ff858f?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-tasks,
.feature-hero-timeline {
  --feature-hero-image: url("https://images.unsplash.com/photo-1497366754035-f200968a6e72?auto=format&fit=crop&w=1100&q=78");
}

.feature-hero-academy {
  --feature-hero-image: url("https://images.unsplash.com/photo-1522202176988-66273c2fd55f?auto=format&fit=crop&w=1100&q=78");
}

.feature-browser-copy > * {
  position: relative;
  z-index: 1;
}

.feature-browser-kicker {
  display: inline-flex;
  align-items: center;
  justify-self: start;
  min-height: 30px;
  padding: 0 0.7rem;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
  backdrop-filter: blur(10px);
}

.feature-browser-panel h2,
.feature-browser-panel p {
  margin: 0;
}

.feature-browser-panel h2 {
  color: #0f2f4a;
  font-size: clamp(1.85rem, 3.2vw, 3rem);
  line-height: 1.02;
  letter-spacing: 0;
}

.feature-browser-copy h2 {
  max-width: 780px;
  color: #ffffff;
  text-shadow: 0 14px 34px rgba(2, 18, 33, 0.32);
}

.feature-browser-summary {
  max-width: 760px;
  color: #526779;
  font-size: 0.98rem;
  font-weight: 650;
  line-height: 1.58;
}

.feature-browser-copy .feature-browser-summary {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.88);
  text-shadow: 0 10px 26px rgba(2, 18, 33, 0.28);
}

.feature-browser-visual {
  position: relative;
  display: grid;
  gap: 0.75rem;
  min-height: 218px;
  padding: 0.95rem;
  border-radius: 16px;
  background:
    radial-gradient(circle at 20% 18%, rgba(255, 255, 255, 0.18), transparent 28%),
    linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  overflow: hidden;
}

.feature-browser-visual p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.86rem;
  font-weight: 750;
  line-height: 1.42;
}

.feature-visual-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.8rem;
}

.feature-visual-header span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 32px;
  height: 32px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #ffffff;
  font-weight: 950;
}

.feature-visual-header strong {
  color: #ffffff;
  font-size: 0.98rem;
  line-height: 1.22;
  text-align: right;
}

.feature-visual-screen {
  display: grid;
  gap: 0.58rem;
  padding: 0.72rem;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 22px 52px rgba(2, 18, 33, 0.28);
}

.feature-visual-toolbar {
  display: flex;
  gap: 0.28rem;
}

.feature-visual-toolbar span {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.22);
}

.feature-visual-stack {
  display: grid;
  gap: 0.48rem;
}

.feature-visual-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) 44px;
  align-items: center;
  gap: 0.48rem;
  padding: 0.5rem;
  border-radius: 10px;
  background: #f5fbfb;
  color: #0f2f4a;
}

.feature-visual-row span {
  color: #2fa6a3;
  font-size: 0.72rem;
  font-weight: 950;
}

.feature-visual-row strong {
  min-width: 0;
  overflow: hidden;
  font-size: 0.86rem;
  font-weight: 900;
  line-height: 1.22;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.feature-visual-row em {
  height: 8px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(15, 47, 74, 0.16), rgba(47, 166, 163, 0.74));
}

.feature-visual-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
}

.feature-visual-metrics span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 27px;
  padding: 0 0.45rem;
  border-radius: 999px;
  background: #e8f7f6;
  color: #0f2f4a;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.1;
  text-align: center;
}

.feature-browser-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.85rem;
}

.feature-browser-detail {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 36%),
    #f8fbfb;
}

.feature-browser-detail strong {
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-browser-detail p {
  color: #0f2f4a;
  line-height: 1.56;
}

.feature-browser-workflow {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(220px, 0.7fr);
  gap: 1rem;
  padding: 1.1rem;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 36%),
    #f7fbfb;
}

.feature-browser-mini-kicker {
  display: inline-flex;
  margin-bottom: 0.42rem;
  color: #2fa6a3;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-browser-workflow h3 {
  margin: 0 0 0.5rem;
  color: #0f2f4a;
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.12;
}

.feature-browser-workflow p {
  color: #526779;
  font-weight: 650;
  line-height: 1.62;
}

.feature-browser-workflow ol {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: feature-step;
}

.feature-browser-workflow li {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.58rem;
  align-items: start;
  color: #0f2f4a;
  font-weight: 850;
  line-height: 1.38;
  counter-increment: feature-step;
}

.feature-browser-workflow li::before {
  content: counter(feature-step);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 950;
}

.feature-browser-usecases {
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 14px;
  background: #ffffff;
}

.feature-browser-usecases > strong {
  color: #0f2f4a;
  font-size: 1rem;
}

.feature-browser-usecases > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.feature-browser-usecases span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0.42rem 0.68rem;
  border-radius: 999px;
  background: #eef8f8;
  color: #0f2f4a;
  font-size: 0.86rem;
  font-weight: 850;
  line-height: 1.25;
}

.feature-browser-impact {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.8rem;
}

.feature-browser-impact span {
  padding: 0.85rem;
  border-radius: 12px;
  background: #eef8f8;
  color: #0f2f4a;
  font-weight: 900;
  line-height: 1.35;
}

.feature-browser-more {
  display: flex;
  justify-content: flex-start;
}

.feature-browser-more .public-secondary-cta.dark {
  margin-top: 0;
  width: auto;
}

.public-feature-module-page {
  background: #f4f8f8;
}

.feature-module-page-shell {
  display: grid;
  overflow: hidden;
}

.feature-module-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.72fr);
  gap: clamp(1rem, 2.4vw, 2rem);
  align-items: stretch;
  min-height: 520px;
  padding: clamp(2rem, 4vw, 4.5rem) clamp(1.2rem, 5vw, 4.5rem);
  background: linear-gradient(135deg, #071d31, #0f2f4a 58%, #2fa6a3);
  color: #ffffff;
  isolation: isolate;
  overflow: hidden;
}

.feature-module-hero::before,
.feature-module-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.feature-module-hero::before {
  z-index: -2;
  background: var(--feature-hero-image) center/cover;
  opacity: 0.3;
  transform: scale(1.04);
}

.feature-module-hero::after {
  z-index: -1;
  background:
    linear-gradient(105deg, rgba(6, 26, 45, 0.96) 0%, rgba(15, 47, 74, 0.88) 48%, rgba(47, 166, 163, 0.64) 100%),
    radial-gradient(circle at 78% 14%, rgba(255, 255, 255, 0.18), transparent 30%);
}

.feature-module-hero-copy {
  display: grid;
  gap: 1rem;
  align-content: center;
  min-width: 0;
}

.feature-module-back {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  min-height: 36px;
  padding: 0 0.9rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-size: 0.82rem;
  font-weight: 950;
  text-decoration: none;
  backdrop-filter: blur(10px);
}

.feature-module-hero .public-eyebrow {
  color: #75eee9;
}

.feature-module-hero h1 {
  max-width: 760px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.35rem, 5vw, 5.2rem);
  font-weight: 950;
  line-height: 0.98;
  letter-spacing: 0;
}

.feature-module-hero p {
  max-width: 760px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1rem, 1.45vw, 1.16rem);
  font-weight: 650;
  line-height: 1.68;
}

.feature-module-hero .feature-browser-visual {
  align-self: center;
  min-height: 390px;
  border-color: rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 30px 70px rgba(2, 18, 33, 0.36);
}

.feature-module-package-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.52rem;
  padding-top: 0.25rem;
}

.feature-module-package-row strong,
.feature-module-package-row span {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  padding: 0 0.72rem;
  border-radius: 999px;
  font-size: 0.78rem;
  font-weight: 950;
}

.feature-module-package-row strong {
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.88);
}

.feature-module-package-row span {
  background: #ffffff;
  color: #0f2f4a;
}

.feature-module-body {
  display: grid;
  gap: clamp(1rem, 2vw, 1.4rem);
  padding: clamp(1.2rem, 4vw, 3.5rem) clamp(1rem, 5vw, 4.5rem) clamp(2rem, 5vw, 4.75rem);
}

.feature-module-overview-grid,
.feature-module-split {
  display: grid;
  gap: 1rem;
}

.feature-module-overview-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: -3rem;
  position: relative;
  z-index: 2;
}

.feature-module-overview-grid article,
.feature-module-section {
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.feature-module-overview-grid article {
  display: grid;
  gap: 0.45rem;
  align-content: start;
  padding: 1.1rem;
}

.feature-module-overview-grid span,
.feature-module-section .public-eyebrow {
  color: #2fa6a3;
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-module-overview-grid p,
.feature-module-section p,
.feature-module-section li {
  margin: 0;
  color: #4e6577;
  font-weight: 650;
  line-height: 1.64;
}

.feature-module-split {
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.82fr);
}

.feature-module-section {
  display: grid;
  gap: 0.72rem;
  align-content: start;
  padding: clamp(1rem, 2.3vw, 1.5rem);
}

.feature-module-section h2,
.feature-module-cta h2 {
  margin: 0;
  color: #0f2f4a;
  font-size: clamp(1.55rem, 2.7vw, 2.35rem);
  font-weight: 950;
  line-height: 1.08;
}

.feature-module-dark-card {
  background:
    radial-gradient(circle at top right, rgba(85, 212, 208, 0.26), transparent 34%),
    linear-gradient(135deg, #0b263f, #0f2f4a);
}

.feature-module-dark-card h2,
.feature-module-dark-card p {
  color: #ffffff;
}

.feature-module-dark-card .public-eyebrow {
  color: #75eee9;
}

.feature-module-impact {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.65rem;
}

.feature-module-impact span {
  display: flex;
  align-items: center;
  min-height: 56px;
  padding: 0.78rem;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  font-weight: 900;
  line-height: 1.28;
}

.feature-module-workflow {
  grid-template-columns: minmax(0, 0.9fr) minmax(280px, 0.74fr);
  align-items: start;
}

.feature-module-workflow ol,
.feature-module-list-section ul {
  display: grid;
  gap: 0.7rem;
  margin: 0;
  padding: 0;
  list-style: none;
}

.feature-module-workflow li,
.feature-module-list-section li {
  position: relative;
  padding: 0.84rem 0.9rem 0.84rem 3rem;
  border-radius: 12px;
  background: #eef8f8;
  color: #0f2f4a;
  font-weight: 900;
}

.feature-module-workflow li::before,
.feature-module-list-section li::before {
  content: "";
  position: absolute;
  left: 1rem;
  top: 1.12rem;
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: #2fa6a3;
  box-shadow: 0 0 0 5px rgba(47, 166, 163, 0.14);
}

.feature-module-integration-section {
  grid-template-columns: minmax(0, 0.82fr) minmax(320px, 1fr);
  align-items: center;
}

.feature-module-related-links {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.7rem;
}

.feature-module-related-links a {
  display: flex;
  align-items: center;
  min-height: 48px;
  padding: 0.8rem 0.9rem;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 10px;
  background: #f7fbfb;
  color: #0f2f4a;
  font-weight: 900;
  line-height: 1.25;
  text-decoration: none;
}

.feature-module-ats {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 34%),
    #ffffff;
}

.feature-module-cta {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 1rem;
  align-items: center;
  padding: clamp(1.1rem, 2.6vw, 1.7rem);
  border-radius: 16px;
  background:
    radial-gradient(circle at 86% 10%, rgba(255, 255, 255, 0.22), transparent 28%),
    linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 22px 52px rgba(15, 47, 74, 0.18);
}

.feature-module-cta h2,
.feature-module-cta .public-eyebrow {
  color: #ffffff;
}

.feature-module-cta-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.feature-module-cta .public-secondary-cta,
.feature-module-cta .public-text-cta {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

@media (max-width: 1023px) {
  .feature-module-hero,
  .feature-module-overview-grid,
  .feature-module-split,
  .feature-module-workflow,
  .feature-module-integration-section,
  .feature-module-cta {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-module-hero {
    min-height: auto;
  }

  .feature-module-overview-grid {
    margin-top: -1.4rem;
  }

  .feature-module-cta-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 640px) {
  .feature-module-hero {
    padding: 1.4rem 1rem 2.4rem;
  }

  .feature-module-hero .feature-browser-visual {
    min-height: 300px;
  }

  .feature-module-body {
    padding-inline: 1rem;
  }

  .feature-module-impact,
  .feature-module-related-links {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-module-cta-actions,
  .feature-module-cta-actions a {
    width: 100%;
  }
}

.feature-detail-source[hidden] {
  display: none !important;
}

.feature-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.feature-detail-card {
  position: relative;
  display: grid;
  gap: 0.8rem;
  align-content: start;
  padding: 1.3rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.feature-detail-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 4px;
  background: linear-gradient(90deg, #0f2f4a, #2fa6a3);
}

.feature-detail-card:hover {
  border-color: rgba(47, 166, 163, 0.42);
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.13);
  transform: translateY(-2px);
}

.feature-detail-index {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 0.6rem;
  border-radius: 999px;
  background: #e8f7f6;
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
}

.feature-detail-card h2,
.feature-detail-card p,
.feature-detail-card dl,
.feature-detail-card dd {
  margin: 0;
}

.feature-detail-card h2 {
  color: #0f2f4a;
  font-size: 1.22rem;
  line-height: 1.16;
}

.feature-detail-summary {
  color: #526779;
  line-height: 1.6;
  font-weight: 650;
}

.feature-detail-card dl {
  display: grid;
  gap: 0.55rem;
}

.feature-detail-card dl div {
  display: grid;
  gap: 0.18rem;
  padding: 0.65rem 0.75rem;
  border-radius: 10px;
  background: #f4f9f9;
}

.feature-detail-card dt {
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.feature-detail-card dd {
  color: #0f2f4a;
  line-height: 1.5;
}

.feature-workflow-deep {
  padding-top: 4rem;
  padding-bottom: 4.5rem;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 34%),
    #eef6f6;
}

.public-footer {
  display: grid;
  grid-template-columns: minmax(280px, 1.7fr) repeat(4, minmax(150px, 1fr));
  gap: 2rem;
  padding-top: 3rem;
  padding-bottom: 3rem;
  background: #061a2d;
  color: #ffffff;
}

.public-footer nav {
  display: grid;
  gap: 0.65rem;
  align-content: start;
}

.public-footer nav strong,
.public-footer-contact strong {
  color: #ffffff;
  font-size: 0.92rem;
}

.public-footer-contact {
  display: grid;
  align-content: start;
  gap: 0.55rem;
}

.public-footer-contact span,
.public-footer-contact a {
  color: rgba(255, 255, 255, 0.78);
}

.public-footer button {
  justify-self: start;
  padding: 0;
  border: 0;
  background: transparent;
  font: inherit;
  font-weight: 900;
  cursor: pointer;
}

.public-socials {
  display: flex;
  gap: 0.55rem;
  margin-top: 0.35rem;
}

.public-socials a {
  display: inline-grid;
  place-items: center;
  width: 36px;
  height: 36px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #ffffff;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.public-socials a:hover {
  border-color: rgba(85, 212, 208, 0.74);
  background: rgba(47, 166, 163, 0.26);
  transform: translateY(-1px);
}

.public-socials svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.package-limit-modal {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 1.25rem;
  background: rgba(2, 18, 33, 0.58);
  backdrop-filter: blur(10px);
}

.package-limit-modal.hidden {
  display: none;
}

.package-limit-dialog {
  position: relative;
  display: grid;
  gap: 0.9rem;
  width: min(560px, 100%);
  padding: 1.5rem;
  border: 1px solid rgba(47, 166, 163, 0.34);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.24), transparent 36%),
    #0f2f4a;
  color: #ffffff;
  box-shadow: 0 30px 80px rgba(2, 18, 33, 0.38);
}

.package-limit-dialog h3,
.package-limit-dialog p {
  margin: 0;
  color: #ffffff;
}

.package-limit-dialog h3 {
  max-width: 470px;
  font-size: clamp(1.45rem, 2.3vw, 2.1rem);
  line-height: 1.08;
}

.package-limit-dialog p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.6;
}

.package-limit-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.2rem;
}

.package-limit-actions .secondary-button,
.package-limit-actions .ghost-button {
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  border-color: rgba(255, 255, 255, 0.2);
}

.public-pricing-page {
  background: #f7fbfb;
}

.pricing-hero,
.pricing-section,
.pricing-cta {
  padding-left: 3.5rem;
  padding-right: 3.5rem;
  scroll-margin-top: 132px;
}

.pricing-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  align-items: center;
  gap: 2rem;
  min-height: 420px;
  padding-top: 5rem;
  padding-bottom: 5rem;
  background:
    radial-gradient(circle at 82% 0%, rgba(47, 166, 163, 0.34), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #2fa6a3 130%);
  color: #ffffff;
  overflow: hidden;
}

.pricing-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(15, 47, 74, 0) 0%, rgba(47, 166, 163, 0.16) 100%),
    radial-gradient(circle at 92% 42%, rgba(255, 255, 255, 0.16), transparent 28%);
  pointer-events: none;
}

.pricing-hero > div {
  position: relative;
  z-index: 1;
}

.pricing-hero-copy {
  display: grid;
  gap: 1rem;
  max-width: 860px;
}

.pricing-hero-visual {
  position: relative;
  min-height: 310px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: 0 28px 68px rgba(2, 18, 33, 0.34);
}

.pricing-hero-visual img {
  width: 100%;
  height: 100%;
  min-height: 310px;
  object-fit: cover;
  opacity: 0.78;
  filter: saturate(0.98) contrast(1.04);
}

.pricing-hero-visual::after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(135deg, rgba(15, 47, 74, 0.3), rgba(47, 166, 163, 0.28)),
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.34), transparent 42%);
}

.pricing-hero-card {
  position: absolute;
  right: 1rem;
  bottom: 1rem;
  z-index: 1;
  display: grid;
  gap: 0.3rem;
  max-width: 300px;
  padding: 1rem;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background: rgba(6, 26, 45, 0.78);
  color: #ffffff;
  box-shadow: 0 18px 44px rgba(2, 18, 33, 0.32);
  backdrop-filter: blur(10px);
}

.pricing-hero-card strong {
  font-size: 1rem;
}

.pricing-hero-card span {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.pricing-hero h1 {
  max-width: 780px;
  margin: 0;
  color: #ffffff;
  font-size: clamp(2.2rem, 4vw, 4rem);
  line-height: 1.04;
  letter-spacing: 0;
}

.pricing-hero p:not(.public-eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.05rem;
  line-height: 1.65;
}

.pricing-light-link {
  color: #ffffff;
}

.pricing-section {
  padding-top: 4.5rem;
  padding-bottom: 4.5rem;
}

.pricing-section > .public-section-head {
  gap: 0.38rem;
  margin-bottom: 1.35rem;
}

.pricing-section > .public-section-head h2,
.pricing-section > .public-section-head p {
  margin: 0;
}

.pricing-section > .public-section-head p:not(.public-eyebrow) {
  max-width: 760px;
  line-height: 1.55;
}

.pricing-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
  align-items: stretch;
}

.pricing-card {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 560px;
  padding: 1.25rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.08);
}

.pricing-card.featured {
  border-color: rgba(47, 166, 163, 0.62);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 24px 54px rgba(47, 166, 163, 0.18);
}

.pricing-card.license {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.18), transparent 32%),
    linear-gradient(180deg, #ffffff, #eef8f8);
}

.pricing-plan,
.pricing-note {
  margin: 0;
}

.pricing-plan {
  color: #2fa6a3;
  font-size: 0.78rem;
  font-weight: 950;
  letter-spacing: 0;
  text-transform: uppercase;
}

.pricing-card h3 {
  margin: 0;
  color: #0f2f4a;
  font-size: 1.18rem;
  line-height: 1.25;
}

.pricing-price {
  display: flex;
  align-items: baseline;
  gap: 0.45rem;
  min-height: 56px;
  color: #0f2f4a;
}

.pricing-price strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
  line-height: 1;
}

.pricing-price span,
.pricing-note,
.pricing-card li {
  color: #526779;
  line-height: 1.55;
}

.pricing-price.custom {
  display: grid;
  align-items: center;
  gap: 0.2rem;
}

.pricing-price.custom span {
  font-weight: 850;
}

.pricing-setup-fee {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.25rem 0.7rem;
  align-items: center;
  min-height: 82px;
  padding: 0.8rem 0.85rem;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 166, 163, 0.08), rgba(255, 255, 255, 0.96));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.76);
}

.pricing-setup-fee.is-deal {
  border-color: rgba(47, 166, 163, 0.34);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 42%),
    linear-gradient(135deg, rgba(47, 166, 163, 0.1), rgba(255, 255, 255, 0.98));
}

.pricing-setup-label {
  color: #0f2f4a;
  font-size: 0.78rem;
  font-weight: 950;
}

.pricing-setup-fee strong {
  color: #2fa6a3;
  font-size: 1.28rem;
  line-height: 1;
  white-space: nowrap;
}

.pricing-setup-fee small {
  display: flex;
  grid-column: 1 / -1;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
  color: #66798a;
  font-size: 0.78rem;
  line-height: 1.35;
}

.pricing-setup-fee em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0.16rem 0.42rem;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.14);
  color: #0f766e;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.pricing-setup-fee s {
  color: #93a2ad;
  text-decoration-thickness: 2px;
}

.pricing-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 0;
  margin-bottom: 0.15rem;
  padding-left: 1.15rem;
}

.pricing-card .public-primary-cta,
.pricing-card .public-secondary-cta {
  width: 100%;
  margin-top: auto;
}

.pricing-badge {
  position: absolute;
  top: 1rem;
  right: 1rem;
  padding: 0.35rem 0.6rem;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
}

.pricing-limit-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 1rem;
}

.pricing-limit-grid article {
  display: grid;
  gap: 0.4rem;
  padding: 1rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.07);
}

.pricing-limit-grid strong {
  color: #0f2f4a;
}

.pricing-limit-grid span {
  color: #526779;
  line-height: 1.55;
}

.pricing-compare-intro {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
  margin: 0 0 1.4rem;
}

.pricing-compare-intro article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.55rem 0.85rem;
  align-items: start;
  padding: 1.05rem;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 12px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 38%),
    #ffffff;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
}

.pricing-compare-icon {
  display: inline-grid;
  grid-row: span 2;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  background: #0f2f4a;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.18);
}

.pricing-compare-icon svg {
  width: 23px;
  height: 23px;
  fill: currentColor;
}

.pricing-compare-intro h3,
.pricing-compare-intro p {
  margin: 0;
}

.pricing-compare-intro h3 {
  color: #0f2f4a;
  font-size: 1rem;
  line-height: 1.18;
}

.pricing-compare-intro p {
  color: #526779;
  line-height: 1.55;
}

.pricing-table-wrap {
  overflow-x: auto;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 20px 48px rgba(15, 47, 74, 0.08);
}

.pricing-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.pricing-table th,
.pricing-table td {
  padding: 0.9rem 1rem;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  text-align: center;
  color: #0f2f4a;
}

.pricing-table th:first-child,
.pricing-table td:first-child {
  position: sticky;
  left: 0;
  z-index: 1;
  text-align: left;
  background: #ffffff;
  font-weight: 950;
}

.pricing-table thead th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #0f2f4a;
  color: #ffffff;
  font-weight: 950;
}

.pricing-table thead th:first-child {
  z-index: 3;
  background: #0f2f4a;
}

.pricing-table tbody tr:nth-child(even) td {
  background: #f8fbfb;
}

.pricing-table tbody tr:nth-child(even) td:first-child {
  background: #f8fbfb;
}

.pricing-table td:not(:first-child) {
  font-weight: 850;
  white-space: nowrap;
}

.pricing-cta {
  display: flex;
  justify-content: space-between;
  gap: 1.5rem;
  align-items: center;
  margin: 0 3.5rem 3.5rem;
  padding: 2rem;
  border-radius: 8px;
  background:
    radial-gradient(circle at right, rgba(47, 166, 163, 0.28), transparent 34%),
    #0f2f4a;
  color: #ffffff;
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.18);
}

.pricing-cta h2,
.pricing-cta p {
  color: #ffffff;
}

.pricing-cta h2 {
  margin: 0;
  max-width: 820px;
  font-size: clamp(1.8rem, 2.6vw, 3rem);
  line-height: 1.08;
}

.pricing-cta p {
  max-width: 760px;
  margin: 0.55rem 0 0;
  opacity: 0.88;
}

@media (max-width: 1180px) {
  .public-header {
    padding: 0 1.5rem;
  }

  .public-nav {
    gap: 0.35rem;
    font-size: 0.82rem;
  }

  .public-nav-trigger {
    padding: 0 0.58rem;
  }

  .public-quick-grid,
  .public-feature-grid,
  .public-integration-grid,
  .public-intelligence-grid,
  .public-module-grid,
  .public-steps,
  .public-workflow-grid,
  .feature-page-intro,
  .download-feature-band,
  .download-steps {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-hero,
  .download-trust-section,
  .download-choice-grid,
  .download-choice-info,
  .download-choice-compare,
  .download-choice-faq,
  .download-desktop-layout,
  .download-employee-section {
    grid-template-columns: 1fr;
  }

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

  .download-desktop-benefits,
  .download-dashboard-grid,
  .download-choice-flow,
  .download-choice-detail-grid,
  .download-choice-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-grid,
  .pricing-limit-grid,
  .pricing-compare-intro {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .pricing-hero {
    grid-template-columns: 1fr;
  }

  .pricing-hero-visual {
    max-width: 720px;
  }

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

  .public-footer > div:first-child {
    grid-column: 1 / -1;
  }

  .feature-category-layout {
    grid-template-columns: minmax(230px, 0.42fr) minmax(0, 1fr);
  }

  .feature-browser-top,
  .feature-browser-detail-grid,
  .feature-browser-workflow,
  .feature-browser-impact {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .employee-push-permission-card,
  .employee-push-settings-head,
  .employee-push-device-card {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-push-permission-card {
    width: calc(100% - 1.5rem);
  }

  .employee-push-permission-actions,
  .employee-push-settings-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  .public-header {
    min-height: auto;
    padding: 0.85rem 1rem;
  }

  .public-brand small {
    display: none;
  }

  .public-nav {
    display: none;
  }

  .public-hero {
    min-height: 560px;
    padding: 0;
  }

  .public-hero-slide {
    align-items: flex-end;
    padding: 4.5rem 1rem 3rem;
    background-position: 58% center;
  }

  .public-hero-slide-strategist {
    padding-bottom: 3rem;
  }

  .public-hero-slide::before {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.7) 0%, rgba(255, 255, 255, 0.94) 54%, rgba(255, 255, 255, 0.98) 100%),
      linear-gradient(180deg, rgba(15, 47, 74, 0.08), rgba(15, 47, 74, 0.14));
  }

  .public-hero-controls {
    display: none;
  }

  .public-quick-grid,
  .public-section,
  .public-contact-section,
  .public-footer,
  .public-page-hero,
  .download-hero,
  .download-desktop-section,
  .download-feature-band,
  .download-install-panel,
  .download-employee-section,
  .download-trust-section,
  .download-choice-info,
  .download-choice-compare,
  .download-choice-flow,
  .download-choice-faq,
  .public-contact-page-grid,
  .public-legal-content,
  .feature-page-intro,
  .feature-browser,
  .feature-detail-grid,
  .feature-workflow-deep {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .public-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .download-hero {
    padding-top: 3.4rem;
    padding-bottom: 3.4rem;
  }

  .download-device-showcase,
  .download-trust-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .download-install-panel {
    margin: 0 1rem 1.4rem;
  }

  .download-employee-section {
    margin: 0;
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .download-choice-cta {
    display: grid;
    margin: 0 1rem 2rem;
  }

  .download-choice-table div {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .download-browser-grid {
    grid-template-columns: 1fr;
  }

  .public-two-column,
  .public-two-column.reverse,
  .public-proof,
  .public-footer,
  .public-contact-page-grid,
  .public-legal-content,
  .feature-browser,
  .feature-category-layout,
  .feature-detail-grid {
    grid-template-columns: 1fr;
  }

  .feature-browser {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .feature-category-section {
    padding: 1rem;
    border-radius: 16px;
  }

  .feature-category-section.is-reversed .feature-category-nav,
  .feature-category-section.is-reversed .feature-category-panel {
    order: initial;
  }

  .feature-browser-nav {
    position: relative;
    top: auto;
    max-height: none;
  }

  .feature-browser-mobile-picker {
    display: grid;
  }

  .feature-browser-category {
    display: none;
  }

  .feature-browser-panel {
    min-height: auto;
  }

  .public-contact-section {
    display: grid;
    margin: 1rem 1rem 2rem;
  }

  .pricing-hero,
  .pricing-section,
  .pricing-cta {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .public-page-hero,
  .public-contact-page-grid,
  .public-legal-content {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pricing-section {
    padding-top: 3rem;
    padding-bottom: 3rem;
  }

  .pricing-cta {
    display: grid;
    margin: 0 1rem 2rem;
  }

  .pricing-hero-visual {
    min-height: 260px;
  }

  .pricing-hero-visual img {
    min-height: 260px;
  }
}

@media (max-width: 560px) {
  .public-login-button {
    min-height: 40px;
    padding: 0 0.85rem;
  }

  .public-login-button.is-account-widget {
    min-height: 50px;
    max-width: none;
    padding: 0.4rem 0.65rem;
  }

  .public-hero h1 {
    font-size: 2.35rem;
  }

  .public-hero {
    min-height: 560px;
  }

  .public-hero-slide {
    padding: 4rem 1rem 2.5rem;
  }

  .public-hero-slide-strategist {
    padding-bottom: 2.5rem;
  }

  .public-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-primary-cta,
  .public-secondary-cta,
  .public-text-cta {
    width: 100%;
  }

  .public-quick-grid,
  .public-feature-grid,
  .public-integration-grid,
  .public-intelligence-grid,
  .public-module-grid,
  .public-steps,
  .public-workflow-grid,
  .feature-page-intro,
  .feature-browser-detail-grid,
  .feature-browser-workflow,
  .feature-browser-impact,
  .download-feature-band,
  .download-steps,
  .download-device-showcase,
  .download-trust-grid,
  .download-choice-grid,
  .download-choice-detail-grid,
  .download-choice-flow,
  .download-choice-faq-grid,
  .download-desktop-benefits,
  .download-dashboard-grid {
    grid-template-columns: 1fr;
  }

  .download-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .download-phone-frame {
    width: min(100%, 310px);
    min-height: 360px;
  }

  .download-panel-head {
    display: grid;
  }

  .download-steps li {
    min-height: auto;
  }

  .download-choice-card,
  .download-laptop-screen {
    min-height: auto;
  }

  .pricing-grid,
  .pricing-limit-grid,
  .pricing-compare-intro {
    grid-template-columns: 1fr;
  }

  .pricing-card {
    min-height: auto;
  }

  .public-contact-form {
    grid-template-columns: 1fr;
  }
}

.desktop-only-workspace {
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 2rem;
  background:
    radial-gradient(circle at 78% 18%, rgba(47, 166, 163, 0.34), transparent 28%),
    linear-gradient(135deg, #0f2f4a 0%, #113955 58%, #2fa6a3 100%);
  color: #ffffff;
}

.desktop-only-card {
  display: grid;
  gap: 0.9rem;
  width: min(100%, 560px);
  padding: clamp(1.5rem, 5vw, 2.4rem);
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 18px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.22), transparent 34%),
    rgba(255, 255, 255, 0.1);
  box-shadow: 0 26px 70px rgba(2, 18, 33, 0.34);
  text-align: left;
  backdrop-filter: blur(14px);
}

.desktop-only-card img {
  width: 54px;
  height: 54px;
  border-radius: 14px;
  object-fit: contain;
  background: #ffffff;
}

.desktop-only-card h1,
.desktop-only-card p {
  margin: 0;
}

.desktop-only-card h1 {
  max-width: 520px;
  color: #ffffff;
  font-size: clamp(2rem, 7vw, 3.1rem);
  line-height: 1.05;
}

.desktop-only-card > p:not(.public-eyebrow) {
  color: rgba(255, 255, 255, 0.86);
  font-size: 1.02rem;
  line-height: 1.7;
}

body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .desktop-only-workspace {
  display: flex;
}

body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .project-home,
body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .app,
body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .demo-mode-banner,
body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .profile-menu,
body.auth-ready:not(.show-public-site):not(.show-login):not(.show-set-password).workspace-mobile-blocked .ai-chat-panel {
  display: none !important;
}

.desktop-only-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 0.25rem;
}

.desktop-only-actions button {
  min-height: 44px;
}

@media (max-width: 1080px) {
  .public-header {
    position: sticky;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto auto;
    align-items: center;
    overflow: visible;
  }

  .public-brand {
    min-width: 0;
  }

  .public-brand strong {
    display: block;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .public-login-button.is-account-widget {
    min-width: 0;
    max-width: 260px;
  }

  .public-menu-toggle {
    display: inline-flex;
  }

  .public-nav {
    position: absolute;
    top: calc(100% + 0.7rem);
    left: 1rem;
    right: 1rem;
    z-index: 80;
    display: none;
    grid-template-columns: 1fr;
    gap: 0.55rem;
    padding: 0.85rem;
    border: 1px solid rgba(47, 166, 163, 0.24);
    border-radius: 18px;
    background:
      radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
      #ffffff;
    box-shadow: 0 24px 60px rgba(2, 18, 33, 0.34);
    font-size: 0.95rem;
  }

  body.public-menu-open .public-nav {
    display: grid;
  }

  .public-nav > a,
  .public-nav-trigger {
    width: 100%;
    justify-content: space-between;
    min-height: 44px;
    border-color: rgba(15, 47, 74, 0.1);
    background: #f4fafb;
    color: #0f2f4a;
  }

  .public-nav > a:hover,
  .public-nav > a:focus-visible,
  .public-nav-dropdown:hover .public-nav-trigger,
  .public-nav-dropdown:focus-within .public-nav-trigger {
    background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
    color: #ffffff;
  }

  .public-nav-dropdown {
    display: grid;
    gap: 0.45rem;
  }

  .public-nav-dropdown::after {
    display: none;
  }

  .public-nav-menu {
    position: static;
    display: none;
    min-width: 0;
    padding: 0.45rem;
    border-radius: 14px;
    box-shadow: none;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .public-nav-dropdown:hover .public-nav-menu,
  .public-nav-dropdown:focus-within .public-nav-menu {
    display: grid;
  }

  .public-nav-menu a {
    min-height: 40px;
    padding: 0.68rem 0.75rem;
    background: #f8fbfb;
    color: #0f2f4a;
  }
}

@media (max-width: 720px) {
  .personalization-head {
    flex-direction: column;
  }

  .dashboard-settings-head {
    flex-direction: column;
  }

  .dashboard-settings-actions,
  .dashboard-settings-actions > * {
    width: 100%;
  }

  .dashboard-personal-layout,
  .dashboard-settings-preview {
    grid-template-columns: 1fr;
  }

  .dashboard-personal-layout > .dashboard-widget-size-small,
  .dashboard-personal-layout > .dashboard-widget-size-normal,
  .dashboard-personal-layout > .dashboard-widget-size-wide,
  .dashboard-personal-layout > .dashboard-widget-size-full,
  .dashboard-preview-widget-small,
  .dashboard-preview-widget-normal,
  .dashboard-preview-widget-wide,
  .dashboard-preview-widget-full {
    grid-column: 1 / -1;
  }

  .theme-field-grid,
  .theme-style-grid {
    grid-template-columns: 1fr;
  }

  .personalization-actions > * {
    width: 100%;
  }
}

@media (max-width: 1023px) {
  .feature-category-section,
  .feature-category-section.is-reversed,
  .feature-category-layout,
  .feature-category-section.is-reversed .feature-category-layout,
  .feature-browser-nav,
  .feature-category-section.is-reversed .feature-category-nav,
  .feature-browser-panel,
  .feature-category-section.is-reversed .feature-category-panel,
  .feature-browser-top,
  .feature-browser-copy,
  .feature-browser-visual,
  .feature-browser-detail-grid,
  .feature-browser-workflow,
  .feature-browser-impact {
    box-sizing: border-box;
    max-width: 100%;
    min-width: 0;
    width: 100%;
  }

  .feature-category-layout,
  .feature-category-section.is-reversed .feature-category-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-category-heading,
  .feature-category-section.is-reversed .feature-category-heading {
    margin-left: 0;
    max-width: 100%;
    text-align: left;
  }

  .feature-category-section.is-reversed .feature-category-nav,
  .feature-category-section.is-reversed .feature-category-panel {
    order: initial;
  }

  .feature-browser-nav {
    position: relative;
    top: auto;
    max-height: none;
    overflow: visible;
  }

  .feature-browser-mobile-picker {
    display: grid;
  }

  .feature-browser-category {
    display: none;
  }

  .feature-browser-top,
  .feature-browser-detail-grid,
  .feature-browser-workflow,
  .feature-browser-impact {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-browser-panel {
    min-height: auto;
  }
}

@media (max-width: 560px) {
  .public-header {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 0.75rem;
  }

  .public-login-button {
    grid-column: 1 / -1;
    width: 100%;
  }
}

.login-back-public {
  justify-self: start;
  min-height: 36px;
  padding: 0 0.75rem;
  border: 1px solid rgba(15, 47, 74, 0.14);
  background: #f5fbfb;
  color: #0f2f4a;
}

.login-screen,
.set-password-screen {
  align-items: center;
  display: flex;
  min-height: 100vh;
  min-height: 100dvh;
  justify-content: center;
  overflow-x: hidden;
  padding: clamp(1rem, 4vw, 2rem);
  width: 100%;
}

.set-password-screen {
  background: linear-gradient(135deg, #0f2f4a 0%, #164464 58%, #2fa6a3 100%);
}

.login-screen {
  background: #0f2f4a;
  overflow: hidden;
  position: relative;
}

.login-screen::before {
  background: url("https://images.unsplash.com/photo-1556761175-b413da4baf72?auto=format&fit=crop&w=1800&q=72") center / cover no-repeat;
  content: "";
  filter: blur(2px) saturate(0.9);
  inset: -12px;
  opacity: 0.44;
  position: absolute;
  transform: scale(1.02);
}

.login-screen::after {
  background:
    linear-gradient(115deg, rgba(7, 27, 45, 0.96) 0%, rgba(11, 53, 81, 0.9) 48%, rgba(31, 167, 160, 0.78) 100%),
    radial-gradient(circle at 76% 44%, rgba(61, 213, 204, 0.28), transparent 34rem);
  content: "";
  inset: 0;
  position: absolute;
}

.login-hero-shell {
  align-items: center;
  display: grid;
  gap: clamp(2rem, 5vw, 5.5rem);
  grid-template-columns: minmax(0, 1fr) minmax(360px, 440px);
  margin: 0 auto;
  max-width: 1180px;
  position: relative;
  width: 100%;
  z-index: 1;
}

.login-insight-panel {
  color: #ffffff;
  display: grid;
  align-content: center;
  gap: 1.05rem;
  max-width: 650px;
  min-height: 510px;
  min-width: 0;
}

.login-insight-panel .eyebrow {
  color: #7ff3ed;
  letter-spacing: 0.08em;
}

.login-insight-slides {
  min-height: 480px;
  position: relative;
}

.login-insight-slide {
  align-content: start;
  animation: loginInsightFade 24s infinite;
  display: grid;
  gap: 1.15rem;
  inset: 0;
  opacity: 0;
  position: absolute;
  transform: translateY(14px);
}

.login-insight-slide-two {
  animation-delay: 6s;
}

.login-insight-slide-three {
  animation-delay: 12s;
}

.login-insight-slide-four {
  animation-delay: 18s;
}

.login-insight-slide h2 {
  font-size: clamp(2rem, 3.45vw, 3.35rem);
  font-weight: 850;
  letter-spacing: 0;
  line-height: 1.08;
  margin: 0;
  max-width: 17ch;
}

.login-insight-slide p {
  color: rgba(255, 255, 255, 0.88);
  font-size: clamp(1rem, 1.2vw, 1.16rem);
  line-height: 1.72;
  margin: 0;
  max-width: 600px;
}

@keyframes loginInsightFade {
  0%,
  20% {
    opacity: 1;
    transform: translateY(0);
  }

  27%,
  100% {
    opacity: 0;
    transform: translateY(-10px);
  }
}

.login-card {
  background: #ffffff;
  border-radius: 18px;
  box-sizing: border-box;
  box-shadow: 0 24px 70px rgba(4, 20, 32, 0.28);
  color: #0f2f4a;
  display: grid;
  gap: 0.9rem;
  max-width: min(440px, calc(100vw - 32px));
  overflow: hidden;
  padding: 2rem;
  width: min(100%, 440px);
}

.login-card *,
.login-card *::before,
.login-card *::after {
  box-sizing: border-box;
}

.login-logo {
  height: 46px;
  max-width: 100%;
  object-fit: contain;
  width: fit-content;
}

.login-card h1,
.login-card p {
  margin: 0;
  max-width: 100%;
}

.login-card > p:not(.eyebrow),
.login-message {
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.login-mode-choice {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 1fr;
  min-width: 0;
}

.login-mode-card {
  align-items: flex-start;
  background: #f5fbfb;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem 0.9rem;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.login-mode-card strong {
  font-size: 0.95rem;
}

.login-mode-card span {
  color: #5d7180;
  font-size: 0.82rem;
  line-height: 1.35;
}

.login-mode-card:hover,
.login-mode-card.active {
  border-color: rgba(47, 166, 163, 0.55);
  box-shadow: 0 12px 28px rgba(47, 166, 163, 0.15);
  transform: translateY(-1px);
}

.login-mode-card.active {
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.96), rgba(47, 166, 163, 0.92));
  color: #ffffff;
}

.login-mode-card.active span {
  color: rgba(255, 255, 255, 0.82);
}

.login-form {
  display: grid;
  gap: 0.85rem;
  min-width: 0;
  width: 100%;
}

.login-form label,
.profile-form-grid label,
.users-list-panel label {
  color: #0f2f4a;
  display: grid;
  font-weight: 800;
  gap: 0.35rem;
  min-width: 0;
}

.login-form input,
.profile-form-grid input,
.profile-form-grid select,
.users-list-panel input,
.users-list-panel select {
  border: 1px solid rgba(15, 47, 74, 0.18);
  border-radius: 10px;
  color: #0f2f4a;
  font: inherit;
  padding: 0.78rem;
}

.login-form input {
  -webkit-user-select: text;
  appearance: none;
  background: #fbfcfc;
  caret-color: #0f2f4a;
  max-width: 100%;
  min-width: 0;
  touch-action: manipulation;
  user-select: text;
  width: 100%;
}

.login-form .primary-button {
  max-width: 100%;
  min-width: 0;
  text-align: center;
  width: 100%;
}

.forgot-password-link {
  justify-self: center;
  border: 0;
  background: transparent;
  color: #1f8f8c;
  cursor: pointer;
  font: inherit;
  font-size: 0.9rem;
  font-weight: 900;
  padding: 0.15rem 0.25rem;
  text-decoration: none;
}

.forgot-password-link:hover {
  color: #0f2f4a;
  text-decoration: underline;
}

.forgot-password-panel {
  display: grid;
  gap: 16px;
  width: min(980px, 96vw);
}

.forgot-recovery-tabs {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0 18px;
}

.forgot-recovery-panel {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.forgot-recovery-panel.hidden {
  display: none !important;
}

.recovery-option-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recovery-card,
.recovery-match-card {
  align-content: start;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.12), transparent 35%),
    #ffffff;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.1);
  padding: 16px;
}

.recovery-card h3,
.recovery-card p,
.recovery-match-card h3,
.recovery-match-card p {
  margin: 0;
}

.recovery-inline-fields {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.recovery-match-card {
  display: grid;
  gap: 10px;
}

.recovery-match-card.hidden {
  display: none !important;
}

.login-message[data-state="success"] {
  color: #1f8d55;
  font-weight: 800;
}

.login-message[data-state="info"] {
  align-items: center;
  background: rgba(31, 167, 160, 0.12);
  border: 1px solid rgba(31, 167, 160, 0.28);
  border-radius: 10px;
  color: #0b5f63;
  display: flex;
  font-size: 0.9rem;
  font-weight: 800;
  justify-content: center;
  margin-top: 0.45rem;
  padding: 0.65rem 0.8rem;
  text-align: center;
}

.login-message[data-state="error"] {
  color: #c94848;
  font-weight: 800;
}

.set-password-card .secondary-button {
  width: 100%;
}

.set-password-card.success {
  border: 1px solid rgba(47, 166, 163, 0.35);
}

.login-back-public {
  max-width: 100%;
  white-space: normal;
}

@media (max-width: 640px) {
  .set-password-screen {
    align-items: flex-start;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }

  .login-screen {
    align-items: center;
    padding: max(16px, env(safe-area-inset-top)) 16px max(16px, env(safe-area-inset-bottom));
  }

  .login-card {
    border-radius: 16px;
    gap: 0.75rem;
    max-width: calc(100vw - 32px);
    padding: 20px;
    width: 100%;
  }

  .login-logo {
    height: 40px;
  }

  .login-card h1 {
    font-size: clamp(1.85rem, 9vw, 2.35rem);
    line-height: 1.05;
  }

  .login-form input,
  .login-form .primary-button {
    min-height: 46px;
  }

  .login-form input {
    font-size: 16px;
  }

  .forgot-password-panel {
    width: min(100%, calc(100vw - 24px));
  }

  .forgot-recovery-tabs,
  .recovery-option-grid,
  .recovery-inline-fields {
    grid-template-columns: 1fr;
  }

  .forgot-recovery-tabs,
  .forgot-recovery-panel {
    padding-left: 14px;
    padding-right: 14px;
  }
}

@media (min-width: 641px) and (max-width: 1023px) {
  .login-card {
    max-width: min(420px, calc(100vw - 48px));
    padding: 24px;
  }
}

@media (max-width: 1180px) {
  .login-hero-shell {
    display: block;
    max-width: min(440px, 100%);
  }

  .login-insight-panel {
    display: none;
  }

  .login-screen .login-card {
    margin: 0 auto;
  }
}

@media (prefers-reduced-motion: reduce) {
  .login-insight-slide {
    animation: none;
    opacity: 0;
    transform: none;
  }

  .login-insight-slide-one {
    opacity: 1;
  }
}

.employee-portal {
  background:
    radial-gradient(circle at top left, rgba(47, 166, 163, 0.13), transparent 32rem),
    #f4f8f9;
  color: #0f2f4a;
  min-height: 100vh;
}

.employee-topbar {
  align-items: center;
  background: linear-gradient(135deg, #0f2f4a 0%, #143d5c 58%, #2fa6a3 100%);
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.18);
  color: #ffffff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 74px;
  padding: 0.75rem clamp(1rem, 3vw, 2rem);
  position: sticky;
  top: 0;
  z-index: 30;
}

.employee-brand,
.employee-top-actions {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  min-width: 0;
}

.employee-notification-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  height: 42px;
  justify-content: center;
  position: relative;
  width: 42px;
}

.employee-notification-button:hover {
  background: rgba(47, 166, 163, 0.9);
}

.employee-notification-glyph {
  border: 2px solid currentColor;
  border-radius: 10px 10px 8px 8px;
  display: inline-block;
  height: 17px;
  position: relative;
  width: 16px;
}

.employee-notification-glyph::before {
  background: currentColor;
  border-radius: 999px;
  content: "";
  height: 4px;
  left: 50%;
  position: absolute;
  top: -6px;
  transform: translateX(-50%);
  width: 7px;
}

.employee-notification-glyph::after {
  background: #2bd1ca;
  border-radius: 999px;
  content: "";
  height: 7px;
  position: absolute;
  right: -7px;
  top: -7px;
  width: 7px;
}

.employee-notification-count,
.employee-message-pill {
  background: #2fa6a3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.68rem;
  font-weight: 900;
  line-height: 1;
  min-width: 1.25rem;
  padding: 0.22rem 0.4rem;
  text-align: center;
}

.employee-notification-count {
  position: absolute;
  right: -0.25rem;
  top: -0.25rem;
}

.employee-brand img {
  background: #ffffff;
  border-radius: 12px;
  height: 42px;
  padding: 5px;
  width: 42px;
}

.employee-brand div {
  display: grid;
  gap: 0.1rem;
}

.employee-brand strong,
.employee-top-actions span {
  font-weight: 850;
}

.employee-brand span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.84rem;
}

.employee-push-permission-card {
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(47, 166, 163, 0.18), transparent 12rem),
    #ffffff;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 18px;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.12);
  color: #0f2f4a;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin: clamp(0.85rem, 2vw, 1.25rem) auto 0;
  max-width: 1440px;
  padding: clamp(1rem, 2.2vw, 1.25rem);
  width: calc(100% - clamp(2rem, 5.2vw, 4rem));
}

.employee-push-permission-card h2,
.employee-push-settings-card h3 {
  margin: 0;
}

.employee-push-permission-card p,
.employee-push-settings-card p {
  color: #4f6675;
  line-height: 1.5;
  margin: 0.25rem 0 0;
}

.employee-push-permission-actions,
.employee-push-settings-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
}

.employee-push-settings-card {
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.18), transparent 14rem),
    linear-gradient(135deg, #ffffff 0%, #f2fbfb 100%);
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 16px;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 1rem;
  padding: clamp(1rem, 2vw, 1.25rem);
}

.employee-push-settings-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.employee-push-device-list {
  display: grid;
  gap: 0.75rem;
}

.employee-push-device-card {
  align-items: center;
  background: rgba(255, 255, 255, 0.82);
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
  min-width: 0;
  padding: 0.85rem;
}

.employee-push-device-card div {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.employee-push-device-card strong {
  color: #0f2f4a;
}

.employee-push-device-card span,
.employee-push-device-card small {
  color: #5d7180;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.employee-shell {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(190px, 230px) minmax(0, 1fr);
  margin: 0 auto;
  max-width: 1440px;
  padding: clamp(1rem, 2.6vw, 2rem);
}

.employee-identity-gate {
  display: grid;
  min-height: calc(100vh - 86px);
  padding: clamp(1rem, 4vw, 3rem);
  place-items: center;
}

.employee-identity-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 18px;
  box-shadow: 0 24px 58px rgba(15, 47, 74, 0.14);
  display: grid;
  gap: 1rem;
  max-width: 760px;
  padding: clamp(1.25rem, 3vw, 2rem);
  width: min(100%, 760px);
}

.employee-identity-card h1 {
  margin: 0;
}

.employee-identity-card p {
  color: #365162;
  margin: 0;
}

.employee-identity-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.employee-identity-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
}

.employee-sidebar {
  align-self: start;
  background: linear-gradient(180deg, rgba(15, 47, 74, 0.98), rgba(24, 91, 105, 0.94));
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 16px;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.16);
  display: grid;
  gap: 0.45rem;
  padding: 0.75rem;
  position: sticky;
  top: 90px;
}

.employee-nav {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 10px;
  color: rgba(255, 255, 255, 0.86);
  cursor: pointer;
  font-weight: 750;
  min-height: 44px;
  padding: 0.72rem 0.85rem;
  text-align: left;
}

.employee-nav:hover,
.employee-nav.active {
  background: rgba(47, 166, 163, 0.9);
  color: #ffffff;
}

.employee-main {
  min-width: 0;
}

.employee-module {
  display: none;
}

.employee-module.active {
  display: grid;
  gap: 1rem;
}

.employee-hero,
.employee-section-head,
.employee-form-card,
.employee-list-card,
.employee-management-list-card,
.employee-management-empty-card,
.employee-management-form,
.employee-dashboard-card,
.employee-profile-grid article {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.employee-hero,
.employee-section-head {
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.employee-hero {
  background:
    radial-gradient(circle at 85% 20%, rgba(47, 166, 163, 0.3), transparent 18rem),
    linear-gradient(135deg, #0f2f4a 0%, #1b6f78 100%);
  color: #ffffff;
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.employee-hero .eyebrow {
  color: #75eee9;
}

.employee-hero > div {
  min-width: 0;
}

.employee-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  justify-content: flex-end;
}

.employee-hero-icon-button {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-flex;
  font: inherit;
  font-weight: 850;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.55rem 0.8rem;
}

.employee-hero-icon-button:hover {
  background: rgba(47, 166, 163, 0.92);
}

.employee-hero h1,
.employee-section-head h2,
.employee-management-head h2,
.employee-management-head h3 {
  margin: 0;
}

.employee-hero p:not(.eyebrow),
.employee-section-head p,
.employee-management-head p {
  line-height: 1.55;
  margin: 0.25rem 0 0;
}

.employee-dashboard-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-app-dashboard {
  display: grid;
  gap: 1rem;
  grid-column: 1 / -1;
}

.employee-today-card {
  align-items: center;
  background:
    radial-gradient(circle at 88% 12%, rgba(255, 255, 255, 0.22), transparent 15rem),
    linear-gradient(135deg, #0f2f4a 0%, #0e5d69 52%, #23b8ae 100%);
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 24px;
  box-shadow: 0 22px 46px rgba(15, 47, 74, 0.17);
  color: #ffffff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 168px;
  overflow: hidden;
  padding: clamp(1.2rem, 3vw, 1.9rem);
}

.employee-today-card span,
.employee-dashboard-feed-head span {
  font-size: 0.74rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-today-card h2 {
  font-size: clamp(1.7rem, 4vw, 2.5rem);
  line-height: 1.05;
  margin: 0.35rem 0 0;
}

.employee-today-card p {
  color: rgba(255, 255, 255, 0.82);
  font-size: 1rem;
  line-height: 1.5;
  margin: 0.45rem 0 0;
}

.employee-today-arrow {
  align-items: center;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  font: inherit;
  font-size: 2.3rem;
  font-weight: 400;
  height: 54px;
  justify-content: center;
  line-height: 1;
  width: 54px;
}

.employee-status-strip {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.employee-status-tile,
.employee-action-card,
.employee-recent-row {
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.employee-status-tile {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 18px;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.07);
  color: #0f2f4a;
  display: grid;
  gap: 0.24rem;
  min-height: 104px;
  padding: 0.95rem;
}

.employee-status-tile:hover,
.employee-action-card:hover,
.employee-recent-row:hover {
  border-color: rgba(47, 166, 163, 0.42);
  box-shadow: 0 18px 36px rgba(47, 166, 163, 0.12);
  transform: translateY(-1px);
}

.employee-status-tile span,
.employee-action-card small,
.employee-action-card em,
.employee-recent-row span,
.employee-recent-row small {
  color: #5d7180;
  font-style: normal;
}

.employee-status-tile strong {
  font-size: clamp(1.35rem, 2.4vw, 1.85rem);
  line-height: 1.05;
}

.employee-status-tile small {
  color: #667987;
  line-height: 1.35;
}

.employee-action-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(164px, 1fr));
}

.employee-action-card {
  background: linear-gradient(135deg, #ffffff, #f2fbfb);
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 22px;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.08);
  color: #0f2f4a;
  display: grid;
  gap: 0.45rem;
  min-height: 154px;
  padding: 1rem;
}

.employee-action-card.primary {
  background:
    radial-gradient(circle at 88% 18%, rgba(255, 255, 255, 0.22), transparent 10rem),
    linear-gradient(135deg, #0f2f4a 0%, #168b8d 100%);
  color: #ffffff;
}

.employee-action-card.primary small,
.employee-action-card.primary em {
  color: rgba(255, 255, 255, 0.78);
}

.employee-action-icon {
  align-items: center;
  background: rgba(47, 166, 163, 0.12);
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 16px;
  color: #087b80;
  display: inline-grid;
  height: 48px;
  justify-content: center;
  margin-bottom: 0.2rem;
  width: 48px;
}

.employee-action-icon svg {
  fill: none;
  height: 1.45rem;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2;
  width: 1.45rem;
}

.employee-action-card.primary .employee-action-icon {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.employee-action-card strong {
  font-size: 1.12rem;
  line-height: 1.2;
}

.employee-action-card em {
  align-self: end;
  font-size: 0.78rem;
  font-weight: 850;
}

.employee-dashboard-feed {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 20px;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.07);
  display: grid;
  gap: 0.7rem;
  padding: 1rem;
}

.employee-dashboard-feed-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.employee-dashboard-feed-head h3 {
  margin: 0.2rem 0 0;
}

.employee-recent-row {
  background: #f7fbfb;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 14px;
  color: #0f2f4a;
  display: grid;
  gap: 0.22rem;
  padding: 0.85rem;
}

.employee-dashboard-card {
  display: grid;
  gap: 0.45rem;
  min-height: 150px;
  padding: 1rem;
}

.employee-dashboard-card.primary {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.employee-dashboard-card span,
.employee-vacation-summary span,
.employee-profile-grid span,
.employee-list-card small {
  color: #5d7180;
  font-size: 0.78rem;
  font-weight: 800;
  text-transform: uppercase;
}

.employee-dashboard-card.primary span,
.employee-dashboard-card.primary p {
  color: rgba(255, 255, 255, 0.82);
}

.employee-dashboard-settings-shortcut {
  margin-top: 0.8rem;
  width: fit-content;
}

.employee-dashboard-card.employee-dashboard-widget-size-small,
.employee-dashboard-card.employee-dashboard-widget-size-normal {
  grid-column: span 1;
}

.employee-dashboard-card.employee-dashboard-widget-size-wide {
  grid-column: span 2;
}

.employee-dashboard-card.employee-dashboard-widget-size-full {
  grid-column: 1 / -1;
}

.employee-dashboard-settings-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.7fr) minmax(280px, 0.8fr);
}

.employee-dashboard-settings-card,
.employee-dashboard-preview-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.employee-dashboard-settings-card h3,
.employee-dashboard-preview-card h3 {
  color: #0f2f4a;
  margin: 0;
}

.employee-dashboard-settings-card p,
.employee-dashboard-preview-card p {
  color: #5d7180;
  line-height: 1.5;
  margin: 0;
}

.employee-dashboard-widget-settings-list {
  display: grid;
  gap: 0.65rem;
}

.employee-dashboard-widget-setting-card {
  align-items: stretch;
  background: #f8fbfb;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  grid-template-areas:
    "grip main main main"
    "visible position size actions";
  grid-template-columns: minmax(70px, 0.55fr) minmax(78px, 0.6fr) minmax(128px, 1fr) minmax(118px, 0.9fr);
  padding: 0.85rem;
}

.employee-dashboard-widget-setting-card.is-muted {
  opacity: 0.64;
}

.employee-dashboard-widget-setting-card.is-drop-target {
  border-color: rgba(47, 166, 163, 0.72);
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.12);
}

.employee-dashboard-widget-setting-card .dashboard-widget-setting-grip,
.employee-dashboard-widget-setting-card .dashboard-widget-setting-main,
.employee-dashboard-widget-setting-card .dashboard-widget-visible-toggle,
.employee-dashboard-widget-setting-card .dashboard-widget-position-control,
.employee-dashboard-widget-setting-card .dashboard-widget-size-control,
.employee-dashboard-widget-setting-card .dashboard-widget-order-actions {
  min-width: 0;
}

.employee-dashboard-settings-preview {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-section-head {
  align-items: start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.employee-form-card {
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.employee-form-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
}

.employee-form-card label,
.employee-management-form label,
.employee-filter-label {
  color: #0f2f4a;
  display: grid;
  font-weight: 800;
  gap: 0.35rem;
  min-width: 0;
}

.employee-form-card input,
.employee-form-card textarea,
.employee-form-card select,
.employee-management-form input,
.employee-management-form textarea {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f2f4a;
  font: inherit;
  font-weight: 500;
  min-width: 0;
  padding: 0.75rem;
  width: 100%;
}

.employee-list,
.employee-chat-list {
  display: grid;
  gap: 0.75rem;
}

.employee-chat-list {
  max-height: min(58vh, 560px);
  min-height: 260px;
  overflow-y: auto;
  overscroll-behavior: contain;
  padding-right: 0.25rem;
}

.employee-list-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 16px;
  color: #0f2f4a;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.9rem;
}

button.employee-list-card {
  cursor: pointer;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

button.employee-list-card:hover,
button.employee-list-card:focus-visible {
  border-color: rgba(47, 166, 163, 0.5);
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.employee-list-card > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.employee-list-card span {
  color: #5d7180;
  line-height: 1.45;
}

.employee-list-card small {
  color: #0f6f73;
  font-weight: 800;
  line-height: 1.4;
}

.employee-time-calculation {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.employee-time-calculation:empty {
  display: none;
}

.employee-time-calculation article {
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.96), rgba(47, 166, 163, 0.9));
  border-radius: 16px;
  color: #ffffff;
  display: grid;
  gap: 0.25rem;
  padding: 0.85rem;
}

.employee-time-calculation span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-time-calculation strong {
  color: #ffffff;
  font-size: 1.05rem;
}

.employee-time-detail-panel {
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 22px;
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  padding: 0;
  width: min(760px, calc(100vw - 1.5rem));
}

.employee-time-detail-header {
  align-items: flex-start;
  background:
    radial-gradient(circle at 94% 0%, rgba(52, 211, 153, 0.22), transparent 34%),
    linear-gradient(135deg, #0b2f4a 0%, #0f5f67 52%, #20a69d 100%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 0;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.25rem clamp(1rem, 3vw, 1.55rem);
}

.employee-time-detail-header > div {
  display: grid;
  gap: 0.38rem;
  min-width: 0;
}

.employee-time-detail-header .eyebrow,
.employee-time-detail-header h2,
.employee-time-detail-header p {
  color: #ffffff;
  margin: 0;
}

.employee-time-detail-header h2 {
  font-size: clamp(1.35rem, 4vw, 1.95rem);
  line-height: 1.12;
  overflow-wrap: anywhere;
}

.employee-time-detail-header p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.98rem;
  line-height: 1.4;
}

.employee-time-detail-header .modal-close {
  align-items: center;
  align-self: flex-start;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  font-size: 1.15rem;
  font-weight: 1000;
  height: 2.35rem;
  justify-content: center;
  line-height: 1;
  width: 2.35rem;
}

.employee-time-detail-header .modal-close:hover,
.employee-time-detail-header .modal-close:focus-visible {
  background: rgba(47, 166, 163, 0.35);
  outline: none;
}

.employee-time-detail-body {
  display: grid;
  gap: 1rem;
  min-height: 0;
  overflow-y: auto;
  padding: clamp(1rem, 3vw, 1.35rem);
}

.employee-time-detail-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.employee-time-detail-grid article,
.employee-time-detail-note {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 250, 0.86)),
    #ffffff;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 14px;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.9rem;
}

.employee-time-detail-grid span {
  color: rgba(15, 47, 74, 0.58);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.employee-time-detail-grid strong,
.employee-time-detail-note h3 {
  color: #0f2f4a;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.employee-time-detail-note p {
  color: #243f55;
  line-height: 1.55;
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.employee-time-detail-note.is-rejected {
  background: #fff6f6;
  border-color: rgba(180, 50, 50, 0.22);
}

@media (max-width: 540px) {
  .employee-time-detail-modal {
    padding: 0.5rem;
  }

  .employee-time-detail-panel {
    border-radius: 18px;
    max-height: calc(100dvh - 1rem);
    width: calc(100vw - 1rem);
  }

  .employee-time-detail-header {
    padding: 1rem;
  }

  .employee-time-detail-header h2 {
    font-size: 1.45rem;
  }

  .employee-time-detail-body {
    padding: 0.9rem;
  }

  .employee-time-detail-grid {
    grid-template-columns: 1fr;
  }
}

.employee-message-card {
  align-items: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.07);
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 0.6rem;
  padding: 1rem 3.1rem 1rem 1rem;
  position: relative;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
  width: 100%;
}

.employee-message-card:hover,
.employee-message-card:focus-visible {
  border-color: rgba(47, 166, 163, 0.42);
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.11);
  outline: none;
  transform: translateY(-1px);
}

.employee-message-card.unread {
  background: linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
}

.employee-message-card-header {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
}

.employee-message-card h3 {
  color: #0f2f4a;
  font-size: 1.08rem;
  line-height: 1.2;
  margin: 0;
}

.employee-message-card p,
.employee-message-card small {
  color: #5d7180;
  line-height: 1.5;
  margin: 0;
  overflow-wrap: anywhere;
}

.employee-message-type {
  color: #2b8f8d;
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 900;
  letter-spacing: 0.06em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.employee-message-delete {
  align-items: center;
  background: #eefafa;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  color: #0f2f4a;
  cursor: pointer;
  display: inline-flex;
  font-size: 1.15rem;
  font-weight: 900;
  height: 2rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 2rem;
}

.employee-message-delete:hover,
.employee-message-delete:focus-visible {
  background: #0f2f4a;
  color: #ffffff;
  outline: none;
  transform: scale(1.03);
}

.employee-message-detail-view {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 18px;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 1rem;
  padding: 1rem;
}

.employee-detail-back {
  justify-self: start;
}

.employee-message-detail-heading {
  display: grid;
  gap: 0.35rem;
}

.employee-message-detail-heading h3 {
  color: #0f2f4a;
  font-size: clamp(1.3rem, 4vw, 2rem);
  line-height: 1.12;
  margin: 0;
}

.employee-message-detail-body {
  color: #243f55;
  line-height: 1.65;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.employee-message-modal-panel,
.employee-notification-modal-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  width: min(720px, calc(100vw - 1.5rem));
}

.employee-notification-modal {
  background: transparent;
  inset: 0;
  pointer-events: none;
}

.employee-notification-modal-panel {
  box-shadow: 0 22px 56px rgba(15, 47, 74, 0.24);
  max-height: min(72vh, 640px);
  pointer-events: auto;
  position: fixed;
  z-index: 90;
}

.employee-message-modal-body,
.employee-notification-modal-body {
  min-height: 0;
  overflow-y: auto;
}

.employee-notification-list {
  display: grid;
  gap: 0.75rem;
}

.employee-notification-item {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 16px;
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 0.35rem;
  padding: 0.95rem;
  padding-right: 2.75rem;
  position: relative;
  text-align: left;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
  width: 100%;
}

.employee-notification-item.unread {
  background: linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
  border-color: rgba(47, 166, 163, 0.45);
}

.employee-notification-item:hover,
.employee-notification-item:focus-visible {
  border-color: rgba(47, 166, 163, 0.55);
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.1);
  outline: none;
  transform: translateY(-1px);
}

.employee-notification-item strong {
  font-size: 1rem;
}

.employee-notification-item span {
  color: #5d7180;
  line-height: 1.45;
}

.employee-notification-meta {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.employee-notification-delete {
  align-items: center;
  background: rgba(15, 47, 74, 0.08);
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  color: #0f2f4a;
  cursor: pointer;
  display: inline-flex;
  font-size: 1rem;
  font-weight: 900;
  height: 1.9rem;
  justify-content: center;
  line-height: 1;
  position: absolute;
  right: 0.75rem;
  top: 0.75rem;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
  width: 1.9rem;
}

.employee-notification-delete:hover,
.employee-notification-delete:focus-visible {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  outline: none;
  transform: translateY(-1px);
}

.employee-notification-more {
  justify-self: stretch;
}

.employee-notification-page-list {
  display: grid;
  gap: 0.8rem;
}

.employee-notification-page-card {
  align-items: center;
  background:
    radial-gradient(circle at 98% 8%, rgba(47, 166, 163, 0.14), transparent 12rem),
    #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 16px;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.07);
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(115px, 0.18fr) minmax(0, 1fr) auto;
  min-width: 0;
  padding: 1rem;
  text-align: left;
}

.employee-notification-page-card.unread {
  border-color: rgba(47, 166, 163, 0.45);
  box-shadow: 0 16px 36px rgba(47, 166, 163, 0.12);
}

.employee-notification-page-card h3,
.employee-notification-page-card p {
  margin: 0;
}

.employee-notification-page-card p,
.employee-notification-page-card small {
  color: #526d7e;
  line-height: 1.45;
}

.employee-notification-type {
  color: #2fa6a3;
  display: block;
  font-size: 0.78rem;
  font-weight: 900;
  margin-top: 0.45rem;
  text-transform: uppercase;
}

.employee-notification-page-actions,
.employee-message-detail-actions,
.employee-shift-detail-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.employee-message-detail-actions {
  justify-content: space-between;
}

.employee-shift-detail-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  width: min(820px, calc(100vw - 1.5rem));
}

.employee-shift-detail-body {
  overflow-y: auto;
}

.employee-shift-detail-view {
  display: grid;
  gap: 1rem;
}

.employee-shift-detail-summary {
  background:
    radial-gradient(circle at 92% 10%, rgba(47, 166, 163, 0.26), transparent 12rem),
    linear-gradient(135deg, #0f2f4a, #1c7a83);
  border-radius: 16px;
  color: #ffffff;
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
}

.employee-shift-detail-summary h3,
.employee-shift-detail-summary p {
  margin: 0;
}

.employee-shift-detail-summary p {
  color: rgba(255, 255, 255, 0.8);
  line-height: 1.5;
}

.employee-shift-detail-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin: 0;
}

.employee-shift-detail-grid div {
  background: linear-gradient(135deg, #ffffff, #eefafa);
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 12px;
  display: grid;
  gap: 0.35rem;
  min-width: 0;
  padding: 0.85rem;
}

.employee-shift-detail-grid dt {
  color: #5d7180;
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-shift-detail-grid dd {
  color: #0f2f4a;
  font-weight: 850;
  margin: 0;
  overflow-wrap: anywhere;
}

@media (max-width: 720px) {
  .employee-notification-modal-panel {
    left: 0.75rem !important;
    max-height: calc(100dvh - 6rem);
    top: 4.75rem !important;
    width: calc(100vw - 1.5rem) !important;
  }

  .employee-notification-page-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .employee-notification-page-actions,
  .employee-shift-detail-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-message-attachment-card {
    grid-template-columns: 1fr;
  }
}

.employee-vacation-summary,
.employee-profile-grid {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.employee-vacation-summary article,
.employee-profile-grid article {
  background: linear-gradient(135deg, #ffffff, #eefafa);
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 0.45rem;
  min-width: 0;
  padding: 1rem;
}

.employee-vacation-summary article span,
.employee-profile-grid article span {
  display: block;
  letter-spacing: 0;
  line-height: 1.2;
}

.employee-vacation-summary article strong,
.employee-profile-grid article strong {
  color: #0f2f4a;
  display: block;
  font-size: clamp(1rem, 1.1vw, 1.14rem);
  line-height: 1.35;
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-vacation-summary article strong {
  font-size: clamp(1.18rem, 1.45vw, 1.42rem);
}

.employee-chat-message {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  justify-self: start;
  max-width: min(680px, 100%);
  padding: 0.8rem 1rem;
}

.employee-chat-message.own {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  justify-self: end;
}

.employee-chat-message p {
  margin: 0.3rem 0;
}

.employee-chat-message small {
  display: block;
  line-height: 1.35;
}

.employee-chat-attachments {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.55rem;
}

.employee-chat-attachment-chip {
  align-items: center;
  background: rgba(47, 166, 163, 0.12);
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 999px;
  color: #0f2f4a;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  gap: 0.35rem;
  max-width: 100%;
  min-width: 0;
  padding: 0.35rem 0.55rem;
}

.employee-chat-message.own .employee-chat-attachment-chip {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.24);
  color: #ffffff;
}

.employee-chat-attachment-chip span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-message-attachment-list {
  display: grid;
  gap: 0.6rem;
  margin-top: 0.65rem;
}

.employee-message-attachment-card {
  align-items: center;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.04), rgba(47, 166, 163, 0.12));
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 12px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.75rem;
}

.employee-message-attachment-card strong,
.employee-message-attachment-card span {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.employee-message-attachment-card strong {
  color: #0f2f4a;
  line-height: 1.25;
}

.employee-message-attachment-card span {
  color: #557085;
  font-size: 0.82rem;
  margin-top: 0.15rem;
}

.employee-chat-form {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(0, 1fr) auto;
}

.employee-chat-form input {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  font: inherit;
  min-width: 0;
  padding: 0.82rem;
}

.employee-chat-tools,
.employee-chat-hero-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: flex-end;
}

.employee-chat-file-button {
  cursor: pointer;
  margin: 0;
}

.employee-mobile-tabbar {
  display: none;
}

.employee-chat-workspace,
.employee-chat-company-layout,
.employee-chat-directory,
.employee-chat-conversation-card {
  min-width: 0;
}

.employee-chat-workspace {
  display: grid;
  gap: 1rem;
}

.employee-chat-hero,
.employee-chat-directory,
.employee-chat-conversation-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.employee-chat-hero {
  align-items: start;
  background:
    radial-gradient(circle at 88% 20%, rgba(47, 166, 163, 0.28), transparent 18rem),
    linear-gradient(135deg, #0f2f4a 0%, #1b6f78 100%);
  color: #ffffff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: clamp(1.1rem, 2.5vw, 1.6rem);
}

.employee-chat-hero h2,
.employee-chat-hero p,
.employee-chat-conversation-head h3,
.employee-chat-conversation-head p {
  margin: 0;
}

.employee-chat-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.55;
}

.employee-chat-company-layout {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(250px, 0.38fr) minmax(0, 1fr);
}

.employee-chat-directory,
.employee-chat-conversation-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.employee-chat-directory label {
  color: #0f2f4a;
  display: grid;
  font-weight: 800;
  gap: 0.35rem;
}

.employee-chat-directory input,
.employee-chat-form.employer input {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f2f4a;
  font: inherit;
  font-weight: 500;
  min-width: 0;
  padding: 0.78rem;
  width: 100%;
}

.employee-chat-directory-list {
  display: grid;
  gap: 0.6rem;
}

.employee-chat-directory-card {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eefafa);
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  min-width: 0;
  padding: 0.8rem;
  text-align: left;
  width: 100%;
}

.employee-chat-directory-card.active,
.employee-chat-directory-card:hover {
  border-color: rgba(47, 166, 163, 0.48);
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.12);
}

.employee-chat-directory-card > span:first-child {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.employee-chat-directory-card strong,
.employee-chat-directory-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-chat-directory-card small,
.employee-chat-conversation-head p {
  color: #5d7180;
}

.employee-chat-directory-meta {
  align-items: end;
  display: grid;
  gap: 0.35rem;
  justify-items: end;
  white-space: nowrap;
}

.employee-chat-unread {
  background: #2fa6a3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 850;
  min-width: 1.55rem;
  padding: 0.18rem 0.45rem;
  text-align: center;
}

.module-nav-badge {
  background: #2fa6a3;
  border-radius: 999px;
  color: #ffffff;
  font-size: 0.68rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1;
  min-width: 1.45rem;
  padding: 0.25rem 0.42rem;
  text-align: center;
}

.employee-users-page,
.employee-requests-page,
.employee-messages-admin-page {
  display: grid;
  gap: 1rem;
}

.employee-request-summary {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.employee-request-summary article,
.employee-request-filters,
.employee-request-card,
.employee-request-calendar {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.employee-request-summary article {
  display: grid;
  gap: 0.35rem;
  padding: 1rem;
}

.employee-request-summary span {
  color: #5d7180;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.employee-request-summary strong {
  color: #0f2f4a;
  font-size: 1.22rem;
  line-height: 1.25;
}

.employee-request-filters {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 1rem;
}

.employee-request-filters label {
  color: #0f2f4a;
  display: grid;
  font-weight: 850;
  gap: 0.35rem;
}

.employee-request-filters select,
.employee-request-filters input,
.employee-request-actions input,
.compact-select {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f2f4a;
  font: inherit;
  min-width: 0;
  padding: 0.72rem;
  width: 100%;
}

.employee-message-admin-filters {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding: 1rem;
}

.employee-message-admin-filters label {
  color: #0f2f4a;
  display: grid;
  font-weight: 850;
  gap: 0.35rem;
}

.employee-message-admin-filters input,
.employee-message-admin-filters select {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f2f4a;
  font: inherit;
  min-width: 0;
  padding: 0.72rem;
  width: 100%;
}

.employee-message-admin-list {
  display: grid;
  gap: 0.85rem;
}

.employee-message-admin-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 16px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.employee-message-admin-card.is-draft {
  border-style: dashed;
}

.employee-message-admin-card.is-scheduled {
  border-color: rgba(47, 166, 163, 0.35);
}

.employee-message-admin-card.is-deleted {
  opacity: 0.78;
}

.employee-message-admin-card-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.employee-message-admin-card h3,
.employee-message-admin-card p {
  margin: 0;
}

.employee-message-admin-meta,
.employee-message-admin-footer {
  color: #5d7180;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  line-height: 1.4;
}

.employee-message-admin-footer {
  gap: 0.7rem;
  font-size: 0.85rem;
}

.employee-message-admin-body {
  color: #243f55;
  line-height: 1.55;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}

.employee-message-admin-candidate {
  background: #eefafa;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 10px;
  color: #0f2f4a;
  margin: 0.2rem 0;
  padding: 0.55rem 0.7rem;
}

.employee-message-admin-candidate span {
  color: #0d817f;
  font-weight: 900;
}

.employee-message-composer-page.hidden,
.employee-message-admin-filters.hidden,
.employee-message-admin-list.hidden,
.employee-message-admin-summary.hidden {
  display: none;
}

.employee-message-editor-shell {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 16px;
  box-shadow: 0 24px 60px rgba(15, 47, 74, 0.14);
  overflow: hidden;
}

.employee-message-editor-header {
  align-items: flex-start;
  background: linear-gradient(120deg, #0d3553, #0f8f8b);
  color: #ffffff;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1.2rem 1.35rem;
}

.employee-message-editor-header h2,
.employee-message-editor-header p,
.employee-message-editor-header .eyebrow {
  color: #ffffff;
  margin: 0;
}

.employee-message-editor-header p {
  margin-top: 0.35rem;
  opacity: 0.86;
}

.employee-message-editor-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1.4fr) minmax(280px, 0.8fr);
  padding: 1rem;
}

.employee-message-editor-panel {
  background: linear-gradient(180deg, #ffffff, #f7fcfc);
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  display: flex;
  flex-direction: column;
  gap: 0.8rem;
  min-width: 0;
  padding: 1rem;
}

.employee-message-editor-panel-wide {
  grid-column: 1 / -1;
}

.employee-message-editor-field {
  color: #0d3553;
  display: flex;
  flex-direction: column;
  font-weight: 850;
  gap: 0.35rem;
}

.employee-message-editor-field input,
.employee-message-editor-field select {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  color: #0d3553;
  font: inherit;
  min-height: 42px;
  padding: 0.65rem 0.75rem;
  width: 100%;
}

.employee-message-recipient-mode {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
}

.employee-message-recipient-mode .active {
  background: linear-gradient(120deg, #0d3553, #0f8f8b);
  border-color: transparent;
  color: #ffffff;
}

.employee-message-recipient-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-message-recipient-grid.is-disabled {
  opacity: 0.55;
  pointer-events: none;
}

.employee-message-recipient-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 12px;
  color: #0d3553;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.25rem;
  padding: 0.8rem;
  text-align: left;
}

.employee-message-recipient-card.selected {
  background: #effafa;
  border-color: #0f8f8b;
  box-shadow: 0 0 0 3px rgba(15, 143, 139, 0.12);
}

.employee-message-recipient-card span {
  color: #5f7280;
  font-size: 0.82rem;
  overflow-wrap: anywhere;
}

.employee-message-editor-toolbar {
  background: #f3fafa;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  padding: 0.5rem;
}

.employee-message-rich-editor {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  color: #0d3553;
  line-height: 1.55;
  min-height: 280px;
  outline: none;
  overflow: auto;
  padding: 1rem;
}

.employee-message-rich-editor:empty::before {
  color: #82929f;
  content: attr(data-placeholder);
}

.employee-message-rich-editor img {
  border-radius: 10px;
  display: block;
  height: auto;
  margin: 0.65rem 0;
  max-width: 100%;
}

.employee-message-editor-attachment-input {
  background: #f7fcfc;
  border: 1px dashed rgba(15, 143, 139, 0.45);
  border-radius: 10px;
  padding: 0.9rem;
}

.employee-message-candidate-card {
  background: linear-gradient(120deg, #0d3553, #0f8f8b);
  border-radius: 12px;
  color: #ffffff;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  padding: 0.85rem;
}

.employee-message-candidate-card.is-empty {
  background: #f1f8f8;
  border: 1px dashed rgba(15, 143, 139, 0.4);
  color: #0d3553;
}

.employee-message-candidate-card span,
.employee-message-candidate-card small {
  color: inherit;
  opacity: 0.9;
  overflow-wrap: anywhere;
}

.employee-message-editor-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-top: 0.45rem;
}

.employee-message-editor-footer {
  background: #f7fcfc;
  border-top: 1px solid rgba(15, 47, 74, 0.1);
  display: flex;
  gap: 0.65rem;
  justify-content: flex-end;
  padding: 1rem;
}

.employee-message-composer-panel {
  display: flex;
  flex-direction: column;
  max-height: calc(100vh - 2rem);
  overflow: hidden;
  width: min(760px, calc(100vw - 1.5rem));
}

.employee-message-composer-body {
  min-height: 0;
  overflow-y: auto;
}

.employee-message-composer-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.employee-message-body-field {
  grid-column: 1 / -1;
}

.employee-message-composer-grid label {
  color: #0f2f4a;
  display: grid;
  font-weight: 850;
  gap: 0.35rem;
}

.employee-message-composer-grid input,
.employee-message-composer-grid select,
.employee-message-composer-grid textarea {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  box-sizing: border-box;
  color: #0f2f4a;
  font: inherit;
  min-width: 0;
  padding: 0.72rem;
  width: 100%;
}

.employee-message-recipient-preview {
  background: #f4fbfb;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 12px;
  color: #24485b;
  display: grid;
  gap: 0.25rem;
  margin-top: 0.85rem;
  padding: 0.85rem;
}

.employee-message-attachment-list {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: 0.8rem;
}

.employee-message-attachment-chip {
  align-items: center;
  background: #eefafa;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 999px;
  color: #0f2f4a;
  display: inline-flex;
  gap: 0.45rem;
  padding: 0.42rem 0.55rem 0.42rem 0.75rem;
}

.employee-message-attachment-chip button {
  background: #0f2f4a;
  border: 0;
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  height: 1.4rem;
  line-height: 1;
  width: 1.4rem;
}

@media (max-width: 720px) {
  .employee-message-editor-grid {
    grid-template-columns: 1fr;
    padding: 0.9rem;
  }

  .employee-message-editor-header {
    flex-direction: column;
  }

  .employee-message-editor-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-message-editor-footer button {
    width: 100%;
  }

  .employee-message-recipient-grid {
    grid-template-columns: 1fr;
  }

  .employee-message-composer-grid {
    grid-template-columns: 1fr;
  }

  .employee-message-admin-card-header {
    flex-direction: column;
  }
}

.employee-request-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.42fr);
}

.employee-request-list {
  display: grid;
  gap: 0.85rem;
}

.employee-request-card {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
}

.employee-request-card header {
  align-items: start;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
}

.employee-request-card h3,
.employee-request-card p,
.employee-request-calendar h3,
.employee-request-calendar h4 {
  margin: 0;
}

.employee-request-card p {
  color: #5d7180;
  line-height: 1.5;
}

.employee-request-note,
.employee-request-review {
  background: #f4fbfb;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 10px;
  padding: 0.72rem;
}

.employee-request-review {
  background: #fff8eb;
  border-color: rgba(216, 151, 46, 0.24);
}

.employee-request-actions {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: minmax(180px, 1fr) repeat(4, auto);
}

.employee-request-calendar {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.employee-request-month-grid,
.employee-request-employee-totals {
  display: grid;
  gap: 0.55rem;
}

.employee-request-month-grid article,
.employee-request-employee-totals p {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eefafa);
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 10px;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  margin: 0;
  padding: 0.72rem;
}

.employee-shifts-page {
  display: grid;
  gap: 1rem;
}

.employee-shift-toolbar {
  display: grid;
  gap: 0.8rem;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  padding: 1rem;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.employee-shift-toolbar label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  color: #0f2f4a;
  font-weight: 850;
}

.employee-shift-toolbar input,
.employee-shift-toolbar select,
.employee-shift-form input,
.employee-shift-form select,
.employee-shift-form textarea,
.employee-shift-assignment-grid select {
  width: 100%;
  box-sizing: border-box;
  min-width: 0;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 0.72rem;
}

.employee-shift-layout {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.36fr);
}

.employee-shift-calendar {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.employee-shift-calendar.month-view {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.employee-shift-day,
.employee-shift-side,
.employee-shift-modal-panel,
.employee-shift-request-card {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.employee-shift-day {
  min-width: 0;
  overflow: hidden;
}

.employee-shift-day > header {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.85rem;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.05), rgba(47, 166, 163, 0.08));
}

.employee-shift-day > header span,
.employee-shift-own-state {
  color: #2f7880;
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-shift-day > header strong {
  display: block;
  color: #0f2f4a;
  font-size: 0.9rem;
}

.employee-shift-day-list,
.employee-shift-side,
.employee-shift-request-list {
  display: grid;
  gap: 0.7rem;
}

.employee-shift-day-list {
  padding: 0.85rem;
}

.employee-shift-card {
  display: grid;
  min-width: 0;
  gap: 0.48rem;
  padding: 0.85rem;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 166, 163, 0.18), transparent 38%),
    linear-gradient(135deg, #ffffff, #f2fbfb);
}

.employee-shift-card.employee-mode {
  background:
    radial-gradient(circle at 92% 0%, rgba(98, 213, 209, 0.2), transparent 38%),
    linear-gradient(135deg, #ffffff, #eefafa);
}

.employee-shift-card header {
  align-items: start;
  display: grid;
  gap: 0.35rem;
}

.employee-shift-card strong {
  color: #0f2f4a;
  font-size: 1rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.employee-shift-card p,
.employee-shift-card small,
.employee-shift-side p,
.employee-shift-request-card small {
  margin: 0;
  color: #536877;
  line-height: 1.45;
}

.employee-shift-card-description {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.employee-shift-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  align-items: center;
}

.employee-shift-side {
  padding: 1rem;
  position: sticky;
  top: 1rem;
}

.employee-shift-side h3,
.employee-shift-side p,
.employee-shift-request-card p {
  margin: 0;
}

.employee-shift-request-card {
  display: grid;
  gap: 0.65rem;
  padding: 0.85rem;
}

.employee-shift-modal {
  z-index: 2400;
}

.employee-shift-modal-panel {
  max-width: min(1040px, calc(100vw - 2rem));
  padding: 1rem;
}

.employee-shift-form,
.employee-shift-assignments {
  display: grid;
  gap: 0.85rem;
}

.employee-shift-section {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  background: #f8fcfc;
  padding: 0.85rem;
}

.employee-shift-section summary {
  cursor: pointer;
  color: #0f2f4a;
  font-size: 0.86rem;
  font-weight: 950;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.employee-shift-section[open] summary {
  margin-bottom: 0.75rem;
}

.employee-shift-form label,
.employee-shift-assignments label {
  display: grid;
  min-width: 0;
  gap: 0.35rem;
  color: #0f2f4a;
  font-weight: 850;
}

.employee-shift-check {
  align-content: center;
  align-items: center;
  display: flex !important;
  flex-direction: row;
  gap: 0.55rem !important;
  min-height: 42px;
  padding: 0.65rem 0.7rem;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 10px;
  background: #ffffff;
}

.employee-shift-check input {
  width: auto !important;
}

.employee-shift-form textarea {
  min-height: 92px;
  resize: vertical;
}

.employee-shift-attachment-list {
  display: grid;
  gap: 0.45rem;
}

.employee-shift-attachment-list article {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: space-between;
  padding: 0.55rem 0.65rem;
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 10px;
  background: #ffffff;
}

.employee-shift-attachment-list span {
  color: #536877;
  font-size: 0.82rem;
}

.employee-shift-card-details {
  display: grid;
  gap: 0.35rem;
  margin: 0;
}

.employee-shift-card-details div {
  display: grid;
  gap: 0.15rem;
  min-width: 0;
}

.employee-shift-card-details dt {
  color: #2f7880;
  font-size: 0.68rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-shift-card-details dd {
  margin: 0;
  color: #0f2f4a;
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.employee-shift-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  align-items: center;
}

.employee-shift-assignments {
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid rgba(15, 47, 74, 0.1);
}

.employee-shift-assignments h4,
.employee-shift-assignments p {
  margin: 0;
}

.employee-shift-assignment-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(220px, 1fr) auto minmax(220px, 1fr) auto;
  align-items: end;
}

.employee-portal-shift-calendar {
  margin-top: 1rem;
}

.employee-chat-conversation-head {
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  padding-bottom: 0.8rem;
}

.employee-chat-list.employer {
  max-height: 54vh;
  overflow: auto;
  padding-right: 0.25rem;
}

.employee-chat-form.employer {
  grid-template-columns: minmax(0, 1fr) auto auto;
}

.employee-chat-form.is-disabled {
  opacity: 0.58;
  pointer-events: none;
}

.employee-management-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.employee-management-layout,
.employee-management-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.72fr);
}

.employee-management-list-card,
.employee-management-empty-card,
.employee-management-form {
  padding: 1rem;
}

.employee-management-list-card header {
  align-items: start;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.employee-management-list {
  display: grid;
  gap: 0.7rem;
}

.employee-management-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  cursor: pointer;
  display: flex;
  gap: 0.8rem;
  justify-content: space-between;
  padding: 0.85rem;
}

.employee-management-card.active,
.employee-management-card:hover {
  border-color: rgba(47, 166, 163, 0.5);
  box-shadow: 0 14px 28px rgba(47, 166, 163, 0.12);
}

.employee-management-card > div:first-child {
  display: grid;
  gap: 0.2rem;
  min-width: 0;
}

.employee-management-card span,
.employee-management-card small {
  color: #5d7180;
}

.employee-users-layout {
  grid-template-columns: minmax(0, 1fr);
}

.employee-users-list-card {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.employee-users-list {
  align-items: stretch;
  gap: 0.9rem;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.employee-user-card {
  align-items: stretch;
  cursor: pointer;
  display: grid;
  gap: 0.75rem;
  grid-template-rows: auto auto auto;
  min-height: 0;
}

.employee-user-card-main,
.employee-user-card-title {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

.employee-user-card-title strong {
  color: #0f2f4a;
  font-size: 1rem;
  overflow-wrap: anywhere;
}

.employee-user-card-title span {
  color: #5d7180;
  font-weight: 750;
  overflow-wrap: anywhere;
}

.employee-user-card-meta {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.employee-user-card-meta div {
  background: rgba(47, 166, 163, 0.06);
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 10px;
  min-width: 0;
  padding: 0.55rem;
}

.employee-user-card-meta dt {
  color: #5d7180;
  font-size: 0.68rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.2;
  margin-bottom: 0.18rem;
  text-transform: uppercase;
}

.employee-user-card-meta dd {
  color: #0f2f4a;
  font-size: 0.85rem;
  font-weight: 850;
  line-height: 1.25;
  margin: 0;
  overflow-wrap: anywhere;
}

.employee-user-badges {
  justify-content: flex-start;
}

.employee-user-card-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  margin-top: auto;
}

.employee-user-card-actions .compact-button {
  min-height: 2.15rem;
}

.employee-management-modal {
  align-items: center;
  background: rgba(8, 26, 40, 0.58);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: clamp(1rem, 3vw, 2rem);
  position: fixed;
  z-index: 1120;
}

.employee-management-modal.hidden {
  display: none !important;
}

.employee-management-shell {
  background: #f4f8f9;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 18px;
  box-shadow: 0 28px 80px rgba(5, 20, 32, 0.35);
  max-height: calc(100vh - 32px);
  max-width: 1180px;
  overflow: auto;
  padding: 1rem;
  width: min(100%, 1180px);
}

.employee-management-head.modal-head {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  border-radius: 14px;
  color: #ffffff;
  padding: 1rem;
}

.employee-management-form {
  display: grid;
  gap: 0.9rem;
}

.employee-security-panel {
  background: #eefafa;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  display: grid;
  gap: 0.25rem;
  padding: 0.9rem;
}

.employee-admin-actions-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 14px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.employee-admin-actions-panel.hidden {
  display: none !important;
}

.employee-admin-actions-panel h4,
.employee-admin-actions-panel p {
  margin: 0;
}

.employee-payroll-panel {
  background: linear-gradient(135deg, rgba(241, 252, 251, 0.95), rgba(255, 255, 255, 0.98));
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 14px;
  display: grid;
  gap: 0.9rem;
  padding: 1rem;
}

.employee-payroll-panel.hidden {
  display: none !important;
}

.employee-payroll-panel h4,
.employee-payroll-panel p,
.employee-payment-history h5 {
  margin: 0;
}

.employee-payroll-summary {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
}

.employee-payroll-summary article {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
}

.employee-payroll-summary span,
.employee-payment-history span,
.employee-payment-history small {
  color: #52616d;
  display: block;
  font-size: 0.78rem;
}

.employee-payroll-summary strong {
  color: #0f2f4a;
  display: block;
  font-size: 1rem;
  margin-top: 0.2rem;
}

.employee-payment-history {
  display: grid;
  gap: 0.55rem;
}

.employee-payment-history article {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  padding: 0.75rem;
}

.employee-payment-history strong {
  color: #0f2f4a;
}

.employee-admin-action-grid {
  align-items: end;
  border-top: 1px solid rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  padding-top: 0.85rem;
}

.employee-recovery-panel {
  background: #ffffff;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 14px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 0.9rem;
  margin-bottom: 1rem;
  padding: 1rem;
}

.employee-recovery-panel.hidden {
  display: none !important;
}

.employee-recovery-panel > header,
.employee-recovery-card {
  align-items: flex-start;
  display: flex;
  gap: 0.85rem;
  justify-content: space-between;
}

.employee-recovery-panel h3,
.employee-recovery-panel p {
  margin: 0;
}

.employee-recovery-panel p {
  color: #5d7180;
  line-height: 1.5;
}

.employee-recovery-list {
  display: grid;
  gap: 0.75rem;
}

.employee-recovery-card {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  background: linear-gradient(135deg, #ffffff, #eefafa);
  padding: 0.85rem;
}

.employee-recovery-card.empty {
  display: grid;
}

.employee-recovery-card > div {
  display: grid;
  gap: 0.3rem;
  min-width: 0;
}

.account-recovery-form .account-recovery-check {
  background: #f4fbfb;
  border-color: rgba(47, 166, 163, 0.22);
  color: #0f2f4a;
}

.account-recovery-form .account-recovery-check input {
  width: auto;
}

.account-recovery-card .request-type-badge {
  background: #0f7f86;
}

@media (max-width: 900px) {
  .employee-shell,
  .employee-identity-grid,
  .employee-management-layout,
  .employee-management-grid,
  .employee-chat-company-layout,
  .employee-request-layout,
  .employee-shift-layout,
  .employee-shift-toolbar,
  .employee-shift-assignment-grid,
  .employee-dashboard-settings-layout {
    grid-template-columns: 1fr;
  }

  .employee-dashboard-widget-setting-card {
    align-items: stretch;
    grid-template-areas:
      "grip main"
      "visible visible"
      "position position"
      "size size"
      "actions actions";
    grid-template-columns: auto minmax(0, 1fr);
  }

  .employee-dashboard-widget-setting-card .dashboard-widget-visible-toggle,
  .employee-dashboard-widget-setting-card .dashboard-widget-position-control,
  .employee-dashboard-widget-setting-card .dashboard-widget-size-control,
  .employee-dashboard-widget-setting-card .dashboard-widget-order-actions {
    grid-column: 1 / -1;
  }

  .employee-sidebar {
    display: flex;
    overflow-x: auto;
    position: static;
  }

  .employee-nav {
    flex: 0 0 auto;
    white-space: nowrap;
  }

  .employee-section-head,
  .employee-management-head,
  .employee-chat-hero,
  .employee-list-card,
  .employee-management-card,
  .employee-recovery-panel > header,
  .employee-recovery-card {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-request-calendar {
    position: static;
  }

  .employee-shift-side {
    position: static;
  }
}

@media (max-width: 620px) {
  .employee-user-card-meta {
    grid-template-columns: 1fr;
  }

  .employee-user-card-actions .compact-button {
    width: 100%;
  }

  .employee-portal {
    background:
      radial-gradient(circle at 12% 0%, rgba(47, 166, 163, 0.16), transparent 18rem),
      #f4f8f9;
    overflow-x: hidden;
    padding-bottom: calc(78px + env(safe-area-inset-bottom, 0px));
  }

  .employee-topbar,
  .employee-top-actions,
  .employee-chat-form,
  .employee-chat-form.employer,
  .employee-request-actions,
  .employee-shift-modal-actions,
  .employee-shift-actions {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .employee-shift-toolbar,
  .employee-shift-calendar,
  .employee-shift-calendar.month-view {
    grid-template-columns: 1fr;
  }

  .employee-shift-modal-panel {
    max-width: calc(100vw - 1rem);
    padding: 0.85rem;
  }

  .employee-topbar {
    background: linear-gradient(180deg, #ffffff 0%, rgba(247, 252, 252, 0.96) 100%);
    border-bottom: 1px solid rgba(15, 47, 74, 0.08);
    border-radius: 0;
    box-shadow: 0 10px 26px rgba(15, 47, 74, 0.08);
    color: #0f2f4a;
    display: grid;
    gap: 0.75rem;
    grid-template-columns: minmax(0, 1fr) auto;
    min-height: 0;
    padding: 0.9rem 1rem 0.75rem;
  }

  .employee-brand {
    justify-content: start;
  }

  .employee-brand img {
    border-radius: 14px;
    height: 46px;
    width: 46px;
  }

  .employee-brand strong {
    font-size: 1rem;
    line-height: 1.2;
  }

  .employee-brand span,
  .employee-top-actions span {
    color: #5d7180;
    font-size: 0.8rem;
    line-height: 1.35;
    overflow-wrap: anywhere;
  }

  .employee-top-actions {
    align-items: center;
    display: flex;
    gap: 0.55rem;
    justify-content: end;
  }

  .employee-top-actions > span {
    display: none;
  }

  .employee-notification-button {
    background: #eefafa;
    border-color: rgba(47, 166, 163, 0.18);
    color: #0f2f4a;
    height: 44px;
    width: 44px;
  }

  .employee-top-actions .secondary-button {
    border-radius: 14px;
    font-size: 0.78rem;
    min-height: 36px;
    padding: 0.45rem 0.62rem;
  }

  .employee-dashboard-grid,
  .employee-dashboard-settings-preview {
    grid-template-columns: 1fr;
  }

  .employee-dashboard-card.employee-dashboard-widget-size-small,
  .employee-dashboard-card.employee-dashboard-widget-size-normal,
  .employee-dashboard-card.employee-dashboard-widget-size-wide,
  .employee-dashboard-card.employee-dashboard-widget-size-full,
  .dashboard-preview-widget-small,
  .dashboard-preview-widget-normal,
  .dashboard-preview-widget-wide,
  .dashboard-preview-widget-full {
    grid-column: 1 / -1;
  }

  .employee-top-actions .secondary-button {
    min-height: 36px;
    padding-inline: 0.62rem;
  }

  .employee-chat-tools,
  .employee-chat-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
    width: 100%;
  }

  .employee-chat-tools button,
  .employee-chat-hero-actions button {
    width: 100%;
  }

  .employee-brand,
  .employee-brand div,
  .employee-top-actions {
    min-width: 0;
  }

  .employee-shell {
    gap: 0.85rem;
    padding: 0.8rem 0.8rem 1rem;
  }

  .employee-sidebar {
    display: none;
  }

  .employee-sidebar::-webkit-scrollbar {
    display: none;
  }

  .employee-nav {
    background: #ffffff;
    border-color: rgba(15, 47, 74, 0.1);
    color: #0f2f4a;
    flex: 0 0 auto;
    min-height: 40px;
    min-width: max-content;
    padding: 0.58rem 0.78rem;
    scroll-snap-align: start;
    white-space: nowrap;
  }

  .employee-nav.active {
    background: #0f2f4a;
    color: #ffffff;
  }

  .employee-dashboard-grid,
  .employee-vacation-summary,
  .employee-profile-grid,
  .employee-form-grid {
    grid-template-columns: 1fr;
  }

  .employee-app-dashboard {
    gap: 0.85rem;
  }

  .employee-today-card {
    border-radius: 24px;
    min-height: 152px;
    padding: 1.15rem;
  }

  .employee-today-card h2 {
    font-size: 1.72rem;
  }

  .employee-status-strip {
    gap: 0.7rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-status-tile {
    border-radius: 17px;
    min-height: 96px;
    padding: 0.82rem;
  }

  .employee-status-tile span,
  .employee-status-tile small {
    font-size: 0.72rem;
  }

  .employee-action-grid {
    gap: 0.75rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-action-card {
    border-radius: 20px;
    min-height: 138px;
    padding: 0.9rem;
  }

  .employee-action-icon {
    border-radius: 15px;
    height: 42px;
    width: 42px;
  }

  .employee-dashboard-feed {
    border-radius: 18px;
    padding: 0.9rem;
  }

  .employee-dashboard-feed-head {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-section-head {
    gap: 0.5rem;
  }

  .employee-hero,
  .employee-section-head,
  .employee-form-card,
  .employee-list-card,
  .employee-dashboard-card,
  .employee-vacation-summary article,
  .employee-profile-grid article,
  .device-list-section,
  .device-session-card {
    border-radius: 16px;
    box-shadow: 0 10px 28px rgba(15, 47, 74, 0.07);
  }

  .employee-hero,
  .employee-section-head {
    padding: 1rem;
  }

  .employee-hero {
    align-items: stretch;
    border-radius: 22px;
    flex-direction: column;
  }

  .employee-hero-actions {
    display: grid;
    grid-template-columns: 1fr;
    justify-content: stretch;
  }

  .employee-hero-actions .secondary-button {
    min-height: 40px;
    padding: 0.58rem 0.8rem;
  }

  .employee-hero-icon-button {
    justify-content: center;
    width: 100%;
  }

  .employee-hero h1,
  .employee-section-head h2 {
    font-size: 1.45rem;
    line-height: 1.15;
  }

  .employee-hero p,
  .employee-section-head p,
  .employee-dashboard-card p,
  .employee-list-card span {
    overflow-wrap: anywhere;
  }

  .employee-dashboard-card {
    gap: 0.55rem;
    min-height: 0;
    padding: 1rem;
  }

  .employee-dashboard-card h3 {
    font-size: 1.18rem;
    line-height: 1.22;
    margin: 0;
    overflow-wrap: anywhere;
  }

  .employee-dashboard-card.action {
    border-color: rgba(47, 166, 163, 0.26);
    background: linear-gradient(135deg, #ffffff, #eefafa);
  }

  .employee-dashboard-card .primary-button,
  .employee-dashboard-card .secondary-button,
  .employee-form-card .primary-button,
  .employee-chat-form .primary-button {
    justify-content: center;
    min-height: 46px;
    width: 100%;
  }

  .employee-form-card {
    padding: 0.9rem;
  }

  .employee-form-card label,
  .employee-filter-label {
    font-size: 0.88rem;
    line-height: 1.25;
  }

  .employee-form-card input,
  .employee-form-card textarea,
  .employee-form-card select,
  .employee-chat-form input {
    min-height: 46px;
    padding: 0.76rem 0.82rem;
  }

  .employee-list-card {
    align-items: stretch;
    display: grid;
    grid-template-columns: 1fr;
    min-width: 0;
  }

  .employee-list-card > div,
  .employee-list-card strong,
  .employee-list-card span,
  .employee-list-card small {
    min-width: 0;
    overflow-wrap: anywhere;
  }

  .employee-list-card .secondary-button,
  .employee-list-card .primary-button {
    justify-content: center;
    width: 100%;
  }

  .employee-message-card {
    border-radius: 16px;
    padding: 0.95rem 2.75rem 0.95rem 0.95rem;
  }

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

  .employee-message-modal-panel,
  .employee-notification-modal-panel {
    max-height: calc(100dvh - 1rem);
    width: calc(100vw - 1rem);
  }

  .employee-message-detail-view {
    border-radius: 16px;
    padding: 0.95rem;
  }

  .employee-chat-message {
    max-width: 100%;
    width: fit-content;
  }

  .employee-chat-message.own {
    justify-self: stretch;
    margin-left: 1.4rem;
    width: auto;
  }

  .employee-chat-message:not(.own) {
    justify-self: stretch;
    margin-right: 1.4rem;
    width: auto;
  }

  .employee-chat-list {
    max-height: calc(100dvh - 330px);
    min-height: 280px;
    overflow-y: auto;
  }

  .employee-chat-form {
    background: rgba(244, 248, 249, 0.96);
    border-top: 1px solid rgba(15, 47, 74, 0.08);
    bottom: calc(72px + env(safe-area-inset-bottom, 0px));
    margin-inline: -0.8rem;
    padding: 0.72rem 0.8rem;
    position: sticky;
    z-index: 24;
  }

  .employee-form-card input,
  .employee-form-card textarea,
  .employee-form-card select {
    font-size: 16px;
  }

  .employee-devices-grid,
  .devices-section-grid {
    gap: 0.8rem;
  }

  .device-card-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .employee-mobile-tabbar {
    align-items: center;
    background: linear-gradient(135deg, #082234 0%, #0f2f4a 54%, #0d4650 100%);
    border: 1px solid rgba(255, 255, 255, 0.08);
    border-radius: 24px 24px 0 0;
    bottom: 0;
    box-shadow: 0 -14px 36px rgba(15, 47, 74, 0.24);
    display: grid;
    gap: 0.25rem;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    padding: 0.5rem 0.55rem calc(0.5rem + env(safe-area-inset-bottom, 0px));
    position: fixed;
    right: 0;
    z-index: 60;
  }

  .employee-mobile-nav {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 14px;
    color: rgba(255, 255, 255, 0.68);
    cursor: pointer;
    display: grid;
    font: inherit;
    font-size: 0.74rem;
    font-weight: 900;
    min-height: 46px;
    min-width: 0;
    padding: 0.35rem 0.18rem;
    text-align: center;
  }

  .employee-mobile-nav.active {
    background: rgba(47, 166, 163, 0.14);
    color: #2bd1ca;
  }

  .employee-mobile-nav svg {
    fill: none;
    height: 1.35rem;
    justify-self: center;
    stroke: currentColor;
    stroke-linecap: round;
    stroke-linejoin: round;
    stroke-width: 2.15;
    width: 1.35rem;
  }

  .employee-mobile-nav i {
    align-items: center;
    border-radius: 999px;
    display: inline-grid;
    font-style: normal;
    font-size: 0.82rem;
    font-weight: 950;
    height: 1.45rem;
    justify-self: center;
    place-items: center;
    width: 1.45rem;
  }

  .employee-mobile-nav.active i {
    background: rgba(43, 209, 202, 0.15);
  }

  .employee-mobile-nav.active svg {
    color: #39d6d0;
  }

  .employee-mobile-nav span {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }
}

.profile-form-grid input[readonly] {
  background: #eef6f7;
  color: #5a7181;
  cursor: not-allowed;
  font-weight: 900;
}

.stable-select {
  position: relative;
  width: 100%;
  min-width: 0;
}

.stable-select-native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  clip-path: inset(50%) !important;
}

.stable-select-button {
  position: relative;
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 0 52px 0 12px;
  text-align: left;
  line-height: 1.2;
  overflow: hidden;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.stable-select-label {
  display: block;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.stable-select-button::before {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.62), transparent 32%),
    linear-gradient(135deg, rgba(47, 166, 163, 0.18), rgba(47, 166, 163, 0.34));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.52);
  transform: translateY(-50%);
  transition:
    background 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.stable-select-button::after {
  content: "";
  position: absolute;
  right: 19px;
  top: 50%;
  width: 9px;
  height: 9px;
  border-right: 2px solid #0f2f4a;
  border-bottom: 2px solid #0f2f4a;
  transform: translateY(-62%) rotate(45deg);
  pointer-events: none;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.theme-preset-select-wrap .stable-select-button,
.theme-field-grid .stable-select-button,
.theme-style-grid .stable-select-button {
  min-height: 42px;
}

.theme-preset-select-wrap .stable-select-button {
  min-height: 46px;
}

.theme-preset-select-wrap:has(.stable-select)::before,
.theme-preset-select-wrap:has(.stable-select)::after {
  display: none;
}

.theme-preset-select-wrap::before,
.theme-preset-select-wrap::after {
  display: none;
}

.stable-select .stable-select-button::after {
  top: 50%;
  transform: translateY(-62%) rotate(45deg) !important;
}

.stable-select.open .stable-select-button::after {
  transform: translateY(-38%) rotate(225deg) !important;
}

.stable-select.open .stable-select-button,
.stable-select-button:hover,
.stable-select-button:focus-visible {
  outline: none;
  border-color: rgba(47, 166, 163, 0.65);
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.14);
}

.stable-select.open .stable-select-button::before,
.stable-select-button:hover::before,
.stable-select-button:focus-visible::before {
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(135deg, #2fa6a3, #19777d);
  box-shadow:
    0 10px 20px rgba(47, 166, 163, 0.24),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.stable-select.open .stable-select-button::after,
.stable-select-button:hover::after,
.stable-select-button:focus-visible::after {
  border-color: #ffffff;
}

.stable-select.disabled .stable-select-button,
.stable-select-button:disabled {
  cursor: not-allowed;
  opacity: 0.68;
}

.stable-select-portal {
  position: fixed;
  z-index: 5000;
  overflow-y: auto;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(47, 166, 163, 0.36);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.28);
  scrollbar-color: #2fa6a3 #e9f8f7;
  overflow-x: hidden;
}

.stable-select-portal.hidden {
  display: none;
  pointer-events: none !important;
}

.stable-select-portal button,
.stable-select-empty {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 10px;
  text-align: left;
  overflow-wrap: anywhere;
}

.stable-select-portal button:hover,
.stable-select-portal button:focus,
.stable-select-portal button[aria-selected="true"] {
  outline: none;
  background: #e9f8f7;
  color: #0f2f4a;
}

.stable-select-empty {
  cursor: default;
  color: #6d7a85;
}

.login-message {
  color: #9f3f4d;
  font-weight: 700;
  min-height: 1.2rem;
}

.single-column-page {
  grid-template-columns: minmax(0, 1fr);
}

.profile-form-grid {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 1rem;
}

.profile-form-actions {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  grid-column: 1 / -1;
  flex-wrap: wrap;
}

.profile-page {
  display: grid;
  gap: 18px;
  width: 100%;
}

.profile-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  overflow: hidden;
  padding: 26px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 84% 12%, rgba(47, 166, 163, 0.52), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #123a58 55%, #2fa6a3 145%);
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.24);
  color: #fff;
}

.profile-hero h2,
.profile-hero p {
  margin: 0;
  color: #fff;
}

.profile-hero h2 {
  margin-top: 2px;
  font-size: clamp(28px, 3vw, 42px);
  line-height: 1.05;
}

.profile-hero p:not(.eyebrow) {
  max-width: 700px;
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.55;
}

.profile-hero .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.profile-hero .primary-button,
.profile-page-actions .primary-button {
  border: 1px solid rgba(255, 255, 255, 0.26);
  background: linear-gradient(135deg, #0b253d, #0f2f4a 58%, rgba(47, 166, 163, 0.9));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.18);
}

.profile-hero .primary-button:hover,
.profile-page-actions .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 40px rgba(47, 166, 163, 0.28);
}

.profile-form-panel {
  display: grid;
  gap: 18px;
  width: 100%;
}

.profile-section-card {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 18px;
  background: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.09);
}

.profile-section-head {
  display: grid;
  gap: 4px;
}

.profile-section-head h3,
.profile-section-head p {
  margin: 0;
}

.profile-section-head h3 {
  color: #0f2f4a;
  font-size: 20px;
  line-height: 1.2;
}

.profile-section-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.profile-section-grid label,
.profile-branding-row label {
  display: grid;
  min-width: 0;
  gap: 7px;
  color: #0f2f4a;
  font-size: 13px;
  font-weight: 900;
}

.profile-section-grid input,
.profile-branding-row input {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 12px;
  background: #f8fbfc;
  color: #0f2f4a;
  font: inherit;
  padding: 0.78rem 0.85rem;
}

.profile-section-grid input:focus,
.profile-branding-row input:focus {
  border-color: rgba(47, 166, 163, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.12);
  outline: none;
}

.profile-branding-row {
  display: grid;
  grid-template-columns: minmax(260px, 0.45fr) minmax(0, 1fr);
  gap: 16px;
  align-items: end;
}

.profile-branding-row p {
  margin: 0;
  padding: 14px 16px;
  border-radius: 14px;
  background: rgba(47, 166, 163, 0.08);
  color: #355166;
  line-height: 1.5;
}

.profile-account-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.profile-account-grid article {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.05), rgba(47, 166, 163, 0.08));
}

.profile-account-grid span {
  color: #5f7280;
  font-size: 12px;
  font-weight: 900;
}

.profile-account-grid strong {
  color: #0f2f4a;
  font-size: 15px;
}

.profile-page-actions {
  justify-content: space-between;
  padding: 4px 2px 0;
}

.profile-page-actions .muted-line {
  margin: 0;
  color: #536877;
  font-weight: 800;
}

.users-admin-page {
  display: grid;
  gap: 18px;
}

.users-admin-header,
.users-list-panel,
.user-editor-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
  padding: 1rem;
}

.users-admin-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-color: rgba(98, 213, 209, 0.28);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.34), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 62%, #237f83 132%);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.18);
}

.users-admin-actions,
.users-filter-row,
.user-company-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.6rem;
}

.users-admin-header h2,
.users-admin-header p,
.user-editor-head h3 {
  margin: 0;
}

.users-admin-header h2 {
  color: #ffffff;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
}

.users-admin-header p:not(.eyebrow) {
  max-width: 780px;
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.86);
  line-height: 1.5;
}

.users-admin-header .eyebrow {
  color: #62d5d1;
}

.users-admin-header .primary-button,
.users-admin-header .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(98, 213, 209, 0.36), transparent 34%),
    linear-gradient(135deg, #2fa6a3, #0f2f4a);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 166, 163, 0.22);
}

.users-admin-header .secondary-button {
  background: rgba(255, 255, 255, 0.1);
}

.users-admin-header .primary-button:hover,
.users-admin-header .secondary-button:hover {
  border-color: rgba(98, 213, 209, 0.66);
  box-shadow: 0 18px 38px rgba(47, 166, 163, 0.3);
  transform: translateY(-1px);
}

.platform-api-page {
  display: grid;
  gap: 16px;
}

.platform-api-content {
  display: grid;
  gap: 16px;
}

.platform-api-content .api-settings-section {
  display: grid;
  gap: 16px;
  padding: 20px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.platform-api-content .api-settings-section.hidden {
  display: none;
}

.users-admin-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 1fr);
}

.users-list-panel {
  padding: 14px;
  border-color: rgba(15, 47, 74, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.users-list-panel > label,
.users-filter-row label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-weight: 900;
}

.users-list-panel > label {
  position: relative;
}

.users-list-panel > label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.72;
  background: #2fa6a3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.users-list-panel > label input {
  padding-left: 44px;
}

.users-filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 0.8rem;
}

.users-list-panel input,
.users-list-panel select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  padding: 0 12px;
}

.users-list-panel input:focus,
.users-list-panel select:focus {
  outline: 2px solid rgba(47, 166, 163, 0.24);
  border-color: rgba(47, 166, 163, 0.72);
}

.users-list {
  display: grid;
  gap: 1rem;
  margin-top: 0.85rem;
}

.users-admin-profile-card,
.user-company-card {
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
}

.users-admin-profile-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1rem;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.34), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 72%, #1f6f76 128%);
  color: #ffffff;
}

.users-admin-profile-card h3,
.users-admin-profile-card p {
  margin: 0;
}

.users-admin-profile-card h3,
.users-admin-profile-card p,
.users-admin-profile-card .user-list-meta {
  color: #ffffff;
}

.user-company-grid {
  display: grid;
  gap: 1rem;
}

.user-company-card {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-color: rgba(98, 213, 209, 0.24);
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 125%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.user-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
}

.user-company-head h3,
.user-company-head p {
  margin: 0;
}

.user-company-head h3 {
  color: #ffffff;
  font-size: 1.15rem;
}

.user-company-head p,
.user-company-meta {
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.88rem;
}

.user-company-count {
  flex: 0 0 auto;
  border-radius: 999px;
  background: #2fa6a3;
  color: #0f2f4a;
  font-size: 0.78rem;
  font-weight: 900;
  padding: 0.28rem 0.65rem;
}

.user-company-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.user-company-meta span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  padding: 0.24rem 0.55rem;
}

.user-company-meta .user-package-badge {
  background: linear-gradient(135deg, #2fa6a3, #1f7f88);
  color: #ffffff;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.2);
}

.user-company-users {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.user-list-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 10px;
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 0.25rem;
  padding: 0.8rem;
  text-align: left;
  width: 100%;
  min-width: 0;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.user-company-card .secondary-button,
.user-company-card .ghost-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.user-company-card .secondary-button:hover,
.user-company-card .ghost-button:hover {
  border-color: rgba(98, 213, 209, 0.68);
  background: #ffffff;
  color: #0f2f4a;
}

.user-list-card:hover,
.user-list-card.active {
  border-color: #2fa6a3;
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.14);
  transform: translateY(-1px);
}

.user-list-card strong {
  color: #0f2f4a;
}

.user-card-title-line {
  align-items: start;
  display: flex;
  gap: 0.6rem;
  justify-content: space-between;
  min-width: 0;
}

.user-card-title-line strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.user-card-logbook-button {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(47, 166, 163, 0.35);
  border-radius: 999px;
  color: #0f6f75;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
  height: 2rem;
  justify-content: center;
  padding: 0;
  width: 2rem;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.user-card-logbook-button svg {
  fill: currentColor;
  height: 1rem;
  width: 1rem;
}

.user-card-logbook-button:hover,
.user-card-logbook-button:focus-visible {
  background: #e2f5f4;
  border-color: #2fa6a3;
  box-shadow: 0 8px 18px rgba(47, 166, 163, 0.18);
  outline: none;
  transform: translateY(-1px);
}

.user-list-meta {
  color: #5d7180;
  font-size: 0.86rem;
}

.user-badge-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.user-badge {
  background: #e2f5f4;
  border-radius: 999px;
  color: #0f2f4a;
  font-size: 0.76rem;
  font-weight: 800;
  padding: 0.18rem 0.5rem;
}

.user-badge.status-success,
.user-badge.password-set {
  background: #d9f8eb;
  color: #0f6b4f;
}

.user-badge.status-pending {
  background: #fff3cf;
  color: #855b00;
}

.user-badge.status-warning {
  background: #ffe3c2;
  color: #8a3f00;
}

.user-badge.status-danger {
  background: #ffe1e1;
  color: #a82424;
}

.user-badge.status-neutral,
.user-badge.password-pending {
  background: #e8eef2;
  color: #486070;
}

.user-card-action {
  justify-self: start;
  margin-top: 0.35rem;
}

.user-activity-log-panel {
  max-height: min(88vh, 920px);
  max-width: min(1040px, calc(100vw - 2rem));
  overflow: hidden;
}

.user-activity-log-controls {
  align-items: end;
  border-bottom: 1px solid rgba(15, 47, 74, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding-bottom: 0.9rem;
}

.user-activity-log-controls .secondary-button.active {
  background: linear-gradient(135deg, #0f2f4a, #1f9a9a);
  border-color: transparent;
  color: #ffffff;
}

.user-activity-log-date {
  color: #496473;
  display: grid;
  font-size: 0.78rem;
  font-weight: 850;
  gap: 0.28rem;
  min-width: 160px;
  text-transform: uppercase;
}

.user-activity-log-date input {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 8px;
  color: #0f2f4a;
  min-height: 2.35rem;
  padding: 0.45rem 0.65rem;
}

.user-activity-log-filter-grid {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: minmax(220px, 1.6fr) repeat(3, minmax(140px, 1fr));
  margin-bottom: 0.75rem;
}

.user-activity-log-filter-grid label {
  color: #496473;
  display: grid;
  font-size: 0.76rem;
  font-weight: 850;
  gap: 0.28rem;
  text-transform: uppercase;
}

.user-activity-log-filter-grid input,
.user-activity-log-filter-grid select {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 8px;
  color: #0f2f4a;
  min-height: 2.4rem;
  padding: 0.5rem 0.65rem;
}

.user-activity-log-summary {
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.08), rgba(31, 154, 154, 0.12));
  border: 1px solid rgba(31, 154, 154, 0.18);
  border-radius: 10px;
  color: #0f2f4a;
  font-size: 0.88rem;
  font-weight: 800;
  margin-bottom: 0.8rem;
  padding: 0.65rem 0.75rem;
}

.user-activity-log-body {
  display: grid;
  gap: 0.65rem;
  max-height: min(54vh, 560px);
  overflow: auto;
  padding-right: 0.2rem;
}

.user-activity-log-item {
  align-items: start;
  background: #f8fafc;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  display: grid;
  gap: 0.8rem;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 0.85rem;
  position: relative;
}

.user-activity-log-item h3 {
  color: #0f2f4a;
  font-size: 1rem;
  margin: 0.1rem 0 0.25rem;
}

.user-activity-log-item p {
  color: #496473;
  margin: 0;
}

.user-activity-log-item span {
  color: #6b7d89;
  display: block;
  font-size: 0.82rem;
  margin-top: 0.35rem;
}

.user-activity-log-item small {
  color: #5f7482;
  display: block;
  font-size: 0.78rem;
  font-weight: 750;
  margin-top: 0.3rem;
  overflow-wrap: anywhere;
}

.user-activity-log-item .secondary-button {
  margin-top: 0.55rem;
}

.user-activity-file-row {
  align-items: center;
  background: #eef8f8;
  border: 1px solid rgba(31, 154, 154, 0.16);
  border-radius: 8px;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
  margin-top: 0.55rem;
  padding: 0.45rem 0.55rem;
}

.user-activity-status {
  background: #e8eef2;
  border-radius: 999px;
  color: #486070;
  font-size: 0.75rem;
  padding: 0.22rem 0.55rem;
  white-space: nowrap;
}

.user-activity-status.success,
.user-activity-status.completed,
.user-activity-status.ok {
  background: #d9f8eb;
  color: #0f6b4f;
}

.user-activity-status.failed,
.user-activity-status.error {
  background: #ffe1e1;
  color: #a82424;
}

.user-activity-log-footer {
  border-top: 1px solid rgba(15, 47, 74, 0.1);
  display: flex;
  justify-content: center;
  margin-top: 0.85rem;
  padding-top: 0.85rem;
}

.user-activity-technical-panel {
  max-height: min(86vh, 850px);
  max-width: min(860px, calc(100vw - 2rem));
  overflow: hidden;
}

.user-activity-technical-json {
  background: #061f32;
  border-radius: 10px;
  color: #dffafa;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  font-size: 0.82rem;
  line-height: 1.55;
  margin: 0;
  max-height: min(58vh, 560px);
  overflow: auto;
  padding: 1rem;
  white-space: pre-wrap;
}

@media (max-width: 760px) {
  .user-activity-log-filter-grid {
    grid-template-columns: 1fr;
  }

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

  .user-activity-status {
    justify-self: start;
  }
}

.user-editor-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.user-editor-panel,
.user-company-modal {
  position: fixed;
  inset: 0;
  z-index: 82;
  display: grid;
  place-items: center;
  padding: 1.4rem;
  background: rgba(15, 47, 74, 0.5);
}

.user-editor-panel form,
.user-company-modal form {
  width: min(1060px, 94vw);
  max-height: 88vh;
  overflow: auto;
  border-radius: 14px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.18), transparent 34%),
    linear-gradient(180deg, #0f2f4a 0%, #123956 230px, #f4f8f8 230px, #ffffff 100%);
  box-shadow: 0 30px 80px rgba(15, 47, 74, 0.28);
  padding: 1.1rem;
}

.user-editor-head {
  padding: 10px 8px 18px;
  color: #ffffff;
}

.user-editor-head h3,
.user-editor-head p,
.user-editor-head .eyebrow {
  color: #ffffff;
}

.user-editor-head .eyebrow {
  color: #62d5d1;
}

.user-editor-head .secondary-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.user-editor-head .secondary-button:hover {
  border-color: rgba(98, 213, 209, 0.68);
  background: #ffffff;
  color: #0f2f4a;
}

.user-editor-head .secondary-button.danger {
  color: #ff7b7b;
}

.user-editor-head .secondary-button.warning {
  color: #ffe49a;
}

.user-editor-panel .profile-form-grid,
.user-company-modal .profile-form-grid {
  padding: 18px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.22), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 72%, #1f6f76 130%);
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.user-editor-panel .profile-form-grid label,
.user-company-modal .profile-form-grid label {
  color: rgba(255, 255, 255, 0.92);
  font-size: 13px;
  font-weight: 900;
}

.user-editor-panel .profile-form-grid input,
.user-editor-panel .profile-form-grid select,
.user-company-modal .profile-form-grid input,
.user-company-modal .profile-form-grid select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 10px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 0 12px;
}

.user-editor-panel .profile-form-grid input:focus,
.user-editor-panel .profile-form-grid select:focus,
.user-company-modal .profile-form-grid input:focus,
.user-company-modal .profile-form-grid select:focus {
  outline: 2px solid rgba(47, 166, 163, 0.24);
  border-color: rgba(47, 166, 163, 0.72);
}

.user-password-panel,
.user-status-readonly {
  min-height: 46px;
  border: 1px solid rgba(98, 213, 209, 0.26);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.92);
  display: grid;
  gap: 6px;
  padding: 12px;
}

.user-password-panel span,
.user-status-readonly span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.user-password-panel strong,
.user-status-readonly strong {
  color: #ffffff;
  font-size: 0.96rem;
  line-height: 1.25;
}

.user-password-panel p,
.user-status-readonly p {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  line-height: 1.35;
  margin: 0;
}

.user-password-panel .secondary-button {
  align-self: end;
  justify-self: start;
  margin-top: 4px;
}

.permissions-editor {
  display: grid;
  gap: 0.75rem;
  margin-top: 1rem;
  padding: 18px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 12px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.22), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 72%, #1f6f76 130%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.permissions-editor > h3 {
  margin: 0;
  color: #ffffff;
}

.subscription-preset-panel {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at 96% 0%, rgba(94, 234, 212, 0.26), transparent 36%),
    rgba(255, 255, 255, 0.1);
}

.subscription-preset-panel h3 {
  margin: 0.15rem 0 0.25rem;
  color: #ffffff;
}

.subscription-preset-panel p {
  margin: 0;
  max-width: 60rem;
  color: rgba(255, 255, 255, 0.78);
}

.subscription-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 0.65rem;
}

.subscription-preset-card {
  min-height: 96px;
  border: 1px solid rgba(31, 167, 160, 0.2);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, rgba(241, 250, 250, 0.96) 54%, rgba(213, 248, 244, 0.9) 100%);
  color: #0b3551;
  padding: 0.85rem;
  text-align: left;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  box-shadow: 0 10px 24px rgba(3, 19, 32, 0.12);
  cursor: pointer;
  transition: transform 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, background 0.15s ease;
}

.subscription-preset-card strong {
  color: #082f4f;
  display: block;
  font-size: 0.98rem;
  font-weight: 900;
  line-height: 1.15;
}

.subscription-preset-card span {
  color: rgba(11, 53, 81, 0.8);
  display: block;
  font-size: 0.78rem;
  line-height: 1.35;
}

.subscription-preset-card:hover,
.subscription-preset-card.active {
  transform: translateY(-1px);
  border-color: rgba(94, 234, 212, 0.72);
  box-shadow: 0 14px 30px rgba(31, 167, 160, 0.2);
}

.subscription-preset-card.active {
  background:
    radial-gradient(circle at 92% 8%, rgba(94, 234, 212, 0.35), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #e7fffb 46%, #c8f7f1 100%);
  border-color: rgba(94, 234, 212, 0.92);
  color: #082f4f;
  box-shadow:
    0 0 0 2px rgba(94, 234, 212, 0.34),
    0 18px 34px rgba(31, 167, 160, 0.26);
}

.subscription-preset-card:hover strong,
.subscription-preset-card.active strong {
  color: #062842;
}

.subscription-preset-card.active span {
  color: rgba(8, 47, 79, 0.84);
}

.subscription-preset-status {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.8rem;
  align-items: center;
  padding: 0.7rem 0.85rem;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.subscription-preset-status span {
  color: rgba(255, 255, 255, 0.78);
}

.permission-groups {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: minmax(0, 1fr);
}

.permission-group {
  background: rgba(255, 255, 255, 0.1);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 10px;
  padding: 0.85rem;
}

.permission-group h4 {
  color: #ffffff;
  margin: 0 0 0.65rem;
}

.permission-options {
  display: grid;
  gap: 0.45rem 0.65rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.permission-check {
  align-items: center;
  color: rgba(255, 255, 255, 0.9);
  display: flex;
  font-size: 0.82rem;
  font-weight: 700;
  gap: 0.45rem;
  min-width: 0;
  padding: 6px 8px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.permission-check input {
  accent-color: #2fa6a3;
  flex: 0 0 auto;
  height: 14px;
  width: 14px;
}

.permission-check span {
  min-width: 0;
  overflow-wrap: break-word;
}

.user-invite-panel {
  align-items: flex-start;
  background: #ffffff;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 12px;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.1);
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
}

.user-invite-panel > div:first-child {
  flex: 1 1 280px;
  min-width: 0;
}

.user-invite-panel strong {
  color: #0f2f4a;
}

.user-invite-panel p {
  color: #5d7180;
  line-height: 1.45;
  margin: 0.25rem 0 0;
}

.user-invite-actions {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  flex: 0 0 auto;
  gap: 0.55rem;
  justify-content: flex-end;
  max-width: 100%;
}

.hidden-by-permission {
  display: none !important;
}

@media (max-width: 1180px) {
  .profile-section-grid,
  .profile-account-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  .profile-form-grid,
  .profile-section-grid,
  .profile-branding-row,
  .profile-account-grid,
  .permission-groups,
  .permission-options,
  .users-filter-row,
  .users-admin-grid {
    grid-template-columns: 1fr;
  }

  .user-invite-panel {
    align-items: stretch;
    flex-direction: column;
  }

  .user-invite-actions {
    justify-content: flex-start;
  }

  .profile-hero {
    align-items: stretch;
    flex-direction: column;
  }

  .profile-hero .primary-button {
    width: 100%;
  }

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

.agreements-shell {
  display: grid;
  gap: 1rem;
}

.agreements-hero,
.agreement-form-panel,
.agreement-intel-panel {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
  padding: 1.1rem;
}

.agreements-hero {
  background: linear-gradient(135deg, #0f2f4a 0%, #164464 68%, #2fa6a3 100%);
  color: #ffffff;
}

.agreements-hero h2,
.agreements-hero p {
  color: #ffffff;
}

.agreements-grid,
.agreement-form-grid,
.agreement-document-grid,
.agreement-proposal-grid {
  display: grid;
  gap: 0.9rem;
}

.agreements-grid,
.agreement-proposal-grid,
.agreement-document-grid {
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
}

.agreement-document-grid {
  align-items: stretch;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

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

.agreement-form-grid label,
.agreement-form-grid .wide {
  display: grid;
  gap: 0.35rem;
  color: #0f2f4a;
  font-weight: 700;
}

.agreement-form-grid .wide {
  grid-column: 1 / -1;
}

.agreement-form-grid input,
.agreement-form-grid textarea,
.agreement-form-grid select {
  border: 1px solid rgba(15, 47, 74, 0.18);
  border-radius: 10px;
  color: #0f2f4a;
  font: inherit;
  padding: 0.75rem;
}

.agreement-action-card,
.agreement-proposal-card,
.agreement-document-card {
  background: #f8fafc;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  display: grid;
  gap: 0.65rem;
  padding: 1rem;
}

.agreement-document-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 194px;
  flex-direction: column;
  justify-content: flex-start;
  overflow: hidden;
  border-color: rgba(47, 166, 163, 0.34);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.42), transparent 48%),
    linear-gradient(135deg, #0f2f4a 0%, #123957 62%, #2a7d89 145%);
  box-shadow: 0 18px 34px rgba(15, 47, 74, 0.18);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.agreement-document-card::after {
  content: "";
  position: absolute;
  inset: auto -18% -38% 18%;
  height: 92px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.24);
  filter: blur(22px);
  pointer-events: none;
}

.agreement-document-card > * {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.agreement-action-card h3,
.agreement-proposal-card h3,
.agreement-document-card h3 {
  color: #0f2f4a;
  margin: 0;
}

.agreement-document-card h3 {
  color: #ffffff;
  font-size: clamp(1rem, 1.25vw, 1.12rem);
  line-height: 1.2;
  overflow-wrap: break-word;
  word-break: normal;
}

.agreement-action-card p,
.agreement-proposal-card p,
.agreement-document-card p {
  color: #445;
  line-height: 1.55;
  margin: 0;
}

.agreement-document-card p,
.agreement-document-card .agreement-muted {
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.9rem;
  line-height: 1.45;
  overflow-wrap: break-word;
}

.agreement-document-main {
  display: grid;
  gap: 0.55rem;
  min-width: 0;
}

.agreement-document-meta,
.agreement-document-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  min-width: 0;
}

.agreement-document-meta span {
  max-width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.78rem;
  font-weight: 800;
  line-height: 1.2;
  overflow: hidden;
  padding: 0.28rem 0.55rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.agreement-saved-document-card {
  gap: 1rem;
}

.agreement-document-actions {
  margin-top: auto;
}

.agreement-document-card .compact-button,
.agreement-document-card .secondary-button {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 42px;
  margin-top: auto;
  padding: 0.72rem 0.9rem;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1.18;
  text-align: center;
}

.agreement-saved-document-card .compact-button,
.agreement-saved-document-card .secondary-button,
.agreement-saved-document-card .ghost-button {
  flex: 1 1 108px;
  margin-top: 0;
  width: auto;
  padding-inline: 0.7rem;
}

.agreement-document-card .secondary-button {
  border-color: rgba(255, 255, 255, 0.78);
  background: #ffffff;
  color: #0f2f4a;
  box-shadow: 0 10px 22px rgba(5, 22, 36, 0.2);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.agreement-document-card .secondary-button:hover {
  border-color: #2fa6a3;
  background: #ffffff;
  color: #0f2f4a;
  box-shadow: 0 14px 28px rgba(47, 166, 163, 0.28);
  transform: translateY(-1px);
}

.agreement-document-card .ghost-button {
  border-color: rgba(255, 255, 255, 0.44);
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.agreement-document-card .ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.82);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.agreement-badge {
  align-items: center;
  background: #2fa6a3;
  border-radius: 999px;
  color: #ffffff;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.25rem 0.65rem;
  width: fit-content;
}

.agreement-muted {
  color: #667085;
  font-size: 0.92rem;
}

.agreement-modal-body {
  display: grid;
  gap: 1rem;
}

.agreement-modal-section {
  background: #f8fafc;
  border-left: 4px solid #2fa6a3;
  border-radius: 10px;
  padding: 0.9rem;
  white-space: pre-wrap;
}

.agreement-modal-section h3 {
  color: #0f2f4a;
  margin-top: 0;
}

.agreement-preview-card {
  display: grid;
  gap: 0.85rem;
  min-height: min(72vh, 720px);
}

.agreement-preview-toolbar {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  justify-content: space-between;
}

.agreement-preview-toolbar span {
  color: #0f2f4a;
  font-weight: 800;
  min-width: 0;
  overflow-wrap: anywhere;
}

.agreement-preview-frame {
  width: 100%;
  min-height: min(68vh, 720px);
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 10px;
  background: #f7fbfb;
}

.agreement-send-panel {
  width: min(720px, 94vw);
}

.agreement-send-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
}

.agreement-send-form label {
  color: #0f2f4a;
  display: grid;
  font-weight: 800;
  gap: 0.4rem;
}

.agreement-send-form input,
.agreement-send-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  color: #0f2f4a;
  font: inherit;
  line-height: 1.5;
  padding: 0.75rem;
}

.agreement-send-form textarea {
  min-height: 150px;
  resize: vertical;
}

@media (max-width: 900px) {
  .agreement-form-grid {
    grid-template-columns: 1fr;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: var(--app-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
input,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app {
  min-height: 100vh;
}

.project-home {
  min-height: 100vh;
}

.home-layout {
  display: grid;
  grid-template-columns: 270px minmax(0, 1fr);
  gap: 18px;
  max-width: 1480px;
  margin: 0 auto;
  padding: 18px;
}

.platform-owner .home-layout {
  grid-template-columns: 270px minmax(0, 1fr) 206px;
  max-width: 1660px;
}

.module-sidebar {
  position: sticky;
  grid-column: 1;
  grid-row: 1 / span 60;
  top: 92px;
  display: grid;
  align-self: start;
  gap: 10px;
  z-index: 120;
  width: 100%;
  box-sizing: border-box;
  padding: 15px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.22), transparent 36%) padding-box,
    linear-gradient(155deg, rgba(15, 47, 74, 0.98), rgba(10, 32, 52, 0.98)) padding-box,
    linear-gradient(145deg, rgba(15, 47, 74, 0.95), rgba(47, 166, 163, 0.95), rgba(124, 255, 124, 0.28)) border-box;
  box-shadow:
    0 20px 46px rgba(15, 47, 74, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.08),
    inset 0 -18px 44px rgba(47, 166, 163, 0.08);
  overflow: visible;
  font-family: var(--nav-font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
  font-variant-ligatures: contextual common-ligatures;
}

.candidate-quick-search {
  position: relative;
  display: grid;
  gap: 6px;
  padding: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.07);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.candidate-quick-search label {
  color: rgba(255, 255, 255, 0.76);
  font-size: 9px;
  font-weight: 950;
  letter-spacing: 0.06em;
  line-height: 1;
  text-transform: uppercase;
}

.candidate-quick-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 34px;
  gap: 7px;
  align-items: center;
}

.candidate-quick-search input {
  min-width: 0;
  height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--navy);
  font-size: 12px;
  font-weight: 800;
  outline: none;
}

.candidate-quick-search input:focus {
  border-color: rgba(47, 166, 163, 0.9);
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.18);
}

.candidate-quick-search-row button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: linear-gradient(135deg, #0f6f78, var(--teal));
  color: #fff;
  cursor: pointer;
  box-shadow: 0 10px 20px rgba(5, 31, 50, 0.22);
}

.candidate-quick-search-row .icon {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.candidate-quick-results {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 420;
  display: grid;
  gap: 6px;
  max-height: 310px;
  overflow: auto;
  padding: 8px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.26);
}

.candidate-quick-results.hidden {
  display: none;
}

.candidate-quick-result {
  display: grid;
  gap: 2px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 11px;
  background: #f8fcfc;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.candidate-quick-result:hover,
.candidate-quick-result:focus-visible {
  border-color: rgba(47, 166, 163, 0.45);
  background: #eefafa;
}

.candidate-quick-result strong {
  font-size: 12px;
  line-height: 1.25;
}

.candidate-quick-result span,
.candidate-quick-message {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.candidate-quick-message {
  margin: 0;
  padding: 8px;
}

.candidate-360-shell {
  display: grid;
  width: 100%;
  max-width: none;
  gap: 14px;
}

.candidate-360-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border-radius: 18px;
  background:
    radial-gradient(circle at 92% 10%, rgba(124, 255, 124, 0.14), transparent 34%),
    linear-gradient(135deg, #082942 0%, #0f4560 54%, #0f817f 100%);
  color: #fff;
  box-shadow: 0 20px 48px rgba(15, 47, 74, 0.22);
  overflow: hidden;
}

.candidate-360-hero h2,
.candidate-360-hero p {
  margin: 0;
}

.candidate-360-hero .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.candidate-360-hero h2 {
  color: #fff;
  font-size: clamp(24px, 3vw, 36px);
  line-height: 1.05;
}

.candidate-360-hero p {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.candidate-360-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  min-width: min(100%, 360px);
}

.candidate-360-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.35);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.candidate-360-actions button,
.candidate-360-item button,
.candidate-360-group-footer button,
.candidate-360-history-row button {
  min-width: max-content;
  white-space: nowrap;
  overflow-wrap: normal;
  line-height: 1.15;
}

.candidate-360-actions .primary-button {
  border-color: rgba(47, 166, 163, 0.45);
  background: linear-gradient(135deg, var(--navy), #0f4560);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.22);
}

.candidate-360-actions .primary-button:hover,
.candidate-360-actions .primary-button:focus-visible {
  border-color: rgba(47, 166, 163, 0.68);
  background: linear-gradient(135deg, #0f4560, var(--teal));
  color: #ffffff;
}

.candidate-360-actions .primary-button:disabled {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.16);
  color: rgba(255, 255, 255, 0.76);
  box-shadow: none;
  cursor: not-allowed;
}

.candidate-360-profile {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.candidate-360-profile article,
.candidate-360-empty,
.candidate-360-group {
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-card);
}

.candidate-360-profile article {
  display: grid;
  gap: 10px;
  padding: 14px;
}

.candidate-360-profile-card {
  grid-template-columns: minmax(220px, 0.75fr) minmax(0, 2.25fr);
  align-items: center;
}

.candidate-360-profile-main {
  min-width: 0;
}

.candidate-360-profile-card h3,
.candidate-360-profile-card p {
  margin: 0;
}

.candidate-360-profile-card h3 {
  color: var(--navy);
  font-size: 16px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.candidate-360-profile-card p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.candidate-360-profile-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
}

.candidate-360-profile-grid span {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: #f8fcfc;
  color: var(--navy);
  font-size: 11px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.candidate-360-profile-grid strong {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.candidate-360-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 14px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.candidate-360-tabs button {
  min-height: 38px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  padding: 0 14px;
  background: #f8fcfc;
  color: var(--navy);
  font-size: 12px;
  font-weight: 950;
  cursor: pointer;
}

.candidate-360-tabs button.active {
  border-color: rgba(47, 166, 163, 0.45);
  background: linear-gradient(135deg, #082942 0%, #0f4560 58%, #168f8d 100%);
  color: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.16);
}

.candidate-360-tabs button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}

.candidate-360-groups {
  display: block;
  column-count: 4;
  column-gap: 14px;
  column-fill: balance;
}

.relationship-graph-shell {
  display: grid;
  gap: 14px;
}

.relationship-graph-toolbar,
.relationship-graph-canvas-card,
.relationship-graph-detail,
.relationship-graph-insights article {
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 16px;
  background: #ffffff;
  box-shadow: var(--shadow-card);
}

.relationship-graph-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

.relationship-graph-toolbar h3,
.relationship-graph-toolbar p {
  margin: 0;
}

.relationship-graph-toolbar h3 {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.2;
}

.relationship-graph-toolbar p:not(.eyebrow) {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.relationship-graph-controls {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.relationship-graph-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.relationship-graph-metrics article {
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(47, 166, 163, 0.15);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.16), transparent 36%),
    linear-gradient(135deg, #ffffff 0%, #f5fbfb 100%);
}

.relationship-graph-metrics span {
  display: block;
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.relationship-graph-metrics strong {
  display: block;
  margin-top: 4px;
  color: var(--navy);
  font-size: 22px;
  line-height: 1.05;
}

.relationship-graph-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 320px);
  gap: 14px;
  align-items: stretch;
}

.relationship-graph-canvas-card {
  min-height: 520px;
  padding: 8px;
  overflow: hidden;
  background:
    radial-gradient(circle at 15% 20%, rgba(47, 166, 163, 0.12), transparent 30%),
    linear-gradient(135deg, #f8fcfc 0%, #eef8f8 100%);
}

.relationship-graph-svg {
  width: 100%;
  min-height: 520px;
  display: block;
  cursor: grab;
}

.relationship-edge {
  stroke: rgba(15, 47, 74, 0.22);
  stroke-width: 2;
}

.relationship-edge-label {
  fill: rgba(15, 47, 74, 0.55);
  font-size: 9px;
  font-weight: 850;
  text-anchor: middle;
  paint-order: stroke;
  stroke: rgba(248, 252, 252, 0.84);
  stroke-width: 4px;
}

.relationship-node {
  filter: url("#relationshipNodeShadow");
  cursor: grab;
}

.relationship-node circle {
  stroke-width: 2.5;
  transition: stroke-width 0.16s ease, filter 0.16s ease;
}

.relationship-node.active circle,
.relationship-node:hover circle {
  stroke-width: 5;
}

.relationship-node-type,
.relationship-node-label {
  pointer-events: none;
  text-anchor: middle;
  font-weight: 950;
}

.relationship-node-type {
  font-size: 8px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relationship-node-label {
  font-size: 10px;
}

.relationship-graph-detail {
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 16px;
}

.relationship-graph-detail h3,
.relationship-graph-detail p {
  margin: 0;
}

.relationship-graph-detail h3 {
  color: var(--navy);
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.relationship-graph-detail p {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.relationship-graph-detail dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.relationship-graph-detail dl div {
  display: grid;
  gap: 3px;
  padding: 8px;
  border-radius: 10px;
  background: #f8fcfc;
}

.relationship-graph-detail dt {
  color: var(--muted);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.relationship-graph-detail dd {
  margin: 0;
  color: var(--navy);
  font-size: 12px;
  font-weight: 850;
  overflow-wrap: anywhere;
}

.relationship-graph-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.relationship-graph-detail-actions button {
  flex: 1 1 130px;
}

.relationship-graph-insights {
  display: grid;
  grid-template-columns: 1fr 1fr minmax(320px, 1.2fr);
  gap: 14px;
}

.relationship-graph-insights article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
}

.relationship-graph-insights h4 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

.relationship-graph-insights p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.relationship-chip,
.relationship-timeline-row {
  display: grid;
  gap: 3px;
  width: 100%;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 12px;
  padding: 10px;
  background: #f8fcfc;
  color: var(--navy);
  text-align: left;
  cursor: pointer;
}

.relationship-chip:hover,
.relationship-timeline-row:hover {
  border-color: rgba(47, 166, 163, 0.38);
  background: #effafa;
}

.relationship-chip strong,
.relationship-timeline-row strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.2;
}

.relationship-chip span,
.relationship-timeline-row span,
.relationship-timeline-row small {
  color: var(--muted);
  font-size: 10px;
  line-height: 1.3;
}

.relationship-missing-link,
.relationship-good-link {
  display: block;
  padding: 8px 10px;
  border-radius: 10px;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.35;
}

.relationship-missing-link {
  border: 1px solid rgba(245, 158, 11, 0.22);
  background: rgba(255, 251, 235, 0.9);
  color: #92400e;
}

.relationship-good-link {
  border: 1px solid rgba(47, 166, 163, 0.22);
  background: rgba(232, 251, 248, 0.9);
  color: var(--teal-strong);
}

.candidate-360-empty {
  display: grid;
  width: 100%;
  padding: 14px;
  break-inside: avoid;
}

.candidate-360-group {
  display: grid;
  width: 100%;
  min-width: 0;
  gap: 10px;
  align-content: start;
  padding: 14px;
  margin: 0 0 14px;
  break-inside: avoid;
  page-break-inside: avoid;
  -webkit-column-break-inside: avoid;
}

.candidate-360-group-wide {
  break-inside: avoid;
}

.candidate-360-group-compact {
  break-inside: avoid;
}

.candidate-360-group header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.candidate-360-group h3 {
  margin: 0;
  color: var(--navy);
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.candidate-360-item-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr));
  gap: 9px;
}

.candidate-360-count {
  flex: 0 0 auto;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.13);
  color: var(--teal-strong);
  font-size: 11px;
  font-weight: 950;
}

.candidate-360-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.07);
  border-radius: 11px;
  background: #f8fcfc;
}

.candidate-360-type-chip {
  grid-column: 1 / -1;
  justify-self: start;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: var(--teal-strong);
  font-size: 9px;
  font-weight: 950;
  line-height: 1.1;
  text-transform: uppercase;
}

.candidate-360-item-body {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.candidate-360-item strong {
  color: var(--navy);
  font-size: 12px;
  line-height: 1.25;
  overflow-wrap: break-word;
  word-break: normal;
}

.candidate-360-item p,
.candidate-360-item small {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
  overflow-wrap: break-word;
  word-break: normal;
}

.candidate-360-item p {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.candidate-360-item button {
  justify-self: start;
  min-height: 34px;
  min-width: 128px;
  align-self: end;
  white-space: nowrap;
}

.candidate-360-item .secondary-button,
.candidate-360-history-row .secondary-button,
.candidate-360-group-footer .secondary-button {
  border-color: rgba(47, 166, 163, 0.4);
  background: linear-gradient(135deg, var(--navy), #0f4560);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.16);
}

.candidate-360-item .secondary-button:hover,
.candidate-360-item .secondary-button:focus-visible,
.candidate-360-history-row .secondary-button:hover,
.candidate-360-history-row .secondary-button:focus-visible,
.candidate-360-group-footer .secondary-button:hover,
.candidate-360-group-footer .secondary-button:focus-visible {
  border-color: rgba(47, 166, 163, 0.66);
  background: linear-gradient(135deg, #0f4560, var(--teal));
  color: #ffffff;
}

.candidate-360-item-unavailable {
  border-color: rgba(148, 163, 184, 0.28);
  background: rgba(248, 250, 252, 0.78);
}

.candidate-360-unavailable {
  align-self: center;
  justify-self: end;
  max-width: 180px;
  border: 1px solid rgba(148, 163, 184, 0.28);
  border-radius: 999px;
  padding: 7px 10px;
  color: #64748b;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.15;
  text-align: center;
  background: #f8fafc;
}

.candidate-360-group-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.candidate-360-group-footer span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
}

.candidate-360-item-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.candidate-360-history-modal {
  align-items: center;
  justify-content: center;
  padding: 24px;
}

.candidate-360-history-panel {
  width: min(840px, calc(100vw - 32px));
  max-height: min(820px, calc(100vh - 48px));
  overflow: hidden;
  display: flex;
  flex-direction: column;
}

.candidate-360-history-filters {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 180px;
  gap: 12px;
  padding: 0 0 14px;
}

.candidate-360-history-filters label {
  display: grid;
  gap: 6px;
  color: var(--navy);
  font-size: 11px;
  font-weight: 900;
}

.candidate-360-history-filters input {
  min-width: 0;
  height: 40px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 10px;
  padding: 0 12px;
  background: #fff;
  color: var(--navy);
}

.candidate-360-history-list {
  display: grid;
  gap: 10px;
  overflow: auto;
  padding-right: 4px;
}

.candidate-360-history-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 12px;
  padding: 13px;
  background: linear-gradient(135deg, #ffffff 0%, #f6fbfb 100%);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.candidate-360-history-row div {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.candidate-360-history-row span {
  color: var(--teal-strong);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-360-history-row strong {
  color: var(--navy);
  font-size: 14px;
  line-height: 1.2;
}

.candidate-360-history-row p,
.candidate-360-history-row small {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.candidate-360-history-row p {
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.candidate-360-history-modal .candidate-360-history-row :is(.primary-button, .secondary-button, .compact-button):not(:disabled) {
  min-width: 128px;
  border-color: rgba(47, 166, 163, 0.5) !important;
  background: linear-gradient(135deg, #082942 0%, #0f4560 58%, #168f8d 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.2) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

.candidate-360-history-modal .candidate-360-history-row :is(.primary-button, .secondary-button, .compact-button):not(:disabled):hover,
.candidate-360-history-modal .candidate-360-history-row :is(.primary-button, .secondary-button, .compact-button):not(:disabled):focus-visible {
  border-color: rgba(47, 166, 163, 0.72) !important;
  background: linear-gradient(135deg, #0f4560 0%, #2fa6a3 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px);
}

.candidate-360-history-modal .candidate-360-history-row :is(.primary-button, .secondary-button, .compact-button):disabled {
  border-color: rgba(148, 163, 184, 0.36) !important;
  background: #eef3f5 !important;
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

.candidate-360-history-empty {
  border: 1px dashed rgba(15, 47, 74, 0.16);
  border-radius: 12px;
  padding: 20px;
  background: #f8fcfc;
}

@media (min-width: 1380px) {
  .candidate-360-groups {
    column-count: 4;
  }
}

@media (max-width: 1180px) {
  .candidate-360-profile {
    grid-template-columns: 1fr;
  }

  .candidate-360-groups {
    column-count: 2;
  }

  .candidate-360-profile-card,
  .candidate-360-profile-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .relationship-graph-layout,
  .relationship-graph-insights {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 760px) {
  .candidate-360-hero {
    flex-direction: column;
  }

  .candidate-360-actions {
    width: 100%;
    justify-content: stretch;
  }

  .candidate-360-actions button {
    flex: 1 1 180px;
  }

  .candidate-360-profile {
    grid-template-columns: 1fr;
  }

  .candidate-360-profile-card,
  .candidate-360-profile-grid {
    grid-template-columns: 1fr;
  }

  .candidate-360-groups {
    column-count: 1;
  }

  .candidate-360-tabs button {
    flex: 1 1 150px;
  }

  .relationship-graph-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .relationship-graph-controls button {
    flex: 1 1 88px;
  }

  .relationship-graph-metrics {
    grid-template-columns: 1fr;
  }

  .relationship-graph-canvas-card {
    min-height: 420px;
  }

  .relationship-graph-svg {
    min-height: 420px;
  }

  .candidate-360-group,
  .candidate-360-group-wide,
  .candidate-360-group-compact {
    margin-bottom: 12px;
  }

  .candidate-360-item {
    grid-template-columns: 1fr;
  }

  .candidate-360-item button {
    width: 100%;
  }

  .candidate-360-unavailable {
    justify-self: start;
    max-width: 100%;
  }

  .candidate-360-history-filters,
  .candidate-360-history-row {
    grid-template-columns: 1fr;
  }

  .candidate-360-history-panel {
    width: calc(100vw - 22px);
    max-height: calc(100vh - 22px);
  }
}

.home-module {
  grid-column: 2;
}

.platform-owner-sidebar {
  position: sticky;
  grid-column: 3;
  grid-row: 1 / span 60;
  top: 92px;
  align-self: start;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid transparent;
  border-radius: 18px;
  background:
    radial-gradient(circle at 0% 0%, rgba(124, 255, 124, 0.12), transparent 34%) padding-box,
    linear-gradient(155deg, rgba(15, 47, 74, 0.98), rgba(10, 32, 52, 0.98)) padding-box,
    linear-gradient(145deg, rgba(47, 166, 163, 0.9), rgba(15, 47, 74, 0.92), rgba(124, 255, 124, 0.26)) border-box;
  box-shadow:
    0 18px 38px rgba(15, 47, 74, 0.2),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.platform-owner-sidebar.hidden {
  display: none;
}

.platform-owner-eyebrow {
  margin: 0 2px 2px;
  color: rgba(255, 255, 255, 0.62);
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.platform-owner-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 13px;
  background: rgba(255, 255, 255, 0.06);
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  font-weight: 950;
  text-align: center;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.platform-owner-nav .icon {
  flex: 0 0 auto;
  width: 17px;
  height: 17px;
}

.platform-owner-nav span {
  min-width: 0;
  overflow: visible;
  text-overflow: clip;
  white-space: nowrap;
}

.platform-owner-nav:hover,
.platform-owner-nav.active {
  border-color: rgba(124, 255, 124, 0.36);
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.9), rgba(23, 113, 124, 0.9));
  color: #fff;
  box-shadow:
    0 14px 30px rgba(47, 166, 163, 0.25),
    0 0 22px rgba(124, 255, 124, 0.14);
  transform: translateY(-1px);
}

.module-nav-group {
  position: relative;
  display: grid;
  min-width: 0;
}

.module-category-button {
  display: flex;
  align-items: center;
  gap: 12px;
  width: 100%;
  min-height: 66px;
  box-sizing: border-box;
  padding: 12px 14px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-radius: 14px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.16), transparent 34%),
    rgba(255, 255, 255, 0.055);
  color: rgba(255, 255, 255, 0.9);
  font-family: var(--nav-font);
  letter-spacing: 0.012em;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.module-category-button .icon {
  flex: 0 0 auto;
  width: 21px;
  height: 21px;
}

.module-category-button > span {
  display: grid;
  flex: 1 1 auto;
  gap: 5px;
  min-width: 0;
}

.module-category-button strong,
.module-category-button small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.module-category-button strong {
  font-size: 14.5px;
  font-weight: 650;
  letter-spacing: 0.018em;
  line-height: 1.22;
}

.module-category-button small {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11.75px;
  font-weight: 500;
  letter-spacing: 0.02em;
  line-height: 1.25;
}

.module-category-chevron {
  flex: 0 0 auto;
  margin-left: auto;
  color: rgba(124, 255, 124, 0.9);
  font-style: normal;
  font-size: 22px;
  line-height: 1;
  transition: transform 0.18s ease;
}

.module-category-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-width: 1.6rem;
  min-height: 1.6rem;
  padding: 0.25rem 0.48rem;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 0.72rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 20px rgba(47, 166, 163, 0.22);
}

.module-nav-group.active .module-category-button,
.module-category-button:hover,
.module-nav-group.open .module-category-button {
  border-color: rgba(47, 166, 163, 0.52);
  background:
    radial-gradient(circle at 100% 0%, rgba(124, 255, 124, 0.14), transparent 34%),
    linear-gradient(135deg, rgba(47, 166, 163, 0.36), rgba(15, 47, 74, 0.38));
  box-shadow:
    0 12px 28px rgba(47, 166, 163, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.07);
  transform: translateY(-1px);
}

.module-nav-group.open .module-category-chevron {
  transform: rotate(90deg);
}

.module-flyout {
  position: absolute;
  top: 0;
  left: calc(100% + 12px);
  z-index: 140;
  display: none;
  width: min(310px, calc(100vw - 330px));
  max-height: calc(100vh - 122px);
  box-sizing: border-box;
  gap: 7px;
  padding: 11px;
  border: 1px solid rgba(47, 166, 163, 0.38);
  border-radius: 16px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(155deg, rgba(15, 47, 74, 0.98), rgba(8, 28, 46, 0.98));
  box-shadow:
    0 24px 54px rgba(5, 21, 36, 0.32),
    0 0 0 1px rgba(255, 255, 255, 0.05) inset;
  overflow: auto;
}

.module-nav-group.open > .module-flyout {
  display: grid;
}

.module-flyout .module-nav {
  min-height: 44px;
  padding: 0 13px;
  font-size: 13.25px;
}

.module-flyout .module-nav .icon {
  width: 17px;
  height: 17px;
}

.module-nav {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  margin: 0 auto;
  padding: 0 14px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.045);
  color: rgba(255, 255, 255, 0.78);
  font-family: var(--nav-font);
  font-size: 13.25px;
  font-weight: 560;
  letter-spacing: 0.014em;
  text-align: left;
  line-height: 1.24;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.module-nav .icon {
  flex: 0 0 auto;
  width: 18px;
  height: 18px;
}

.module-nav span {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-weight: inherit;
  letter-spacing: inherit;
}

.nav-badge {
  flex: 0 0 auto;
  min-width: 22px;
  height: 22px;
  display: inline-grid;
  place-items: center;
  margin-left: auto;
  border-radius: 999px;
  background: #7cff7c;
  color: #0f2f4a;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(124, 255, 124, 0.32);
}

.nav-badge.hidden {
  display: none;
}

.module-nav:not(.active):hover {
  border-color: rgba(47, 166, 163, 0.48);
  background: rgba(47, 166, 163, 0.14);
  color: #fff;
  box-shadow:
    0 10px 24px rgba(47, 166, 163, 0.14),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  transform: translateY(-1px);
}

.module-nav.active {
  border-color: rgba(122, 231, 226, 0.72);
  background: linear-gradient(135deg, #2fa6a3 0%, #238e94 52%, #17717c 100%);
  color: #fff;
  box-shadow:
    0 14px 30px rgba(47, 166, 163, 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body.auth-ready {
  background: var(--theme-bg);
}

.module-sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb), 0.22), transparent 36%) padding-box,
    linear-gradient(155deg, rgba(var(--theme-primary-rgb), 0.98), rgba(8, 28, 46, 0.98)) padding-box,
    linear-gradient(145deg, rgba(var(--theme-primary-rgb), 0.95), rgba(var(--theme-secondary-rgb), 0.95), rgba(var(--theme-accent-rgb), 0.28)) border-box;
}

.module-category-button {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb), 0.16), transparent 34%),
    rgba(255, 255, 255, 0.055);
}

.module-nav-group.active .module-category-button,
.module-category-button:hover,
.module-nav-group.open .module-category-button {
  border-color: rgba(var(--theme-secondary-rgb), 0.52);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), 0.14), transparent 34%),
    linear-gradient(135deg, rgba(var(--theme-secondary-rgb), 0.36), rgba(var(--theme-primary-rgb), 0.38));
}

.module-flyout {
  border-color: rgba(var(--theme-secondary-rgb), 0.38);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb), 0.26), transparent 38%),
    linear-gradient(155deg, rgba(var(--theme-primary-rgb), 0.98), rgba(8, 28, 46, 0.98));
}

.module-nav:not(.active):hover {
  border-color: rgba(var(--theme-secondary-rgb), 0.48);
  background: rgba(var(--theme-secondary-rgb), 0.14);
}

.module-nav.active {
  border-color: rgba(var(--theme-accent-rgb), 0.72);
  background: var(--theme-gradient);
  box-shadow:
    0 14px 30px rgba(var(--theme-secondary-rgb), 0.3),
    0 0 0 1px rgba(255, 255, 255, 0.08) inset;
}

body.auth-ready.theme-spacing-compact .home-layout,
body.auth-ready.theme-spacing-compact .project-shell,
body.auth-ready.theme-spacing-compact .dashboard-shell,
body.auth-ready.theme-spacing-compact .settings-page {
  gap: var(--theme-density-gap);
}

body.auth-ready.theme-spacing-spacious .home-layout,
body.auth-ready.theme-spacing-spacious .project-shell,
body.auth-ready.theme-spacing-spacious .dashboard-shell,
body.auth-ready.theme-spacing-spacious .settings-page {
  gap: var(--theme-density-gap);
}

body.auth-ready :where(.project-create, .dashboard-panel, .project-card, .settings-main, .settings-panel, .profile-section-card, .users-list-panel, .user-card, .user-company-card, .template-hub-section, .template-hub-card, .personalization-presets-card, .personalization-form, .theme-preview-card, .email-account-list-card, .email-account-form, .email-form-card) {
  border-radius: var(--theme-card-radius);
  box-shadow: var(--theme-panel-shadow);
}

body.auth-ready :where(.primary-button, .secondary-button, .ghost-button, .compact-button, .module-nav, .platform-owner-nav, .settings-nav, .logbook-nav, .stable-select-button, .theme-preview-button):not(.icon-button) {
  border-radius: var(--theme-button-radius);
}

body.auth-ready.theme-button-gradient :where(.primary-button, .module-nav.active, .settings-nav.active, .logbook-nav.active, .theme-preview-button):not(.icon-button) {
  background: var(--theme-gradient);
}

body.auth-ready.theme-card-rounded :where(.module-sidebar, .platform-owner-sidebar) {
  border-radius: 24px;
}

body.auth-ready.theme-card-compact :where(.module-sidebar, .platform-owner-sidebar) {
  border-radius: 12px;
}

body.auth-ready.theme-card-spacious :where(.module-sidebar, .platform-owner-sidebar) {
  border-radius: 20px;
}

body.auth-ready.theme-nav-topbar .home-layout {
  grid-template-columns: minmax(0, 1fr);
  grid-template-rows: auto auto;
  max-width: 1580px;
}

body.auth-ready.theme-nav-topbar.platform-owner .home-layout {
  grid-template-columns: minmax(0, 1fr);
}

body.auth-ready.theme-nav-topbar .module-sidebar {
  position: relative;
  top: auto;
  grid-column: 1;
  grid-row: 1;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 10px;
  overflow: visible;
  overflow-y: visible;
  padding: 12px 18px;
  z-index: 520;
}

body.auth-ready.theme-nav-topbar .module-nav-group {
  flex: 0 1 218px;
  width: auto;
  min-width: 178px;
  max-width: 236px;
}

body.auth-ready.theme-nav-topbar .module-category-button {
  min-height: 58px;
  justify-content: center;
}

body.auth-ready.theme-nav-topbar .module-flyout {
  top: calc(100% + 10px);
  left: 50%;
  transform: translateX(-50%);
  width: min(320px, calc(100vw - 36px));
  max-height: min(520px, calc(100vh - 210px));
  overflow: auto;
}

body.auth-ready.theme-nav-topbar .home-module {
  grid-column: 1;
  grid-row: 2;
}

body.auth-ready.theme-nav-topbar .platform-owner-sidebar {
  position: relative;
  top: auto;
  grid-column: 1;
  grid-row: 3;
  display: flex;
  align-items: center;
  overflow-x: auto;
}

body.auth-ready.theme-nav-topbar .platform-owner-sidebar.hidden {
  display: none;
}

body.auth-ready.theme-nav-topbar .platform-owner-eyebrow {
  align-self: center;
  margin: 0;
  white-space: nowrap;
}

body.auth-ready.theme-nav-topbar .platform-owner-nav {
  flex: 0 0 auto;
  width: auto;
  min-width: 168px;
}

body.auth-ready.theme-nav-compact-sidebar .home-layout {
  grid-template-columns: 220px minmax(0, 1fr);
}

body.auth-ready.theme-nav-compact-sidebar.platform-owner .home-layout {
  grid-template-columns: 220px minmax(0, 1fr) 194px;
}

body.auth-ready.theme-nav-compact-sidebar .module-sidebar {
  padding: 12px;
}

body.auth-ready.theme-nav-compact-sidebar .module-category-button {
  min-height: 54px;
  padding: 10px 12px;
}

body.auth-ready.theme-nav-compact-sidebar .module-category-button small {
  display: none;
}

body.auth-ready.theme-nav-icon-sidebar .home-layout {
  grid-template-columns: 86px minmax(0, 1fr);
}

body.auth-ready.theme-nav-icon-sidebar.platform-owner .home-layout {
  grid-template-columns: 86px minmax(0, 1fr) 184px;
}

body.auth-ready.theme-nav-icon-sidebar .module-sidebar {
  padding: 10px;
}

body.auth-ready.theme-nav-icon-sidebar .module-category-button {
  justify-content: center;
  min-height: 56px;
  padding: 10px;
}

body.auth-ready.theme-nav-icon-sidebar .module-category-button > span,
body.auth-ready.theme-nav-icon-sidebar .module-category-chevron {
  display: none;
}

body.auth-ready.theme-nav-icon-sidebar .module-category-button .icon {
  width: 23px;
  height: 23px;
}

body.auth-ready.theme-nav-icon-sidebar .module-flyout {
  left: calc(100% + 10px);
  width: min(300px, calc(100vw - 126px));
}

body.auth-ready.theme-header-minimal .module-sidebar,
body.auth-ready.theme-header-minimal .platform-owner-sidebar {
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb), 0.16), transparent 36%) padding-box,
    linear-gradient(155deg, rgba(255, 255, 255, 0.96), rgba(245, 252, 252, 0.96)) padding-box,
    linear-gradient(145deg, rgba(var(--theme-secondary-rgb), 0.42), rgba(var(--theme-primary-rgb), 0.2)) border-box;
}

body.auth-ready.theme-header-minimal .module-flyout {
  border-color: rgba(var(--theme-secondary-rgb), 0.34);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb), 0.14), transparent 38%),
    linear-gradient(155deg, rgba(255, 255, 255, 0.98), rgba(244, 252, 252, 0.98));
  box-shadow:
    0 22px 48px rgba(var(--theme-primary-rgb), 0.16),
    inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

body.auth-ready.theme-header-minimal :where(.module-category-button, .module-nav, .platform-owner-nav) {
  border-color: rgba(var(--theme-primary-rgb), 0.12);
  color: var(--theme-primary);
  background: rgba(var(--theme-secondary-rgb), 0.08);
}

body.auth-ready.theme-header-minimal :where(.module-category-button small, .module-nav small) {
  color: rgba(var(--theme-primary-rgb), 0.7);
}

body.auth-ready.theme-header-minimal .module-nav.active,
body.auth-ready.theme-header-minimal .platform-owner-nav.active {
  border-color: rgba(var(--theme-accent-rgb), 0.72);
  background: var(--theme-gradient);
  color: #fff;
}

body.auth-ready.theme-header-minimal .module-nav-group.active .module-category-button,
body.auth-ready.theme-header-minimal .module-category-button:hover,
body.auth-ready.theme-header-minimal .module-nav-group.open .module-category-button {
  border-color: rgba(var(--theme-secondary-rgb), 0.42);
  background: rgba(var(--theme-secondary-rgb), 0.16);
}

body.auth-ready.theme-header-executive .module-sidebar,
body.auth-ready.theme-header-executive .platform-owner-sidebar {
  box-shadow:
    0 28px 60px rgba(var(--theme-primary-rgb), 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
}

.home-module {
  display: none;
  min-width: 0;
}

.home-module.active {
  display: block;
}

.project-shell {
  display: grid;
  gap: 18px;
  max-width: 1160px;
  margin: 0;
}

.project-create {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 420px);
  gap: 22px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 22px;
}

.project-create h2 {
  margin: 0;
  font-size: clamp(28px, 4vw, 46px);
  line-height: 1.02;
  letter-spacing: 0;
}

.project-create p:not(.eyebrow) {
  max-width: 680px;
  margin: 12px 0 0;
  color: var(--muted);
  line-height: 1.55;
}

.project-form {
  display: grid;
  gap: 10px;
}

.project-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 6px 0 12px;
}

.project-toolbar h2 {
  margin: 0;
  font-size: 18px;
}

.project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.pitch-start-shell {
  max-width: 1220px;
}

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

.pitch-route-card {
  display: grid;
  gap: 12px;
  min-height: 220px;
  padding: 24px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #1c466b);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.18);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pitch-route-card:hover {
  border-color: #4fc5c1;
  box-shadow: 0 22px 46px rgba(15, 47, 74, 0.24);
  transform: translateY(-2px);
}

.pitch-route-card.active {
  border-color: rgba(122, 231, 226, 0.76);
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.28), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 60%, #2fa6a3 132%);
  box-shadow:
    0 22px 46px rgba(15, 47, 74, 0.24),
    0 0 0 1px rgba(122, 231, 226, 0.16) inset;
}

.pitch-route-card strong {
  color: #ffffff;
  font-size: clamp(26px, 3vw, 38px);
  line-height: 1.05;
}

.pitch-route-card p {
  max-width: 520px;
  margin: 0;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.route-kicker,
.project-type-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.project-type-pill.company {
  background: #0f2f4a;
}

.pitch-builder-panel,
.pitch-linked-candidate-box,
.linked-candidate-summary {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.pitch-builder-panel {
  padding: 0 20px;
  max-height: 0;
  overflow: hidden;
  opacity: 0;
  transform: translateY(-8px);
  transition:
    max-height 0.28s ease,
    padding 0.24s ease,
    opacity 0.2s ease,
    transform 0.2s ease;
}

.pitch-builder-panel.is-open {
  padding: 20px;
  max-height: 6200px;
  opacity: 1;
  transform: translateY(0);
}

.pitch-builder-panel.is-closing {
  pointer-events: none;
}

.pitch-builder-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}

.pitch-builder-cancel {
  flex: 0 0 auto;
  border-color: rgba(47, 166, 163, 0.28);
}

.pitch-builder-cancel:hover {
  border-color: rgba(47, 166, 163, 0.72);
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.18);
  transform: translateY(-1px);
}

.pitch-builder-head h2,
.pitch-builder-head p {
  margin: 0;
}

.pitch-builder-head h2 {
  color: #0f2f4a;
  font-size: 26px;
}

.pitch-builder-head p:not(.eyebrow) {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.5;
}

.pitch-builder-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 13px;
}

.pitch-builder-form label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.pitch-builder-form .wide,
.pitch-builder-form .upload-row {
  grid-column: 1 / -1;
}

.pitch-linked-candidate-box,
.linked-candidate-summary {
  padding: 14px;
  background: rgba(47, 166, 163, 0.08);
}

.pitch-linked-candidate-box strong,
.linked-candidate-summary strong {
  color: #0f2f4a;
  font-size: 16px;
}

.pitch-linked-candidate-box p,
.linked-candidate-summary p {
  margin: 0;
  color: #344b5d;
  line-height: 1.45;
}

.pitch-candidate-picker {
  gap: 10px;
}

.pitch-candidate-picker label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.pitch-candidate-picker select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 800;
  padding: 10px 12px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

.pitch-candidate-picker select:focus {
  outline: 2px solid rgba(47, 166, 163, 0.28);
  border-color: rgba(47, 166, 163, 0.65);
}

.project-card,
.project-empty {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.project-card {
  position: relative;
  display: grid;
  gap: 16px;
  align-content: space-between;
  min-height: 150px;
  padding-right: 42px;
}

.project-delete-button,
.saved-match-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.project-delete-button:hover,
.saved-match-delete:hover {
  border-color: rgba(159, 63, 77, 0.35);
  color: var(--rose);
}

.project-card h3,
.project-empty h3 {
  margin: 0 0 8px;
  font-size: 20px;
}

.project-card p,
.project-empty p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.pitch-projects-board {
  display: grid;
  gap: 14px;
}

.saved-pitches-shell {
  display: grid;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 45px rgba(15, 47, 74, 0.08);
}

.saved-pitches-head {
  align-items: center;
  margin-bottom: 0;
}

.saved-pitches-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.saved-pitch-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 250, 0.96)),
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.18), transparent 34%);
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.saved-pitch-card h3 {
  margin: 0;
  color: #0f2f4a;
  font-size: 20px;
}

.saved-pitch-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.saved-pitch-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  font-size: 13px;
}

.saved-pitch-meta span {
  display: grid;
  gap: 2px;
  padding: 9px 10px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f2f4a;
  font-weight: 800;
}

.saved-pitch-meta small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.saved-pitch-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.saved-pitch-status {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  gap: 6px;
  padding: 5px 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f6c6a;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.saved-pitch-status.status-bezig {
  background: rgba(15, 47, 74, 0.1);
  color: #0f2f4a;
}

.saved-pitch-status.status-fout {
  background: rgba(159, 63, 77, 0.12);
  color: var(--rose);
}

.saved-pitches-empty {
  padding: 24px;
  border: 1px dashed rgba(47, 166, 163, 0.35);
  border-radius: 8px;
  background: #f7fbfb;
  color: var(--muted);
  text-align: center;
}

@media (max-width: 900px) {
  .saved-pitches-grid,
  .saved-pitch-meta {
    grid-template-columns: 1fr;
  }
}

.pitch-projects-board .project-toolbar {
  margin: 2px 0 0;
}

.pitch-projects-board .project-toolbar h2 {
  color: #0f2f4a;
  font-size: 26px;
}

.pitch-project-columns {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.pitch-project-section {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
}

.pitch-project-section > header {
  display: grid;
  gap: 5px;
}

.pitch-project-section > header h3,
.pitch-project-section > header p {
  margin: 0;
}

.pitch-project-section > header h3 {
  color: #0f2f4a;
  font-size: 22px;
}

.pitch-project-section > header p {
  color: var(--muted);
  line-height: 1.45;
}

.pitch-project-section > header .eyebrow {
  color: #2fa6a3;
}

.project-grid-split {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pitch-project-section .project-empty {
  grid-column: 1 / -1;
  border-color: rgba(47, 166, 163, 0.22);
  background: #f7fbfb;
  box-shadow: none;
}

.pitch-project-section .project-card {
  gap: 10px;
  min-height: 320px;
  padding: 12px;
  border-color: rgba(98, 213, 209, 0.28);
  background:
    radial-gradient(circle at 92% 4%, rgba(47, 166, 163, 0.32), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 126%);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.18);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pitch-project-section .project-card.company-project-card {
  background:
    radial-gradient(circle at 10% 0%, rgba(98, 213, 209, 0.24), transparent 36%),
    linear-gradient(135deg, #0c263f 0%, #0f2f4a 62%, #2fa6a3 145%);
}

.pitch-project-section .project-card:hover {
  border-color: rgba(98, 213, 209, 0.72);
  box-shadow: 0 24px 52px rgba(15, 47, 74, 0.28);
  transform: translateY(-2px);
}

.project-card-main {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 238px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #ffffff;
  text-align: left;
}

.project-card-main h3,
.project-card-main strong,
.project-card-main p,
.project-card-main small {
  margin: 0;
  color: #ffffff;
}

.project-card-main h3 {
  font-size: 20px;
  line-height: 1.14;
}

.project-card-main strong {
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  line-height: 1.35;
}

.project-card-main p {
  display: -webkit-box;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
}

.project-card-main dl {
  display: grid;
  gap: 7px;
  margin: auto 0 0;
  padding-top: 8px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
}

.project-card-main dl div {
  display: grid;
  gap: 3px;
}

.project-card-main dt {
  color: #62d5d1;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.project-card-main dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  line-height: 1.35;
}

.project-card-main small {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  line-height: 1.35;
}

.pitch-project-section .project-card .secondary-button {
  width: 100%;
  border-color: rgba(255, 255, 255, 0.4);
  background: #ffffff;
  color: #0f2f4a;
}

.pitch-project-section .project-card .secondary-button:hover {
  border-color: #62d5d1;
  background: #eefafa;
  color: #0f2f4a;
}

.project-card-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  width: 100%;
}

.project-card-actions .secondary-button {
  min-height: 38px;
  white-space: nowrap;
}

.pitch-project-section .project-delete-button {
  border-color: rgba(255, 255, 255, 0.2);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.pitch-project-section .project-delete-button:hover {
  border-color: rgba(255, 255, 255, 0.55);
  background: #ffffff;
  color: var(--rose);
}

.saved-match-panel {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-top: 1px solid var(--line);
}

.saved-match-list {
  display: grid;
  gap: 10px;
}

.saved-match-card {
  position: relative;
  display: grid;
  gap: 8px;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.saved-match-card h3,
.saved-match-card p {
  margin: 0;
}

.saved-match-card h3 {
  font-size: 14px;
}

.saved-match-card p {
  color: var(--muted);
  font-size: 12px;
}

.manual-search-shell {
  display: grid;
  gap: 16px;
}

.manual-search-panel,
.manual-search-results {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.manual-search-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.apollo-global-panel {
  gap: 18px;
}

.apollo-global-search {
  display: grid;
  gap: 10px;
}

.apollo-global-search > label {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.apollo-global-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: stretch;
}

.apollo-global-search-row input {
  min-height: 48px;
  font-size: 15px;
}

.apollo-query-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.apollo-query-examples span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.09);
  color: #0f5d61;
  font-size: 12px;
  font-weight: 800;
}

.apollo-advanced-filters {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #f8fbfb;
}

.apollo-advanced-filters summary {
  cursor: pointer;
  padding: 12px 14px;
  color: var(--ink);
  font-weight: 900;
}

.apollo-advanced-filters[open] summary {
  border-bottom: 1px solid var(--line);
}

.apollo-advanced-filters .manual-search-grid {
  padding: 14px;
}

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

.manual-search-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.manual-search-card h3,
.manual-results-section h2 {
  margin: 0;
  font-size: 16px;
}

.manual-results-section {
  display: grid;
  gap: 12px;
}

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

.manual-result-card {
  display: grid;
  gap: 9px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.manual-result-card h3,
.manual-result-card p {
  margin: 0;
}

.manual-result-card h3 {
  font-size: 16px;
}

.apollo-result-summary {
  display: flex;
  gap: 14px;
  align-items: center;
  justify-content: space-between;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.06), rgba(47, 166, 163, 0.09));
  padding: 14px;
}

.apollo-result-summary h2,
.apollo-result-summary p {
  margin: 0;
}

.apollo-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
}

.apollo-field-grid span {
  display: grid;
  gap: 2px;
  min-width: 0;
  padding: 8px;
  border-radius: 10px;
  background: rgba(15, 47, 74, 0.04);
  color: var(--ink);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.apollo-field-grid strong {
  color: var(--muted);
  font-size: 10px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

@media (max-width: 1280px) {
  .manual-result-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .manual-result-grid,
  .manual-search-grid,
  .manual-search-grid.compact {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .apollo-global-search-row {
    grid-template-columns: 1fr;
  }

  .apollo-result-summary {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .manual-result-grid,
  .manual-search-grid,
  .manual-search-grid.compact {
    grid-template-columns: 1fr;
  }
}

.manual-result-card p {
  color: #273530;
  font-size: 13px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.search-project-shell,
.search-project-overview,
.search-project-detail {
  display: grid;
  gap: 18px;
}

.search-project-overview.hidden,
.search-project-detail.hidden {
  display: none;
}

.search-project-head,
.search-project-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-project-head h2,
.search-project-detail-toolbar h2 {
  margin: 2px 0 0;
  color: var(--brand);
}

.search-project-detail-toolbar {
  align-items: flex-start;
}

.search-project-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.search-project-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(270px, 1fr));
  gap: 16px;
}

.search-project-card,
.search-project-empty-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.search-project-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.search-project-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 166, 163, 0.5);
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.search-project-card > .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.search-project-card-main {
  display: grid;
  width: 100%;
  min-height: 330px;
  gap: 10px;
  padding: 18px;
  padding-right: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.search-project-card-main strong {
  color: var(--brand);
  font-size: 20px;
  line-height: 1.2;
}

.search-project-card-main > span:not(.search-project-status) {
  color: var(--muted);
  font-weight: 800;
}

.search-project-card-main p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.search-project-card-main dl {
  display: grid;
  gap: 6px;
  margin: auto 0 0;
}

.search-project-card-main dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.search-project-card-main dt {
  font-weight: 900;
}

.search-project-status,
.search-project-card-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: start;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.13);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.search-project-status {
  background: var(--brand);
  color: #fff;
}

.search-project-card-footer,
.search-project-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.search-project-card-actions {
  padding: 0 18px 18px;
}

.search-project-empty-card {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.search-project-empty-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
}

.search-project-premium-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.42), transparent 34%),
    linear-gradient(145deg, #0f2f4a 0%, #123a58 58%, #174b61 100%);
  box-shadow: 0 20px 42px rgba(15, 47, 74, 0.2);
}

.search-project-premium-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 166, 163, 0.72);
  box-shadow: 0 28px 58px rgba(15, 47, 74, 0.28), 0 0 0 4px rgba(47, 166, 163, 0.08);
}

.search-project-premium-card > .search-project-delete-button {
  width: 42px;
  height: 42px;
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
}

.search-project-premium-card > .search-project-delete-button svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.search-project-premium-card > .search-project-delete-button:hover {
  background: #ffffff;
  color: var(--rose);
}

.search-project-premium-card .search-project-card-main {
  min-height: 430px;
  padding: 20px;
  padding-right: 58px;
  color: #ffffff;
}

.search-project-premium-card .search-project-status {
  background: rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
}

.search-project-premium-card .search-project-card-main strong {
  color: #ffffff;
  font-size: 24px;
  line-height: 1.12;
}

.search-project-premium-card .search-project-type {
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.search-project-premium-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.83);
  line-height: 1.5;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.search-project-stat-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.search-project-stat {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px 9px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 14px;
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.94), rgba(42, 191, 186, 0.72));
  box-shadow: 0 14px 24px rgba(0, 0, 0, 0.12);
}

.search-project-stat b {
  color: #ffffff;
  font-size: 24px;
  line-height: 1;
}

.search-project-stat span {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.1;
}

.search-project-premium-card .search-project-card-main dl {
  gap: 8px;
  margin-top: 2px;
}

.search-project-premium-card .search-project-card-main dl div {
  color: rgba(255, 255, 255, 0.78);
}

.search-project-premium-card .search-project-card-main dt {
  color: #ffffff;
}

.search-project-premium-card .search-project-card-main dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-align: right;
}

.search-project-premium-card .search-project-card-footer span {
  background: rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
}

.search-project-premium-card .search-project-card-actions {
  padding: 0 20px 20px;
}

.search-project-premium-card .mini-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: #ffffff;
  color: #0f2f4a;
  font-weight: 900;
}

.search-project-premium-card .mini-button:hover {
  border-color: rgba(47, 166, 163, 0.72);
  background: #f3fffe;
  color: #0f2f4a;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.22);
}

.semantic-search-panel {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.08);
}

.semantic-search-panel h3,
.semantic-search-panel p {
  margin: 0;
}

.semantic-search-panel h3 {
  color: #0f2f4a;
}

.semantic-search-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
}

.semantic-search-row input {
  width: 100%;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  padding: 0 12px;
}

.semantic-result-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.semantic-result-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.semantic-result-card:hover {
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 16px 32px rgba(15, 47, 74, 0.14);
  transform: translateY(-1px);
}

.semantic-result-card span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.semantic-result-card p {
  color: #4d5f6e;
  line-height: 1.45;
}

.match-project-shell {
  display: grid;
  gap: 18px;
}

.match-project-score-badge {
  display: grid;
  gap: 7px;
  padding: 11px 12px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: var(--radius);
  background: rgba(47, 166, 163, 0.09);
}

.match-project-score-badge b {
  color: var(--brand);
  font-size: 22px;
  line-height: 1;
}

.match-project-score-badge span {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.12);
}

.match-project-score-badge i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight));
}

.match-project-shell .search-project-head {
  align-items: center;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 22px;
  background:
    radial-gradient(circle at 86% 16%, rgba(47, 166, 163, 0.48), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #123a58 52%, #2fa6a3 145%);
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.24);
  color: #fff;
}

.match-project-shell .search-project-head h2,
.match-project-shell .search-project-head p {
  color: #fff;
}

.match-project-shell .search-project-head h2 {
  font-size: clamp(27px, 3vw, 40px);
  line-height: 1.05;
}

.match-project-shell .search-project-head p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.82);
}

.match-project-shell .search-project-head .eyebrow {
  color: rgba(255, 255, 255, 0.72);
}

.match-project-shell .search-project-head .primary-button {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: linear-gradient(135deg, #0b253d, #0f2f4a 58%, rgba(47, 166, 163, 0.82));
  color: #fff;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.2);
}

.match-project-shell .search-project-head .primary-button:hover {
  transform: translateY(-1px);
  box-shadow: 0 20px 38px rgba(47, 166, 163, 0.28);
}

.match-project-shell .search-project-filter-row {
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.1);
}

.match-project-shell .search-project-filter-row input,
.match-project-shell .search-project-filter-row select {
  width: 100%;
  min-height: 48px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 14px;
  background-color: #f8fbfc;
  color: #0f2f4a;
  font-weight: 800;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85);
}

.match-project-shell .search-project-filter-row input {
  padding-left: 46px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%232FA6A3' stroke-width='2.3' stroke-linecap='round' stroke-linejoin='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.6-3.6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: 16px 50%;
  background-size: 18px;
}

.match-project-shell .search-project-filter-row input:focus,
.match-project-shell .search-project-filter-row select:focus {
  border-color: rgba(47, 166, 163, 0.55);
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.12);
  outline: none;
}

.match-project-shell .search-project-grid {
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 18px;
}

.match-project-card {
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 22px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.42), transparent 34%),
    linear-gradient(145deg, #0f2f4a 0%, #123a58 58%, #174b61 100%);
  box-shadow: 0 20px 42px rgba(15, 47, 74, 0.2);
}

.match-project-card:hover {
  transform: translateY(-4px);
  border-color: rgba(47, 166, 163, 0.72);
  box-shadow: 0 28px 58px rgba(15, 47, 74, 0.28), 0 0 0 4px rgba(47, 166, 163, 0.08);
}

.match-project-card > .icon-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.match-project-card > .icon-button:hover {
  background: #fff;
  color: var(--rose);
}

.match-project-card .search-project-card-main {
  min-height: 390px;
  padding: 20px;
  padding-right: 54px;
  color: #fff;
}

.match-project-card .search-project-status {
  background: rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
}

.match-project-card .search-project-card-main strong {
  color: #fff;
  font-size: 22px;
  line-height: 1.16;
}

.match-project-card .match-project-code {
  color: rgba(255, 255, 255, 0.84);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.match-project-card .match-project-summary {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.83);
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  mask-image: linear-gradient(180deg, #000 72%, transparent 100%);
}

.match-project-card .match-project-score-badge {
  border-color: rgba(255, 255, 255, 0.22);
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.96), rgba(42, 191, 186, 0.82));
  box-shadow: 0 16px 28px rgba(0, 0, 0, 0.14);
}

.match-project-card .match-project-score-badge b {
  color: #fff;
}

.match-project-card .match-project-score-badge span {
  background: rgba(255, 255, 255, 0.3);
}

.match-project-card .match-project-score-badge i {
  background: #fff;
}

.match-project-card .search-project-card-main dl {
  gap: 8px;
}

.match-project-card .search-project-card-main dl div {
  color: rgba(255, 255, 255, 0.78);
}

.match-project-card .search-project-card-main dt {
  color: #fff;
}

.match-project-card .search-project-card-main dd {
  margin: 0;
  color: rgba(255, 255, 255, 0.9);
  font-weight: 800;
  text-align: right;
}

.match-project-card .search-project-card-footer span {
  background: rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
}

.match-project-card .search-project-card-actions {
  padding: 0 20px 20px;
}

.match-project-card .mini-button {
  border-color: rgba(255, 255, 255, 0.34);
  background: #fff;
  color: #0f2f4a;
  font-weight: 900;
}

.match-project-card .mini-button:hover {
  border-color: rgba(47, 166, 163, 0.72);
  background: #f3fffe;
  color: #0f2f4a;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.22);
}

.match-project-shell .search-project-empty-card {
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 22px;
  background:
    radial-gradient(circle at 85% 15%, rgba(47, 166, 163, 0.24), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #123a58);
  color: #fff;
  box-shadow: 0 20px 44px rgba(15, 47, 74, 0.18);
}

.match-project-shell .search-project-empty-card h3,
.match-project-shell .search-project-empty-card p {
  color: #fff;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 10px 20px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--theme-secondary-rgb), 0.2), transparent 34%),
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.98), rgba(var(--theme-primary-rgb), 0.92) 52%, rgba(var(--theme-secondary-rgb), 0.78));
  color: #fff;
  backdrop-filter: blur(14px);
  box-shadow: 0 12px 34px rgba(var(--theme-primary-rgb), 0.14);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.brand-logo {
  position: relative;
  display: grid;
  place-items: center;
  width: 46px;
  height: 46px;
  padding: 0;
  flex: 0 0 auto;
  overflow: hidden;
  border: 0;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 20%, rgba(var(--theme-secondary-rgb), 0.28), transparent 44%),
    #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-size: 13px;
  font-weight: 950;
  cursor: pointer;
  box-shadow:
    0 10px 22px rgba(var(--theme-primary-rgb), 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
  transition: transform 0.18s ease, box-shadow 0.18s ease;
}

.brand-logo:hover {
  transform: translateY(-1px);
  box-shadow:
    0 14px 28px rgba(var(--theme-primary-rgb), 0.24),
    0 0 0 1px rgba(85, 212, 208, 0.55) inset;
}

.brand-logo:focus-visible {
  outline: 3px solid rgba(85, 212, 208, 0.72);
  outline-offset: 3px;
}

.workspace-avatar img,
.profile-avatar-image {
  width: 100%;
  height: 100%;
  object-fit: contain;
}

.workspace-avatar img {
  display: block;
  padding: 4px;
  box-sizing: border-box;
}

.workspace-avatar span {
  display: grid;
  place-items: center;
}

.brand h1,
.brand p {
  margin: 0;
}

.brand h1 {
  color: #fff;
  font-size: clamp(13px, 1.35vw, 16px);
  line-height: 1.08;
  letter-spacing: 0;
}

.brand-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 0 1 auto;
}

.workspace-identity {
  display: grid;
  width: max-content;
  min-width: 0;
  max-width: min(270px, 30vw);
  gap: 4px;
  padding: 8px 11px 8px 13px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 14px;
  background:
    radial-gradient(circle at 0% 0%, rgba(var(--theme-secondary-rgb), 0.16), transparent 58%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.052));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 24px rgba(var(--theme-primary-rgb), 0.1);
  backdrop-filter: blur(12px);
}

.workspace-identity h1,
.workspace-identity p,
.workspace-identity small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-identity p {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  font-weight: 820;
  line-height: 1.16;
}

.workspace-identity small {
  min-width: 0;
  color: #7cff7c;
  font-size: 10px;
  font-weight: 900;
  line-height: 1.1;
  letter-spacing: 0.01em;
  text-shadow: 0 0 12px rgba(124, 255, 124, 0.14);
}

.workspace-meta-row {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.workspace-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  flex: 0 0 auto;
}

.workspace-digital-clock {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 56px;
  height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.02em;
  font-variant-numeric: tabular-nums;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 8px 18px rgba(15, 47, 74, 0.12);
  backdrop-filter: blur(10px);
}

.processing-button {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  min-height: 32px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  line-height: 1;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(15, 47, 74, 0.12);
  backdrop-filter: blur(10px);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.processing-button-icon {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
}

.processing-button .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.processing-button:hover,
.processing-button[aria-expanded="true"] {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.18);
  transform: translateY(-1px);
}

.processing-button.has-active-jobs:hover,
.processing-button.has-active-jobs[aria-expanded="true"],
.processing-button.has-active-jobs {
  border-color: rgba(98, 213, 209, 0.94);
  background: rgba(47, 166, 163, 0.38);
  animation: processingPulse 1.15s ease-in-out infinite;
}

.processing-button.has-processing-history,
.processing-button.has-completed-jobs {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(15, 47, 74, 0.12);
  animation: none;
}

.processing-button.has-failed-jobs {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.13);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(15, 47, 74, 0.12);
  animation: none;
}

@keyframes processingPulse {
  0%,
  100% {
    box-shadow:
      0 0 0 0 rgba(98, 213, 209, 0.28),
      0 10px 22px rgba(15, 47, 74, 0.14);
  }

  50% {
    box-shadow:
      0 0 0 7px rgba(98, 213, 209, 0),
      0 16px 30px rgba(15, 47, 74, 0.2);
  }
}

.processing-button.compact {
  min-height: 34px;
  color: #0f2f4a;
  background: #ffffff;
  border-color: rgba(15, 47, 74, 0.12);
}

.processing-count {
  position: absolute;
  top: -4px;
  right: -4px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  border-radius: 999px;
  background: #62d5d1;
  color: #07324a;
  font-size: 10px;
  font-weight: 1000;
}

.processing-count.hidden {
  display: none;
}

.copilot-core-button,
.voice-dialer-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 42px;
  height: 42px;
  min-width: 42px;
  padding: 0;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
  cursor: pointer;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(15, 47, 74, 0.12);
  backdrop-filter: blur(10px);
  transition: background 160ms ease, border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.copilot-core-button .icon,
.voice-dialer-button .icon {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.copilot-core-button:hover,
.copilot-core-button[aria-expanded="true"],
.voice-dialer-button:hover,
.voice-dialer-button[aria-expanded="true"] {
  border-color: rgba(98, 213, 209, 0.72);
  background: rgba(47, 166, 163, 0.28);
  transform: translateY(-1px);
}

.voice-dialer-button[aria-expanded="true"] {
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 0 0 5px rgba(98, 213, 209, 0.12),
    0 12px 24px rgba(15, 47, 74, 0.18);
}

.project-context-pill {
  display: inline-flex;
  align-items: center;
  max-width: min(44vw, 520px);
  min-height: 30px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.22);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.brand p {
  margin-top: 4px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 14px;
  line-height: 1.35;
}

.brand .workspace-identity p {
  margin: 0;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.16;
}

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

.profile-button,
.app-back-button,
.home-icon-button {
  display: inline-grid;
  place-items: center;
  border: 0;
  border-radius: 999px;
  cursor: pointer;
}

.profile-button,
.app-back-button {
  width: 40px;
  height: 40px;
  min-width: 40px;
  min-height: 40px;
  flex: 0 0 auto;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.16), rgba(255, 255, 255, 0.06));
  color: #fff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.12),
    0 10px 22px rgba(var(--theme-primary-rgb), 0.14);
  transition:
    transform 160ms ease,
    box-shadow 160ms ease,
    background 160ms ease,
    border-color 160ms ease;
}

.profile-button {
  position: relative;
  padding: 0;
  border: 2px solid rgba(255, 255, 255, 0.74);
  background: #ffffff;
}

.app-back-button {
  width: 36px;
  height: 36px;
  min-width: 36px;
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.08);
}

.profile-button.has-avatar {
  background: rgba(255, 255, 255, 0.08);
}

.profile-button::after {
  content: "";
  position: absolute;
  right: 1px;
  bottom: 1px;
  width: 9px;
  height: 9px;
  border: 2px solid rgba(var(--theme-primary-rgb), 0.92);
  border-radius: 999px;
  background: var(--theme-accent);
}

.profile-avatar-image {
  display: block;
  width: 100%;
  height: 100%;
  min-width: 100%;
  min-height: 100%;
  object-fit: cover;
  border-radius: inherit;
}

.profile-avatar-image[hidden],
.profile-avatar-fallback[hidden] {
  display: none !important;
}

.profile-avatar-fallback {
  display: grid;
  place-items: center;
  width: 100%;
  height: 100%;
  border-radius: inherit;
  background:
    radial-gradient(circle at 70% 18%, rgba(var(--theme-secondary-rgb), 0.28), transparent 40%),
    #ffffff;
  color: #0f2f4a;
}

.app-back-button:hover:not(:disabled) {
  border-color: rgba(var(--theme-accent-rgb), 0.58);
  background:
    radial-gradient(circle at 70% 20%, rgba(255, 255, 255, 0.18), transparent 44%),
    linear-gradient(135deg, rgba(var(--theme-secondary-rgb), 0.95), rgba(var(--theme-accent-rgb), 0.72));
  color: #fff;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 4px rgba(var(--theme-secondary-rgb), 0.18),
    0 0 22px rgba(var(--theme-secondary-rgb), 0.38),
    inset 0 0 0 1px rgba(255, 255, 255, 0.26);
}

.profile-button:hover {
  background: #ffffff;
  color: #0f2f4a;
  transform: translateY(-1px) scale(1.04);
  box-shadow:
    0 0 0 4px rgba(var(--theme-secondary-rgb), 0.18),
    0 0 26px rgba(var(--theme-secondary-rgb), 0.46),
    inset 0 0 0 1px rgba(255, 255, 255, 0.82);
}

.app-back-button:disabled {
  cursor: not-allowed;
  opacity: 0.38;
}

.home-icon-button {
  width: 40px;
  height: 40px;
  background: var(--accent);
  color: #fff;
  box-shadow: 0 8px 20px rgba(47, 166, 163, 0.24);
}

.top-actions,
.export-actions,
.sticky-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.output-toolbar .export-actions {
  flex: 0 1 auto;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-left: auto;
  min-width: 0;
}

.top-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

.topbar .ghost-button {
  border-color: rgba(255, 255, 255, 0.24);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.topbar .ghost-button:hover {
  border-color: rgba(255, 255, 255, 0.38);
  background: var(--brand-blue-hover);
  color: #fff;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 4px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.1);
}

.language-buttons {
  display: inline-flex;
  gap: 4px;
  order: 1;
}

.language-button {
  min-height: 34px;
  padding: 0 10px;
  border: 0;
  border-radius: 6px;
  background: transparent;
  color: rgba(255, 255, 255, 0.78);
  cursor: pointer;
  font-size: 12px;
  font-weight: 900;
}

.language-button.active {
  background: var(--accent);
  color: #fff;
}

.language-progress {
  display: grid;
  order: 0;
  flex: 0 0 96px;
  width: 96px;
  gap: 3px;
  padding: 0 5px;
  color: #fff;
  font-size: 10px;
  font-weight: 800;
}

.language-progress-text {
  overflow: hidden;
  white-space: nowrap;
  text-overflow: ellipsis;
}

.language-progress.hidden {
  display: none;
}

.language-progress-track {
  display: block;
  height: 4px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.22);
}

.language-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight));
  transition: width 0.25s ease;
}

.workspace {
  display: grid;
  grid-template-columns: minmax(330px, 420px) minmax(0, 1fr);
  gap: 18px;
  padding: 18px;
}

.match-layout {
  display: grid;
  grid-template-columns: minmax(340px, 440px) minmax(0, 1fr);
  gap: 18px;
}

.intake-layout,
.relevance-layout {
  display: grid;
  grid-template-columns: minmax(360px, 460px) minmax(0, 1fr);
  gap: 18px;
}

.intake-shell,
.intake-overview,
.intake-detail {
  display: grid;
  gap: 18px;
}

.intake-overview.hidden,
.intake-detail.hidden {
  display: none;
}

.intake-overview-head,
.intake-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.intake-detail-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.intake-detail-toolbar h2 {
  margin: 2px 0 0;
  color: var(--brand);
}

.intake-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.intake-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intake-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.intake-session-card,
.intake-session-empty-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.intake-session-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.intake-session-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 166, 163, 0.5);
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.intake-session-card > .icon-button {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.intake-session-card-main {
  display: grid;
  width: 100%;
  min-height: 315px;
  gap: 10px;
  padding: 18px;
  padding-right: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.intake-session-card-main strong {
  color: var(--brand);
  font-size: 20px;
  line-height: 1.2;
}

.intake-session-card-main > span:not(.intake-session-status) {
  color: var(--muted);
  font-weight: 700;
}

.intake-session-card-main p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.intake-session-card-main dl {
  display: grid;
  gap: 6px;
  margin: auto 0 0;
}

.intake-session-card-main dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.intake-session-card-main dt {
  font-weight: 800;
}

.intake-session-status,
.intake-session-card-footer span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.13);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.intake-session-status {
  background: var(--brand);
  color: #fff;
}

.intake-session-card-footer,
.intake-session-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.intake-session-card-actions {
  padding: 0 18px 18px;
}

.intake-session-empty-card {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.intake-session-empty-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
}

.intake-session-empty-card p {
  margin: 0;
  color: var(--muted);
}

.intake-overview-head {
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(98, 213, 209, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.32), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 62%, #237f83 132%);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.18);
}

.intake-overview-head .match-output-head {
  padding: 0;
  border: 0;
  background: transparent;
}

.intake-overview-head .match-output-head h2,
.intake-overview-head .match-output-head p {
  color: #ffffff;
}

.intake-overview-head .match-output-head h2 {
  font-size: clamp(30px, 3.4vw, 48px);
}

.intake-overview-head .match-output-head p:not(.eyebrow) {
  max-width: 780px;
  color: rgba(255, 255, 255, 0.86);
}

.intake-overview-head .eyebrow {
  color: #62d5d1;
}

.intake-overview-head .primary-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(98, 213, 209, 0.38), transparent 34%),
    linear-gradient(135deg, #2fa6a3, #0f2f4a);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 166, 163, 0.24);
}

.intake-overview-head .primary-button:hover {
  box-shadow: 0 18px 38px rgba(47, 166, 163, 0.3);
  transform: translateY(-1px);
}

.intake-filter-row {
  align-items: end;
  padding: 14px;
  border-color: rgba(15, 47, 74, 0.08);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.intake-filter-row label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-weight: 900;
}

.intake-filter-row input,
.intake-filter-row select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  padding: 0 12px;
}

.intake-filter-row input:focus,
.intake-filter-row select:focus {
  outline: 2px solid rgba(47, 166, 163, 0.24);
  border-color: rgba(47, 166, 163, 0.72);
}

.intake-search-label {
  position: relative;
}

.intake-search-label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.72;
  background: #2fa6a3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.intake-search-label input {
  padding-left: 44px;
}

.intake-session-grid {
  grid-template-columns: repeat(auto-fill, minmax(340px, 1fr));
  gap: 18px;
}

.intake-session-card,
.intake-session-empty-card {
  border-color: rgba(15, 47, 74, 0.09);
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
}

.intake-session-card:hover {
  transform: translateY(-3px);
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 22px 46px rgba(15, 47, 74, 0.15);
}

.intake-session-card-main {
  min-height: 360px;
  gap: 12px;
  padding: 20px;
  padding-right: 54px;
}

.intake-session-title-block {
  display: grid;
  gap: 4px;
}

.intake-session-title-block strong,
.intake-session-card-main strong {
  color: #0f2f4a;
  font-size: 22px;
  line-height: 1.16;
}

.intake-session-title-block span,
.intake-session-card-main > span:not(.intake-session-status) {
  color: #526779;
  font-weight: 850;
}

.intake-session-preview {
  display: -webkit-box;
  min-height: 92px;
  overflow: hidden;
  color: #425667;
  line-height: 1.55;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 5;
  mask-image: linear-gradient(180deg, #000 78%, transparent 100%);
}

.intake-session-card-main dl {
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(15, 47, 74, 0.08);
}

.intake-session-card-main dl div {
  font-size: 12.5px;
}

.intake-session-card-main dt {
  color: #0f2f4a;
  font-weight: 950;
}

.intake-session-card-main dd {
  margin: 0;
  text-align: right;
}

.intake-session-status {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 8px 18px rgba(47, 166, 163, 0.16);
}

.intake-session-card-footer span {
  background: #eef8f8;
  color: #0f2f4a;
}

.intake-session-card-actions {
  justify-content: space-between;
  padding: 0 20px 20px;
}

.intake-session-card-actions .primary-button {
  min-width: 96px;
}

.intake-session-empty-card {
  padding: 34px;
  text-align: left;
}

.candidate-relevance-shell {
  display: grid;
  gap: 18px;
}

.candidate-relevance-overview,
.candidate-relevance-detail {
  display: grid;
  gap: 18px;
}

.candidate-relevance-overview.hidden,
.candidate-relevance-detail.hidden {
  display: none;
}

.candidate-relevance-overview-head,
.candidate-relevance-detail-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.candidate-relevance-detail-toolbar {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
  padding: 16px;
}

.candidate-relevance-detail-toolbar h2 {
  margin: 2px 0 0;
  color: var(--brand);
}

.candidate-relevance-detail-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.candidate-relevance-filter-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 280px);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.candidate-relevance-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.candidate-relevance-card,
.candidate-relevance-empty-card {
  position: relative;
  min-width: 0;
  overflow: hidden;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(8, 46, 72, 0.06), rgba(47, 166, 163, 0.08)),
    var(--surface);
  box-shadow: var(--shadow);
}

.candidate-relevance-card {
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.candidate-relevance-card::before {
  position: absolute;
  inset: 0 0 auto;
  height: 6px;
  content: "";
  background: linear-gradient(90deg, var(--brand), var(--accent));
}

.candidate-relevance-card:hover {
  transform: translateY(-2px);
  border-color: rgba(47, 166, 163, 0.5);
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.candidate-relevance-card > .icon-button,
.candidate-relevance-delete {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.candidate-relevance-card-main {
  display: flex;
  flex-direction: column;
  width: 100%;
  min-height: 252px;
  height: 100%;
  gap: 14px;
  padding: 22px;
  padding-right: 58px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  word-break: normal;
  overflow-wrap: break-word;
}

.candidate-relevance-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.candidate-relevance-card-titleblock {
  display: grid;
  min-width: 0;
  gap: 4px;
}

.candidate-relevance-card-main strong {
  color: var(--brand);
  font-size: 22px;
  line-height: 1.2;
  overflow-wrap: break-word;
}

.candidate-relevance-card-titleblock > span {
  color: var(--muted);
  font-weight: 700;
  line-height: 1.35;
}

.candidate-relevance-card-main p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.candidate-relevance-success-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.candidate-relevance-success-strip span {
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(8, 46, 72, 0.08);
  color: var(--brand);
  font-size: 11px;
  font-weight: 900;
  line-height: 1.2;
}

.candidate-relevance-card-main dl,
.candidate-relevance-card-dates {
  display: grid;
  gap: 6px;
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.candidate-relevance-card-main dl div,
.candidate-relevance-card-dates div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.candidate-relevance-card-main dt {
  font-weight: 800;
}

.candidate-relevance-status,
.candidate-relevance-card-footer span,
.relevance-score-mini,
.candidate-relevance-score-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  min-height: 26px;
  padding: 4px 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.13);
  color: var(--brand);
  font-size: 12px;
  font-weight: 900;
}

.candidate-relevance-status {
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
}

.candidate-relevance-score-pill {
  flex: 0 0 auto;
  min-width: 58px;
  background: var(--brand);
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 46, 72, 0.16);
}

.candidate-relevance-score-pill.muted {
  background: #eef2f4;
  color: var(--muted);
  box-shadow: none;
}

.candidate-relevance-card-footer {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  margin-top: auto;
  gap: 6px;
}

.candidate-relevance-card-footer .candidate-relevance-link-pill {
  max-width: 100%;
  justify-content: flex-start;
  background: rgba(8, 46, 72, 0.08);
  color: var(--brand);
}

.candidate-relevance-card-footer .candidate-relevance-open-action {
  margin-left: auto;
  padding: 8px 14px;
  background: linear-gradient(135deg, var(--brand), var(--accent));
  color: #fff;
  box-shadow: 0 10px 22px rgba(8, 46, 72, 0.18);
}

.relevance-score-mini {
  background: var(--accent);
  color: #fff;
}

.relevance-score-mini.muted {
  background: #eef2f4;
  color: var(--muted);
}

.candidate-relevance-empty-card {
  grid-column: 1 / -1;
  padding: 28px;
  text-align: center;
}

.candidate-relevance-empty-card h3 {
  margin: 0 0 8px;
  color: var(--brand);
}

.candidate-relevance-empty-card p {
  margin: 0;
  color: var(--muted);
}

.company-relevance-shell {
  display: grid;
  gap: 18px;
}

.company-relevance-head,
.company-relevance-history-card > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.company-relevance-layout {
  display: grid;
  grid-template-columns: minmax(320px, 430px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.company-relevance-search-card form,
.company-relevance-workspace,
.company-relevance-output,
.company-relevance-history-card {
  display: grid;
  gap: 14px;
}

.company-relevance-result-grid,
.company-relevance-score-grid,
.company-relevance-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.company-relevance-result-card,
.company-relevance-selected-card,
.company-relevance-empty,
.company-relevance-report,
.company-relevance-history-card,
.company-relevance-history-row,
.company-relevance-score-grid article,
.company-relevance-section-grid section,
.company-relevance-comparison {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.company-relevance-result-card,
.company-relevance-selected-card,
.company-relevance-empty,
.company-relevance-report,
.company-relevance-score-grid article,
.company-relevance-section-grid section,
.company-relevance-comparison {
  padding: 16px;
}

.company-relevance-result-card,
.company-relevance-selected-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.company-relevance-result-card h3,
.company-relevance-selected-card h3,
.company-relevance-report h3,
.company-relevance-history-card h3 {
  margin: 0;
  color: var(--brand);
}

.company-relevance-result-card p,
.company-relevance-selected-card p,
.company-relevance-report p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.company-relevance-selected-actions,
.company-relevance-history-filters,
.company-relevance-report .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.company-relevance-report-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.company-relevance-score-grid article {
  min-height: 92px;
}

.company-relevance-score-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.02em;
}

.company-relevance-score-grid strong {
  display: inline-flex;
  margin-top: 8px;
  color: var(--brand);
  font-size: 24px;
}

.company-relevance-history-card {
  padding: 16px;
}

.company-relevance-history-list {
  display: grid;
  gap: 10px;
}

.company-relevance-history-row {
  overflow: hidden;
}

.company-relevance-history-row > button {
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: 100%;
  gap: 12px;
  border: 0;
  background: transparent;
  color: var(--ink);
  padding: 14px;
  text-align: left;
  cursor: pointer;
}

.company-relevance-history-row strong {
  display: block;
  color: var(--brand);
}

.company-relevance-history-row small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

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

@media (max-width: 980px) {
  .company-relevance-layout {
    grid-template-columns: 1fr;
  }

  .company-relevance-result-grid,
  .company-relevance-section-grid,
  .company-relevance-settings-grid {
    grid-template-columns: 1fr;
  }

  .company-relevance-result-card,
  .company-relevance-selected-card,
  .company-relevance-report-head,
  .company-relevance-history-row > button {
    align-items: stretch;
    flex-direction: column;
  }

  .company-relevance-selected-actions,
  .company-relevance-history-filters,
  .company-relevance-report .inline-actions {
    justify-content: flex-start;
  }
}

.company-relevance-search-card {
  padding: 20px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.36), transparent 38%),
    linear-gradient(145deg, #0f2f4a, #127b83);
  color: #ffffff;
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.18);
}

.company-relevance-search-card .block-heading h2,
.company-relevance-search-card .block-heading .step,
.company-relevance-search-card .muted-line {
  color: #ffffff;
}

.company-relevance-search-card .block-heading .step {
  border-color: rgba(255, 255, 255, 0.36);
  background: rgba(255, 255, 255, 0.12);
}

.company-relevance-search-card .muted-line {
  opacity: 0.82;
}

.company-relevance-search-card form {
  gap: 16px;
}

.company-relevance-search-card label {
  display: grid;
  gap: 7px;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.02em;
}

.company-relevance-search-card input,
.company-relevance-search-card textarea {
  width: 100%;
  min-width: 0;
  border-color: rgba(255, 255, 255, 0.68);
  background: #ffffff;
  color: var(--brand);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.12);
}

.company-relevance-search-card input::placeholder,
.company-relevance-search-card textarea::placeholder {
  color: #7d8b98;
}

.company-relevance-history-filters input {
  width: 100%;
  min-width: 0;
}

.company-relevance-search-card .sticky-actions {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: center;
}

.company-relevance-search-card .sticky-actions .primary-button,
.company-relevance-search-card .sticky-actions .secondary-button {
  min-height: 42px;
  justify-content: center;
}

.company-relevance-search-card .sticky-actions .primary-button {
  background: linear-gradient(135deg, #21beb8, #ffffff);
  color: #0f2f4a;
  box-shadow: 0 16px 34px rgba(0, 0, 0, 0.14);
}

.company-relevance-search-card .sticky-actions .secondary-button {
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.company-relevance-search-card .sticky-actions .secondary-button:hover {
  background: rgba(255, 255, 255, 0.18);
}

.company-relevance-info-strip,
.company-relevance-output-empty {
  border: 1px solid rgba(20, 165, 155, 0.24);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(227, 249, 246, 0.92), rgba(255, 255, 255, 0.96));
  box-shadow: var(--shadow);
  padding: 12px 14px;
}

.company-relevance-info-strip strong,
.company-relevance-output-empty h3 {
  display: block;
  color: var(--brand);
}

.company-relevance-info-strip p,
.company-relevance-output-empty p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.company-relevance-result-grid {
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.company-relevance-result-card {
  min-width: 0;
  min-height: 100%;
  flex-direction: column;
  justify-content: space-between;
  gap: 16px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 249, 0.88)),
    var(--surface);
}

.company-relevance-result-body,
.company-relevance-selected-card > div:first-child,
.company-relevance-compact-result header > div:first-child,
.company-relevance-list-item > div:first-child {
  min-width: 0;
}

.company-relevance-result-top {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-bottom: 10px;
}

.company-relevance-result-card h3 {
  overflow-wrap: anywhere;
  line-height: 1.15;
}

.company-relevance-industry {
  font-weight: 800;
}

.company-relevance-company-facts {
  display: grid;
  gap: 8px;
  margin: 12px 0 0;
}

.company-relevance-company-facts div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.company-relevance-company-facts dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.company-relevance-company-facts dd {
  margin: 0;
  color: var(--ink);
  font-weight: 800;
  overflow-wrap: anywhere;
}

.company-relevance-card-actions,
.company-relevance-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.company-relevance-card-actions {
  margin-top: auto;
}

.company-relevance-card-actions .compact-button,
.company-relevance-detail-actions .compact-button {
  min-height: 34px;
}

.company-relevance-selected-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(236, 250, 247, 0.86)),
    var(--surface);
}

.company-relevance-compact-result,
.company-relevance-company-list-card,
.company-relevance-detail-view {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.company-relevance-compact-result {
  display: grid;
  gap: 14px;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(237, 250, 248, 0.9)),
    #ffffff;
}

.company-relevance-compact-result header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.company-relevance-compact-result h3 {
  margin: 0;
  color: var(--brand);
}

.company-relevance-compact-result p {
  margin: 6px 0 0;
  color: var(--ink-soft);
  line-height: 1.45;
}

.company-relevance-compact-result small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  font-weight: 800;
}

.company-relevance-compact-score,
.company-relevance-detail-score {
  display: grid;
  gap: 7px;
  justify-items: end;
  flex: 0 0 auto;
}

.company-relevance-compact-score {
  min-width: 176px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.28), transparent 42%),
    #ffffff;
  text-align: right;
}

.company-relevance-score-kicker {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-relevance-compact-score strong {
  color: var(--brand);
  font-size: 36px;
  line-height: 1;
}

.company-relevance-compact-score small {
  margin: 0;
  color: var(--ink-soft);
  font-size: 0.78rem;
  line-height: 1.25;
}

.company-relevance-progress-pill {
  justify-self: start;
  border-radius: 999px;
  background: var(--brand);
  color: white;
  padding: 8px 12px;
  font-weight: 900;
}

.company-relevance-detail-view {
  padding: 0;
}

.company-relevance-detail-report {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 0;
  border-radius: var(--radius);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(239, 250, 249, 0.9)),
    var(--surface);
  box-shadow: none;
}

.company-relevance-detail-report .company-relevance-report-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: start;
  padding: 18px;
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(15, 47, 74, 0.98), rgba(17, 111, 121, 0.95)),
    var(--brand);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.18);
}

.company-relevance-report-title {
  min-width: 0;
}

.company-relevance-detail-report .company-relevance-report-head :where(h3, p, small, span),
.company-relevance-detail-report .company-relevance-report-head .eyebrow {
  color: #ffffff;
}

.company-relevance-detail-report .company-relevance-report-head h3 {
  font-size: clamp(1.45rem, 2vw, 2rem);
  line-height: 1.05;
}

.company-relevance-report-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 10px;
}

.company-relevance-report-meta span {
  font-size: 0.86rem;
  font-weight: 800;
  opacity: 0.88;
}

.company-relevance-report-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(150px, auto));
  gap: 10px;
  align-items: center;
  justify-content: end;
}

.company-relevance-report-actions .compact-button {
  min-height: 38px;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: none;
}

.company-relevance-report-actions .compact-button:hover {
  border-color: rgba(255, 255, 255, 0.78);
  background: rgba(255, 255, 255, 0.18);
}

.company-relevance-hero-grid,
.company-relevance-insight-grid {
  display: grid;
  gap: 12px;
}

.company-relevance-hero-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.company-relevance-insight-grid {
  grid-template-columns: minmax(0, 2fr) minmax(170px, 0.72fr) minmax(220px, 1fr);
  align-items: stretch;
}

.company-relevance-metric-card,
.company-relevance-detail-section {
  min-width: 0;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.company-relevance-metric-card {
  display: grid;
  align-content: start;
  gap: 8px;
  min-height: 118px;
  padding: 16px;
}

.company-relevance-metric-card span,
.company-relevance-detail-section h4,
.company-relevance-comparison h4 {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.company-relevance-metric-card strong {
  color: var(--brand);
  font-size: clamp(1.45rem, 2vw, 2rem);
  font-weight: 950;
  line-height: 1;
  overflow-wrap: anywhere;
}

.company-relevance-metric-card small {
  color: var(--ink-soft);
  font-size: 0.83rem;
  font-weight: 800;
  line-height: 1.35;
}

.company-relevance-metric-card em {
  justify-self: start;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: var(--brand);
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  padding: 6px 10px;
}

.company-relevance-metric-card.is-gradient {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.32), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #127b83);
  color: #ffffff;
}

.company-relevance-metric-card.is-gradient :where(span, strong, small, em) {
  color: #ffffff;
}

.company-relevance-metric-card.is-gradient em {
  background: rgba(255, 255, 255, 0.16);
}

.company-relevance-metric-card.is-market {
  min-height: 0;
  padding: 18px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 248, 0.9)),
    #ffffff;
}

.company-relevance-metric-card.is-market strong {
  font-size: 1rem;
  font-weight: 850;
  line-height: 1.45;
}

.company-relevance-metric-card.is-approachability {
  min-height: 0;
  align-content: center;
  justify-items: center;
  text-align: center;
}

.company-relevance-metric-card.is-approachability strong {
  font-size: clamp(2rem, 3vw, 2.7rem);
}

.company-relevance-section-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.company-relevance-detail-section {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.company-relevance-detail-section.is-wide {
  grid-column: 1 / -1;
}

.company-relevance-detail-section.is-accent {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(242, 250, 248, 0.94)),
    #ffffff;
}

.company-relevance-detail-section h4,
.company-relevance-comparison h4 {
  margin: 0;
}

.company-relevance-detail-section p,
.company-relevance-detail-section li,
.company-relevance-comparison li {
  color: var(--ink-soft);
  font-size: 0.95rem;
  line-height: 1.55;
}

.company-relevance-detail-section ul,
.company-relevance-comparison ul {
  margin-top: 0;
}

.company-relevance-detail-actions {
  justify-content: flex-start;
}

.deal-intelligence-decision-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #126f7c);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.16);
}

.deal-intelligence-decision-card.is-cautious {
  background:
    radial-gradient(circle at top right, rgba(245, 170, 65, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #6b4f1f);
}

.deal-intelligence-decision-card span {
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.deal-intelligence-decision-card strong {
  display: block;
  margin-top: 6px;
  color: #ffffff;
  font-size: clamp(1.55rem, 2.3vw, 2.35rem);
  line-height: 1.05;
}

.deal-intelligence-decision-card p {
  max-width: 760px;
  margin: 8px 0 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 0.95rem;
  font-weight: 750;
  line-height: 1.45;
}

.deal-intelligence-decision-card em {
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.36);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-style: normal;
  font-weight: 950;
  padding: 9px 12px;
  white-space: nowrap;
}

.deal-intelligence-score-grid .company-relevance-metric-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.32), transparent 38%),
    linear-gradient(135deg, #123b56, #148b8a);
  color: #ffffff;
}

.deal-intelligence-score-grid .company-relevance-metric-card:nth-child(2) :where(span, strong, small, em) {
  color: #ffffff;
}

.hiring-pressure-score-grid .company-relevance-metric-card:nth-child(1),
.hiring-pressure-score-grid .company-relevance-metric-card:nth-child(2) {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.34), transparent 38%),
    linear-gradient(135deg, #0f2f4a, #168f8b);
  color: #ffffff;
}

.hiring-pressure-score-grid .company-relevance-metric-card:nth-child(1) :where(span, strong, small, em),
.hiring-pressure-score-grid .company-relevance-metric-card:nth-child(2) :where(span, strong, small, em) {
  color: #ffffff;
}

.deal-intelligence-signal-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.deal-intelligence-signal-list article,
.deal-intelligence-contact-list article,
.deal-intelligence-candidate-fit,
.hiring-pressure-department-list article,
.hiring-pressure-role-list article,
.hiring-pressure-candidate-list article,
.hiring-pressure-budget {
  min-width: 0;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 12px;
  background: rgba(242, 250, 248, 0.78);
  padding: 12px;
}

.deal-intelligence-signal-list span,
.deal-intelligence-candidate-fit span {
  display: block;
  color: var(--muted);
  font-size: 0.68rem;
  font-weight: 950;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.deal-intelligence-signal-list strong,
.deal-intelligence-contact-list strong,
.deal-intelligence-candidate-fit strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 0.98rem;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.deal-intelligence-signal-list small,
.deal-intelligence-contact-list span,
.deal-intelligence-candidate-fit p {
  display: block;
  margin-top: 6px;
  color: var(--ink-soft);
  font-size: 0.82rem;
  font-weight: 750;
  line-height: 1.4;
}

.deal-intelligence-contact-list {
  display: grid;
  gap: 10px;
}

.hiring-pressure-department-list,
.hiring-pressure-role-list,
.hiring-pressure-candidate-list {
  display: grid;
  gap: 10px;
}

.deal-intelligence-contact-list article,
.deal-intelligence-candidate-fit,
.hiring-pressure-department-list article,
.hiring-pressure-role-list article,
.hiring-pressure-candidate-list article {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.deal-intelligence-contact-list em,
.deal-intelligence-candidate-fit em,
.hiring-pressure-department-list em,
.hiring-pressure-role-list em,
.hiring-pressure-candidate-list em {
  flex: 0 0 auto;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.14);
  color: var(--brand);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 950;
  padding: 6px 10px;
  white-space: nowrap;
}

.hiring-pressure-department-list span,
.hiring-pressure-role-list strong,
.hiring-pressure-candidate-list strong,
.hiring-pressure-budget strong {
  display: block;
  color: var(--brand);
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.hiring-pressure-department-list strong {
  display: block;
  margin-top: 4px;
  color: var(--brand);
  font-size: 1.05rem;
}

.hiring-pressure-department-list small,
.hiring-pressure-role-list span,
.hiring-pressure-candidate-list span,
.hiring-pressure-budget p {
  display: block;
  margin: 6px 0 0;
  color: var(--ink-soft);
  font-size: 0.84rem;
  font-weight: 750;
  line-height: 1.4;
}

.company-relevance-company-list-card {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.company-relevance-company-list-card header {
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.company-relevance-company-list-card h3,
.company-relevance-list-item h4 {
  margin: 0;
  color: var(--brand);
}

.company-relevance-company-list-card p,
.company-relevance-list-item p {
  margin: 4px 0 0;
  color: var(--ink-soft);
}

.company-relevance-company-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.company-relevance-list-item {
  display: grid;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: linear-gradient(145deg, rgba(255, 255, 255, 0.98), rgba(241, 250, 249, 0.84));
  padding: 14px;
}

.company-relevance-list-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.relevance-score.mini {
  display: inline-flex;
  border-radius: 999px;
  padding: 6px 10px;
  font-size: 14px;
}

.company-relevance-history-filters {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(150px, auto) minmax(150px, auto);
  align-items: center;
}

.company-relevance-history-row > button {
  align-items: flex-start;
}

.company-relevance-history-row em {
  display: block;
  max-width: 680px;
  margin-top: 6px;
  color: var(--ink-soft);
  font-style: normal;
  line-height: 1.35;
}

@media (max-width: 1180px) {
  .company-relevance-hero-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-relevance-insight-grid {
    grid-template-columns: minmax(0, 1.35fr) minmax(180px, 0.65fr);
  }

  .company-relevance-insight-grid .company-relevance-metric-card:last-child {
    grid-column: 1 / -1;
  }

  .company-relevance-history-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-relevance-history-filters input {
    grid-column: 1 / -1;
  }
}

@media (max-width: 760px) {
  .company-relevance-search-card .sticky-actions,
  .company-relevance-selected-card,
  .company-relevance-compact-result header,
  .company-relevance-report-head,
  .company-relevance-detail-report .company-relevance-report-head,
  .company-relevance-report-actions,
  .company-relevance-hero-grid,
  .company-relevance-insight-grid,
  .company-relevance-history-filters {
    grid-template-columns: 1fr;
  }

  .company-relevance-selected-actions,
  .company-relevance-compact-score,
  .company-relevance-detail-score,
  .company-relevance-report-actions {
    justify-items: start;
    justify-content: start;
  }

  .company-relevance-result-grid,
  .company-relevance-company-list,
  .company-relevance-section-grid {
    grid-template-columns: 1fr;
  }

  .company-relevance-insight-grid .company-relevance-metric-card:last-child,
  .company-relevance-detail-section.is-wide {
    grid-column: auto;
  }

  .company-relevance-search-card .sticky-actions {
    gap: 10px;
  }
}

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

.match-input-card,
.match-output-card,
.intake-input-card,
.intake-output-card,
.relevance-input-card,
.relevance-output-card {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.match-input-card,
.intake-input-card,
.relevance-input-card {
  max-height: calc(100vh - 124px);
  overflow: auto;
}

.relevance-input-card.company-relevance-search-card {
  border: 1px solid rgba(255, 255, 255, 0.18);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.36), transparent 38%),
    linear-gradient(145deg, #0f2f4a, #127b83);
  box-shadow: 0 24px 54px rgba(15, 47, 74, 0.18);
}

.intake-input-card {
  max-height: none;
  overflow: visible;
}

#matchForm,
#intakeForm,
#candidateRelevanceForm {
  display: grid;
  gap: 0;
}

.candidate-relevance-link-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: linear-gradient(180deg, rgba(47, 166, 163, 0.08), rgba(255, 255, 255, 0.96));
}

.candidate-relevance-link-summary {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.candidate-relevance-link-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.candidate-relevance-link-summary strong {
  color: var(--text);
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.candidate-relevance-link-summary small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.4;
}

.candidate-relevance-link-panel label {
  min-width: 0;
}

.candidate-relevance-link-panel input,
.candidate-relevance-link-panel select {
  width: 100%;
  min-width: 0;
}

.candidate-relevance-link-panel select {
  overflow: hidden;
  text-overflow: ellipsis;
}

.company-relevance-candidate-link {
  background: rgba(255, 255, 255, 0.12);
  border-color: rgba(255, 255, 255, 0.22);
}

.company-relevance-candidate-link label {
  color: #ffffff;
}

.company-relevance-candidate-link input,
.company-relevance-candidate-link select {
  min-height: 42px;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 8px;
  background: #ffffff;
  color: var(--text);
  font-weight: 800;
}

.company-relevance-candidate-link .candidate-relevance-link-footer p {
  color: rgba(255, 255, 255, 0.86);
}

.company-relevance-candidate-compact {
  display: grid;
  gap: 8px;
  padding: 9px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.company-relevance-candidate-compact-main {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.company-relevance-candidate-compact-status {
  display: grid;
  gap: 2px;
  min-width: 0;
  flex: 1 1 auto;
  color: #ffffff;
}

.company-relevance-candidate-compact-status span {
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-relevance-candidate-compact-status small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.company-relevance-candidate-compact .secondary-button {
  width: max-content;
  max-width: 100%;
  min-height: 38px;
  border-color: rgba(255, 255, 255, 0.45);
  background: rgba(255, 255, 255, 0.94);
  color: var(--ink);
}

.company-relevance-candidate-compact .secondary-button:hover {
  background: #ffffff;
  color: var(--brand);
}

.company-relevance-candidate-compact.is-linked {
  background: rgba(255, 255, 255, 0.12);
}

@media (max-width: 720px) {
  .company-relevance-candidate-compact-main {
    align-items: stretch;
    flex-direction: column;
  }

  .company-relevance-candidate-compact .secondary-button {
    width: 100%;
  }
}

.company-relevance-candidate-link-modal .saved-candidate-picker-tools input[readonly] {
  background: #f6fbfb;
  color: var(--muted);
}

.company-relevance-candidate-badge {
  display: inline-grid;
  gap: 3px;
  max-width: 100%;
  margin-top: 8px;
  padding: 8px 10px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
}

.company-relevance-candidate-badge span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.company-relevance-candidate-badge strong {
  color: #ffffff;
  font-size: 12px;
  overflow-wrap: anywhere;
}

.candidate-relevance-link-footer {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  flex-wrap: wrap;
}

.candidate-relevance-link-footer p {
  min-width: 180px;
  flex: 1 1 240px;
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

#candidateRelevanceForm .upload-row {
  grid-template-columns: auto auto minmax(0, 1fr);
}

@media (max-width: 720px) {
  #candidateRelevanceForm .upload-row {
    grid-template-columns: 1fr;
    align-items: stretch;
  }
}

#intakeForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
  align-items: start;
}

#intakeForm .form-block {
  min-width: 0;
  align-self: start;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

#intakeForm .intake-candidate-block {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

#intakeForm .intake-candidate-block .block-heading,
#intakeForm .intake-candidate-block .candidate-source-actions {
  grid-column: 1 / -1;
}

#intakeForm .intake-candidate-block label {
  margin: 0;
}

#intakeForm .intake-cv-block,
#intakeForm .intake-context-block,
#intakeForm .intake-interviewer-block {
  height: auto;
}

#intakeForm .form-block label {
  min-width: 0;
}

#intakeForm :is(input, textarea, select) {
  width: 100%;
  min-width: 0;
}

#intakeCvText {
  min-height: 180px;
  max-height: 320px;
  resize: vertical;
}

#intakeCandidateNotes,
#intakeCandidateFocus,
#intakeSessionNotes {
  min-height: 88px;
  max-height: 180px;
  resize: vertical;
}

#intakeForm .candidate-source-actions {
  display: grid;
  align-items: start;
  justify-content: stretch;
  gap: 10px;
  padding: 12px;
}

#intakeForm .candidate-source-buttons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

#intakeForm .candidate-source-buttons button {
  flex: 1 1 190px;
  min-width: min(100%, 190px);
}

#intakeForm .candidate-source-status {
  margin: 0;
  text-align: left;
  white-space: normal;
  overflow-wrap: normal;
  word-break: normal;
  writing-mode: horizontal-tb;
}

.intake-linked-candidate-card {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: #eefafa;
}

.intake-linked-candidate-card.hidden {
  display: none;
}

.intake-linked-candidate-card span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.intake-linked-candidate-card strong {
  color: var(--brand);
  font-size: 14px;
  line-height: 1.25;
}

.intake-linked-candidate-card small {
  color: var(--ink-soft);
  font-size: 12px;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

#intakeForm .sticky-actions,
#intakeForm .generation-status {
  grid-column: 1 / -1;
}

@media (max-width: 1120px) {
  #intakeForm {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #intakeForm .intake-candidate-block {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  #intakeForm .intake-interviewer-block {
    grid-column: 1 / -1;
  }
}

@media (max-width: 720px) {
  #intakeForm,
  #intakeForm .intake-candidate-block {
    grid-template-columns: minmax(0, 1fr);
  }

  #intakeForm .intake-interviewer-block {
    grid-column: auto;
  }
}

.intake-input-card .saved-match-panel {
  margin: 0 16px 16px;
}

.match-output-card,
.intake-output-card,
.relevance-output-card {
  min-height: calc(100vh - 124px);
  overflow: auto;
}

.intake-output-card {
  min-height: auto;
  overflow: visible;
}

.match-output-head {
  padding: 22px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.match-output-head h2 {
  margin: 0;
  font-size: clamp(26px, 3vw, 40px);
  letter-spacing: 0;
}

.match-output-head p:not(.eyebrow) {
  max-width: 760px;
  margin: 10px 0 0;
  color: var(--muted);
  line-height: 1.5;
}

.match-report {
  display: grid;
  gap: 18px;
  max-width: 980px;
  margin: 0 auto;
  padding: 22px;
}

.intake-report {
  display: grid;
  gap: 18px;
  max-width: 1100px;
  margin: 0 auto;
  padding: 22px;
}

.relevance-report {
  display: grid;
  gap: 18px;
  max-width: 1120px;
  margin: 0 auto;
  padding: 22px;
}

.relevance-hero-card,
.relevance-section,
.relevance-score-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.relevance-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-color: rgba(47, 166, 163, 0.38);
  box-shadow: 0 12px 30px rgba(47, 166, 163, 0.12);
}

.relevance-hero-card h3,
.relevance-section h3,
.relevance-score-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 18px;
}

.relevance-hero-card p,
.relevance-section p,
.relevance-section li {
  color: #273530;
  line-height: 1.58;
}

.relevance-score-badge {
  display: inline-grid;
  place-items: center;
  min-width: 98px;
  min-height: 72px;
  padding: 0 16px;
  border-radius: var(--radius);
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  color: #fff;
  font-size: 24px;
  font-weight: 900;
}

.relevance-score-grid,
.relevance-card-grid {
  display: grid;
  gap: 12px;
}

.relevance-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.relevance-card-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.relevance-score-card {
  display: grid;
  gap: 10px;
  background: #fbfcfc;
}

.relevance-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.relevance-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent), var(--accent-highlight));
}

.relevance-pill {
  display: inline-flex;
  width: fit-content;
  min-height: 28px;
  align-items: center;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
}

.relevance-list {
  display: grid;
  gap: 8px;
  margin: 8px 0 0;
  padding-left: 20px;
}

.candidate-success-section {
  border-color: rgba(47, 166, 163, 0.32);
  background:
    linear-gradient(135deg, rgba(8, 46, 72, 0.04), rgba(47, 166, 163, 0.08)),
    #fff;
}

.candidate-success-head {
  display: grid;
  gap: 8px;
  margin-bottom: 14px;
}

.candidate-success-head p {
  margin: 0;
  color: var(--muted);
}

.candidate-success-score-grid,
.candidate-success-signal-grid {
  display: grid;
  gap: 12px;
  margin-bottom: 12px;
}

.candidate-success-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 190px), 1fr));
}

.candidate-success-signal-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
}

.candidate-success-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 12px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.08);
}

.candidate-success-card-soft {
  background: rgba(255, 255, 255, 0.78);
}

.candidate-success-card > span:first-child {
  color: var(--teal-strong);
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.candidate-success-card strong {
  color: var(--brand-blue);
  font-size: 20px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.candidate-success-card p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}


.match-score-card,
.match-section,
.match-table-card,
.intake-section,
.intake-question-card {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
  padding: 16px;
}

.match-score-card {
  border-color: rgba(47, 166, 163, 0.42);
  box-shadow: 0 10px 28px rgba(47, 166, 163, 0.12);
}

.match-score-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.match-score-head h3,
.match-section h3,
.match-table-card h3,
.intake-section h3,
.intake-question-card h3 {
  margin: 0;
  font-size: 18px;
}

.match-score-number {
  display: inline-grid;
  place-items: center;
  min-width: 76px;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  background: var(--brand-blue);
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.match-score-bar {
  height: 12px;
  margin: 14px 0 10px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.match-score-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--brand-blue), var(--accent), var(--accent-highlight));
}

.intake-summary-grid,
.intake-question-grid,
.intake-report-grid {
  display: grid;
  gap: 12px;
}

.intake-summary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr));
}

.intake-question-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
}

.intake-question-grid.intake-question-single {
  grid-template-columns: 1fr;
}

.intake-report-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}

.intake-summary-compact {
  padding: 12px;
}

.intake-summary-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
  gap: 10px;
}

.intake-summary-button {
  display: grid;
  gap: 4px;
  min-height: 76px;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: var(--radius);
  background: #fff;
  color: var(--brand-blue);
  text-align: left;
  cursor: pointer;
  box-shadow: 0 8px 20px rgba(15, 47, 74, 0.06);
}

.intake-summary-button:hover {
  border-color: rgba(47, 166, 163, 0.45);
  box-shadow: 0 12px 28px rgba(47, 166, 163, 0.12);
}

.intake-summary-button span {
  font-weight: 900;
}

.intake-summary-button small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.intake-question-toolbar {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  flex-wrap: wrap;
}

.intake-question-toolbar h3 {
  margin-bottom: 4px;
}

.intake-question-export-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.intake-question-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.intake-question-nav-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-width: 38px;
  min-height: 34px;
  padding: 0 10px;
  border: 1px solid rgba(15, 47, 74, 0.18);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 6px 16px rgba(15, 47, 74, 0.06);
}

.intake-question-nav-button:hover {
  border-color: rgba(47, 166, 163, 0.55);
  color: var(--accent-dark);
}

.intake-question-nav-button.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--brand-blue), var(--accent));
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.16);
}

.intake-question-nav-button small {
  color: var(--accent-dark);
  font-size: 12px;
  line-height: 1;
}

.intake-question-nav-button.active small {
  color: #fff;
}

.intake-mini-card {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.intake-mini-card strong,
.intake-question-card strong {
  color: var(--brand-blue);
}

.intake-question-card {
  display: grid;
  gap: 12px;
  align-content: start;
}

.intake-question-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.intake-question-number {
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  border-radius: 999px;
  background: var(--brand-blue);
  color: #fff;
  font-weight: 900;
}

.intake-category-pill,
.intake-signal-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
}

.intake-question-card textarea {
  min-height: 150px;
  resize: vertical;
}

.intake-question-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  padding-top: 2px;
}

.intake-answer-progress {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

@media (max-width: 680px) {
  .intake-question-toolbar {
    flex-direction: column;
    align-items: stretch;
  }

  .intake-question-export-actions,
  .intake-question-footer {
    width: 100%;
    align-items: stretch;
  }

  .intake-question-export-actions button,
  .intake-question-footer button {
    flex: 1 1 140px;
  }

  .intake-question-nav-button {
    min-width: 36px;
  }
}

.intake-answer-field {
  display: grid;
  gap: 8px;
}

.intake-answer-head,
.intake-answer-tools {
  display: flex;
  align-items: center;
  gap: 8px;
}

.intake-answer-head {
  justify-content: space-between;
}

.intake-voice-status {
  min-width: 72px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  text-align: right;
}

.intake-mic-button {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  cursor: pointer;
}

.intake-mic-button:hover,
.intake-mic-button.is-listening {
  background: var(--accent-dark);
}

.intake-mic-button.is-listening {
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.18);
}

.intake-help-block {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-left: 3px solid var(--accent);
  border-radius: 6px;
  background: rgba(47, 166, 163, 0.1);
}

.match-progress-text {
  margin: 0 0 10px;
  color: var(--accent-dark);
  font-family: ui-monospace, SFMono-Regular, Consolas, monospace;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
}

.match-score-card p,
.match-section p,
.match-section li,
.match-table-card p {
  color: #273530;
  line-height: 1.58;
}

.match-section p {
  margin: 0;
}

.match-section div > p,
.match-fit-item div > p,
.callout p,
.snippet p,
.evidence p,
.pitch-section li > p,
.solution-line p,
.contact-copy li > p,
.who-summary div > p,
.who-reasons dd p,
.muted-line p,
.call-script p,
.cue p {
  margin: 0 0 8px;
}

.match-section div > p:last-child,
.match-fit-item div > p:last-child,
.callout p:last-child,
.snippet p:last-child,
.evidence p:last-child,
.pitch-section li > p:last-child,
.solution-line p:last-child,
.contact-copy li > p:last-child,
.who-summary div > p:last-child,
.who-reasons dd p:last-child,
.muted-line p:last-child,
.call-script p:last-child,
.cue p:last-child {
  margin-bottom: 0;
}

.callout ul,
.snippet ul,
.evidence ul,
.who-reasons dd ul,
.call-script ul,
.cue ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.match-section ul,
.match-section ol {
  display: grid;
  gap: 10px;
  margin: 12px 0 0;
  padding-left: 20px;
}

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

.match-fit-item {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.match-fit-item strong {
  display: block;
  margin-bottom: 6px;
  color: var(--ink);
}

.score-table {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.score-table-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 72px;
  gap: 12px;
  align-items: center;
  padding: 9px 0;
  border-bottom: 1px solid var(--line);
}

.score-table-row:last-child {
  border-bottom: 0;
  font-weight: 900;
}

.input-panel,
.output-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: var(--shadow);
}

.input-panel {
  height: calc(100vh - 100px);
  overflow: auto;
}

#pitchForm {
  display: grid;
  gap: 0;
}

.form-block {
  padding: 18px;
  border-bottom: 1px solid var(--line);
}

.form-block.compact {
  padding-bottom: 20px;
}

#pitchForm {
  counter-reset: pitch-input-section;
}

#pitchForm > .form-block.collapsible {
  counter-increment: pitch-input-section;
}

.form-block.collapsible .block-heading {
  cursor: pointer;
  min-height: 44px;
  padding: 0 12px;
  border-radius: var(--radius);
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.24);
  background:
    radial-gradient(circle at 96% 18%, rgba(var(--theme-accent-rgb), 0.2), transparent 34%),
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.9), rgba(var(--theme-secondary-rgb), 0.68));
  color: #ffffff;
  justify-content: flex-start;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 10px 22px rgba(var(--theme-primary-rgb), 0.1);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.form-block.collapsible .block-heading:hover {
  border-color: rgba(var(--theme-accent-rgb), 0.46);
  background:
    radial-gradient(circle at 96% 18%, rgba(var(--theme-accent-rgb), 0.28), transparent 36%),
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.84), rgba(var(--theme-secondary-rgb), 0.82));
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 14px 28px rgba(var(--theme-secondary-rgb), 0.14);
  transform: translateY(-1px);
}

.form-block.collapsible.collapsed > :not(.block-heading) {
  display: none;
}

.form-block.collapsible .block-heading::after {
  content: counter(pitch-input-section);
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  flex: 0 0 30px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background: rgba(var(--theme-primary-rgb), 0.32);
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
  margin-left: auto;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.form-block.collapsible .step,
#pitchForm > .form-block.compact .step {
  display: none;
}

.block-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.block-heading h2,
.battle-grid h2 {
  margin: 0;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.form-block.collapsible .block-heading h2 {
  color: #ffffff;
}

.section-complete-check {
  display: none;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  flex: 0 0 20px;
  margin-left: 2px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.18);
  color: #bdf7ef;
  font-size: 15px;
  font-weight: 900;
  line-height: 1;
}

.section-complete-check.visible {
  display: inline-flex;
}

.form-block.section-missing .block-heading {
  box-shadow:
    0 0 0 2px rgba(var(--theme-accent-rgb), 0.5),
    0 10px 24px rgba(var(--theme-primary-rgb), 0.16);
}

.contact-section-actions {
  display: flex;
  justify-content: stretch;
  margin: 12px 0 10px;
}

.contact-add-inline {
  width: 100%;
  min-height: 42px;
  justify-content: center;
  border-color: rgba(var(--theme-secondary-rgb), 0.34);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(var(--theme-secondary-rgb), 0.08));
  color: var(--theme-primary);
  box-shadow: 0 10px 20px rgba(var(--theme-primary-rgb), 0.06);
}

.contact-add-inline:hover {
  border-color: rgba(var(--theme-secondary-rgb), 0.48);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 1), rgba(var(--theme-secondary-rgb), 0.16));
  color: var(--theme-primary);
}

.step {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #ffffff;
  font-size: 12px;
  font-weight: 800;
}

label {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  color: #3d4a46;
  font-size: 13px;
  font-weight: 700;
}

input,
textarea {
  width: 100%;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  outline: none;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

input {
  height: 42px;
  padding: 0 12px;
}

textarea {
  min-height: 112px;
  resize: vertical;
  padding: 11px 12px;
  line-height: 1.45;
}

input:focus,
textarea:focus {
  border-color: var(--accent);
  background: #fff;
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.18);
}

.segmented {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface-2);
}

.segmented label {
  margin: 0;
}

.segmented input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.segmented span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border-radius: 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.segmented input:checked + span {
  background: var(--surface);
  color: var(--accent-dark);
  box-shadow: 0 1px 4px rgba(15, 47, 74, 0.12);
}

.range-label input {
  accent-color: var(--accent);
}

.sticky-actions {
  position: sticky;
  bottom: 0;
  justify-content: stretch;
  padding: 14px 18px;
  background: rgba(255, 255, 255, 0.94);
  border-top: 1px solid var(--line);
  backdrop-filter: blur(12px);
}

.sticky-actions button {
  flex: 1 1 0;
}

.company-relevance-search-card .sticky-actions {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, auto);
  gap: 14px;
  align-items: center;
  padding: 0;
  border-top: 0;
  background: transparent;
  backdrop-filter: none;
}

.company-relevance-search-card .sticky-actions button {
  flex: initial;
}

.generation-status {
  display: grid;
  gap: 8px;
  padding: 0 18px 16px;
  background: rgba(255, 255, 255, 0.94);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.generation-status-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.generation-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
  box-shadow: inset 0 0 0 1px rgba(31, 44, 39, 0.04);
}

.generation-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight));
  transition:
    width 0.35s ease,
    background 0.2s ease;
}

.generation-status.running .generation-track span {
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight), var(--accent));
}

.generation-status.done .generation-track span {
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight));
}

.generation-status.error .generation-track span {
  background: linear-gradient(90deg, var(--rose), #d35f72);
}

.pitch-debug-overlay {
  margin: 0 18px 16px;
  border: 1px solid rgba(11, 53, 81, 0.16);
  background: rgba(255, 255, 255, 0.9);
  border-radius: 8px;
  box-shadow: 0 14px 34px rgba(11, 53, 81, 0.08);
  padding: 0.75rem;
  color: #0b3551;
  font-size: 0.78rem;
}

.pitch-debug-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 0.55rem;
  font-weight: 800;
}

.pitch-debug-head strong {
  color: #147d82;
}

.pitch-debug-grid {
  display: grid;
  grid-template-columns: minmax(5rem, auto) minmax(0, 1fr);
  gap: 0.35rem 0.6rem;
}

.pitch-debug-grid span {
  color: rgba(11, 53, 81, 0.68);
}

.pitch-debug-grid strong {
  min-width: 0;
  color: #0b3551;
  overflow-wrap: anywhere;
}

.primary-button,
.secondary-button,
.ghost-button,
.icon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-weight: 800;
  line-height: 1;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.primary-button {
  background: var(--brand-blue);
  color: #fff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.22);
}

.primary-button:hover {
  background: var(--brand-blue-hover);
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.62;
}

.secondary-button,
.ghost-button {
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.secondary-button:hover,
.ghost-button:hover,
.icon-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.secondary-button.danger {
  border-color: #efc5c5;
  color: #a33131;
}

.secondary-button.danger:hover {
  border-color: #a33131;
  color: #7e2525;
}

.ghost-button {
  padding: 0 12px;
}

.icon-button {
  width: 40px;
  padding: 0;
  border-color: var(--line-strong);
  background: var(--surface);
  color: var(--ink);
}

.icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
  flex: 0 0 auto;
}

.icon.small {
  width: 15px;
  height: 15px;
}

.compact-button {
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.upload-row {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.candidate-source-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  margin: 4px 0 12px;
  border: 1px solid rgba(42, 174, 167, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(238, 250, 250, 0.95), rgba(255, 255, 255, 0.96));
}

.candidate-source-status {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.35;
  text-align: right;
}

.saved-candidate-picker-panel {
  display: flex;
  flex-direction: column;
  width: min(1040px, 96vw);
  max-height: min(90vh, 860px);
  overflow: hidden;
}

.saved-candidate-picker-tools {
  display: grid;
  flex: 0 0 auto;
  grid-template-columns: minmax(260px, 1fr) minmax(220px, 0.45fr);
  gap: 14px;
  padding: 18px 20px 8px;
}

.saved-candidate-picker-tools label {
  display: grid;
  gap: 7px;
  color: var(--text);
  font-size: 12px;
  font-weight: 900;
}

.saved-candidate-picker-tools input,
.saved-candidate-picker-tools select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 12px;
  background: var(--surface);
  color: var(--text);
  font-weight: 800;
}

.saved-candidate-picker-list {
  display: grid;
  flex: 1 1 auto;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 12px 20px 22px;
  overscroll-behavior: contain;
  scrollbar-gutter: auto;
}

.saved-candidate-picker-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(42, 174, 167, 0.18);
  border-radius: 8px;
  background: linear-gradient(145deg, #ffffff, #f6fbfb);
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
}

.saved-candidate-picker-card header {
  display: grid;
  gap: 4px;
}

.saved-candidate-picker-card strong {
  color: var(--text);
  font-size: 15px;
}

.saved-candidate-picker-card small,
.saved-candidate-picker-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.saved-candidate-picker-meta,
.saved-candidate-picker-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.saved-candidate-picker-meta span,
.saved-candidate-picker-pills span {
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(42, 174, 167, 0.09);
  color: var(--text);
  font-size: 11px;
  font-weight: 900;
}

.saved-candidate-picker-card .primary-button {
  justify-self: start;
}

@media (max-width: 760px) {
  .saved-candidate-picker-tools {
    grid-template-columns: 1fr;
  }

  .candidate-source-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .candidate-source-status {
    text-align: left;
  }
}

#cvUpload,
#matchCvUpload,
#intakeCvUpload,
#candidateRelevanceUpload,
#candidateRouteCvUpload,
#candidateCvUpload,
#candidateFilesUpload {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}

.upload-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  margin: 0;
  padding: 0 12px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: var(--surface);
  color: var(--ink);
  font-weight: 800;
}

.upload-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.candidate-route-upload-row {
  grid-template-columns: auto auto minmax(0, 1fr);
}

.candidate-route-parse-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 40px;
  padding: 0 12px;
  white-space: nowrap;
}

.candidate-upload-status {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0 8px;
}

.candidate-upload-status-card {
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid rgba(31, 167, 160, 0.28);
  border-radius: var(--radius);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(238, 250, 248, 0.95));
  box-shadow: 0 10px 24px rgba(11, 53, 81, 0.06);
}

.candidate-upload-status-card > div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.candidate-upload-status-card span {
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.candidate-upload-status-card strong,
.candidate-upload-status-card small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.candidate-upload-status-card strong {
  color: var(--ink);
  font-size: 13px;
}

.candidate-upload-status-card small {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.candidate-upload-status-card.muted {
  align-items: start;
  border-color: var(--line);
  background: #fbfdfd;
  box-shadow: none;
}

.candidate-parse-preview {
  display: grid;
  gap: 14px;
  margin: 12px 0;
  padding: 14px;
  border: 1px solid rgba(31, 167, 160, 0.24);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, #ffffff, rgba(238, 250, 248, 0.82));
  box-shadow: 0 16px 38px rgba(11, 53, 81, 0.08);
}

.candidate-parse-preview header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.candidate-parse-preview header h3 {
  margin: 2px 0 0;
  color: var(--ink);
  font-size: 17px;
  line-height: 1.2;
}

.candidate-parse-preview header > span {
  flex: 0 0 auto;
  padding: 7px 10px;
  border-radius: 999px;
  background: rgba(31, 167, 160, 0.12);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
}

.candidate-parse-preview-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 0;
}

.candidate-parse-preview-grid div {
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.86);
}

.candidate-parse-preview-grid dt {
  margin: 0 0 4px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.candidate-parse-preview-grid dd {
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.file-status {
  min-width: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

@media (max-width: 720px) {
  .candidate-route-upload-row {
    grid-template-columns: 1fr;
  }

  .candidate-route-upload-row .upload-button,
  .candidate-route-parse-button {
    width: 100%;
  }

  .candidate-upload-status,
  .candidate-parse-preview-grid {
    grid-template-columns: 1fr;
  }

  .candidate-parse-preview header {
    align-items: flex-start;
    flex-direction: column;
  }
}

.contact-list {
  display: grid;
  gap: 12px;
}

.contact-input {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.contact-input-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 10px 0;
}

.contact-input-head strong {
  font-size: 13px;
}

.contact-input textarea {
  min-height: 150px;
  margin: 10px;
  width: calc(100% - 20px);
  background: #fff;
}

.remove-contact {
  width: 30px;
  min-height: 30px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--muted);
}

.remove-contact:hover {
  color: var(--rose);
  border-color: rgba(159, 63, 77, 0.45);
}

.output-panel {
  display: flex;
  min-height: calc(100vh - 100px);
  overflow: hidden;
  flex-direction: column;
}

.output-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  flex: 1 1 640px;
  flex-wrap: wrap;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: visible;
}

.tab {
  flex: 0 1 auto;
  min-height: 38px;
  padding: 0 14px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.22);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), 0.18), transparent 38%),
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.86), rgba(var(--theme-secondary-rgb), 0.56));
  color: #ffffff;
  font-weight: 800;
  white-space: normal;
  text-align: center;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.16),
    0 8px 18px rgba(var(--theme-primary-rgb), 0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.tab:hover {
  border-color: rgba(var(--theme-accent-rgb), 0.5);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-accent-rgb), 0.26), transparent 40%),
    linear-gradient(135deg, rgba(var(--theme-primary-rgb), 0.78), rgba(var(--theme-secondary-rgb), 0.78));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.2),
    0 10px 22px rgba(var(--theme-secondary-rgb), 0.13);
  transform: translateY(-1px);
}

.tab.active {
  border-color: rgba(var(--theme-accent-rgb), 0.62);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 42%),
    linear-gradient(135deg, rgba(var(--theme-secondary-rgb), 0.96), rgba(var(--theme-accent-rgb), 0.72));
  color: #ffffff;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 12px 24px rgba(var(--theme-secondary-rgb), 0.2);
}

.status-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  background: #fbfcfc;
}

.status-strip > div {
  position: relative;
  cursor: help;
}

.status-strip > div:focus {
  outline: 2px solid rgba(47, 166, 163, 0.45);
  outline-offset: 4px;
  border-radius: 6px;
}

.status-strip > div::after {
  content: attr(aria-label);
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  z-index: 20;
  width: min(320px, 78vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f2f4a;
  color: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.22);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
  opacity: 0;
  pointer-events: none;
  transform: translateY(-4px);
  transition:
    opacity 0.16s ease,
    transform 0.16s ease;
}

.status-strip > div:hover::after,
.status-strip > div:focus::after {
  opacity: 1;
  transform: translateY(0);
}

.meter-label {
  display: block;
  margin-bottom: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.meter {
  display: block;
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--rose), var(--gold), var(--accent));
  transition: width 0.25s ease;
}

.tab-page {
  display: none;
  flex: 1 1 auto;
  overflow: auto;
  padding: 22px;
}

.tab-page.active {
  display: block;
}

.empty-state {
  display: grid;
  place-items: center;
  align-content: center;
  min-height: 58vh;
  text-align: center;
  color: var(--muted);
}

.empty-symbol {
  display: grid;
  place-items: center;
  width: 92px;
  height: 92px;
  margin-bottom: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 166, 163, 0.12), rgba(79, 197, 193, 0.14)),
    #fff;
}

.empty-symbol svg {
  width: 62px;
  height: 62px;
  fill: var(--accent);
}

.empty-state h2 {
  margin: 0;
  color: var(--ink);
  font-size: 22px;
}

.empty-state p {
  margin: 8px 0 0;
}

.empty-state.compact {
  min-height: auto;
  padding: 0.9rem;
  font-size: 0.9rem;
}

.hidden {
  display: none !important;
  pointer-events: none !important;
}

.pitch-document {
  max-width: 920px;
  margin: 0 auto;
}

.pitch-header {
  padding-bottom: 18px;
  border-bottom: 1px solid var(--line);
}

.eyebrow {
  margin: 0 0 8px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.pitch-header h2 {
  margin: 0;
  font-size: clamp(24px, 3.5vw, 42px);
  line-height: 1.05;
  letter-spacing: 0;
}

.pitch-header p {
  max-width: 720px;
  margin: 12px 0 0;
  color: var(--muted);
  font-size: 16px;
  line-height: 1.55;
}

.pitch-section {
  padding: 22px 0;
  border-bottom: 1px solid var(--line);
}

.pitch-section h3 {
  margin: 0 0 12px;
  font-size: 17px;
}

.pitch-section p,
.pitch-section li {
  color: #273530;
  line-height: 1.62;
}

.pitch-section p {
  margin: 0;
}

.pitch-section ul,
.pitch-section ol {
  display: grid;
  gap: 10px;
  margin: 0;
  padding-left: 20px;
}

.solution-item {
  display: grid;
  gap: 10px;
}

.solution-line {
  display: grid;
  gap: 4px;
}

.solution-line strong {
  color: var(--ink);
  font-size: 12px;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.callout {
  padding: 16px;
  border-left: 4px solid var(--accent);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: var(--accent-soft);
}

.analysis-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

#painAnalysis.analysis-grid {
  align-items: stretch;
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.pain-card,
.contact-card,
.snippet,
.query-item {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.pain-card {
  padding: 16px;
}

.pain-preview-card {
  position: relative;
  display: flex;
  min-width: 0;
  min-height: 176px;
  flex-direction: column;
  gap: 10px;
  overflow: hidden;
  text-align: left;
  color: var(--ink);
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.pain-preview-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0.58;
}

.pain-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 18px 38px rgba(47, 166, 163, 0.16);
}

.pain-card.why-now-card {
  position: relative;
  display: flex;
  gap: 10px;
  width: 100%;
  min-height: 176px;
  text-align: left;
  font: inherit;
  cursor: pointer;
  color: var(--ink);
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.11);
  transition:
    border-color 0.2s ease,
    box-shadow 0.2s ease,
    transform 0.2s ease;
}

.pain-card.why-now-card:hover {
  border-color: var(--accent);
  box-shadow: 0 18px 40px rgba(47, 166, 163, 0.18);
  transform: translateY(-1px);
}

.why-now-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 5px;
  border-radius: var(--radius) 0 0 var(--radius);
  background: linear-gradient(180deg, var(--accent), #4FC5C1);
}

.why-now-card .eyebrow {
  margin: 0;
  color: var(--accent);
}

.pain-preview-card .eyebrow {
  margin: 0;
  color: var(--accent);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.07em;
  text-transform: uppercase;
}

.pain-preview-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.2;
  overflow-wrap: break-word;
}

.pain-preview-card .extra-info-preview-text {
  min-height: 54px;
  -webkit-line-clamp: 3;
}

.pain-preview-card .score-row {
  flex-wrap: wrap;
  justify-content: flex-start;
  gap: 6px;
  margin-top: auto;
}

.pain-preview-card .score-pill {
  min-height: 24px;
  padding: 0 8px;
  font-size: 11px;
}

.pain-preview-card .extra-info-read-more {
  margin-top: 0;
}

.why-now-detail-grid {
  display: grid;
  gap: 12px;
}

.why-now-detail-grid article,
.why-now-signals {
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f8faf9;
}

.why-now-detail-grid strong,
.why-now-signals > strong {
  display: block;
  margin-bottom: 6px;
  color: var(--accent-dark);
}

.pain-analysis-modal-card {
  display: grid;
  gap: 16px;
}

.pain-analysis-modal-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 24px;
  line-height: 1.2;
}

.pain-modal-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pain-modal-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-left: 4px solid var(--accent);
  border-radius: 10px;
  background: #f8fbfb;
  box-shadow: 0 8px 22px rgba(15, 47, 74, 0.06);
}

.pain-modal-section.wide {
  grid-column: 1 / -1;
}

.pain-modal-section > strong,
.pain-modal-evidence-card > strong {
  color: var(--brand-blue);
  font-size: 12px;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.pain-modal-evidence-grid,
.pain-modal-score-grid {
  display: grid;
  gap: 10px;
}

.pain-modal-score-grid {
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
}

.pain-modal-evidence-card {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 9px;
  background: #ffffff;
}

.pain-card.top-match {
  border-color: rgba(47, 166, 163, 0.45);
  box-shadow: 0 10px 28px rgba(47, 166, 163, 0.12);
}

.pain-card h3 {
  margin: 0 0 8px;
  font-size: 17px;
}

.pain-card.pain-preview-card h3 {
  margin: 0;
  font-size: clamp(15px, 1vw, 17px);
  line-height: 1.2;
}

.pain-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.score-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
}

.score-pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.evidence-list {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.evidence {
  padding: 10px;
  border-radius: 6px;
  background: #f8faf9;
  color: #394743;
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 1500px) {
  #painAnalysis.analysis-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 1240px) {
  #painAnalysis.analysis-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 920px) {
  #painAnalysis.analysis-grid,
  .pain-modal-section-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  #painAnalysis.analysis-grid,
  .pain-modal-section-grid {
    grid-template-columns: 1fr;
  }
}

.contact-output {
  display: grid;
  gap: 14px;
  max-width: 1040px;
  margin: 0 auto;
}

.ai-chat-panel {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 900;
  display: flex;
  flex-direction: column;
  width: min(440px, calc(100vw - 36px));
  height: min(560px, calc(100vh - 118px));
  max-height: calc(100vh - 84px);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 18px 46px rgba(15, 47, 74, 0.2);
  backdrop-filter: blur(14px);
  min-width: min(320px, calc(100vw - 36px));
  min-height: 420px;
  resize: none;
  overflow: hidden;
  transform-origin: right bottom;
  transition: width 0.22s ease, height 0.22s ease, min-height 0.22s ease, border-radius 0.22s ease, box-shadow 0.22s ease, transform 0.22s ease, opacity 0.18s ease;
}

.ai-chat-panel.expanded {
  width: min(620px, calc(100vw - 36px));
  height: min(900px, calc(100vh - 64px));
  min-height: min(760px, calc(100vh - 64px));
  box-shadow: 0 26px 74px rgba(15, 47, 74, 0.26);
}

.ai-chat-panel.minimized {
  width: 58px;
  min-width: 58px;
  height: 58px;
  min-height: 58px;
  border-radius: 999px;
  resize: none;
  transform: translateY(0) scale(1);
  box-shadow: 0 18px 42px rgba(var(--theme-secondary-rgb), 0.34);
}

.ai-chat-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 14px 12px;
  border-bottom: 1px solid var(--line);
  flex: 0 0 auto;
}

.ai-chat-panel.minimized .ai-chat-header {
  display: grid;
  place-items: center;
  height: 100%;
  padding: 0;
  border-bottom: 0;
}

.ai-chat-panel.minimized .ai-chat-title,
.ai-chat-panel.minimized #aiChatStatus,
.ai-chat-panel.minimized #expandAiChat,
.ai-chat-panel.minimized .ai-chat-messages,
.ai-chat-panel.minimized .ai-chat-form {
  display: none;
}

.ai-chat-header h2 {
  margin: 0;
  font-size: 14px;
  font-weight: 900;
}

.ai-chat-header p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

#aiChatStatus {
  flex: 0 0 auto;
  padding: 5px 8px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.ai-chat-header-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
}

.ai-chat-action,
.ai-chat-toggle {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
  border: 1px solid var(--line-strong);
  border-radius: 999px;
  background: #fff;
  color: var(--accent-dark);
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, transform 0.18s ease;
}

.ai-chat-action:hover,
.ai-chat-toggle:hover {
  border-color: var(--accent);
  background: var(--accent-soft);
  transform: translateY(-1px);
}

.ai-chat-panel.minimized .ai-chat-toggle {
  width: 58px;
  height: 58px;
  border: 0;
  background: linear-gradient(135deg, var(--theme-secondary), var(--theme-accent));
  color: #fff;
}

.ai-chat-messages {
  display: grid;
  align-content: start;
  gap: 10px;
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  overflow: auto;
  padding: 14px;
  overscroll-behavior: contain;
}

.chat-message {
  max-width: 88%;
  padding: 11px 12px;
  border-radius: var(--radius);
  font-size: 13px;
  line-height: 1.45;
  white-space: normal;
}

.chat-message p {
  margin: 0 0 8px;
}

.chat-message p:last-child {
  margin-bottom: 0;
}

.chat-message ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.chat-message.user {
  justify-self: end;
  background: var(--accent);
  color: #fff;
}

.chat-message.assistant {
  justify-self: start;
  border: 1px solid var(--line);
  background: #fbfcfc;
  color: #273530;
}

.chat-message.loading {
  color: var(--muted);
}

.ai-chat-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  padding: 12px;
  border-top: 1px solid var(--line);
  flex: 0 0 auto;
}

.ai-chat-form textarea {
  min-height: 70px;
  max-height: 260px;
  margin: 0;
  resize: vertical;
}

.extra-info-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.competitor-mapping-section {
  display: grid;
  grid-column: 1 / -1;
  gap: 14px;
  padding: 16px;
  border-radius: var(--radius);
  background: #0f2f4a;
  color: #fff;
}

.competitor-mapping-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
}

.competitor-mapping-head h3,
.competitor-mapping-head p {
  margin: 0;
  color: #fff;
}

.competitor-mapping-head .eyebrow {
  color: rgba(255, 255, 255, 0.78);
}

.competitor-mapping-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
}

.competitor-mapping-grid .extra-info-preview-card {
  min-height: 138px;
  border-color: rgba(255, 255, 255, 0.18);
}

.competitor-mapping-modal-head {
  display: grid;
  gap: 4px;
}

.competitor-mapping-modal-head .eyebrow {
  margin: 0;
  color: var(--accent-dark);
}

.competitor-mapping-detail {
  display: grid;
  gap: 12px;
}

.competitor-mapping-detail article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 10px;
  background: #f8fbfb;
}

.competitor-mapping-detail strong {
  color: #0f2f4a;
}

.executive-briefing-shell {
  display: grid;
  gap: 14px;
}

.executive-briefing-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px;
  border-radius: var(--radius);
  background: #0f2f4a;
  color: #fff;
}

.executive-briefing-hero h2,
.executive-briefing-hero p {
  margin: 0;
  color: #fff;
}

.executive-briefing-hero .eyebrow,
.executive-briefing-hero .muted-line {
  color: rgba(255, 255, 255, 0.78);
}

.executive-briefing-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.executive-briefing-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  padding: 16px;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: var(--radius);
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.08);
  color: #273530;
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.executive-briefing-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.12);
}

.executive-briefing-card:hover .extra-info-card-accent {
  opacity: 1;
}

.executive-briefing-card strong {
  color: #0f2f4a;
  font-size: 15px;
}

.executive-briefing-card span {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  font-size: 13px;
  line-height: 1.55;
}

.executive-briefing-card small {
  color: var(--accent-dark);
  font-weight: 900;
}

.executive-briefing-empty {
  padding: 18px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.executive-briefing-full-head {
  display: grid;
  gap: 4px;
}

.executive-briefing-full-head .eyebrow {
  margin: 0;
  color: var(--accent-dark);
}

.executive-briefing-full-body {
  display: grid;
  gap: 12px;
}

.executive-briefing-full-body article {
  display: grid;
  gap: 6px;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 10px;
  background: #f8fbfb;
}

.executive-briefing-full-body strong {
  color: #0f2f4a;
}

.extra-info-card {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.extra-info-preview-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 150px;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 74, 0.12);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.08);
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition:
    transform 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease;
}

.extra-info-preview-card:hover {
  transform: translateY(-2px);
  border-color: var(--accent);
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.12);
}

.extra-info-card-accent {
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--accent);
  opacity: 0;
  transition: opacity 0.18s ease;
}

.extra-info-preview-card:hover .extra-info-card-accent {
  opacity: 1;
}

.extra-info-card h3 {
  margin: 0 0 10px;
  color: var(--brand-blue);
  font-size: 16px;
}

.extra-info-preview-card h3 {
  margin: 0;
}

.extra-info-preview-text {
  position: relative;
  display: -webkit-box;
  min-height: 64px;
  overflow: hidden;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 4;
  color: #273530;
  font-size: 13px;
  line-height: 1.55;
}

.extra-info-preview-text::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: 0;
  left: 0;
  height: 26px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0), #fff);
  pointer-events: none;
}

.extra-info-read-more {
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.extra-info-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 47, 74, 0.48);
}

.extra-info-modal.hidden {
  display: none;
}

.extra-info-modal-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  width: min(920px, 94vw);
  max-height: min(760px, 88vh);
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(15, 47, 74, 0.28);
}

.extra-info-modal-content {
  overflow: auto;
  padding: 20px 22px 24px;
}

.extra-info-modal-card {
  display: grid;
  gap: 14px;
  color: #273530;
}

.extra-info-cockpit {
  gap: 18px;
}

.extra-info-cockpit-title {
  display: grid;
  gap: 4px;
  padding-bottom: 2px;
}

.extra-info-cockpit-title .eyebrow {
  color: #2fa6a3;
}

.extra-info-intel-stack {
  display: grid;
  gap: 16px;
}

.extra-info-intel-section {
  display: grid;
  gap: 9px;
}

.extra-info-topic-label {
  display: inline-flex;
  width: fit-content;
  max-width: 100%;
  align-items: center;
  min-height: 32px;
  padding: 7px 12px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #fff;
  font-size: 13px;
  font-weight: 800;
  line-height: 1.25;
  overflow-wrap: anywhere;
  box-shadow: 0 8px 18px rgba(47, 166, 163, 0.22);
}

.extra-info-intel-card {
  display: grid;
  gap: 10px;
  padding: 14px 15px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background: #fbfcfc;
  color: #273530;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.08);
}

.extra-info-intel-card p,
.extra-info-intel-card li {
  color: #273530;
  line-height: 1.68;
}

.extra-info-intel-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.extra-info-subcard,
.extra-info-source-row {
  display: grid;
  gap: 6px;
  padding: 10px 11px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
}

.extra-info-subcard span {
  color: #0f2f4a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.extra-info-modal-card h3 {
  margin: 0;
  color: var(--brand-blue);
  font-size: 22px;
}

.extra-info-modal-card p,
.extra-info-modal-card li,
.extra-info-modal-card .rich-text {
  color: #273530;
  line-height: 1.65;
  white-space: pre-wrap;
}

.extra-info-modal-card ul {
  display: grid;
  gap: 12px;
  margin: 0;
  padding-left: 20px;
}

.extra-info-card p,
.extra-info-card li {
  color: #273530;
  line-height: 1.55;
}

.extra-info-card p {
  margin: 0;
}

.extra-info-card ul {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 18px;
}

.extra-source {
  display: inline-block;
  margin-top: 10px;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.source-link {
  display: inline-block;
  margin-top: 10px;
  padding: 7px 10px;
  border-radius: 6px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.source-unavailable {
  display: inline-block;
  margin-top: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.who-toolbar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
  margin-bottom: 16px;
}

.who-search-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.who-search-head,
.who-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.who-search-head h2 {
  margin: 0;
  font-size: 22px;
}

.who-actions {
  justify-content: flex-start;
  flex-wrap: wrap;
}

.apollo-free-mode-toggle {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: fit-content;
  padding: 8px 11px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 900;
}

.apollo-free-mode-toggle input {
  accent-color: var(--accent);
}

.who-filter-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.tag-input-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.editable-tags {
  margin-top: -4px;
}

.removable-tag {
  border: 1px solid rgba(47, 166, 163, 0.28);
  cursor: pointer;
}

.removable-tag span {
  margin-left: 6px;
  color: var(--rose);
  font-weight: 900;
}

.who-output {
  display: grid;
  gap: 16px;
}

.who-quick-stats {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.who-stat-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 180px));
  gap: 10px;
}

.who-stat {
  display: grid;
  gap: 2px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.who-stat strong {
  color: var(--ink);
  font-size: 22px;
  line-height: 1;
}

.who-stat span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.who-focus-tags {
  gap: 6px;
}

.who-summary {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

.who-summary p,
.who-summary div {
  margin: 0 0 8px;
  color: #273530;
  line-height: 1.5;
}

.who-summary p:last-child,
.who-summary div:last-child {
  margin-bottom: 0;
}

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

.candidate-company-discovery {
  display: grid;
  gap: 14px;
}

.candidate-company-discovery > h3 {
  margin: 0;
  font-size: 16px;
}

.candidate-company-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
  gap: 14px;
}

.candidate-company-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  padding: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.candidate-company-card * {
  min-width: 0;
  overflow-wrap: anywhere;
}

.candidate-company-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.candidate-company-head > div {
  min-width: 0;
}

.candidate-company-head h3,
.candidate-company-head p,
.candidate-company-card p {
  margin: 0;
}

.candidate-company-head h3 {
  font-size: 16px;
  line-height: 1.25;
}

.candidate-company-head p,
.candidate-company-card p {
  color: #273530;
  line-height: 1.5;
}

.company-card-section {
  display: grid;
  gap: 5px;
}

.company-card-section strong {
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.compact-bullet-list {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #273530;
  font-size: 13px;
  line-height: 1.45;
}

.company-details {
  display: grid;
  gap: 8px;
}

.company-details summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.compact-evidence-list {
  margin-top: 8px;
}

.compact-tags {
  margin-top: 8px;
}

.clamp-2,
.clamp-3 {
  display: -webkit-box;
  overflow: hidden;
  -webkit-box-orient: vertical;
}

.clamp-2 {
  -webkit-line-clamp: 2;
}

.clamp-3 {
  -webkit-line-clamp: 3;
}

.apollo-debug-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px dashed var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
}

.apollo-debug-card h3 {
  margin: 0;
  font-size: 15px;
}

.debug-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.debug-grid div,
.apollo-error {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 6px;
  background: #f8faf9;
  color: #273530;
  font-size: 12px;
}

.apollo-debug-card pre {
  max-height: 220px;
  overflow: auto;
  padding: 10px;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #f8faf9;
  font-size: 11px;
  line-height: 1.45;
}

.apollo-errors {
  display: grid;
  gap: 8px;
}

.apollo-error {
  background: rgba(159, 63, 77, 0.08);
}

.who-info-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(15, 47, 74, 0.42);
}

.who-info-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  width: min(920px, 100%);
  max-height: min(760px, 92vh);
  padding: 18px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 47, 74, 0.28);
}

.who-info-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 14px;
}

.who-info-header h2 {
  margin: 0;
  font-size: 22px;
}

.who-info-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.who-info-content {
  display: grid;
  gap: 14px;
  overflow: auto;
  padding-right: 4px;
}

.who-tier {
  display: grid;
  align-content: start;
  gap: 12px;
}

.who-tier > h3 {
  margin: 0;
  font-size: 15px;
}

.who-contact-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.who-contact-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.who-contact-head h3,
.who-contact-head p {
  margin: 0;
}

.who-contact-head h3 {
  font-size: 16px;
}

.who-contact-head p {
  margin-top: 4px;
  color: #273530;
}

.confidence-pill {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 46px;
  height: 32px;
  border-radius: 999px;
  background: var(--accent-soft);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.contact-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.add-contact-pill {
  min-height: 32px;
  padding: 0 11px;
  border: 0;
  border-radius: 999px;
  background: var(--accent);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.who-reasons {
  display: grid;
  gap: 7px;
  margin: 0;
}

.who-reasons dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.who-reasons dd {
  margin: 0;
  color: #273530;
  line-height: 1.5;
}

.enriched-fields {
  display: grid;
  gap: 8px;
}

.enriched-fields div {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 6px;
  background: #f8faf9;
}

.enriched-fields strong {
  font-size: 12px;
  color: var(--muted);
}

.enriched-fields span {
  color: #273530;
}

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

.enrichment-debug {
  display: grid;
  gap: 8px;
  padding: 8px;
  border: 1px dashed var(--line);
  border-radius: 6px;
  background: #fbfcfc;
}

.enrichment-debug summary {
  cursor: pointer;
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
}

.enrichment-debug pre {
  max-height: 160px;
  overflow: auto;
  margin: 0;
  padding: 8px;
  border-radius: 6px;
  background: var(--brand-blue);
  color: #f8faf9;
  font-size: 11px;
  line-height: 1.45;
}

.contact-search-modal,
.start-call-modal,
.outreach-choice-modal,
.apollo-credit-modal,
.recent-search-modal,
.content-modal,
.subject-modal,
.api-key-reveal-modal,
.contact-notes-modal,
.contact-insight-modal,
.intake-insight-modal,
.contact-detail-modal,
.candidate-modal,
.candidate-detail-modal,
.candidate-notes-modal,
.candidate-note-full-modal,
.settings-modal {
  position: fixed;
  inset: 0;
  z-index: 60;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(15, 47, 74, 0.48);
}

.contact-search-modal.hidden,
.start-call-modal.hidden,
.outreach-choice-modal.hidden,
.apollo-credit-modal.hidden,
.recent-search-modal.hidden,
.content-modal.hidden,
.subject-modal.hidden,
.api-key-reveal-modal.hidden,
.contact-notes-modal.hidden,
.contact-insight-modal.hidden,
.intake-insight-modal.hidden,
.contact-detail-modal.hidden,
.candidate-modal.hidden,
.candidate-detail-modal.hidden,
.candidate-notes-modal.hidden,
.candidate-note-full-modal.hidden,
.settings-modal.hidden {
  display: none;
  pointer-events: none !important;
}

.contact-search-panel,
.start-call-panel,
.outreach-choice-panel,
.apollo-credit-panel,
.recent-search-panel,
.content-modal-panel,
.subject-panel,
.api-key-reveal-panel,
.contact-notes-panel,
.contact-insight-panel,
.intake-insight-panel,
.contact-detail-panel,
.candidate-modal-panel,
.candidate-detail-panel,
.candidate-notes-panel,
.candidate-note-full-panel,
.settings-panel {
  width: min(1180px, 96vw);
  max-height: 92vh;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: 0 24px 80px rgba(15, 47, 74, 0.28);
}

.start-call-panel {
  width: min(1320px, 97vw);
}

.outreach-choice-panel {
  width: min(620px, 94vw);
  padding: 18px;
}

.apollo-credit-panel {
  width: min(520px, 94vw);
  overflow: hidden;
}

.apollo-credit-content {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.apollo-credit-content p {
  margin: 0;
  color: var(--ink);
  line-height: 1.55;
}

.recent-search-panel,
.contact-notes-panel,
.candidate-notes-panel,
.candidate-note-full-panel {
  width: min(760px, 94vw);
}

.contact-detail-panel {
  width: min(980px, 94vw);
}

.content-modal-panel {
  width: min(920px, 94vw);
}

.contact-insight-panel {
  width: min(980px, 94vw);
}

.intake-insight-panel {
  width: min(920px, 94vw);
}

.intake-insight-content {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.subject-panel {
  width: min(760px, 94vw);
}

.api-key-reveal-panel {
  width: min(680px, 94vw);
  overflow: hidden;
}

.api-key-reveal-content {
  display: grid;
  gap: 12px;
  padding: 18px;
}

.api-key-reveal-content pre {
  margin: 0;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 8px;
  background: #f7f8f8;
  color: #0f2f4a;
  font-family: ui-monospace, SFMono-Regular, Consolas, "Liberation Mono", monospace;
  font-size: 13px;
  line-height: 1.55;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  user-select: text;
}

.settings-panel {
  width: min(520px, 94vw);
}

.settings-content {
  padding: 18px;
}

.profile-menu {
  position: fixed;
  inset: 0;
  z-index: 140;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(5, 18, 30, 0.56);
  backdrop-filter: blur(9px);
}

.profile-menu.hidden {
  display: none;
  pointer-events: none !important;
}

.processing-panel {
  position: fixed;
  top: 76px;
  right: auto;
  z-index: 128;
  width: min(430px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(98, 213, 209, 0.42);
  border-radius: 8px;
  background: #f7fbfb;
  box-shadow:
    0 24px 70px rgba(3, 15, 25, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset;
  transform-origin: var(--processing-panel-arrow-left, 50%) 0;
}

.processing-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--processing-panel-arrow-left, 50%);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(98, 213, 209, 0.42);
  border-left: 1px solid rgba(98, 213, 209, 0.42);
  background: #0f2f4a;
  transform: translateX(-50%) rotate(45deg);
}

.processing-panel.hidden {
  display: none;
}

.processing-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.4), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 64%, #207a82 135%);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.processing-panel-header h2,
.processing-panel-header p {
  margin: 0;
  color: #ffffff;
}

.processing-panel-header h2 {
  font-size: 24px;
  line-height: 1.1;
}

.processing-panel-header p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.42;
}

.processing-panel-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  background: #ffffff;
  color: #31566b;
  font-size: 12px;
  font-weight: 850;
}

.processing-job-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 14px;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 0 0 8px 8px;
}

.processing-job-section {
  display: grid;
  gap: 9px;
}

.processing-section-title {
  margin: 0;
  color: #0f2f4a;
  font-family: var(--nav-font);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.processing-job-section-list {
  display: grid;
  gap: 10px;
}

.processing-job-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.08);
  min-width: 0;
}

.processing-job-card header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-right: 28px;
  min-width: 0;
}

.processing-job-main {
  min-width: 0;
}

.processing-job-card h3,
.processing-job-card p,
.processing-job-card small {
  margin: 0;
}

.processing-job-card h3 {
  color: #0f2f4a;
  font-size: 14px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.processing-job-card p {
  color: #547084;
  font-size: 12px;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.processing-job-card small {
  display: block;
  margin-top: 3px;
  color: #7890a0;
  font-size: 11px;
  font-weight: 800;
}

.processing-status-badge {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.08);
  color: #0f2f4a;
  font-size: 10px;
  font-weight: 1000;
  text-transform: uppercase;
}

.processing-status-badge.running,
.processing-status-badge.queued,
.processing-status-badge.pending,
.processing-status-badge.processing {
  background: rgba(47, 166, 163, 0.2);
  color: #0b6665;
}

.processing-status-badge.completed {
  background: rgba(28, 150, 88, 0.15);
  color: #116a42;
}

.processing-status-badge.failed,
.processing-status-badge.cancelled {
  background: rgba(182, 55, 55, 0.14);
  color: #9e2f2f;
}

.processing-job-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.processing-progress-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef7f7;
  color: #31566b;
}

.processing-progress-summary strong {
  color: #0f2f4a;
  font-size: 16px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.processing-progress-summary span {
  min-width: 0;
  color: #547084;
  font-size: 11px;
  font-weight: 850;
  line-height: 1.25;
  overflow-wrap: anywhere;
  text-align: right;
}

.company-notification-button {
  position: relative;
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(3, 15, 25, 0.16);
  cursor: pointer;
  transition: transform 0.18s ease, background 0.18s ease, box-shadow 0.18s ease;
}

.company-notification-button:hover,
.company-notification-button:focus-visible,
.company-notification-button.has-unread {
  background: linear-gradient(135deg, #0f2f4a 0%, #1fa7a0 100%);
  box-shadow: 0 14px 30px rgba(31, 167, 160, 0.28);
  transform: translateY(-1px);
}

.company-notification-button.has-unread .company-notification-icon {
  animation: companyNotificationPulse 1.8s ease-in-out infinite;
}

.company-notification-count {
  position: absolute;
  top: -4px;
  right: -4px;
  min-width: 18px;
  height: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 5px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 10px;
  font-weight: 1000;
  box-shadow: 0 0 0 2px rgba(5, 18, 30, 0.8);
}

.company-notification-count.hidden {
  display: none;
}

@keyframes companyNotificationPulse {
  0%,
  100% {
    transform: rotate(0deg) scale(1);
  }
  35% {
    transform: rotate(-8deg) scale(1.08);
  }
  70% {
    transform: rotate(8deg) scale(1.08);
  }
}

.company-notification-panel {
  position: fixed;
  top: 76px;
  right: auto;
  z-index: 129;
  width: min(430px, calc(100vw - 32px));
  max-height: min(78vh, 720px);
  display: flex;
  flex-direction: column;
  overflow: visible;
  border: 1px solid rgba(98, 213, 209, 0.42);
  border-radius: 8px;
  background: #f7fbfb;
  box-shadow:
    0 24px 70px rgba(3, 15, 25, 0.24),
    0 0 0 1px rgba(255, 255, 255, 0.58) inset;
  transform-origin: var(--company-notification-panel-arrow-left, 50%) 0;
}

.company-notification-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--company-notification-panel-arrow-left, 50%);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(98, 213, 209, 0.42);
  border-left: 1px solid rgba(98, 213, 209, 0.42);
  background: #0f2f4a;
  transform: translateX(-50%) rotate(45deg);
}

.company-notification-panel.hidden {
  display: none;
}

.company-notification-panel-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.4), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 64%, #207a82 135%);
  color: #ffffff;
  border-radius: 8px 8px 0 0;
}

.company-notification-panel-header h2,
.company-notification-panel-header p {
  margin: 0;
  color: #ffffff;
}

.company-notification-panel-header h2 {
  font-size: 24px;
  line-height: 1.1;
}

.company-notification-panel-header p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.42;
}

.company-notification-toolbar,
.company-notification-center-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  background: #ffffff;
  color: #31566b;
  font-size: 12px;
  font-weight: 850;
}

.company-notification-list {
  flex: 1 1 auto;
  min-height: 0;
  display: grid;
  gap: 10px;
  padding: 14px;
  overflow: auto;
  overscroll-behavior: contain;
  border-radius: 0 0 8px 8px;
}

.company-notification-list.all {
  max-height: min(68vh, 720px);
}

.company-notification-card {
  position: relative;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  padding: 12px 36px 12px 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.08);
  cursor: pointer;
}

.company-notification-card.unread {
  border-color: rgba(47, 166, 163, 0.35);
  background: linear-gradient(135deg, #ffffff 0%, #eefafa 100%);
}

.company-notification-card-icon {
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 10px;
  background: #e2f5f4;
  color: #0f2f4a;
  font-weight: 1000;
}

.company-notification-card strong,
.company-notification-card p,
.company-notification-card small {
  margin: 0;
}

.company-notification-card strong {
  display: block;
  color: #0f2f4a;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.company-notification-card p {
  margin-top: 4px;
  color: #547084;
  font-size: 12px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

.company-notification-card small {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 8px;
  color: #7890a0;
  font-size: 11px;
  font-weight: 850;
}

.company-notification-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(182, 55, 55, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.9);
  color: #9e2f2f;
  font-weight: 1000;
  cursor: pointer;
}

.company-notification-more {
  justify-self: end;
}

.company-notification-center-panel {
  width: min(760px, 94vw);
}

.company-push-permission-card {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 132;
  width: min(420px, calc(100vw - 28px));
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(98, 213, 209, 0.38);
  border-radius: 12px;
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.22), transparent 32%),
    #ffffff;
  box-shadow: 0 22px 60px rgba(3, 15, 25, 0.22);
}

.company-push-permission-card.hidden {
  display: none;
}

.company-push-permission-card h3,
.company-push-permission-card p {
  margin: 0;
}

.company-push-permission-card h3 {
  color: #0f2f4a;
  font-size: 18px;
}

.company-push-permission-card p:not(.eyebrow) {
  margin-top: 5px;
  color: #547084;
  line-height: 1.45;
}

.company-push-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.processing-progress-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #dfecee;
}

.processing-progress-track span {
  display: block;
  height: 100%;
  min-width: 8px;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f2f4a, #2fa6a3);
  transition: width 220ms ease;
}

.processing-job-card-completed .processing-progress-track span {
  background: linear-gradient(90deg, #168456, #34d399);
}

.processing-job-card-failed .processing-progress-track span,
.processing-job-card-cancelled .processing-progress-track span {
  background: linear-gradient(90deg, #9e2f2f, #d97757);
}

.processing-job-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: #ffffff;
  color: #9e2f2f;
  font-size: 18px;
  font-weight: 1000;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 16px rgba(15, 47, 74, 0.1);
  transition: background 160ms ease, border-color 160ms ease, transform 160ms ease;
}

.processing-job-delete:hover {
  border-color: rgba(182, 55, 55, 0.35);
  background: #fff1f1;
  transform: translateY(-1px);
}

.processing-show-more-button {
  width: 100%;
  justify-content: center;
}

.processing-history-panel {
  display: flex;
  flex-direction: column;
  width: min(860px, 94vw);
  max-height: min(88vh, 860px);
  overflow: hidden;
  border-radius: 10px;
}

.processing-history-toolbar {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 12px 16px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
  background: #f7fbfb;
}

.processing-history-list {
  flex: 1;
  display: grid;
  gap: 10px;
  min-height: 0;
  padding: 16px;
  overflow-y: auto;
  overscroll-behavior: contain;
}

.processing-history-modal.hidden {
  display: none;
}

.processing-delete-panel {
  display: flex;
  flex-direction: column;
  width: min(540px, 94vw);
  max-height: min(86vh, 720px);
  overflow: hidden;
  border-radius: 10px;
}

.processing-delete-body {
  padding: 18px;
  color: #31566b;
  line-height: 1.55;
}

.processing-delete-body p {
  margin: 0;
}

.processing-delete-modal .danger-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(158, 47, 47, 0.32);
  border-radius: var(--radius);
  background: linear-gradient(135deg, #8f2d2d, #c64c4c);
  color: #ffffff;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 12px 24px rgba(158, 47, 47, 0.18);
  cursor: pointer;
  transition: transform 160ms ease, box-shadow 160ms ease, filter 160ms ease;
}

.processing-delete-modal .danger-button:hover,
.processing-delete-modal .danger-button:focus-visible {
  color: #ffffff;
  filter: brightness(1.04);
  transform: translateY(-1px);
  box-shadow: 0 16px 28px rgba(158, 47, 47, 0.24);
}

.processing-delete-modal .danger-button:disabled {
  cursor: wait;
  opacity: 0.68;
  transform: none;
}

@media (max-width: 720px) {
  .processing-panel,
  .company-notification-panel,
  .copilot-core-panel,
  .voice-dialer-panel {
    border-radius: 8px;
  }

  .processing-panel::before,
  .company-notification-panel::before,
  .copilot-core-panel::before,
  .voice-dialer-panel::before {
    display: none;
  }

  .processing-panel-header,
  .company-notification-panel-header,
  .copilot-core-panel-header,
  .voice-dialer-header {
    padding: 16px;
  }

  .processing-panel-toolbar,
  .company-notification-toolbar,
  .company-notification-center-toolbar,
  .copilot-core-toolbar {
    align-items: flex-start;
    flex-direction: column;
  }

  .processing-panel-toolbar .compact-button,
  .company-notification-toolbar .compact-button,
  .company-notification-center-toolbar .compact-button,
  .copilot-core-toolbar .compact-button {
    width: 100%;
  }

  .processing-progress-summary {
    align-items: flex-start;
    flex-direction: column;
  }

  .processing-progress-summary span {
    text-align: left;
  }

  .company-notification-card {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-push-permission-card {
    right: 12px;
    bottom: 12px;
  }
}

.profile-menu-panel {
  width: min(760px, 94vw);
  max-height: min(86vh, 760px);
  overflow: auto;
  border: 1px solid rgba(98, 213, 209, 0.42);
  border-radius: 14px;
  background: #ffffff;
  box-shadow:
    0 30px 80px rgba(3, 15, 25, 0.36),
    0 0 0 1px rgba(255, 255, 255, 0.45) inset;
}

.profile-menu-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.42), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 66%, #207a82 135%);
  color: #ffffff;
}

.profile-menu-header h2,
.profile-menu-header p {
  margin: 0;
  color: #ffffff;
}

.profile-menu-header h2 {
  font-size: clamp(25px, 3vw, 34px);
  line-height: 1.08;
}

.profile-menu-header .eyebrow {
  color: #62d5d1;
}

.profile-menu-header p:not(.eyebrow) {
  max-width: 580px;
  opacity: 0.86;
  line-height: 1.5;
}

.profile-menu-header .icon-button {
  flex: 0 0 auto;
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
}

.profile-menu-header .icon-button:hover {
  border-color: rgba(98, 213, 209, 0.72);
  background: rgba(47, 166, 163, 0.28);
  color: #ffffff;
}

.profile-menu-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  padding: 18px;
}

.profile-menu-card {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  width: 100%;
  min-height: 104px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.09), transparent 34%),
    #ffffff;
  color: #0f2f4a;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.profile-menu-card:hover {
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 18px 38px rgba(47, 166, 163, 0.17);
  transform: translateY(-2px);
}

.profile-menu-card.logout {
  grid-column: 1 / -1;
}

.profile-menu-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  font-size: 13px;
  font-weight: 950;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.18);
}

.profile-menu-card strong,
.profile-menu-card small {
  display: block;
}

.profile-menu-card strong {
  color: #0f2f4a;
  font-size: 15px;
  line-height: 1.25;
}

.profile-menu-card small {
  margin-top: 5px;
  color: #52616d;
  line-height: 1.45;
}

.settings-page,
.logbook-page {
  display: grid;
  grid-template-columns: 240px minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.settings-sidebar,
.settings-main,
.logbook-sidebar,
.logbook-main {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.settings-sidebar,
.logbook-sidebar {
  display: grid;
  gap: 8px;
  padding: 14px;
}

.settings-nav,
.logbook-nav {
  min-height: 40px;
  border: 1px solid #0f2f4a;
  border-radius: 8px;
  background: #0f2f4a;
  color: #fff;
  font-weight: 900;
  text-align: left;
}

.settings-nav.active,
.settings-nav:hover,
.logbook-nav.active,
.logbook-nav:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #fff;
}

.settings-main,
.logbook-main {
  display: grid;
  gap: 18px;
  padding: 18px;
}

.dashboard-settings-section {
  display: grid;
  gap: 16px;
}

.dashboard-settings-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.24), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #1f7478);
  color: #ffffff;
}

.dashboard-settings-head h2,
.dashboard-settings-head p {
  margin: 0;
  color: #ffffff;
}

.dashboard-settings-head .eyebrow {
  color: #78e3df;
}

.dashboard-settings-head p:not(.eyebrow) {
  max-width: 720px;
  opacity: 0.9;
  line-height: 1.5;
}

.dashboard-settings-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.dashboard-settings-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.dashboard-settings-card,
.dashboard-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.dashboard-settings-card h3,
.dashboard-settings-card p,
.dashboard-preview-card h3,
.dashboard-preview-card p {
  margin: 0;
}

.dashboard-settings-card h3,
.dashboard-preview-card h3 {
  color: #0f2f4a;
}

.dashboard-widget-settings-list {
  display: grid;
  gap: 10px;
}

.dashboard-widget-setting-card {
  display: grid;
  grid-template-areas:
    "grip main main main"
    "visible position size actions";
  grid-template-columns: minmax(70px, 0.55fr) minmax(78px, 0.6fr) minmax(128px, 1fr) minmax(118px, 0.9fr);
  gap: 12px;
  align-items: stretch;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: 0 10px 20px rgba(15, 47, 74, 0.06);
}

.dashboard-widget-setting-card.is-muted {
  opacity: 0.68;
}

.dashboard-widget-setting-card.is-drop-target {
  border-color: rgba(47, 166, 163, 0.7);
  box-shadow: 0 16px 28px rgba(47, 166, 163, 0.18);
}

.dashboard-widget-setting-grip {
  grid-area: grip;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 42px;
  min-height: 32px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #00736f;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-widget-setting-main {
  grid-area: main;
  display: grid;
  gap: 4px;
  min-width: 0;
  align-content: center;
}

.dashboard-widget-setting-main strong {
  color: #0f2f4a;
  display: block;
  font-size: 15px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.dashboard-widget-setting-main small,
.dashboard-widget-size-control span,
.dashboard-widget-position-control span {
  color: #52616d;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.dashboard-widget-visible-toggle {
  grid-area: visible;
  align-items: center;
  align-self: stretch;
  background: #f7fbfb;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 8px;
  justify-content: flex-start;
  margin: 0;
  min-width: 0;
  padding: 9px 10px;
  white-space: nowrap;
}

.dashboard-widget-size-control,
.dashboard-widget-position-control {
  align-self: stretch;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  display: grid;
  gap: 6px;
  grid-template-rows: auto minmax(38px, auto);
  min-width: 0;
  padding: 8px 10px;
  font-weight: 900;
}

.dashboard-widget-position-control {
  grid-area: position;
}

.dashboard-widget-size-control {
  grid-area: size;
}

.dashboard-widget-size-control select,
.dashboard-widget-position-control select {
  box-sizing: border-box;
  min-width: 0;
  width: 100%;
}

.dashboard-widget-order-actions {
  grid-area: actions;
  align-self: stretch;
  display: grid;
  gap: 6px;
  grid-template-columns: minmax(0, 1fr);
  justify-content: stretch;
  min-width: 0;
}

.dashboard-widget-order-actions .compact-button {
  min-width: 0;
  padding-inline: 10px;
  width: 100%;
}

.dashboard-widget-setting-card .dashboard-widget-setting-grip,
.dashboard-widget-setting-card .dashboard-widget-setting-main,
.dashboard-widget-setting-card .dashboard-widget-visible-toggle,
.dashboard-widget-setting-card .dashboard-widget-position-control,
.dashboard-widget-setting-card .dashboard-widget-size-control,
.dashboard-widget-setting-card .dashboard-widget-order-actions {
  min-width: 0;
}

.dashboard-settings-preview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.dashboard-preview-widget {
  display: grid;
  gap: 4px;
  min-width: 0;
  min-height: 58px;
  padding: 10px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: #f7fbfb;
  color: #0f2f4a;
}

.dashboard-preview-widget strong,
.dashboard-preview-widget small {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-preview-widget strong {
  font-size: 12px;
  font-weight: 950;
}

.dashboard-preview-widget small {
  color: #52616d;
  font-size: 11px;
  font-weight: 850;
}

.dashboard-preview-widget-small {
  grid-column: span 1;
}

.dashboard-preview-widget-normal {
  grid-column: span 2;
}

.dashboard-preview-widget-wide {
  grid-column: span 3;
}

.dashboard-preview-widget-full {
  grid-column: 1 / -1;
}

.dashboard-preview-widget.is-hidden {
  border-style: dashed;
  background: #f2f5f6;
  opacity: 0.58;
}

.api-settings-section {
  display: grid;
  gap: 14px;
}

.api-settings-section h2 {
  margin: 0;
}

.api-demo-notice {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(124, 255, 124, 0.32);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.95), rgba(47, 166, 163, 0.72));
  color: #fff;
  font-weight: 800;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.16);
}

.api-key-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.api-key-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.api-key-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.api-key-card h3 {
  margin: 0;
  color: #0f2f4a;
}

.api-key-status {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.api-key-input-row {
  display: flex;
  gap: 8px;
  align-items: center;
  min-width: 0;
}

.api-key-input-row input {
  flex: 1 1 160px;
  min-width: 0;
}

.api-key-input-row button {
  flex: 0 0 auto;
  min-width: 68px;
}

.devices-settings-section {
  display: grid;
  gap: 16px;
}

.devices-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
}

.devices-settings-head h2 {
  margin: 0;
  color: #0f2f4a;
}

.devices-settings-head p {
  margin: 6px 0 0;
  color: #587184;
}

.devices-settings-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.devices-section-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.devices-compact-grid {
  grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr);
}

.device-list-section {
  display: grid;
  gap: 12px;
  align-content: start;
  padding: 15px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.device-list-section.current {
  border-color: rgba(47, 166, 163, 0.34);
  background: linear-gradient(180deg, rgba(47, 166, 163, 0.08), #fff 42%);
}

.device-list-section header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.device-list-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.device-card-list {
  display: grid;
  gap: 10px;
}

.device-session-card {
  display: grid;
  gap: 12px;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.11);
  border-radius: 8px;
  background: #f9fbfb;
}

.device-session-card.current {
  border-color: rgba(47, 166, 163, 0.46);
  background: #f2fbfa;
}

.device-session-card.blocked {
  border-color: rgba(185, 28, 28, 0.25);
  background: #fff7f7;
}

.device-session-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.device-session-card h4 {
  margin: 0;
  color: #0f2f4a;
  font-size: 15px;
}

.device-session-card p {
  margin: 4px 0 0;
  color: #587184;
  font-size: 13px;
}

.device-session-card dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 12px;
  margin: 0;
}

.device-session-card dl div {
  min-width: 0;
}

.device-session-card dt {
  color: #718797;
  font-size: 11px;
  font-weight: 800;
  text-transform: uppercase;
}

.device-session-card dd {
  margin: 2px 0 0;
  color: #0f2f4a;
  font-size: 13px;
  font-weight: 700;
  overflow-wrap: anywhere;
}

.device-status {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
  white-space: nowrap;
}

.device-status.inactive {
  background: rgba(88, 113, 128, 0.12);
  color: #587184;
}

.device-status.blocked {
  background: rgba(185, 28, 28, 0.12);
  color: #991b1b;
}

.device-status.trusted {
  background: rgba(15, 47, 74, 0.11);
  color: #0f2f4a;
}

.device-risk {
  padding: 8px 10px;
  border-radius: 8px;
  background: rgba(245, 158, 11, 0.12);
  color: #704900 !important;
  font-weight: 800;
}

.device-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.devices-overview-card {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.04), rgba(47, 166, 163, 0.09));
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
}

.devices-overview-card h3,
.devices-overview-card p {
  margin: 0;
}

.devices-overview-card p:not(.eyebrow) {
  margin-top: 5px;
  color: #587184;
}

.devices-all-modal-panel {
  display: flex;
  flex-direction: column;
  width: min(1120px, 96vw);
  max-height: min(88vh, 920px);
  overflow: hidden;
}

.devices-all-modal-body {
  overflow-y: auto;
  min-height: 0;
}

.devices-modal-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.devices-modal-summary article {
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f5fbfb;
}

.devices-modal-summary span {
  display: block;
  color: #587184;
  font-size: 12px;
  font-weight: 800;
}

.devices-modal-summary strong {
  display: block;
  margin-top: 4px;
  color: #0f2f4a;
  font-size: 22px;
  line-height: 1;
}

.devices-modal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.devices-modal-grid .device-list-section:first-child {
  grid-column: 1 / -1;
}

.employee-devices-grid {
  grid-template-columns: 1fr;
}

.email-settings-section {
  display: grid;
  gap: 16px;
}

.email-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
}

.email-settings-head h2,
.email-settings-head p {
  margin: 0;
  color: #fff;
}

.email-settings-head p:not(.eyebrow) {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.email-settings-layout {
  display: grid;
  grid-template-columns: minmax(220px, 280px) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.personalization-settings-section {
  display: grid;
  gap: 16px;
}

.automation-settings-section {
  display: grid;
  gap: 16px;
}

.motivator-page-shell {
  display: grid;
  gap: 16px;
}

.motivator-page-hero {
  padding: 20px 22px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 211, 153, 0.28), transparent 34%),
    linear-gradient(135deg, #0b3551, #1fa7a0);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
}

.motivator-page-hero h2,
.motivator-page-hero p {
  margin: 0;
  color: #ffffff;
}

.motivator-page-hero p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 820px;
  color: rgba(255, 255, 255, 0.84);
}

.motivator-settings-section {
  display: grid;
  gap: 16px;
}

.intelligence-center-panel {
  display: grid;
  gap: 16px;
}

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

.intelligence-status-grid article {
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 47, 74, 0.08);
}

.intelligence-status-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.intelligence-status-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 950;
}

.intelligence-status-grid strong.is-disabled {
  color: #9b1c1c;
}

.intelligence-budget-card,
.intelligence-module-card {
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 250, 0.92));
  box-shadow: var(--shadow-soft);
}

.intelligence-budget-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(300px, 1.4fr);
  gap: 18px;
}

.intelligence-budget-card h3,
.intelligence-module-card h3 {
  margin: 3px 0 8px;
  color: var(--ink);
}

.intelligence-budget-card p:last-child,
.intelligence-module-card > p {
  margin: 0 0 12px;
  color: var(--muted);
  line-height: 1.55;
}

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

.intelligence-module-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.intelligence-package-tags {
  flex: 0 0 auto;
  max-width: 190px;
  padding: 6px 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 900;
  text-align: right;
}

.intelligence-control-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intelligence-control-grid > label:not(.automation-rule-card) {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.intelligence-control-grid input[type="number"],
.intelligence-control-grid select {
  min-height: 42px;
}

.opportunity-engine-card {
  grid-column: 1 / -1;
}

.opportunity-engine-card > p {
  max-width: 760px;
}

.opportunity-engine-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: stretch;
}

.opportunity-engine-grid .automation-rule-card {
  min-height: 94px;
  padding: 12px;
}

.opportunity-engine-footer {
  grid-column: 1 / -1;
  justify-self: center;
  width: min(340px, 100%);
  margin-top: 4px;
}

@media (min-width: 721px) and (max-width: 1180px) {
  .opportunity-engine-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

.motivator-engine-card {
  margin-bottom: 16px;
}

.motivator-engine-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(360px, 1.28fr);
  gap: 18px;
  align-items: start;
}

.motivator-engine-copy {
  color: var(--muted);
  line-height: 1.6;
}

.motivator-engine-copy p {
  margin: 0 0 12px;
}

.motivator-engine-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.motivator-engine-toggle-grid,
.motivator-dropdown-grid {
  align-items: stretch;
}

.motivator-engine-card .motivator-module-grid {
  margin-top: 2px;
}

.motivator-save-row {
  display: flex;
  justify-content: flex-end;
}

.motivator-save-row .primary-button {
  width: 100%;
  min-height: 44px;
}

.motivator-engine-card .motivator-event-preview {
  margin-top: 2px;
}

.intelligence-center-actions {
  display: flex;
  justify-content: flex-end;
}

.automation-settings-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.34), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #1d6f78);
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
}

.automation-settings-head h2,
.automation-settings-head p {
  margin: 0;
  color: #ffffff;
}

.automation-settings-head p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 780px;
  color: rgba(255, 255, 255, 0.84);
}

.automation-rule-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.automation-rule-card,
.automation-rule-empty {
  min-width: 0;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.automation-rule-card {
  display: grid;
  grid-template-columns: auto auto minmax(0, 1fr);
  gap: 12px;
  align-items: flex-start;
  padding: 14px;
  cursor: pointer;
}

.automation-rule-card input {
  width: 1px;
  height: 1px;
  opacity: 0;
}

.automation-rule-toggle {
  position: relative;
  display: inline-block;
  width: 46px;
  height: 26px;
  border-radius: 999px;
  background: #d7e3e6;
  transition: background 0.16s ease;
}

.automation-rule-toggle::after {
  content: "";
  position: absolute;
  top: 4px;
  left: 4px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #ffffff;
  box-shadow: 0 4px 10px rgba(15, 47, 74, 0.18);
  transition: transform 0.16s ease;
}

.automation-rule-card input:checked + .automation-rule-toggle {
  background: linear-gradient(135deg, #2fa6a3, #0f2f4a);
}

.automation-rule-card input:checked + .automation-rule-toggle::after {
  transform: translateX(20px);
}

.automation-rule-card strong {
  display: block;
  color: #0f2f4a;
  line-height: 1.25;
}

.automation-rule-card small {
  display: block;
  margin-top: 5px;
  color: #5c6b77;
  line-height: 1.45;
}

.automation-rule-empty {
  grid-column: 1 / -1;
  padding: 18px;
}

.automation-rule-empty h3,
.automation-rule-empty p {
  margin: 0;
}

.personalization-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-radius: 8px;
  background: var(--theme-gradient);
  color: #fff;
  box-shadow: 0 18px 40px rgba(var(--theme-primary-rgb), 0.16);
}

.personalization-head h2,
.personalization-head p {
  margin: 0;
  color: #fff;
}

.personalization-head p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 760px;
  color: rgba(255, 255, 255, 0.84);
}

.personalization-tenant-badge {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.personalization-layout {
  display: grid;
  grid-template-columns: minmax(240px, 300px) minmax(520px, 1fr);
  gap: 16px;
  align-items: start;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  box-sizing: border-box;
}

.personalization-layout > * {
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.personalization-presets-card,
.personalization-form,
.theme-preview-card {
  border: 1px solid rgba(var(--theme-primary-rgb), 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(var(--theme-primary-rgb), 0.08);
}

.personalization-presets-card,
.personalization-form {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.personalization-modal-root {
  display: contents;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.personalization-config-actions {
  display: grid;
  gap: 10px;
  padding-top: 2px;
}

.personalization-config-actions button {
  width: 100%;
  justify-content: center;
}

.personalization-presets-card h3,
.personalization-presets-card p,
.personalization-form p,
.theme-preview-card h3,
.theme-preview-card p {
  margin: 0;
}

.personalization-presets-card p,
.theme-preview-card p {
  color: #60717f;
  line-height: 1.5;
}

.theme-preset-list {
  display: grid;
  gap: 9px;
}

.theme-preset-control {
  display: grid;
  gap: 8px;
  min-width: 0;
  color: var(--ink);
  font-weight: 850;
}

.theme-preset-select-wrap {
  position: relative;
  display: block;
  min-width: 0;
}

.theme-preset-select-wrap::after {
  content: "";
  position: absolute;
  right: 8px;
  top: 50%;
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(var(--theme-secondary-rgb), 0.16), rgba(var(--theme-accent-rgb), 0.24));
  pointer-events: none;
  transform: translateY(-50%);
}

.theme-preset-select-wrap::before {
  content: "";
  position: absolute;
  right: 20px;
  top: 50%;
  z-index: 1;
  width: 8px;
  height: 8px;
  border-right: 2px solid var(--theme-primary);
  border-bottom: 2px solid var(--theme-primary);
  pointer-events: none;
  transform: translateY(-62%) rotate(45deg);
}

.theme-preset-select-wrap select {
  width: 100%;
  height: 46px;
  padding: 0 56px 0 14px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.28);
  border-radius: 12px;
  background-color: #ffffff;
  background-image:
    linear-gradient(135deg, #ffffff, rgba(var(--theme-secondary-rgb), 0.08));
  background-position: 0 0;
  background-repeat: no-repeat;
  background-size: 100% 100%;
  color: var(--ink);
  font: inherit;
  font-weight: 750;
  line-height: 46px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 10px 20px rgba(var(--theme-primary-rgb), 0.06);
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.theme-preset-select-wrap select::-ms-expand {
  display: none;
}

.theme-preset-select-wrap select:hover,
.theme-preset-select-wrap select:focus {
  border-color: var(--theme-secondary);
  box-shadow: 0 0 0 3px rgba(var(--theme-secondary-rgb), 0.12), 0 12px 24px rgba(var(--theme-primary-rgb), 0.08);
  outline: none;
}

.theme-preset-button {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  min-height: 48px;
  padding: 10px;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.22);
  border-radius: 8px;
  background: #f8fbfb;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
  transition: border-color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.theme-preset-button:hover,
.theme-preset-button.active {
  border-color: var(--theme-secondary);
  box-shadow: 0 14px 28px rgba(var(--theme-secondary-rgb), 0.16);
  transform: translateY(-1px);
}

.theme-preset-swatches {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.theme-preset-swatches i {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  box-shadow: 0 0 0 2px #fff, 0 0 0 3px rgba(15, 47, 74, 0.08);
}

.theme-field-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.theme-field-grid label,
.theme-style-grid label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 850;
}

.theme-style-section {
  display: grid;
  gap: 13px;
  padding-top: 14px;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.1);
}

.theme-style-section h3,
.theme-style-section p {
  margin: 0;
}

.theme-style-section p:not(.eyebrow) {
  color: #60717f;
  line-height: 1.5;
}

.theme-style-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr));
  gap: 14px;
}

.theme-color-row {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 8px;
  align-items: center;
}

.theme-color-row input[type="color"] {
  width: 48px;
  height: 42px;
  padding: 3px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  cursor: pointer;
}

.theme-color-row input:not([type="color"]) {
  width: 100%;
  height: 42px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 500;
}

.theme-field-grid select,
.theme-style-grid select {
  width: 100%;
  height: 44px;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid var(--line);
  border-radius: 8px;
  background-color: #fff;
  background-image:
    url("data:image/svg+xml,%3Csvg width='12' height='12' viewBox='0 0 12 12' fill='none' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M3 4.5L6 7.5L9 4.5' stroke='%230B3551' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E"),
    linear-gradient(135deg, rgba(31, 167, 160, 0.14), rgba(52, 211, 153, 0.22));
  background-position: right 17px center, right 7px center;
  background-repeat: no-repeat;
  background-size: 12px 12px, 32px 32px;
  color: var(--ink);
  font-size: 12.5px;
  font-weight: 800;
  line-height: 44px;
  padding: 0 56px 0 12px;
  text-overflow: ellipsis;
  cursor: pointer;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
}

.theme-field-grid select::-ms-expand,
.theme-style-grid select::-ms-expand {
  display: none;
}

.theme-contrast-warning {
  padding: 11px 12px;
  border: 1px solid #f1c27d;
  border-radius: 8px;
  background: #fff7ed;
  color: #8a4a0a;
  font-weight: 800;
  line-height: 1.4;
}

.personalization-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.theme-settings-modal {
  position: fixed;
  inset: 0;
  z-index: 1400;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(8, 24, 38, 0.44);
  backdrop-filter: blur(8px);
}

.theme-settings-modal.hidden {
  display: none;
  pointer-events: none !important;
}

.theme-settings-modal-shell {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  width: min(760px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: hidden;
  border: 1px solid rgba(var(--theme-secondary-rgb), 0.24);
  border-radius: 14px;
  background:
    radial-gradient(circle at top right, rgba(var(--theme-secondary-rgb), 0.12), transparent 34%),
    rgba(255, 255, 255, 0.98);
  box-shadow: 0 32px 80px rgba(var(--theme-primary-rgb), 0.24);
}

.theme-settings-modal-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px 22px;
  border-bottom: 1px solid rgba(var(--theme-primary-rgb), 0.08);
}

.theme-settings-modal-head h3,
.theme-settings-modal-head p {
  margin: 0;
}

.theme-settings-modal-head h3 {
  color: var(--theme-primary);
  font-size: 22px;
  line-height: 1.12;
}

.theme-settings-modal-head p:not(.eyebrow) {
  max-width: 560px;
  color: #60717f;
  line-height: 1.45;
}

.theme-settings-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 20px 22px;
}

.theme-settings-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  padding: 16px 22px 20px;
  border-top: 1px solid rgba(var(--theme-primary-rgb), 0.08);
  background: rgba(248, 251, 251, 0.88);
}

.theme-preview-card {
  --preview-primary: var(--theme-primary);
  --preview-secondary: var(--theme-secondary);
  --preview-accent: var(--theme-accent);
  --preview-button: var(--theme-button);
  --preview-bg: var(--theme-bg);
  --preview-gradient: var(--theme-gradient);
  overflow: hidden;
  background: var(--preview-bg);
  width: 100%;
  align-self: start;
}

.theme-preview-header {
  display: grid;
  gap: 4px;
  padding: 16px;
  background: var(--preview-gradient);
  color: #fff;
}

.theme-preview-header span {
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.theme-preview-header strong {
  font-size: 20px;
  line-height: 1.15;
}

.theme-preview-header small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.35;
}

.theme-preview-body {
  display: grid;
  grid-template-columns: minmax(150px, 0.52fr) minmax(0, 1fr);
  align-items: stretch;
  gap: 18px;
  padding: 18px;
  min-height: 246px;
}

.theme-preview-nav {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  background: var(--preview-gradient);
  color: #fff;
  font-weight: 900;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.theme-preview-content {
  display: grid;
  gap: 10px;
  align-content: start;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fff;
}

.theme-preview-card.preview-nav-topbar .theme-preview-body {
  grid-template-columns: 1fr;
  min-height: 190px;
}

.theme-preview-card.preview-nav-topbar .theme-preview-nav {
  min-height: 36px;
  text-align: center;
}

.theme-preview-card.preview-nav-compact-sidebar .theme-preview-body {
  grid-template-columns: minmax(82px, 0.62fr) minmax(0, 1fr);
}

.theme-preview-card.preview-nav-icon-sidebar .theme-preview-body {
  grid-template-columns: 48px minmax(0, 1fr);
}

.theme-preview-card.preview-nav-icon-sidebar .theme-preview-nav {
  display: grid;
  place-items: center;
  padding: 0;
  font-size: 0;
}

.theme-preview-card.preview-nav-icon-sidebar .theme-preview-nav::before {
  content: "R";
  font-size: 14px;
}

.theme-preview-card.preview-card-rounded .theme-preview-content {
  border-radius: 18px;
}

.theme-preview-card.preview-card-compact .theme-preview-content {
  gap: 7px;
  padding: 11px;
  border-radius: 7px;
}

.theme-preview-card.preview-card-spacious .theme-preview-content {
  gap: 14px;
  padding: 18px;
  border-radius: 14px;
}

.theme-preview-card.preview-button-rounded .theme-preview-button {
  border-radius: 14px;
}

.theme-preview-card.preview-button-pill .theme-preview-button {
  border-radius: 999px;
}

.theme-preview-card.preview-button-gradient .theme-preview-button {
  border-radius: 12px;
  background: var(--preview-gradient);
}

.theme-preview-card.preview-shadow-none .theme-preview-content {
  box-shadow: none;
}

.theme-preview-card.preview-shadow-subtle .theme-preview-content {
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.08);
}

.theme-preview-card.preview-shadow-deep .theme-preview-content {
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.18);
}

.theme-preview-card.preview-spacing-compact .theme-preview-body,
.theme-preview-card.preview-spacing-compact .theme-preview-content {
  gap: 8px;
}

.theme-preview-card.preview-spacing-spacious .theme-preview-body,
.theme-preview-card.preview-spacing-spacious .theme-preview-content {
  gap: 16px;
}

.theme-preview-card.preview-header-minimal .theme-preview-header {
  background: #fff;
  color: var(--preview-primary);
}

.theme-preview-card.preview-header-minimal .theme-preview-header small {
  color: #60717f;
}

.theme-preview-card.preview-header-executive .theme-preview-header {
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, var(--preview-primary), #061625 70%);
}

.theme-preview-badge {
  width: fit-content;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(var(--theme-secondary-rgb), 0.12);
  color: var(--preview-primary);
  font-size: 12px;
  font-weight: 900;
}

.theme-preview-button {
  min-height: 40px;
  border: 0;
  border-radius: 8px;
  background: var(--preview-button);
  color: #fff;
  font-weight: 900;
}

.email-account-list-card,
.email-account-form,
.email-form-card {
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.email-account-list-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  position: sticky;
  top: 18px;
}

.email-account-list-card h3,
.email-account-list-card p,
.email-form-card h3 {
  margin: 0;
}

.email-account-list-card p {
  color: #60717f;
  line-height: 1.5;
}

.email-account-list {
  display: grid;
  gap: 8px;
}

.email-account-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: #f7fbfb;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease;
}

.email-account-item:hover,
.email-account-item.active {
  border-color: #2fa6a3;
  box-shadow: 0 14px 28px rgba(47, 166, 163, 0.18);
  transform: translateY(-1px);
}

.email-account-item strong {
  font-size: 14px;
}

.email-account-item span,
.email-account-item small {
  color: #60717f;
}

.email-account-form {
  display: grid;
  gap: 14px;
  padding: 16px;
  background: #f8fafb;
}

.email-section-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 12px;
}

.email-section-tile {
  display: grid;
  gap: 8px;
  min-height: 154px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.07);
  transition:
    transform 0.18s ease,
    box-shadow 0.18s ease,
    border-color 0.18s ease;
}

.email-section-tile:hover {
  border-color: rgba(47, 166, 163, 0.72);
  box-shadow: 0 18px 34px rgba(47, 166, 163, 0.18);
  transform: translateY(-2px);
}

.email-section-tile strong,
.email-section-tile small,
.email-section-tile em {
  display: block;
  margin: 0;
}

.email-section-tile small {
  color: #60717f;
  line-height: 1.45;
}

.email-section-tile em {
  align-self: end;
  width: fit-content;
  padding: 6px 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.1);
  color: #0f2f4a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.email-section-icon {
  width: 34px;
  height: 34px;
  display: inline-grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  box-shadow: 0 10px 20px rgba(47, 166, 163, 0.24);
}

.email-account-form > .email-form-card {
  display: none;
}

.email-form-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.email-section-modal {
  position: fixed;
  inset: 0;
  z-index: 80;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(7, 23, 36, 0.56);
  backdrop-filter: blur(8px);
}

body.email-section-modal-open {
  overflow: hidden;
}

.email-section-modal.hidden {
  display: none;
}

.email-section-modal-shell {
  width: min(860px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid rgba(47, 166, 163, 0.34);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 30px 80px rgba(7, 23, 36, 0.32);
}

.email-section-modal-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px 20px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #fff;
}

.email-section-modal-head h3,
.email-section-modal-head p {
  margin: 0;
  color: #fff;
}

.email-section-modal-head p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.email-section-modal-body {
  min-height: 0;
  overflow: auto;
  padding: 18px 20px;
  background: #f8fafb;
}

.email-section-modal-body .email-form-card {
  display: grid;
  padding: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.email-section-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  padding: 14px 20px;
  border-top: 1px solid rgba(15, 47, 74, 0.1);
  background: #fff;
}

.email-form-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.email-form-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.email-form-card label,
.email-test-row label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.email-form-card input,
.email-form-card textarea,
.email-form-card select,
.email-test-row input {
  width: 100%;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
}

.toggle-line {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  white-space: nowrap;
}

.toggle-line input {
  width: auto;
}

.email-signature-row,
.email-test-row,
.email-form-actions {
  display: flex;
  gap: 12px;
  align-items: end;
  flex-wrap: wrap;
}

.email-form-actions {
  position: relative;
  z-index: 2;
}

.email-form-card .toggle-line {
  position: relative;
  z-index: 0;
}

.email-signature-row label,
.email-test-row label {
  flex: 1 1 240px;
}

.email-signature-row small {
  color: #60717f;
}

.email-signature-mode-toggle {
  display: inline-flex;
  width: fit-content;
  padding: 4px;
  gap: 4px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: #eef8f8;
}

.email-signature-mode-toggle button {
  min-height: 34px;
  padding: 7px 12px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f2f4a;
  font-weight: 900;
  cursor: pointer;
}

.email-signature-mode-toggle button.active {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #fff;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.22);
}

.email-signature-editor-panel,
.email-signature-html-mode {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.email-signature-editor-panel.hidden,
.email-signature-html-mode.hidden {
  display: none;
}

.email-signature-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fff;
}

.email-signature-toolbar button,
.email-signature-toolbar label {
  min-height: 34px;
}

.email-signature-toolbar button {
  padding: 7px 10px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 7px;
  background: #f7fbfb;
  color: #0f2f4a;
  font-weight: 900;
  cursor: pointer;
}

.email-signature-toolbar button:hover {
  border-color: rgba(47, 166, 163, 0.55);
  background: rgba(47, 166, 163, 0.1);
}

.email-signature-toolbar label {
  display: inline-grid !important;
  gap: 4px !important;
  flex: 0 1 132px;
  color: #60717f;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.email-signature-toolbar select,
.email-signature-toolbar input[type="color"] {
  width: 100%;
  min-height: 34px;
  padding: 6px 8px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 7px;
  background: #fff;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 800;
}

.email-signature-toolbar input[type="color"] {
  padding: 3px;
}

.email-signature-rich-editor {
  min-height: 168px;
  max-height: 300px;
  overflow: auto;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
  line-height: 1.5;
  outline: none;
  overflow-wrap: anywhere;
}

.email-signature-rich-editor:focus {
  border-color: #2fa6a3;
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.14);
}

.email-signature-rich-editor:empty::before {
  content: attr(data-placeholder);
  color: #7d909e;
}

.email-signature-rich-editor.is-disabled {
  opacity: 0.65;
  cursor: not-allowed;
}

.email-signature-html-mode small {
  color: #60717f;
  line-height: 1.45;
}

.email-signature-preview {
  min-height: 58px;
  padding: 12px;
  border: 1px dashed rgba(47, 166, 163, 0.35);
  border-radius: 8px;
  background: #f7fbfb;
  color: #0f2f4a;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.email-signature-preview img {
  max-width: 180px;
  max-height: 90px;
  object-fit: contain;
  display: block;
  margin-top: 8px;
}

.email-signature-preview.compact {
  min-height: 0;
  margin-bottom: 12px;
  font-size: 12px;
}

@media (max-width: 760px) {
  .email-signature-mode-toggle {
    width: 100%;
  }

  .email-signature-mode-toggle button {
    flex: 1 1 0;
  }

  .email-signature-toolbar {
    align-items: stretch;
  }

  .email-signature-toolbar button {
    flex: 1 1 92px;
  }

  .email-signature-toolbar label {
    flex: 1 1 150px;
  }
}

.email-form-actions {
  justify-content: flex-end;
}

.mail-sender-row {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.mail-signature-toggle {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  min-height: 44px;
  white-space: nowrap;
}

.mail-signature-toggle input {
  width: auto;
}

.logbook-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(160px, 1fr)) auto;
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f7f8f8;
}

.logbook-filters label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.logbook-filter-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.logbook-list {
  display: grid;
  gap: 12px;
}

.log-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fff;
}

.log-card header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.log-card h3 {
  margin: 0;
  color: #0f2f4a;
  font-size: 16px;
}

.log-card-meta {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.log-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.log-pill.dark {
  background: #0f2f4a;
  color: #fff;
}

.log-pill.warning {
  background: rgba(255, 193, 7, 0.18);
  color: #6b4b00;
}

.log-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.log-detail {
  display: grid;
  gap: 6px;
  padding: 10px;
  border-radius: 8px;
  background: #f7f8f8;
  min-width: 0;
}

.log-detail strong {
  color: #0f2f4a;
  font-size: 12px;
}

.log-json {
  max-height: 260px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border-radius: 8px;
  background: #0f2f4a;
  color: #fff;
  white-space: pre-wrap;
  word-break: break-word;
}

.log-empty {
  padding: 18px;
  border: 1px dashed rgba(15, 47, 74, 0.25);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
  font-weight: 800;
}

.modal-action-stack {
  display: grid;
  gap: 8px;
  justify-items: end;
}

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

.modal-header {
  position: sticky;
  top: 0;
  z-index: 2;
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  padding: 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  background: var(--brand-blue);
  color: #fff;
}

.modal-header h2,
.modal-header p,
.modal-header .eyebrow {
  color: #fff;
}

.modal-header .secondary-button {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.modal-header .secondary-button:hover {
  background: var(--brand-blue-hover);
  color: #fff;
}

.contact-search-content,
.contactdb-shell,
.contactdb-output,
.recent-search-modal-content,
.content-modal-body,
.subject-modal-body,
.contact-notes-content,
.contact-insight-content,
.contact-detail-content,
.candidate-detail-content,
.candidate-notes-content,
.candidate-note-full-content,
.content-generator-shell {
  display: grid;
  gap: 16px;
}

.contact-search-content,
.recent-search-modal-content,
.content-modal-body,
.subject-modal-body,
.contact-notes-content,
.contact-insight-content,
.contact-detail-content,
.candidate-detail-content,
.candidate-notes-content,
.candidate-note-full-content,
.content-generator-shell {
  padding: 18px;
}

.content-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  padding: 14px 18px 18px;
  border-top: 1px solid var(--line);
}

.confirm-delete-panel {
  width: min(520px, calc(100vw - 28px));
}

.confirm-delete-header {
  background:
    radial-gradient(circle at 88% 18%, rgba(47, 166, 163, 0.32), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #123a58);
}

.confirm-delete-body {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 14px;
  align-items: start;
  padding: 22px;
  background: #fff;
}

.confirm-delete-body p {
  margin: 0 0 6px;
  color: #0f2f4a;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.35;
}

.confirm-delete-body small {
  color: var(--muted);
  font-weight: 800;
}

.confirm-delete-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: rgba(196, 55, 55, 0.12);
  color: #b42318;
  font-size: 18px;
  font-weight: 950;
}

.confirm-delete-actions {
  background: #fbfcfc;
}

.rich-text-block {
  margin: 0 0 14px;
  color: inherit;
  line-height: 1.62;
  white-space: pre-wrap;
}

ul.rich-text-block,
ol.rich-text-block {
  display: grid;
  gap: 7px;
  margin: 6px 0 18px;
  padding-left: 22px;
  white-space: normal;
}

.rich-text-block:last-child {
  margin-bottom: 0;
}

.content-modal-card .rich-text-block,
.content-card .rich-text-block,
.generated-outreach .rich-text-block,
.guided-call-copy .rich-text-block,
.callout .rich-text-block,
.snippet .rich-text-block {
  color: #273530;
}

.content-preview-text {
  color: #273530;
  line-height: 1.5;
}

.content-preview-text.clamp-3 {
  display: block;
  max-height: 4.9em;
  overflow: hidden;
}

.content-preview-text .rich-text-block {
  margin-bottom: 8px;
}

.subject-list {
  display: grid;
  gap: 10px;
}

.subject-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  width: 100%;
  padding: 13px 14px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.subject-card.loading {
  cursor: default;
}

.subject-card:hover:not(.loading) {
  border-color: #2fa6a3;
  background: rgba(47, 166, 163, 0.08);
  transform: translateY(-1px);
}

.subject-card span:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.subject-card strong {
  color: inherit;
  line-height: 1.35;
}

.subject-card small {
  color: #5a6a66;
  font-size: 12px;
  line-height: 1.35;
}

.subject-copy-icon {
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #fff;
  font-size: 15px;
  font-weight: 900;
}

.modal-contact-summary,
.recent-search-card,
.contactdb-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.who-tier-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
  align-items: start;
}

.generated-outreach {
  display: grid;
  gap: 10px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid var(--line);
}

.generated-outreach article {
  display: grid;
  gap: 8px;
  padding: 10px;
  border-radius: 8px;
  background: #f5faf8;
}

.choice-actions,
.inline-actions,
.recent-search-list {
  display: grid;
  gap: 8px;
}

.recent-searches {
  max-width: 420px;
  margin-top: 12px;
}

.recent-search-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
}

.recent-search-head h3,
.contactdb-company h3 {
  margin: 0;
}

.recent-search-card {
  position: relative;
  align-items: center;
  width: 100%;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease;
}

.recent-search-card:hover {
  border-color: var(--accent);
  transform: translateY(-1px);
}

.recent-search-delete {
  position: absolute;
  top: 6px;
  right: 6px;
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid #efc5c5;
  border-radius: 50%;
  background: #fff;
  color: #a33131;
  font-size: 14px;
  font-weight: 900;
}

.recent-search-card div:first-child,
.contactdb-card {
  min-width: 0;
}

.recent-search-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.contactdb-filters {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.contactdb-hero {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.contactdb-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.contactdb-card-wrap {
  position: relative;
  min-width: 0;
}

.contactdb-card {
  appearance: none;
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.contactdb-card:focus-visible {
  outline: 3px solid #4fc5c1;
  outline-offset: 2px;
}

.contactdb-card:hover {
  border-color: #2fa6a3;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.16);
  transform: translateY(-1px);
}

.contactdb-card-delete {
  position: absolute;
  top: 8px;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: #fff;
  color: #0f2f4a;
  font-size: 14px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.12);
}

.contactdb-card-delete:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #fff;
}

.contactdb-card-quick-actions {
  position: absolute;
  right: 8px;
  bottom: 8px;
  left: 8px;
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  pointer-events: none;
}

.contactdb-card-mail,
.contactdb-card-edit,
.contactdb-card-call {
  pointer-events: auto;
  min-height: 28px;
  padding: 0 10px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 999px;
  background: #0f2f4a;
  color: #ffffff;
  font-size: 11px;
  font-weight: 900;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.14);
}

.contactdb-card-edit,
.contactdb-card-call {
  background: #ffffff;
  color: #0f2f4a;
}

.contactdb-card-mail:hover,
.contactdb-card-edit:hover,
.contactdb-card-call:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #fff;
}

.contactdb-card strong {
  overflow-wrap: anywhere;
  color: #0f2f4a;
  font-size: 15px;
  line-height: 1.25;
}

.contactdb-card span {
  overflow-wrap: anywhere;
  color: #273b4f;
  font-size: 13px;
  line-height: 1.35;
}

.contactdb-card .contactdb-card-company {
  margin-top: 2px;
  color: #0f2f4a;
  font-weight: 900;
}

.contactdb-company {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  background: #0f2f4a;
}

.contactdb-company h3 {
  color: #ffffff;
  font-weight: 900;
}

.contactdb-card label {
  display: grid;
  gap: 6px;
}

.contactdb-detail-layout,
.contact-content-list {
  display: grid;
  gap: 12px;
}

.contact-edit-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.contact-link-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.contact-link-grid div {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #f8fbfb;
}

.contact-link-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.contactdb-section {
  display: grid;
  gap: 8px;
  min-width: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.contactdb-section h4 {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.contactdb-section p,
.contactdb-section h3 {
  margin: 0;
}

.contactdb-section textarea,
.contactdb-section select {
  margin-top: 0;
}

.contact-detail-grid {
  display: grid;
  gap: 8px;
}

.contact-detail-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 10px;
  border-radius: 6px;
  background: #f8faf9;
}

.contact-detail-grid span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.contact-detail-grid strong,
.contact-detail-grid a {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #273530;
}

.contactdb-card-actions {
  justify-items: end;
}

.manual-contact-panel {
  width: min(980px, calc(100vw - 32px));
}

.manual-contact-form {
  display: grid;
  gap: 16px;
}

.manual-contact-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.manual-contact-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.manual-contact-grid .wide {
  grid-column: 1 / -1;
}

.manual-contact-grid select[multiple] {
  min-height: 136px;
  padding: 10px;
}

.manual-contact-grid input,
.manual-contact-grid select,
.manual-contact-grid textarea {
  width: 100%;
}

.executive-intelligence-section {
  border-color: rgba(15, 47, 74, 0.16);
  background: #fbfcfc;
}

.executive-intelligence-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.executive-intelligence-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.executive-intelligence-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.executive-intel-card {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 112px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.executive-intel-card:hover {
  border-color: #2fa6a3;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.14);
  transform: translateY(-1px);
}

.executive-intel-card span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.executive-intel-card strong {
  color: #0f2f4a;
  font-size: 15px;
  line-height: 1.25;
}

.executive-intel-card p {
  color: #273530;
  font-size: 12px;
  line-height: 1.45;
}

.executive-intelligence-reasoning {
  padding: 11px 12px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
  color: #273530;
}

.approach-advice-section {
  border-color: rgba(47, 166, 163, 0.24);
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.approach-advice-summary {
  display: grid;
  grid-template-columns: minmax(0, auto) minmax(180px, 1fr);
  gap: 10px;
  align-items: center;
}

.approach-recommendation-badge {
  display: inline-flex;
  width: fit-content;
  min-height: 34px;
  align-items: center;
  padding: 0 13px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  white-space: nowrap;
}

.approach-score {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 9px 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fff;
}

.approach-score span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.approach-score strong {
  color: #0f2f4a;
  font-size: 14px;
}

.approach-score-track {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.12);
}

.approach-score-track span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: #2fa6a3;
}

.approach-advice-card strong {
  overflow-wrap: anywhere;
}

.executive-intel-full {
  display: grid;
  gap: 14px;
}

.executive-intel-full h3 {
  margin: 0;
  color: #0f2f4a;
}

.executive-intel-value {
  display: inline-flex;
  width: fit-content;
  min-height: 30px;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #fff;
  font-size: 13px;
  font-weight: 900;
}

.executive-intel-full section {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fff;
}

.executive-intel-full section strong {
  color: #0f2f4a;
}

.relationship-memory-section {
  border-color: rgba(47, 166, 163, 0.28);
  background: linear-gradient(180deg, #ffffff, #f7fbfa);
}

.relationship-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.relationship-section-head p {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}

.relationship-warmth {
  display: inline-grid;
  place-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.14);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.relationship-warmth.koud {
  background: #eef1f2;
  color: #56636b;
}

.relationship-warmth.warm,
.relationship-warmth.zeer-warm,
.relationship-warmth.follow-up-nodig,
.relationship-warmth.strategisch-interessant {
  background: #2fa6a3;
  color: #fff;
}

.relationship-next-move {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
}

.relationship-next-move span {
  color: #0f2f4a;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relationship-next-move p {
  color: #273530;
  line-height: 1.45;
}

.relationship-timeline {
  position: relative;
  display: grid;
  gap: 10px;
  padding-left: 10px;
}

.relationship-timeline::before {
  content: "";
  position: absolute;
  top: 6px;
  bottom: 6px;
  left: 17px;
  width: 2px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.25);
}

.relationship-event-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: start;
}

.relationship-event-main {
  position: relative;
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px 12px 11px 28px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.07);
}

.relationship-event-card.virtual .relationship-event-main {
  cursor: default;
}

.relationship-event-main:hover {
  border-color: #2fa6a3;
}

.relationship-dot {
  position: absolute;
  top: 15px;
  left: 8px;
  width: 10px;
  height: 10px;
  border: 2px solid #ffffff;
  border-radius: 999px;
  background: #2fa6a3;
  box-shadow: 0 0 0 2px rgba(47, 166, 163, 0.2);
}

.relationship-event-type {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relationship-event-main strong {
  color: #0f2f4a;
  line-height: 1.35;
}

.relationship-event-main small {
  color: var(--muted);
  font-size: 12px;
}

.relationship-event-delete {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 999px;
  background: #fff;
  color: #0f2f4a;
  font-weight: 900;
}

.relationship-event-delete:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #fff;
}

.relationship-event-form {
  display: grid;
  gap: 10px;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fff;
}

.relationship-event-form summary {
  cursor: pointer;
  color: #0f2f4a;
  font-weight: 900;
}

.relationship-event-form[open] {
  gap: 12px;
}

.relationship-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.relationship-event-full {
  display: grid;
  gap: 14px;
}

.relationship-event-full h3 {
  margin: 0;
  color: #0f2f4a;
}

.relationship-event-full section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
}

.relationship-event-full dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.relationship-event-full dl div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fff;
}

.relationship-event-full dt {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.relationship-event-full dd {
  margin: 0;
  color: #273530;
}

.candidate-crm-shell,
.candidate-crm-output {
  display: grid;
  gap: 16px;
}

.candidate-crm-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.candidate-crm-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.overview-hero {
  align-items: center;
  padding: 24px;
  border: 1px solid rgba(98, 213, 209, 0.28);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.34), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 62%, #237f83 132%);
  color: #ffffff;
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.18);
}

.overview-hero .match-output-head {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.overview-hero h2,
.overview-hero p,
.overview-hero .match-output-head h2,
.overview-hero .match-output-head p {
  color: #ffffff;
}

.overview-hero h2,
.overview-hero .match-output-head h2 {
  margin: 2px 0 0;
  font-size: clamp(30px, 3.4vw, 48px);
  line-height: 1.04;
}

.overview-hero p:not(.eyebrow),
.overview-hero .match-output-head p:not(.eyebrow) {
  max-width: 820px;
  color: rgba(255, 255, 255, 0.86);
}

.overview-hero .eyebrow,
.overview-hero .match-output-head .eyebrow {
  color: #62d5d1;
}

.overview-hero .primary-button,
.overview-hero .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(47, 166, 163, 0.22);
}

.overview-hero .primary-button {
  background:
    radial-gradient(circle at top right, rgba(98, 213, 209, 0.38), transparent 34%),
    linear-gradient(135deg, #2fa6a3, #0f2f4a);
}

.overview-hero .secondary-button {
  background: rgba(255, 255, 255, 0.1);
}

.overview-hero .primary-button:hover,
.overview-hero .secondary-button:hover {
  border-color: rgba(98, 213, 209, 0.66);
  box-shadow: 0 18px 38px rgba(47, 166, 163, 0.3);
  transform: translateY(-1px);
}

.overview-filter-bar {
  align-items: end;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: var(--radius);
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.overview-filter-bar label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-weight: 900;
}

.overview-filter-bar input,
.overview-filter-bar select {
  width: 100%;
  box-sizing: border-box;
  min-height: 46px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  padding: 0 12px;
}

.overview-filter-bar input:focus,
.overview-filter-bar select:focus {
  outline: 2px solid rgba(47, 166, 163, 0.24);
  border-color: rgba(47, 166, 163, 0.72);
}

.overview-search-label {
  position: relative;
}

.overview-search-label::after {
  content: "";
  position: absolute;
  left: 15px;
  bottom: 13px;
  width: 18px;
  height: 18px;
  pointer-events: none;
  opacity: 0.72;
  background: #2fa6a3;
  -webkit-mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
  mask: url("data:image/svg+xml,%3Csvg viewBox='0 0 24 24' xmlns='http://www.w3.org/2000/svg'%3E%3Cpath d='M10.5 4a6.5 6.5 0 0 1 5.14 10.48l4.44 4.44-1.42 1.42-4.44-4.44A6.5 6.5 0 1 1 10.5 4Zm0 2a4.5 4.5 0 1 0 0 9 4.5 4.5 0 0 0 0-9Z'/%3E%3C/svg%3E") center / contain no-repeat;
}

.overview-search-label input {
  padding-left: 44px;
}

.candidate-crm-filter-row {
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) minmax(170px, 0.55fr) minmax(190px, 0.65fr);
  gap: 14px;
}

.contactdb-filters.overview-filter-bar {
  grid-template-columns: repeat(auto-fit, minmax(min(170px, 100%), 1fr));
}

.contactdb-filters.overview-filter-bar > .compact-button {
  justify-self: end;
  min-width: 112px;
}

.contactdb-company {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(15, 47, 74, 0.06), rgba(47, 166, 163, 0.08)),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.1);
}

.contactdb-company h3 {
  color: #0f2f4a;
}

.contactdb-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.contactdb-card {
  min-height: 118px;
  padding-right: 42px;
  border-color: rgba(15, 47, 74, 0.08);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 32%),
    #ffffff;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.1);
}

.contactdb-card-tags {
  display: flex !important;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 4px;
}

.contactdb-card-tags em {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f5d61;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.contactdb-detail-actions,
.contactdb-apollo-actions {
  align-items: center;
  justify-content: flex-start;
}

.contactdb-detail-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
  width: 100%;
}

.contactdb-detail-actions > .compact-button {
  width: 100%;
  min-height: 40px;
  justify-content: center;
  white-space: normal;
}

.contactdb-section-head {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.contactdb-section-head p {
  margin: 4px 0 0;
  color: var(--muted);
  line-height: 1.45;
}

.candidate-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  align-items: stretch;
}

.candidate-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(15, 47, 74, 0.98), rgba(47, 166, 163, 0.92)),
    #0f2f4a;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.candidate-card:hover {
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 22px 46px rgba(15, 47, 74, 0.15);
  transform: translateY(-2px);
}

.candidate-card-main {
  position: relative;
  display: grid;
  gap: 10px;
  width: 100%;
  min-height: 0;
  padding: 0;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.candidate-card-main:hover {
  transform: translateY(-1px);
}

.candidate-color-dot {
  position: absolute;
  top: 12px;
  right: 12px;
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: #2fa6a3;
}

.candidate-card-main strong {
  padding-right: 20px;
  color: #ffffff;
  font-size: 18px;
  line-height: 1.25;
}

.candidate-card-head,
.candidate-card-meta {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.candidate-card-head {
  padding-right: 22px;
}

.candidate-card-head small {
  color: rgba(255, 255, 255, 0.78);
  font-size: 12px;
  font-weight: 900;
}

.candidate-card-meta {
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 34%),
    rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
}

.candidate-card-main span,
.candidate-card-main small {
  color: #344b5d;
  line-height: 1.35;
}

.candidate-card-main small {
  font-size: 12px;
}

.candidate-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-width: 0;
}

.candidate-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
  min-width: 0;
}

.candidate-card-actions .mini-button {
  min-height: 30px;
  padding-inline: 9px;
  white-space: nowrap;
}

.candidate-status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  min-height: 28px;
  min-width: max-content;
  padding: 0 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.94);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1;
  overflow-wrap: normal;
  text-align: center;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.talent-pool-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
}

.talent-pool-strip button,
.candidate-pool-actions button {
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 34%),
    #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.16s ease,
    box-shadow 0.16s ease,
    transform 0.16s ease;
}

.talent-pool-strip button {
  display: grid;
  gap: 5px;
  padding: 13px;
}

.talent-pool-strip button:hover,
.candidate-pool-actions button:hover {
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 18px 36px rgba(15, 47, 74, 0.13);
  transform: translateY(-1px);
}

.talent-pool-strip span,
.candidate-summary-card h4 {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.talent-pool-strip strong {
  color: #0f2f4a;
  font-size: 17px;
}

.talent-pool-strip p {
  margin: 0;
  color: #5c6b77;
  line-height: 1.4;
}

.ats-pipeline-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: var(--radius);
  background:
    linear-gradient(135deg, rgba(47, 166, 163, 0.08), rgba(255, 255, 255, 0.92)),
    #ffffff;
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
}

.ats-pipeline-column {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.ats-pipeline-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: #0f2f4a;
}

.ats-pipeline-column header strong {
  font-size: 13px;
  line-height: 1.2;
}

.ats-pipeline-column header span {
  display: inline-grid;
  place-items: center;
  min-width: 26px;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.14);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.ats-pipeline-dropzone {
  display: grid;
  gap: 8px;
  min-height: 88px;
  padding: 8px;
  border: 1px dashed rgba(47, 166, 163, 0.26);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  transition:
    background 0.16s ease,
    border-color 0.16s ease;
}

.ats-pipeline-dropzone.is-over {
  border-color: rgba(47, 166, 163, 0.74);
  background: rgba(47, 166, 163, 0.12);
}

.ats-pipeline-card {
  display: grid;
  gap: 4px;
  width: 100%;
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: grab;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.08);
}

.ats-pipeline-card:active {
  cursor: grabbing;
}

.ats-pipeline-card strong,
.ats-pipeline-card span,
.ats-pipeline-card small {
  overflow-wrap: anywhere;
}

.ats-pipeline-card span,
.ats-pipeline-card small {
  color: #5c6b77;
  font-size: 12px;
}

.candidate-pipeline-control,
.candidate-pool-actions,
.candidate-parser-actions {
  display: grid;
  gap: 8px;
}

.candidate-pipeline-control select {
  min-height: 42px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 800;
  padding: 0 10px;
}

.candidate-pool-actions {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.candidate-pool-actions button {
  display: grid;
  gap: 3px;
  padding: 10px;
}

.candidate-pool-actions button.active {
  border-color: rgba(47, 166, 163, 0.72);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.candidate-parser-actions {
  grid-column: 1 / -1;
  align-items: start;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.08);
}

.candidate-parser-actions span {
  color: #5c6b77;
  font-size: 12px;
  line-height: 1.4;
}

.candidate-summary-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
    #ffffff;
}

.candidate-summary-card h4,
.candidate-summary-card p {
  margin: 0;
}

.candidate-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  gap: 10px;
}

.candidate-summary-grid article {
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #fbfcfc;
}

.candidate-summary-grid ul {
  margin: 7px 0 0;
  padding-left: 18px;
  color: #344b5d;
}

@media (max-width: 900px) {
  .ats-pipeline-board,
  .talent-pool-strip,
  .candidate-pool-actions,
  .semantic-result-list,
  .automation-rule-grid {
    grid-template-columns: 1fr;
  }

  .semantic-search-row {
    grid-template-columns: 1fr;
  }

  .automation-settings-head {
    display: grid;
  }

  .automation-settings-head .primary-button {
    width: 100%;
  }
}

.ai-sparren-shell {
  display: grid;
  grid-template-columns: minmax(280px, 360px) minmax(0, 1fr);
  gap: 16px;
  min-height: calc(100vh - 128px);
}

.ai-sparren-sidebar,
.ai-sparren-main,
.ai-sparren-side-section,
.ai-sparren-context-card {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 34px rgba(15, 47, 74, 0.08);
}

.ai-sparren-sidebar {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 14px;
  min-height: 0;
}

.ai-sparren-side-section,
.ai-sparren-context-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.ai-sparren-side-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.ai-sparren-side-head h2 {
  margin: 0;
  color: #0f2f4a;
  font-size: 18px;
}

.ai-sparren-list {
  display: grid;
  gap: 8px;
  max-height: 250px;
  overflow: auto;
}

.ai-sparren-list-item {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 11px 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f8fbfb;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    transform 0.18s ease;
}

.ai-sparren-list-item:hover,
.ai-sparren-list-item.active {
  border-color: #2fa6a3;
  background: rgba(47, 166, 163, 0.1);
  transform: translateY(-1px);
}

.ai-sparren-list-item strong {
  color: #0f2f4a;
  font-size: 14px;
  line-height: 1.25;
}

.ai-sparren-list-item span,
.ai-sparren-list-item small,
.ai-sparren-empty {
  color: #5f6f7a;
  font-size: 12px;
  line-height: 1.35;
}

.ai-sparren-context-card label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.ai-sparren-context-card textarea,
.ai-sparren-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  line-height: 1.5;
}

.ai-sparren-context-card textarea {
  min-height: 150px;
  padding: 10px;
  resize: vertical;
}

.ai-sparren-main {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.ai-sparren-chat-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
  padding: 18px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.1);
}

.ai-sparren-chat-head h2,
.ai-sparren-chat-head p {
  margin: 0;
}

.ai-sparren-chat-head h2 {
  color: #0f2f4a;
}

.ai-sparren-chat-head p:not(.eyebrow) {
  color: #5f6f7a;
  line-height: 1.4;
}

.ai-sparren-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.ai-sparren-messages {
  display: grid;
  align-content: start;
  gap: 14px;
  min-height: 0;
  padding: 20px;
  overflow: auto;
  background: #f2f2f2;
}

.ai-sparren-message {
  display: grid;
  gap: 8px;
  width: min(78%, 860px);
  padding: 14px;
  border-radius: 8px;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
}

.ai-sparren-message.user {
  justify-self: end;
  background: #0f2f4a;
  color: #ffffff;
}

.ai-sparren-message.assistant {
  justify-self: start;
  border: 1px solid rgba(15, 47, 74, 0.1);
  background: #ffffff;
  color: #0f2f4a;
}

.ai-sparren-message-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  color: inherit;
  font-size: 12px;
  opacity: 0.78;
}

.ai-sparren-message-body {
  display: grid;
  gap: 8px;
  color: inherit;
  line-height: 1.55;
  white-space: normal;
}

.ai-sparren-message-body p,
.ai-sparren-message-body ul {
  margin: 0;
}

.ai-sparren-message-body ul {
  padding-left: 20px;
}

.ai-sparren-welcome {
  align-self: center;
  justify-self: center;
  display: grid;
  gap: 8px;
  max-width: 520px;
  padding: 22px;
  border: 1px dashed rgba(15, 47, 74, 0.22);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: center;
}

.ai-sparren-welcome h3,
.ai-sparren-welcome p {
  margin: 0;
}

.ai-sparren-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
  padding: 14px;
  border-top: 1px solid rgba(15, 47, 74, 0.1);
  background: #ffffff;
}

.ai-sparren-form textarea {
  min-height: 76px;
  max-height: 190px;
  padding: 12px;
  resize: vertical;
}

.ai-sparren-message.thinking {
  min-width: 260px;
}

.ai-sparren-loading-bar {
  display: block;
  position: relative;
  width: 100%;
  height: 6px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.16);
}

.ai-sparren-loading-bar::after {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 42%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fa6a3, #4fc5c1);
  animation: ai-sparren-loading 1.1s ease-in-out infinite;
}

@keyframes ai-sparren-loading {
  0% {
    transform: translateX(-120%);
  }
  100% {
    transform: translateX(260%);
  }
}

.ai-sparren-shell {
  display: block;
  min-height: calc(100vh - 128px);
}

.ai-sparren-projects-page,
.ai-sparren-workspace {
  display: grid;
  gap: 16px;
}

.ai-sparren-hero,
.ai-sparren-workspace-head,
.ai-sparren-chat-library,
.ai-sparren-main,
.ai-sparren-context-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 12px;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.ai-sparren-hero {
  align-items: center;
  background: linear-gradient(135deg, #0f2f4a 0%, #173f60 72%, #2fa6a3 100%);
  color: #ffffff;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 24px;
}

.ai-sparren-hero h2,
.ai-sparren-hero p,
.ai-sparren-hero .eyebrow {
  color: #ffffff;
}

.ai-sparren-hero h2,
.ai-sparren-workspace-head h2,
.ai-sparren-library-head h2,
.ai-sparren-context-head h3 {
  margin: 0;
}

.ai-sparren-hero p:not(.eyebrow),
.ai-sparren-workspace-head p:not(.eyebrow),
.ai-sparren-chat-head p:not(.eyebrow) {
  line-height: 1.45;
  margin: 0;
}

.ai-sparren-project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(270px, 1fr));
}

.ai-sparren-project-card,
.ai-sparren-empty-card,
.ai-sparren-chat-card {
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 12px;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.08);
}

.ai-sparren-project-card {
  cursor: pointer;
  display: grid;
  gap: 12px;
  padding: 16px;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.ai-sparren-project-card:hover {
  border-color: #2fa6a3;
  box-shadow: 0 18px 40px rgba(47, 166, 163, 0.16);
  transform: translateY(-2px);
}

.ai-sparren-project-card header,
.ai-sparren-workspace-head,
.ai-sparren-context-head,
.ai-sparren-library-head,
.ai-sparren-chat-head {
  align-items: flex-start;
  display: flex;
  gap: 12px;
  justify-content: space-between;
}

.ai-sparren-workspace-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-sparren-card-tools {
  align-items: center;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.ai-sparren-card-tools .icon-button.small {
  min-height: 28px;
  height: 28px;
  width: 28px;
  padding: 0;
}

.ai-sparren-card-tools .icon-button.small .icon {
  display: block;
  flex: 0 0 auto;
}

.ai-sparren-project-card h3 {
  color: #0f2f4a;
  font-size: 20px;
  line-height: 1.2;
  margin: 0;
}

.ai-sparren-project-card p {
  color: #5d7180;
  line-height: 1.5;
  margin: 0;
}

.ai-sparren-project-card dl {
  border-top: 1px solid rgba(15, 47, 74, 0.08);
  display: grid;
  gap: 6px;
  margin: 0;
  padding-top: 10px;
}

.ai-sparren-project-card dl div {
  display: flex;
  gap: 10px;
  justify-content: space-between;
}

.ai-sparren-project-card dt,
.ai-sparren-project-card dd {
  color: #5d7180;
  font-size: 12px;
  margin: 0;
}

.ai-sparren-project-card dd {
  color: #0f2f4a;
  font-weight: 800;
}

.ai-sparren-tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.ai-sparren-tag-row span {
  background: rgba(47, 166, 163, 0.12);
  border-radius: 999px;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 800;
  padding: 4px 8px;
}

.ai-sparren-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-sparren-linked-candidate {
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.08), rgba(47, 166, 163, 0.12));
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 10px;
  color: #0f2f4a;
  display: grid;
  gap: 3px;
  padding: 9px 10px;
}

.ai-sparren-linked-candidate span,
.ai-sparren-linked-candidate small {
  color: #4d6575;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ai-sparren-linked-candidate strong {
  font-size: 13px;
  line-height: 1.3;
}

.ai-sparren-workspace-candidate {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.08), rgba(47, 166, 163, 0.12));
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 10px;
  color: #0f2f4a;
  display: inline-grid;
  gap: 3px;
  margin-top: 10px;
  min-width: 220px;
  padding: 9px 10px;
}

.ai-sparren-workspace-candidate span,
.ai-sparren-workspace-candidate small {
  color: #4d6575;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.02em;
}

.ai-sparren-workspace-candidate strong {
  color: #0f2f4a;
  font-size: 13px;
  line-height: 1.3;
}

.icon-button {
  align-items: center;
  background: #eef5f5;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 999px;
  color: #0f2f4a;
  cursor: pointer;
  display: inline-flex;
  font-size: 18px;
  font-weight: 900;
  height: 32px;
  justify-content: center;
  line-height: 1;
  width: 32px;
}

.icon-button.small {
  height: 28px;
  width: 28px;
}

.icon-button.small .icon {
  height: 15px;
  width: 15px;
}

.icon-button:hover {
  background: #2fa6a3;
  color: #ffffff;
}

.icon-button.danger:hover {
  background: #9f3f4d;
}

.ai-sparren-empty-card {
  color: #0f2f4a;
  display: grid;
  gap: 6px;
  padding: 24px;
}

.ai-sparren-empty-card.small {
  box-shadow: none;
  grid-column: 1 / -1;
}

.ai-sparren-empty-card h3,
.ai-sparren-empty-card p {
  margin: 0;
}

.ai-sparren-empty-card p {
  color: #5d7180;
}

.ai-sparren-workspace-head,
.ai-sparren-context-card,
.ai-sparren-chat-library {
  padding: 16px;
}

.ai-sparren-context-card textarea {
  margin-top: 10px;
  min-height: 108px;
}

.ai-sparren-chat-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  margin-top: 12px;
}

.ai-sparren-chat-card {
  display: grid;
  overflow: hidden;
}

.ai-sparren-chat-card.active {
  border-color: #2fa6a3;
  box-shadow: 0 16px 34px rgba(47, 166, 163, 0.16);
}

.ai-sparren-chat-open {
  background: #f8fbfb;
  border: 0;
  color: #0f2f4a;
  cursor: pointer;
  display: grid;
  gap: 5px;
  padding: 13px;
  text-align: left;
  width: 100%;
}

.ai-sparren-chat-open:hover {
  background: rgba(47, 166, 163, 0.1);
}

.ai-sparren-chat-open strong {
  color: #0f2f4a;
  font-size: 14px;
}

.ai-sparren-chat-open span,
.ai-sparren-chat-open small {
  color: #5d7180;
  font-size: 12px;
  line-height: 1.35;
}

.ai-sparren-chat-actions {
  align-items: center;
  background: #ffffff;
  border-top: 1px solid rgba(15, 47, 74, 0.08);
  display: flex;
  gap: 6px;
  justify-content: flex-end;
  padding: 8px;
}

.ai-sparren-main {
  min-height: 620px;
}

.ai-sparren-chat-head {
  display: block;
}

.ai-sparren-messages {
  min-height: 390px;
}

.ai-sparren-welcome {
  align-self: center;
  justify-self: center;
  max-width: 560px;
  text-align: center;
}

.ai-sparren-project-modal {
  align-items: center;
  background: rgba(15, 47, 74, 0.42);
  display: flex;
  inset: 0;
  justify-content: center;
  padding: 20px;
  position: fixed;
  z-index: 80;
}

.ai-sparren-project-modal.hidden {
  display: none;
}

.ai-sparren-project-panel {
  background: #ffffff;
  border-radius: 14px;
  box-shadow: 0 24px 70px rgba(15, 47, 74, 0.25);
  max-height: min(90vh, 760px);
  overflow: auto;
  width: min(680px, 96vw);
}

.ai-sparren-project-form {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.ai-sparren-project-form label {
  color: #0f2f4a;
  display: grid;
  font-weight: 800;
  gap: 6px;
}

.ai-sparren-project-form input,
.ai-sparren-project-form textarea {
  border: 1px solid rgba(15, 47, 74, 0.16);
  border-radius: 10px;
  color: #0f2f4a;
  font: inherit;
  line-height: 1.5;
  padding: 11px;
}

.ai-sparren-candidate-selection {
  align-items: center;
  background: #f4fbfb;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 12px;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 12px;
}

.ai-sparren-candidate-selection strong,
.ai-sparren-candidate-selection small {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
}

.ai-sparren-candidate-selection small {
  color: #5d7180;
  font-size: 12px;
  line-height: 1.4;
  margin-top: 3px;
}

.ai-sparren-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media (max-width: 620px) {
  .ai-sparren-candidate-selection {
    grid-template-columns: 1fr;
  }

  .ai-sparren-candidate-actions {
    justify-content: flex-start;
  }
}

.candidate-modal-panel {
  width: min(940px, 96vw);
}

.multi-candidate-match-panel {
  width: min(1120px, 96vw);
  max-height: min(92vh, 980px);
  overflow: auto;
}

.candidate-form {
  display: grid;
  gap: 16px;
  padding: 18px;
}

.candidate-form-grid,
.candidate-detail-grid,
.candidate-info-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.candidate-detail-grid {
  align-items: start;
}

.candidate-form label,
.candidate-file-field {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.candidate-upload-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-file-field {
  min-height: 64px;
  place-items: center;
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  cursor: pointer;
}

.candidate-file-field:hover {
  border-color: #2fa6a3;
  background: rgba(47, 166, 163, 0.08);
}

.candidate-detail-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}

.candidate-detail-tabs button {
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid #0f2f4a;
  border-radius: 8px;
  background: #0f2f4a;
  color: #fff;
  font-weight: 900;
}

.candidate-detail-tabs button:hover,
.candidate-detail-tabs button.active {
  border-color: #2fa6a3;
  background: #2fa6a3;
}

.candidate-detail-tab-body {
  display: grid;
  gap: 14px;
  padding-top: 16px;
}

.candidate-detail-section,
.candidate-linked-card,
.candidate-file-card,
.candidate-note-full-card {
  display: grid;
  align-content: start;
  gap: 10px;
  min-width: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.candidate-detail-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.candidate-info-grid {
  margin: 0;
}

.candidate-info-grid div {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #f8faf9;
}

.candidate-info-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-info-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: #0f2f4a;
  font-weight: 800;
}

.candidate-note-grid,
.candidate-linked-list,
.candidate-file-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.candidate-note-card {
  display: grid;
  gap: 6px;
  width: 100%;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
}

.candidate-note-card:hover {
  border-color: #2fa6a3;
}

.candidate-note-card span,
.candidate-linked-card span,
.candidate-file-card span,
.candidate-note-full-card span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.candidate-timeline {
  display: grid;
  gap: 8px;
}

.candidate-timeline article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: #f8faf9;
}

.candidate-timeline span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.candidate-timeline p {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.candidate-positioning-section,
.candidate-positioning-empty {
  gap: 14px;
}

.candidate-positioning-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.candidate-positioning-head h3,
.candidate-positioning-head p {
  margin: 0;
}

.candidate-positioning-head .eyebrow {
  color: #2fa6a3;
}

.candidate-positioning-summary {
  padding: 12px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
  color: #273530;
}

.candidate-positioning-lists {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-positioning-list-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
}

.candidate-positioning-list-card strong,
.candidate-positioning-card strong,
.candidate-positioning-full-grid strong {
  color: #0f2f4a;
}

.candidate-positioning-list-card ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #273530;
  line-height: 1.45;
}

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

.candidate-positioning-card {
  display: grid;
  gap: 7px;
  min-height: 138px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.candidate-positioning-card:hover {
  border-color: #2fa6a3;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.14);
  transform: translateY(-1px);
}

.candidate-positioning-card span {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
  font-size: 11px;
  font-weight: 900;
}

.candidate-positioning-card p {
  margin: 0;
  color: #273530;
  line-height: 1.42;
}

.candidate-positioning-card small {
  color: #2fa6a3;
  font-weight: 900;
}

.candidate-positioning-full-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.candidate-positioning-full-head h3,
.candidate-positioning-full-head p {
  margin: 0;
}

.candidate-positioning-full-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-positioning-full-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
}

.candidate-marketfit-preview {
  align-content: start;
  height: auto;
  min-height: 0;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
    #ffffff;
}

.candidate-marketfit-preview .eyebrow,
.candidate-marketfit-head .eyebrow,
.candidate-marketfit-toolbar .eyebrow {
  margin: 0;
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.candidate-marketfit-preview p,
.candidate-marketfit-head p,
.candidate-marketfit-toolbar p,
.candidate-marketfit-summary p {
  margin: 0;
  color: #344b5d;
  line-height: 1.5;
}

.candidate-marketfit-strong {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.08);
  color: #0f2f4a !important;
  font-weight: 900;
}

.candidate-pitch-projects-section {
  gap: 8px;
  min-height: 0;
}

.candidate-pitch-projects-section .muted-line {
  margin: 0;
  line-height: 1.45;
}

.candidate-pitch-projects-section .inline-actions {
  margin-top: 2px;
  justify-content: flex-start;
}

.candidate-add-company-button {
  width: auto;
  min-width: 0;
  min-height: 38px;
  padding: 0 14px;
  justify-self: start;
}

.candidate-marketfit-toolbar,
.candidate-marketfit-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.candidate-marketfit-toolbar h3,
.candidate-marketfit-head h3 {
  margin: 0;
  color: #0f2f4a;
}

.candidate-marketfit-summary {
  display: grid;
  gap: 6px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-left: 4px solid #2fa6a3;
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 38%),
    #fbfcfc;
}

.candidate-marketfit-summary strong,
.candidate-marketfit-list-card strong {
  color: #0f2f4a;
}

.candidate-marketfit-summary small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
}

.candidate-marketfit-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.candidate-marketfit-list-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #ffffff;
}

.candidate-marketfit-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.candidate-marketfit-chips span {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 4px 9px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.09);
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  line-height: 1.2;
}

.candidate-marketfit-action-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.candidate-marketfit-action-grid button {
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: #f8faf9;
  color: #0f2f4a;
  font-weight: 900;
  cursor: pointer;
}

.candidate-marketfit-action-grid button:hover {
  border-color: #2fa6a3;
  background: rgba(47, 166, 163, 0.1);
}

.candidate-marketfit-searchline {
  margin: 0;
  padding: 10px 12px;
  border-radius: 8px;
  background: #f8faf9;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

@media (max-width: 900px) {
  .candidate-marketfit-grid,
  .candidate-marketfit-action-grid {
    grid-template-columns: 1fr;
  }

  .candidate-marketfit-toolbar,
  .candidate-marketfit-head {
    display: grid;
  }

  .candidate-card-footer {
    display: grid;
  }

  .candidate-card-actions {
    justify-content: flex-start;
  }
}

.multi-candidate-match-output {
  display: grid;
  gap: 14px;
  padding: 0 18px 18px;
}

.multi-candidate-match-summary {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 14px;
  border-radius: 8px;
  background: #0f2f4a;
  color: #fff;
}

.multi-candidate-match-summary h3,
.multi-candidate-match-summary p {
  margin: 0;
}

.multi-candidate-match-summary .eyebrow {
  color: #4fc5c1;
}

.multi-candidate-comparison {
  padding: 12px;
  border-left: 3px solid #4fc5c1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.multi-candidate-match-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.multi-candidate-match-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 230px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.multi-candidate-match-card:hover {
  border-color: #2fa6a3;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.16);
  transform: translateY(-1px);
}

.multi-candidate-match-card .match-rank {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  min-width: 34px;
  height: 28px;
  padding: 0 8px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.multi-candidate-match-card strong {
  padding-right: 44px;
  color: #0f2f4a;
  font-size: 17px;
  line-height: 1.25;
}

.multi-candidate-match-card small {
  color: #344b5d;
  font-size: 12px;
  font-weight: 800;
}

.multi-candidate-match-card p {
  margin: 0;
  color: #273530;
  font-size: 13px;
  line-height: 1.45;
}

.match-score-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: #2fa6a3;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.match-score-row b {
  color: #0f2f4a;
  font-size: 14px;
}

.multi-candidate-full-grid ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
}

.note-list {
  display: grid;
  gap: 6px;
  padding: 8px;
  border-radius: 6px;
  background: #f6f8f7;
}

.note-card,
.content-card,
.content-modal-card {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.note-card header,
.content-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.note-date,
.content-date {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
  white-space: nowrap;
}

.contact-content-preview,
.contact-note-preview {
  display: grid;
  gap: 8px;
}

.warm-angle-section {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.96), rgba(15, 47, 74, 0.9));
  color: #ffffff;
  box-shadow: 0 14px 28px rgba(15, 47, 74, 0.12);
}

.warm-angle-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.warm-angle-head h2,
.warm-angle-head p {
  margin: 0;
  color: #ffffff;
}

.warm-angle-head .eyebrow {
  color: #4fc5c1;
}

.warm-angle-head p:not(.eyebrow) {
  margin-top: 4px;
  opacity: 0.86;
}

.warm-angle-tone {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.warm-angle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.warm-angle-card {
  display: grid;
  gap: 7px;
  min-height: 118px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.warm-angle-card:hover {
  border-color: #4fc5c1;
  box-shadow: 0 12px 24px rgba(0, 0, 0, 0.16);
  transform: translateY(-1px);
}

.warm-angle-card strong {
  color: #0f2f4a;
  font-size: 13px;
}

.warm-angle-card span {
  color: #273530;
  line-height: 1.4;
}

.warm-angle-card small {
  color: #2fa6a3;
  font-weight: 900;
}

.warm-angle-mini {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-left: 3px solid #2fa6a3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
}

.warm-angle-mini strong {
  color: #0f2f4a;
  font-size: 12px;
}

.warm-angle-mini p {
  margin: 0;
  color: #273530;
  line-height: 1.45;
}

.warm-angle-full-head {
  display: grid;
  gap: 4px;
  margin-bottom: 12px;
}

.warm-angle-full-head h3,
.warm-angle-full-head p {
  margin: 0;
}

.warm-angle-full-card,
.warm-angle-reasoning {
  padding: 12px;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
  border-left: 3px solid #2fa6a3;
}

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

.warm-angle-full-grid article {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
}

.warm-angle-full-grid article.active {
  border-color: #2fa6a3;
  box-shadow: inset 0 0 0 1px rgba(47, 166, 163, 0.24);
}

.warm-angle-full-grid strong,
.warm-angle-reasoning strong {
  color: #0f2f4a;
}

.content-company-group,
.content-contact-group {
  display: grid;
  gap: 10px;
}

.content-company-group,
.contact-company-group {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: #0f2f4a;
  color: #ffffff;
}

.content-company-group h2,
.contact-company-group h2 {
  margin: 0;
  color: #ffffff;
}

.content-contact-grid,
.contact-insight-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.content-contact-tile,
.contact-insight-tile {
  display: grid;
  gap: 6px;
  width: 100%;
  min-height: 112px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    transform 0.18s ease,
  box-shadow 0.18s ease;
}

.content-contact-tile:hover,
.contact-insight-tile:hover {
  border-color: #2fa6a3;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.18);
  transform: translateY(-1px);
}

.content-contact-tile strong,
.contact-insight-tile strong {
  color: #0f2f4a;
  font-size: 15px;
}

.content-contact-tile span,
.contact-insight-tile span {
  color: #273530;
  font-size: 13px;
  line-height: 1.35;
}

.content-contact-tile small,
.contact-insight-tile small {
  color: #2fa6a3;
  font-size: 12px;
  font-weight: 900;
}

.contact-insight-tile em {
  justify-self: start;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.contact-insight-summary {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfcfc;
}

.contact-insight-summary h3,
.contact-insight-summary p {
  margin: 0;
}

.contact-list-add-button {
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #0f2f4a;
  border-radius: 8px;
  background: #0f2f4a;
  color: #ffffff;
  font-weight: 900;
  white-space: nowrap;
  cursor: pointer;
}

.contact-list-add-button:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #ffffff;
}

.content-contact-modal {
  display: grid;
  gap: 14px;
}

.content-contact-modal header {
  display: grid;
  gap: 4px;
}

.content-contact-modal h3 {
  margin: 0;
  color: var(--ink);
}

.content-contact-modal p {
  margin: 0;
  color: var(--muted);
}

.content-item-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
}

.content-contact-group {
  padding-left: 10px;
  border-left: 3px solid var(--surface-2);
}

.mail-shell {
  display: grid;
  gap: 16px;
}

.mail-hero,
.mail-recipient-card,
.mail-composer-card,
.mail-history-card {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.08);
}

.mail-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.18), transparent 36%),
    linear-gradient(135deg, #0f2f4a, #123956);
  color: #ffffff;
}

.mail-hero h2,
.mail-hero p {
  margin: 0;
  color: #ffffff;
}

.mail-hero .eyebrow {
  color: #62d5d1;
}

.mail-hero p:not(.eyebrow) {
  max-width: 760px;
  margin-top: 6px;
  opacity: 0.88;
}

.mail-hero-actions,
.mail-composer-actions,
.mail-history-head,
.mail-history-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.mail-start-actions {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  overflow: visible;
}

.mail-start-card {
  position: relative;
  z-index: 0;
  display: grid;
  gap: 10px;
  min-height: 170px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.18), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.1);
  color: #0f2f4a;
  cursor: pointer;
  text-align: left;
  overflow: visible;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mail-start-card:hover {
  z-index: 12;
  border-color: rgba(47, 166, 163, 0.62);
  box-shadow: 0 22px 44px rgba(15, 47, 74, 0.14);
  transform: translateY(-2px);
}

.mail-start-card:focus-within {
  z-index: 24;
}

.mail-start-card strong {
  align-self: end;
  font-size: 1.25rem;
  font-weight: 950;
  overflow-wrap: anywhere;
}

.mail-start-card small {
  color: #526779;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.mail-tile-badge {
  position: absolute;
  top: 12px;
  right: 48px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 26px;
  min-height: 26px;
  padding: 0 8px;
  border-radius: 999px;
  background: #d94b4b;
  color: #ffffff;
  font-size: 0.76rem;
  font-style: normal;
  font-weight: 950;
  line-height: 1;
  box-shadow: 0 10px 22px rgba(217, 75, 75, 0.18);
}

.mail-start-info {
  position: absolute;
  top: 12px;
  right: 12px;
  z-index: 8;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
  font-style: normal;
  line-height: 1;
  cursor: help;
  user-select: none;
}

.mail-start-info > span {
  position: absolute;
  right: 0;
  top: calc(100% + 10px);
  z-index: 40;
  display: none;
  box-sizing: border-box;
  width: max-content;
  min-width: 220px;
  max-width: min(280px, calc(100vw - 48px));
  padding: 12px 14px;
  border-radius: 8px;
  border: 1px solid rgba(47, 166, 163, 0.32);
  background: #0f2f4a;
  color: #ffffff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.28);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
  text-align: left;
  white-space: normal;
  overflow: hidden;
  overflow-wrap: break-word;
  word-break: normal;
  pointer-events: none;
}

.mail-start-info > span::before {
  content: "";
  position: absolute;
  top: -6px;
  right: 9px;
  width: 12px;
  height: 12px;
  border-left: 1px solid rgba(47, 166, 163, 0.32);
  border-top: 1px solid rgba(47, 166, 163, 0.32);
  background: #0f2f4a;
  transform: rotate(45deg);
}

.mail-start-info:hover > span,
.mail-start-info:focus > span,
.mail-start-info.is-open > span {
  display: block;
}

.mail-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.mail-recipient-card,
.mail-composer-card,
.mail-history-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.mail-recipient-card h3,
.mail-history-card h3 {
  margin: 0;
  color: #0f2f4a;
}

.mail-recipient-card {
  overflow: hidden;
  border-color: rgba(47, 166, 163, 0.34);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.32), transparent 34%),
    linear-gradient(145deg, #0f2f4a 0%, #123956 62%, #2fa6a3 150%);
  color: #ffffff;
  box-shadow: 0 18px 42px rgba(15, 47, 74, 0.18);
}

.mail-recipient-card .eyebrow {
  color: #79e1dd;
}

.mail-recipient-card h3 {
  color: #ffffff;
  overflow-wrap: anywhere;
}

.mail-recipient-card dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.mail-recipient-card dl div {
  display: grid;
  gap: 2px;
  padding: 10px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.mail-recipient-card dt {
  color: rgba(255, 255, 255, 0.68);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.mail-recipient-card dd {
  margin: 0;
  color: #ffffff;
  font-weight: 800;
  overflow-wrap: anywhere;
}

.mail-recipient-fields {
  display: grid;
  gap: 10px;
}

.mail-recipient-fields label {
  display: grid;
  gap: 6px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 12px;
  font-weight: 900;
}

.mail-recipient-fields input {
  width: 100%;
  box-sizing: border-box;
  min-height: 38px;
  padding: 0 10px;
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 700;
}

.mail-recipient-card .muted-line {
  color: rgba(255, 255, 255, 0.74);
}

.mail-recipient-card .secondary-button {
  width: 100%;
  justify-content: center;
  border-color: rgba(255, 255, 255, 0.72);
  background: #ffffff;
  color: #0f2f4a;
  white-space: normal;
}

.mail-recipient-card .secondary-button:hover {
  border-color: #79e1dd;
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.2);
}

.mail-composer-card label {
  display: grid;
  gap: 8px;
  color: #0f2f4a;
  font-weight: 900;
}

.mail-to-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.mail-copy-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.mail-composer-card input,
.mail-composer-card textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  font-weight: 600;
}

.mail-composer-card input {
  min-height: 42px;
  padding: 0 12px;
}

.mail-composer-card textarea {
  min-height: 360px;
  padding: 12px;
  line-height: 1.55;
  resize: vertical;
}

.mail-composer-actions {
  justify-content: flex-start;
}

.mail-composer-actions .primary-button {
  border-color: #0f2f4a;
  background: #0f2f4a;
  color: #ffffff;
}

.mail-composer-actions .primary-button:hover {
  border-color: #2fa6a3;
  background: #123956;
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.14);
}

.mail-composer-actions .secondary-button:hover,
#mailToggleCcBcc:hover {
  border-color: #2fa6a3;
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.12);
}

.mail-attachments-panel {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 42%),
    #f8fcfc;
}

.mail-attachments-head,
.mail-attachment-chip,
.mail-document-row,
.mail-detail-attachment {
  display: flex;
  align-items: center;
  gap: 12px;
}

.mail-attachments-head {
  justify-content: space-between;
  align-items: flex-start;
}

.mail-attachments-head h4,
.mail-attachments-head p {
  margin: 0;
}

.mail-attachment-list,
.mail-detail-attachments {
  display: grid;
  gap: 10px;
}

.mail-attachment-chip {
  min-width: 0;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 20px rgba(15, 47, 74, 0.06);
}

.mail-attachment-chip div,
.mail-document-info,
.mail-detail-attachment div {
  min-width: 0;
}

.mail-attachment-chip strong,
.mail-document-info strong,
.mail-detail-attachment strong {
  display: block;
  color: #0f2f4a;
  overflow-wrap: anywhere;
}

.mail-attachment-chip small,
.mail-document-info p,
.mail-document-info small,
.mail-detail-attachment small {
  display: block;
  margin-top: 2px;
  color: #667681;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.mail-attachment-icon,
.mail-document-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 950;
  letter-spacing: 0.04em;
}

.mail-attachment-chip button {
  margin-left: auto;
  min-width: 36px;
  padding-inline: 10px;
}

.mail-documents-panel {
  max-width: 1120px;
}

.mail-document-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 220px auto;
  gap: 10px;
  align-items: end;
}

.mail-document-filters label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-size: 0.86rem;
  font-weight: 900;
}

.mail-document-filters input,
.mail-document-filters select {
  width: 100%;
  min-height: 42px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  font-weight: 600;
}

.mail-document-library-list {
  display: grid;
  gap: 10px;
  max-height: min(58vh, 620px);
  overflow: auto;
  padding-right: 4px;
}

.mail-document-row {
  min-width: 0;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
}

.mail-document-select {
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  width: 32px;
  height: 32px;
}

.mail-document-select input {
  width: 18px;
  height: 18px;
  accent-color: #2fa6a3;
}

.mail-document-info {
  flex: 1 1 auto;
}

.mail-document-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mail-detail-attachment {
  justify-content: space-between;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
}

.mail-detail-attachment a {
  text-decoration: none;
}

.mail-inbox-attachment-card {
  align-items: stretch;
  gap: 10px;
}

.mail-inbox-attachment-open {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: center;
  flex: 1 1 auto;
  min-width: 0;
  border: 0;
  background: transparent;
  color: inherit;
  cursor: pointer;
  padding: 0;
  text-align: left;
}

.mail-inbox-attachment-open:hover strong,
.mail-inbox-attachment-open:focus-visible strong {
  color: #19777d;
}

.mail-inbox-attachment-actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.mail-inbox-attachment-panel {
  max-width: 980px;
}

.mail-inbox-attachment-preview {
  display: grid;
  min-height: min(58vh, 560px);
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f8fbfb;
  overflow: hidden;
}

.mail-inbox-attachment-preview iframe,
.mail-inbox-attachment-preview img {
  width: 100%;
  height: min(58vh, 560px);
  border: 0;
  object-fit: contain;
  background: #ffffff;
}

.mail-inbox-attachment-fallback {
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 28px;
  text-align: center;
  color: #526779;
}

.mail-inbox-attachment-fallback strong {
  color: #0f2f4a;
  font-size: 1rem;
}

.mail-inbox-attachment-fallback p {
  max-width: 460px;
  margin: 0;
  line-height: 1.45;
}

.mail-history-head {
  justify-content: space-between;
  align-items: flex-start;
}

.mail-inbox-section {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.08);
}

.mail-inbox-section.hidden {
  display: none;
}

.mail-inbox-toolbar,
.mail-inbox-toolbar-actions,
.mail-inbox-detail-actions {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  justify-content: space-between;
  flex-wrap: wrap;
}

.mail-inbox-toolbar h3,
.mail-inbox-toolbar p,
.mail-inbox-detail-head h3,
.mail-inbox-detail-head p,
.mail-detail-body p {
  margin: 0;
}

.mail-inbox-toolbar h3,
.mail-inbox-detail-head h3 {
  color: #0f2f4a;
}

.mail-inbox-toolbar p {
  color: #526779;
  line-height: 1.45;
}

.mail-inbox-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  align-items: end;
  box-sizing: border-box;
  max-width: 100%;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #f8fbfb;
}

.mail-inbox-filters label:first-child {
  grid-column: span 2;
}

.mail-inbox-filters label,
.mail-inbox-link-card label {
  display: grid;
  gap: 6px;
  min-width: 0;
  color: #0f2f4a;
  font-size: 0.84rem;
  font-weight: 900;
  line-height: 1.2;
}

.mail-inbox-filters input,
.mail-inbox-filters select,
.mail-inbox-link-card select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  min-height: 40px;
  box-sizing: border-box;
  padding: 0 12px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 700;
  overflow: hidden;
  text-overflow: ellipsis;
}

@media (max-width: 1180px) {
  .mail-inbox-filters {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .mail-inbox-filters label:first-child {
    grid-column: 1 / -1;
  }
}

.mail-inbox-layout {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(0, 1.35fr);
  gap: 14px;
  align-items: start;
}

.mail-inbox-list,
.mail-inbox-detail {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.mail-inbox-list {
  max-height: min(72vh, 820px);
  overflow: auto;
  padding: 2px 4px 8px 2px;
}

.mail-inbox-item {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mail-inbox-item:hover,
.mail-inbox-item.active {
  border-color: rgba(47, 166, 163, 0.52);
  box-shadow: 0 14px 28px rgba(15, 47, 74, 0.1);
  transform: translateY(-1px);
}

.mail-inbox-item.active {
  position: relative;
  z-index: 1;
  box-shadow:
    inset 0 0 0 2px rgba(47, 166, 163, 0.42),
    0 12px 26px rgba(15, 47, 74, 0.1);
  transform: none;
}

.mail-inbox-item.unread {
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.14), transparent 36%),
    #ffffff;
}

.mail-inbox-item-main {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: start;
}

.mail-read-dot {
  width: 10px;
  height: 10px;
  margin-top: 5px;
  border-radius: 999px;
  background: #b6c3ca;
}

.mail-inbox-item.unread .mail-read-dot {
  background: #2fa6a3;
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.14);
}

.mail-inbox-item strong,
.mail-inbox-item p,
.mail-inbox-item small,
.mail-inbox-item-meta span,
.mail-inbox-item-meta em {
  overflow-wrap: anywhere;
}

.mail-inbox-item strong {
  color: #0f2f4a;
}

.mail-inbox-item p {
  margin: 3px 0;
  color: #213a4f;
  font-weight: 850;
}

.mail-inbox-item small {
  display: block;
  color: #667681;
  line-height: 1.45;
}

.mail-inbox-item-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.mail-inbox-item-meta span,
.mail-inbox-item-meta em {
  padding: 5px 8px;
  border-radius: 999px;
  background: #eef6f6;
  color: #526779;
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 850;
}

.mail-inbox-detail {
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 36%),
    #ffffff;
}

.mail-inbox-detail-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.mail-inbox-detail-head p {
  color: #526779;
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.mail-detail-body div {
  color: #213a4f;
  line-height: 1.55;
  overflow-wrap: anywhere;
}

.mail-inbox-link-card {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f8fbfb;
}

.mail-inbox-link-card .stable-select,
.mail-inbox-link-card .stable-select-button {
  min-width: 0;
}

.mail-inbox-link-card > button {
  grid-column: 1 / -1;
  justify-self: end;
  min-height: 44px;
  white-space: nowrap;
}

.mail-inbox-link-card h4 {
  grid-column: 1 / -1;
  margin: 0;
  color: #0f2f4a;
}

.mail-inbox-detail-actions {
  justify-content: flex-start;
}

.mail-inbox-empty {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px dashed rgba(15, 47, 74, 0.18);
  border-radius: 8px;
  background: #f8fbfb;
}

.mail-inbox-empty h3,
.mail-inbox-empty p {
  margin: 0;
}

.mail-inbox-empty h3 {
  color: #0f2f4a;
}

.mail-inbox-empty p {
  color: #667681;
}

.mail-history-head h3,
.mail-history-head p {
  margin: 0;
}

.mail-history-list {
  display: grid;
  gap: 10px;
}

.mail-history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
  gap: 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mail-history-item:hover {
  border-color: rgba(47, 166, 163, 0.46);
  box-shadow: 0 14px 28px rgba(15, 47, 74, 0.1);
  transform: translateY(-1px);
}

.mail-history-item.expanded {
  grid-template-columns: minmax(0, 1fr) repeat(3, auto);
}

.mail-history-item strong,
.mail-history-item p,
.mail-history-item small {
  margin: 0;
}

.mail-history-item strong {
  color: #0f2f4a;
}

.mail-history-item p,
.mail-history-item small {
  color: #667681;
}

.mail-history-modal-panel,
.mail-detail-panel {
  max-width: 1040px;
}

.mail-history-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px 180px;
  gap: 10px;
}

.mail-history-filters input,
.mail-history-filters select {
  min-height: 40px;
  padding: 0 12px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  font-weight: 750;
}

.mail-history-modal-list {
  display: grid;
  gap: 10px;
  max-height: min(64vh, 680px);
  overflow: auto;
  padding-right: 4px;
}

.mail-detail-content {
  display: grid;
  gap: 14px;
}

.mail-detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.mail-detail-grid article,
.mail-detail-body {
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
}

.mail-detail-grid span {
  display: block;
  color: #667681;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.mail-detail-grid strong {
  display: block;
  margin-top: 4px;
  color: #0f2f4a;
  overflow-wrap: anywhere;
}

.mail-detail-body h3 {
  margin: 0 0 8px;
  color: #0f2f4a;
}

.mail-choice-panel {
  max-width: 980px;
}

.mail-choice-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
}

.mail-choice-card {
  display: grid;
  gap: 14px;
  min-height: 210px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #fbfcfc;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.08);
}

.mail-choice-card h3,
.mail-choice-card p {
  margin: 0;
}

.mail-choice-card h3 {
  color: #0f2f4a;
}

.mail-choice-card p {
  color: #52616d;
  line-height: 1.4;
}

.mail-choice-actions {
  display: grid;
  gap: 8px;
  margin-top: auto;
}

.mail-choice-actions button {
  width: 100%;
}

.ai-mail-panel {
  width: min(1180px, 94vw);
}

.ai-mail-modal-grid {
  display: grid;
  grid-template-columns: minmax(300px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.ai-mail-context-card,
.ai-mail-output-card {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.ai-mail-select-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.ai-mail-context-card label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-size: 0.82rem;
  font-weight: 900;
}

.ai-mail-context-card select,
.ai-mail-context-card textarea {
  width: 100%;
  min-width: 0;
}

.ai-mail-actions,
.ai-mail-output-head,
.ai-mail-output-actions {
  display: flex;
  gap: 10px;
  align-items: center;
  flex-wrap: wrap;
}

.ai-mail-output-head {
  justify-content: space-between;
}

.ai-mail-output-head h3 {
  margin: 0;
  color: #0f2f4a;
}

.ai-mail-output-list {
  display: grid;
  gap: 12px;
}

.ai-mail-result-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: rgba(247, 251, 252, 0.92);
}

.ai-mail-result-card h4,
.ai-mail-result-card p,
.ai-mail-result-card pre {
  margin: 0;
}

.ai-mail-result-card h4 {
  color: #0f2f4a;
  font-size: 1rem;
}

.ai-mail-subject-line {
  padding: 9px 10px;
  border-radius: 8px;
  background: #e8fbfa;
  color: #0f2f4a;
  font-weight: 900;
}

.ai-mail-result-card pre {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: #213a4f;
  font-family: inherit;
  font-size: 0.92rem;
  font-weight: 650;
  line-height: 1.55;
}

.ai-mail-reasoning {
  border-left: 3px solid #2fa6a3;
  padding-left: 10px;
  color: #526779;
  font-size: 0.9rem;
  line-height: 1.5;
}

@media (max-width: 980px) {
  .mail-layout,
  .ai-mail-modal-grid,
  .ai-mail-select-grid,
  .mail-to-row,
  .mail-document-filters,
  .mail-history-filters,
  .mail-inbox-layout,
  .mail-inbox-link-card {
    grid-template-columns: 1fr;
  }

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

  .mail-inbox-filters label:first-child {
    grid-column: 1 / -1;
  }

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

  .mail-copy-fields {
    grid-template-columns: 1fr;
  }

  .mail-document-row,
  .mail-history-item,
  .mail-history-item.expanded,
  .mail-detail-attachment {
    grid-template-columns: 1fr;
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .mail-document-actions {
    width: 100%;
    justify-content: flex-start;
  }

  .mail-inbox-list {
    max-height: none;
    overflow: visible;
    padding-right: 0;
  }
}

@media (max-width: 640px) {
  .mail-start-actions {
    grid-template-columns: 1fr;
  }

  .mail-inbox-filters {
    grid-template-columns: 1fr;
  }

  .mail-inbox-filters label:first-child {
    grid-column: auto;
  }

  .mail-inbox-toolbar,
  .mail-inbox-detail-head,
  .mail-inbox-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.calllist-shell {
  display: grid;
  gap: 16px;
}

.calllist-hero,
.calllist-empty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.2), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #123956);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.calllist-hero h2,
.calllist-hero p,
.calllist-empty h3,
.calllist-empty p {
  margin: 0;
  color: #ffffff;
}

.calllist-hero .eyebrow {
  color: #62d5d1;
}

.calllist-hero p:not(.eyebrow),
.calllist-empty p {
  max-width: 760px;
  margin-top: 6px;
  opacity: 0.88;
}

.calllist-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.calllist-output {
  display: grid;
  gap: 16px;
}

.calllist-company-group {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  background:
    radial-gradient(circle at 94% 4%, rgba(47, 166, 163, 0.2), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98) 0%, #eef9f8 48%, #dff3f3 100%);
  color: #0f2f4a;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.08);
}

.calllist-company-group > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.calllist-company-header {
  flex-wrap: wrap;
}

.calllist-company-title {
  display: grid;
  gap: 6px;
  min-width: min(100%, 420px);
}

.calllist-company-meta-row,
.calllist-company-status,
.calllist-company-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.calllist-company-meta-row span {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.07);
  color: #315167;
  font-size: 11px;
  font-weight: 850;
}

.calllist-company-status {
  justify-content: flex-end;
  margin-left: auto;
}

.calllist-company-context {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(0, 1.15fr);
  gap: 10px;
}

.calllist-company-context p {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
  color: #40576b;
  line-height: 1.45;
}

.calllist-company-context strong {
  color: #0f2f4a;
}

.calllist-company-actions {
  justify-content: flex-start;
}

.calllist-company-actions .compact-button {
  min-width: 0;
}

.calllist-company-actions .compact-button:disabled {
  opacity: 0.52;
  cursor: not-allowed;
  transform: none;
}

.calllist-company-actions [data-link-call-list-company-candidate] {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  border-color: rgba(79, 197, 193, 0.36);
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.12);
}

.calllist-company-group h3,
.calllist-company-group p {
  margin: 0;
  color: #0f2f4a;
}

.calllist-company-group .eyebrow {
  color: #2fa6a3;
}

.calllist-company-group > header > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background:
    radial-gradient(circle at top right, rgba(255, 255, 255, 0.36), transparent 48%),
    linear-gradient(135deg, #2fa6a3, #6ccfca);
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
  box-shadow: 0 10px 22px rgba(47, 166, 163, 0.22);
}

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

.calllist-company-empty {
  display: grid;
  align-content: center;
  gap: 6px;
  min-height: 138px;
  padding: 16px;
  border: 1px dashed rgba(47, 166, 163, 0.38);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
  color: #0f2f4a;
}

.calllist-company-empty strong,
.calllist-company-empty p {
  margin: 0;
}

.calllist-company-empty p {
  color: #52616d;
  line-height: 1.45;
}

.calllist-card {
  position: relative;
  display: grid;
  gap: 7px;
  min-height: 174px;
  padding: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.calllist-delete-button,
.calllist-card-delete-button {
  position: absolute;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #0f2f4a;
  font-weight: 950;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.12);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.calllist-delete-button {
  top: 12px;
  right: 12px;
  width: 30px;
  height: 30px;
  font-size: 18px;
}

.calllist-card-delete-button {
  top: 8px;
  right: 8px;
  width: 26px;
  height: 26px;
  font-size: 15px;
}

.calllist-delete-button:hover,
.calllist-card-delete-button:hover,
.calllist-delete-button:focus-visible,
.calllist-card-delete-button:focus-visible {
  border-color: rgba(159, 29, 29, 0.28);
  background: #fff2f2;
  color: #9f1d1d;
  transform: translateY(-1px);
}

.calllist-delete-button:focus-visible,
.calllist-card-delete-button:focus-visible {
  outline: 2px solid #4fc5c1;
  outline-offset: 2px;
}

.calllist-card-main {
  all: unset;
  display: grid;
  gap: 7px;
  min-width: 0;
  cursor: pointer;
}

.calllist-card-main:focus-visible {
  outline: 2px solid #4fc5c1;
  outline-offset: 3px;
  border-radius: 8px;
}

.calllist-card-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: auto;
}

.calllist-card-actions .compact-button {
  min-width: 0;
  justify-content: center;
}

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

.heat-pill,
.timing-pill {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 950;
  line-height: 1;
}

.heat-pill {
  background: #e9f8f7;
  color: #0f2f4a;
}

.heat-pill.hot,
.heat-pill.critical,
.dashboard-badge.hot,
.dashboard-badge.critical {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.heat-pill.warm,
.dashboard-badge.warm {
  background: #dff7f4;
  color: #0f2f4a;
}

.heat-pill.cold,
.heat-pill.low,
.dashboard-badge.cold,
.dashboard-badge.low {
  background: #eef3f6;
  color: #52616d;
}

.timing-pill {
  background: rgba(47, 166, 163, 0.12);
  color: #0f2f4a;
}

.calllist-card:hover {
  border-color: #4fc5c1;
  box-shadow: 0 14px 30px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.calllist-card strong {
  color: #0f2f4a;
  font-size: 15px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.calllist-card span,
.calllist-card small {
  color: #52616d;
  line-height: 1.35;
}

.calllist-card .heat-pill,
.calllist-card .timing-pill {
  color: #0f2f4a;
}

.calllist-card .heat-pill.hot,
.calllist-card .heat-pill.critical {
  color: #ffffff;
}

.calllist-card .heat-pill.cold,
.calllist-card .heat-pill.low {
  color: #52616d;
}

.calllist-card small {
  font-weight: 800;
}

.calllist-phone-state {
  padding: 8px 10px;
  border-radius: 8px;
  background: #eef8f8;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
}

.calllist-linked-candidates {
  margin: 0;
  color: #315167;
  font-size: 12px;
  line-height: 1.35;
}

.calllist-timing-line {
  margin: 0;
  color: #40576b;
  font-size: 12px;
  line-height: 1.35;
}

.calllist-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.calllist-card-meta em,
.calllist-source {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.calllist-card-meta span {
  color: #788691;
  font-size: 11px;
}

.calllist-source {
  background: #0f2f4a;
  color: #ffffff;
}

.calllist-card .calllist-source,
.calllist-card .calllist-source:hover,
.calllist-card .calllist-source:focus {
  color: #ffffff;
}

.calllist-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.calllist-form label,
.calllist-detail-grid label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-weight: 900;
}

.calllist-form .wide,
.calllist-form .content-modal-actions.wide {
  grid-column: 1 / -1;
}

.calllist-form input,
.calllist-form textarea,
.calllist-form select,
.calllist-detail-grid select,
.calllist-note-form textarea {
  width: 100%;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #fbfcfc;
  color: #0f2f4a;
  font: inherit;
  padding: 10px 12px;
}

.calllist-form select[multiple] {
  min-height: 106px;
}

.calllist-detail-grid,
.calllist-intel-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.calllist-detail-grid article,
.calllist-detail-grid label,
.calllist-intel-grid article,
.calllist-notes-section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
}

.calllist-detail-grid strong,
.calllist-intel-grid h3,
.calllist-notes-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.calllist-detail-grid span,
.calllist-intel-grid p,
.calllist-note-list p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.calllist-detail-save {
  align-content: end;
}

.calllist-intel-grid {
  margin-top: 12px;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.calllist-intel-grid article.calllist-intel-highlight {
  border-color: rgba(47, 166, 163, 0.24);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 36%),
    #ffffff;
}

.calllist-notes-section {
  margin-top: 12px;
}

.calllist-notes-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.calllist-note-form {
  display: grid;
  gap: 8px;
}

.calllist-note-list {
  display: grid;
  gap: 8px;
}

.calllist-note-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
}

.calllist-note-list small {
  color: #2fa6a3;
  font-weight: 900;
}

.calllist-empty {
  align-items: center;
  padding: 28px;
  border-color: rgba(98, 213, 209, 0.4);
  background:
    radial-gradient(circle at 90% 8%, rgba(47, 166, 163, 0.34), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 56%, #1f7d82 130%);
}

.calllist-empty h3 {
  font-size: 24px;
  line-height: 1.15;
}

.calllist-empty > p {
  display: none;
}

.calllist-empty .primary-button,
.calllist-hero-actions .primary-button,
.tasks-hero-actions .primary-button,
.tasks-empty .primary-button {
  min-width: 180px;
  border: 1px solid rgba(255, 255, 255, 0.22);
  background:
    radial-gradient(circle at top right, rgba(98, 213, 209, 0.36), transparent 36%),
    linear-gradient(135deg, #0f2f4a, #16496a);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.22);
}

.calllist-empty .primary-button:hover,
.calllist-hero-actions .primary-button:hover,
.tasks-hero-actions .primary-button:hover,
.tasks-empty .primary-button:hover {
  border-color: rgba(98, 213, 209, 0.66);
  box-shadow: 0 16px 34px rgba(47, 166, 163, 0.28);
  transform: translateY(-1px);
}

.calllist-company-group {
  border: 1px solid rgba(47, 166, 163, 0.2);
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 166, 163, 0.2), transparent 34%),
    radial-gradient(circle at 12% 100%, rgba(15, 47, 74, 0.05), transparent 38%),
    linear-gradient(135deg, #ffffff 0%, #f2fbfa 48%, #e0f5f4 100%);
  box-shadow:
    0 18px 38px rgba(15, 47, 74, 0.08),
    inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.tasks-company-group {
  border: 1px solid rgba(98, 213, 209, 0.24);
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 125%);
}

.calllist-card {
  border-color: rgba(15, 47, 74, 0.07);
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.07);
}

.tasks-shell {
  display: grid;
  gap: 16px;
}

.tasks-hero,
.tasks-empty {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 20px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.22), transparent 34%),
    linear-gradient(135deg, #0f2f4a, #123956);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.tasks-hero h2,
.tasks-hero p,
.tasks-empty h3,
.tasks-empty p {
  margin: 0;
  color: #ffffff;
}

.tasks-hero .eyebrow,
.tasks-company-group .eyebrow {
  color: #62d5d1;
}

.tasks-hero p:not(.eyebrow),
.tasks-empty p {
  max-width: 760px;
  margin-top: 6px;
  opacity: 0.88;
}

.tasks-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.tasks-filter-bar {
  display: grid;
  grid-template-columns: 1.6fr repeat(3, minmax(170px, 0.7fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.tasks-filter-bar label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-weight: 900;
}

.tasks-filter-bar input,
.tasks-filter-bar select,
.task-form input,
.task-form textarea,
.task-form select,
.task-detail-grid input,
.task-detail-grid select,
.task-notes-section textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 10px 12px;
}

.tasks-output {
  display: grid;
  gap: 16px;
}

.tasks-company-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.tasks-company-group > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tasks-company-group h3,
.tasks-company-group p {
  margin: 0;
  color: #ffffff;
}

.tasks-company-group > header > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.tasks-contact-list {
  display: grid;
  gap: 12px;
}

.tasks-contact-group {
  display: grid;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.tasks-contact-group > header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.tasks-contact-group strong,
.tasks-contact-group span,
.tasks-contact-group small {
  color: #ffffff;
}

.tasks-contact-group span,
.tasks-contact-group small {
  opacity: 0.86;
}

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

.task-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 168px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.task-card:hover,
.task-card:focus-within {
  border-color: #4fc5c1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.task-card-open {
  display: grid;
  gap: 8px;
  width: 100%;
  height: 100%;
  padding: 0;
  padding-right: 28px;
  border: 0;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.task-card-open:focus-visible,
.task-card-delete:focus-visible {
  outline: 3px solid rgba(47, 166, 163, 0.28);
  outline-offset: 2px;
}

.task-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  padding: 0;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.92);
  color: #9f2f3a;
  font-size: 18px;
  font-weight: 900;
  line-height: 1;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.12);
  transition:
    background 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    box-shadow 0.18s ease;
}

.task-card-delete:hover {
  background: #9f2f3a;
  color: #ffffff;
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(159, 47, 58, 0.25);
}

.task-card strong {
  color: #0f2f4a;
  line-height: 1.25;
}

.task-card p,
.task-card small {
  margin: 0;
  color: #52616d;
  line-height: 1.4;
}

.task-type-badge,
.task-card-meta em {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.task-card-meta {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
  margin-top: auto;
}

.task-card-meta span {
  color: #788691;
  font-size: 11px;
}

.task-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.task-form label,
.task-candidate-link-field,
.task-detail-grid label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-weight: 900;
}

.task-form .wide,
.task-form .content-modal-actions.wide {
  grid-column: 1 / -1;
}

.task-candidate-link-field {
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.08), rgba(255, 255, 255, 0.96));
}

.task-candidate-link-field > div:first-child {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.task-candidate-link-field span {
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
  color: #0f2f4a;
}

.task-candidate-link-field strong,
.task-candidate-link-field small,
.task-card-candidate {
  min-width: 0;
  overflow-wrap: anywhere;
}

.task-candidate-link-field small {
  color: #5f6f7c;
  font-weight: 700;
}

.task-candidate-link-field .inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.task-candidate-detail {
  border-color: rgba(47, 166, 163, 0.22) !important;
  background: rgba(47, 166, 163, 0.08) !important;
}

.task-detail-summary,
.task-detail-grid,
.task-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.task-detail-summary article,
.task-detail-grid article,
.task-detail-grid label,
.task-flow-card,
.task-actions-card,
.task-notes-section {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
}

.task-detail-summary {
  margin-bottom: 12px;
}

.task-detail-summary article {
  min-width: 0;
}

.task-edit-section {
  margin-top: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.task-edit-section > summary {
  cursor: pointer;
  padding: 12px 14px;
  color: #0f2f4a;
  font-weight: 900;
  list-style-position: inside;
  background: rgba(47, 166, 163, 0.08);
}

.task-edit-grid {
  padding: 12px;
}

.task-candidate-edit {
  align-content: start;
  position: relative;
  z-index: 1;
}

.task-candidate-edit .compact-button {
  justify-self: start;
  width: auto;
  min-width: 148px;
  pointer-events: auto;
}

.task-detail-feedback {
  display: none;
  margin-bottom: 10px;
  padding: 9px 12px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.1);
  color: #0f2f4a;
  font-weight: 900;
}

.task-detail-feedback.visible {
  display: block;
}

.task-detail-grid strong,
.task-detail-summary strong,
.task-flow-card h3,
.task-notes-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.task-detail-grid span,
.task-detail-summary span,
.task-note-list p,
.task-history p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.task-quick-actions,
.task-actions-card,
.task-notes-head {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
  margin-top: 12px;
}

.task-flow-card,
.task-notes-section {
  margin-top: 12px;
}

.task-flow-grid article {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
}

.task-flow-grid .inline-actions {
  display: grid;
  gap: 8px;
}

.task-choice-button {
  justify-content: center;
  min-height: 42px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease,
    opacity 0.18s ease;
}

.task-choice-button.is-selected,
.task-choice-button[aria-pressed="true"] {
  border-color: rgba(47, 166, 163, 0.66);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.42), transparent 44%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 60%, #2fa6a3 128%);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.18);
}

.task-choice-button.is-loading,
.compact-button.is-loading {
  cursor: wait;
  opacity: 0.72;
}

.task-note-list {
  display: grid;
  gap: 8px;
}

.task-note-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
}

.task-note-list small,
.task-history summary {
  color: #2fa6a3;
  font-weight: 900;
}

.licensecheck-shell,
.requests-shell {
  display: grid;
  gap: 16px;
}

.licensecheck-hero,
.requests-hero,
.licensecheck-submit-card,
.licensecheck-list-card {
  display: grid;
  gap: 14px;
  padding: 20px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.28), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 128%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.licensecheck-hero,
.requests-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.licensecheck-hero h2,
.requests-hero h2,
.licensecheck-hero p,
.requests-hero p,
.licensecheck-submit-card h3,
.licensecheck-submit-card p,
.licensecheck-list-card h3 {
  margin: 0;
  color: #ffffff;
}

.licensecheck-hero .eyebrow,
.requests-hero .eyebrow,
.licensecheck-submit-card .eyebrow,
.licensecheck-list-card .eyebrow,
.requests-company-group .eyebrow {
  color: #62d5d1;
}

.licensecheck-hero p:not(.eyebrow),
.requests-hero p:not(.eyebrow),
.licensecheck-submit-card p {
  max-width: 760px;
  opacity: 0.88;
}

.licensecheck-hero-actions,
.requests-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.licensecheck-form,
.license-request-form {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.licensecheck-form label,
.license-request-form label {
  display: grid;
  gap: 6px;
  color: #ffffff;
  font-weight: 900;
}

.license-request-form label {
  color: #0f2f4a;
}

.licensecheck-form .wide,
.license-request-form .wide,
.licensecheck-consent {
  grid-column: 1 / -1;
}

.licensecheck-form input,
.licensecheck-form textarea,
.license-request-form input,
.license-request-form textarea,
.license-request-form select,
.requests-filter-bar input,
.requests-filter-bar select {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 10px 12px;
}

.licensecheck-consent {
  display: flex !important;
  align-items: flex-start;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
  color: #ffffff;
}

.licensecheck-consent input {
  width: auto;
  margin-top: 3px;
}

.licensecheck-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.licensecheck-section-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.licensecheck-grid,
.requests-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.licensecheck-card,
.request-card {
  display: grid;
  gap: 8px;
  min-height: 178px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.licensecheck-card:hover,
.request-card:hover {
  border-color: #4fc5c1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.licensecheck-card strong,
.request-card strong {
  color: #0f2f4a;
  font-size: 15px;
  line-height: 1.25;
}

.licensecheck-card p,
.licensecheck-card span,
.licensecheck-card small,
.request-card p,
.request-card span,
.request-card small {
  margin: 0;
  color: #52616d;
  line-height: 1.4;
}

.license-status-badge,
.request-type-badge {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.templates-shell {
  display: grid;
  gap: 16px;
  max-width: 100%;
}

.templates-hero {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 22px;
  border: 1px solid rgba(47, 166, 163, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.34), transparent 36%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 64%, #1f7478 124%);
  color: #ffffff;
  box-shadow: 0 20px 44px rgba(15, 47, 74, 0.16);
}

.templates-hero h2,
.templates-hero p,
.templates-system-mail-card span,
.templates-system-mail-card strong,
.templates-system-mail-card small {
  margin: 0;
  color: #ffffff;
}

.templates-hero p:not(.eyebrow) {
  max-width: 760px;
  opacity: 0.9;
  line-height: 1.58;
}

.templates-hero .eyebrow {
  color: #62d5d1;
}

.templates-system-mail-card {
  align-self: stretch;
  display: grid;
  align-content: center;
  gap: 7px;
  min-width: min(310px, 100%);
  padding: 16px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.1);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.12);
}

.platform-owner .templates-hero {
  flex-direction: column;
}

.platform-owner .templates-system-mail-card {
  width: 100%;
  min-width: 0;
}

.templates-system-mail-card span {
  color: #a7fffb;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.templates-system-mail-card strong {
  font-size: 18px;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.templates-system-mail-card small {
  opacity: 0.82;
  line-height: 1.35;
}

.templates-hub {
  display: grid;
  gap: 16px;
}

.templates-hub.hidden,
.templates-editor-view.hidden {
  display: none !important;
}

.templates-hub-head,
.templates-detail-toolbar {
  display: flex;
  align-items: stretch;
  justify-content: space-between;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.08);
}

.templates-hub-head h3,
.templates-hub-head p,
.templates-detail-toolbar h3,
.templates-detail-toolbar p,
.template-hub-category-head h4,
.template-hub-category-head p,
.template-hub-card h5,
.template-hub-card p,
.template-hub-card small {
  margin: 0;
}

.templates-hub-head h3,
.templates-detail-toolbar h3 {
  color: #0f2f4a;
  font-size: 24px;
  line-height: 1.16;
}

.templates-hub-head p:not(.eyebrow),
.templates-detail-toolbar p:not(.eyebrow),
.template-hub-category-head p,
.template-hub-card p,
.template-hub-card small {
  color: #52616d;
  line-height: 1.48;
}

.templates-hub-search {
  display: grid;
  align-content: end;
  gap: 7px;
  min-width: min(360px, 100%);
  color: #0f2f4a;
  font-weight: 900;
}

.templates-hub-search input {
  width: 100%;
  min-height: 46px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.13);
  border-radius: 10px;
  background: #f8fcfc;
  color: #0f2f4a;
  font: inherit;
  font-weight: 500;
  padding: 0 14px;
  box-shadow: inset 0 1px 0 rgba(15, 47, 74, 0.04);
}

.templates-hub-grid {
  display: grid;
  gap: 16px;
}

.template-hub-category {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.08);
}

.template-hub-category-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding-bottom: 12px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.template-hub-category-head h4 {
  color: #0f2f4a;
  font-size: 20px;
  line-height: 1.2;
}

.template-hub-category-head span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #eaf9f8;
  color: #0f766e;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.template-hub-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
  align-items: stretch;
}

.template-hub-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  height: 100%;
  min-height: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(248, 252, 252, 0.98), rgba(234, 249, 248, 0.68)),
    #ffffff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.template-hub-card:hover {
  border-color: rgba(47, 166, 163, 0.38);
  box-shadow: 0 18px 36px rgba(15, 47, 74, 0.1);
  transform: translateY(-1px);
}

.template-hub-card-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 12px 22px rgba(47, 166, 163, 0.2);
}

.template-hub-card-body {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.template-hub-card h5 {
  color: #0f2f4a;
  font-size: 18px;
  line-height: 1.18;
}

.template-hub-card button {
  grid-column: 1 / -1;
  align-self: end;
  justify-content: center;
  width: 100%;
  margin-top: 10px;
}

.template-hub-card.is-future {
  opacity: 0.92;
}

.templates-detail-toolbar {
  align-items: center;
  margin-bottom: 16px;
}

.templates-detail-toolbar > div {
  display: grid;
  gap: 4px;
  min-width: 0;
  text-align: right;
}

.templates-layout {
  display: grid;
  grid-template-columns: minmax(220px, 0.36fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.templates-list-card,
.templates-editor-card,
.templates-placeholder-card,
.templates-test-card,
.templates-preview-card {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.09), transparent 34%),
    #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.08);
}

.templates-list-card {
  position: sticky;
  top: 96px;
  display: grid;
  justify-items: stretch;
  align-content: start;
  gap: 12px;
  padding: 14px;
}

.templates-list-card .saved-templates-button {
  width: 100%;
  max-width: 230px;
  min-width: 0;
  box-sizing: border-box;
  justify-content: center;
  justify-self: center;
}

.templates-list-card > .eyebrow {
  justify-self: start;
  width: 100%;
}

.templates-list-card .eyebrow,
.templates-editor-head .eyebrow,
.templates-placeholder-card .eyebrow,
.templates-test-card .eyebrow,
.templates-preview-head .eyebrow {
  color: #1f9b98;
}

#systemTemplateList {
  display: grid;
  justify-items: center;
  width: 100%;
  gap: 10px;
}

.system-template-list-item {
  display: grid;
  gap: 5px;
  justify-items: center;
  width: 100%;
  max-width: 230px;
  min-width: 0;
  justify-self: center;
  box-sizing: border-box;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 9px;
  background: #f8fcfc;
  color: #0f2f4a;
  text-align: center;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.05);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.system-template-list-item strong,
.system-template-list-item span {
  min-width: 0;
  overflow-wrap: anywhere;
}

.system-template-list-item strong {
  color: #0f2f4a;
  line-height: 1.2;
}

.system-template-list-item span {
  color: #52616d;
  font-size: 12px;
  line-height: 1.35;
}

.system-template-list-item:hover,
.system-template-list-item.active {
  border-color: rgba(47, 166, 163, 0.5);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 16px 32px rgba(47, 166, 163, 0.22);
  transform: translateY(-1px);
}

.system-template-list-item:hover strong,
.system-template-list-item:hover span,
.system-template-list-item.active strong,
.system-template-list-item.active span {
  color: #ffffff;
}

.templates-editor-card,
.templates-preview-card {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.templates-editor-head,
.templates-placeholder-card,
.templates-test-card,
.templates-preview-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.templates-editor-head h3,
.templates-editor-head p,
.templates-placeholder-card p,
.templates-test-card p {
  margin: 0;
}

.templates-editor-head h3 {
  color: #0f2f4a;
  max-width: 100%;
  font-size: 18px;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
}

.templates-editor-head > div {
  display: grid;
  gap: 9px;
  min-width: 0;
}

.templates-head-divider,
.templates-title-divider {
  display: block;
  width: 100%;
  height: 1px;
  background: linear-gradient(90deg, rgba(47, 166, 163, 0.7), rgba(47, 166, 163, 0.08));
}

.templates-title-divider {
  opacity: 0.75;
}

.templates-editor-head p:not(.eyebrow),
.templates-placeholder-card p:not(.eyebrow),
.templates-test-card p:not(.eyebrow) {
  color: #52616d;
  line-height: 1.48;
}

.templates-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.templates-form label,
.templates-test-card label {
  display: grid;
  gap: 7px;
  color: #0f2f4a;
  font-weight: 900;
}

.templates-form label.wide {
  grid-column: 1 / -1;
}

.templates-form input,
.templates-form textarea,
.templates-test-card input {
  width: 100%;
  min-width: 0;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 9px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-weight: 400;
  line-height: 1.45;
  box-shadow: inset 0 1px 0 rgba(15, 47, 74, 0.04);
}

.templates-form input::placeholder,
.templates-form textarea::placeholder,
.templates-test-card input::placeholder {
  color: rgba(15, 47, 74, 0.48);
  font-weight: 400;
}

.templates-form input,
.templates-test-card input {
  min-height: 44px;
  padding: 0 12px;
}

.templates-form input[type="color"] {
  height: 44px;
  padding: 4px;
}

.templates-form textarea {
  resize: vertical;
  padding: 11px 12px;
}

.templates-placeholder-card,
.templates-test-card {
  display: grid;
  align-items: start;
  gap: 12px;
  padding: 14px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 32%),
    #f8fcfc;
}

.templates-placeholder-card > div:first-child,
.templates-test-card > div:first-child {
  display: grid;
  width: 100%;
  gap: 4px;
  min-width: 0;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.templates-placeholder-card p,
.templates-test-card p {
  max-width: none;
  overflow-wrap: normal;
  word-break: normal;
}

.templates-placeholder-list {
  display: flex;
  width: 100%;
  justify-content: flex-start;
  gap: 8px;
  flex-wrap: wrap;
  min-width: 0;
}

.templates-placeholder-list button {
  min-height: 32px;
  padding: 0 10px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 999px;
  background: #eaf9f8;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.templates-placeholder-list button:hover {
  border-color: #2fa6a3;
  background: #2fa6a3;
  color: #ffffff;
}

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

.templates-test-card > div:first-child,
.templates-test-card .muted-line {
  grid-column: 1 / -1;
  margin: 0;
}

.templates-test-card label {
  min-width: 0;
}

.templates-test-card .compact-button {
  align-self: end;
  min-height: 44px;
  white-space: nowrap;
}

.templates-preview-card {
  grid-column: 2;
}

.templates-preview-head {
  align-items: center;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.templates-preview-head span {
  max-width: 52%;
  overflow: hidden;
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef8f8;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.templates-mail-preview {
  display: grid;
  place-items: center;
  min-height: 420px;
  padding: 20px;
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(15, 47, 74, 0.08), rgba(47, 166, 163, 0.1)),
    #f4f8f9;
}

.template-email-frame {
  overflow: hidden;
  width: min(100%, 620px);
  border: 1px solid #d7e1e4;
  border-radius: 16px;
  background: #ffffff;
  color: #0f2f4a;
  box-shadow: 0 24px 48px rgba(15, 47, 74, 0.16);
}

.template-email-frame header {
  display: grid;
  gap: 12px;
  padding: 24px 28px;
  color: #ffffff;
}

.template-email-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.template-email-brand img {
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  object-fit: contain;
  padding: 5px;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 10px 18px rgba(15, 47, 74, 0.16);
}

.template-email-frame header span,
.template-email-frame header h3 {
  margin: 0;
  color: #ffffff;
}

.template-email-frame header span {
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.template-email-frame header h3 {
  font-size: 23px;
  line-height: 1.2;
}

.template-email-body {
  display: grid;
  gap: 14px;
  padding: 28px;
}

.template-email-body p {
  margin: 0;
  color: #0f2f4a;
  line-height: 1.58;
}

.template-email-button {
  justify-self: start;
  padding: 13px 18px;
  border-radius: 10px;
  color: #ffffff;
  font-weight: 900;
  text-decoration: none;
  box-shadow: 0 12px 22px rgba(47, 166, 163, 0.24);
}

.template-email-link,
.template-email-footer {
  color: #5d7180 !important;
  font-size: 13px;
  overflow-wrap: anywhere;
}

.template-email-footer-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding-top: 16px;
  border-top: 1px solid #d7e1e4;
}

.template-email-footer-brand img {
  width: 28px;
  height: 28px;
  object-fit: contain;
  border-radius: 8px;
}

.template-email-footer-brand p {
  margin: 0;
  font-weight: 800;
}

.saved-templates-panel {
  width: min(1180px, 96vw);
}

.saved-templates-body {
  max-height: calc(92vh - 108px);
  overflow: auto;
}

.saved-templates-grid {
  display: grid;
  gap: 14px;
}

.saved-template-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.72fr) minmax(260px, 1fr);
  gap: 14px;
  align-items: stretch;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.09), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.saved-template-main {
  display: grid;
  align-content: start;
  gap: 8px;
  min-width: 0;
}

.saved-template-main h3,
.saved-template-main p,
.saved-template-main small {
  margin: 0;
}

.saved-template-main h3 {
  color: #0f2f4a;
  font-size: 19px;
  line-height: 1.2;
}

.saved-template-main p {
  color: #52616d;
  line-height: 1.45;
}

.calllist-detail-grid .calllist-candidate-link-card {
  border-color: rgba(47, 166, 163, 0.28);
  background:
    radial-gradient(circle at right top, rgba(47, 166, 163, 0.16), transparent 48%),
    #ffffff;
}

.calllist-candidate-link-card .compact-button {
  width: fit-content;
  margin-top: 4px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  border-color: rgba(79, 197, 193, 0.36);
}

.saved-template-main small {
  color: #738391;
}

.template-status-pill {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #eaf9f8;
  color: #0f766e;
  font-size: 11px;
  font-weight: 900;
}

.saved-template-preview {
  max-height: 280px;
  overflow: auto;
  padding: 12px;
  border-radius: 10px;
  background: #f4f8f9;
}

.saved-template-preview .template-email-frame {
  width: 100%;
  transform-origin: top center;
}

.saved-template-preview .template-email-frame header {
  padding: 18px;
}

.saved-template-preview .template-email-frame header h3 {
  font-size: 20px;
}

.saved-template-preview .template-email-body {
  padding: 18px;
}

.saved-template-actions {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.templates-empty-state {
  display: grid;
  gap: 6px;
  padding: 18px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background: #f8fcfc;
}

.templates-empty-state h3,
.templates-empty-state p {
  margin: 0;
}

.templates-empty-state h3 {
  color: #0f2f4a;
}

.templates-empty-state p {
  color: #52616d;
}

@media (min-width: 1500px) {
  .templates-layout {
    grid-template-columns: minmax(220px, 0.32fr) minmax(0, 0.9fr) minmax(360px, 0.72fr);
  }

  .templates-preview-card {
    grid-column: auto;
  }
}

@media (max-width: 1180px) {
  .templates-layout,
  .templates-form,
  .templates-test-card {
    grid-template-columns: 1fr;
  }

  .templates-list-card {
    position: static;
  }

  .templates-preview-card {
    grid-column: auto;
  }
}

@media (min-width: 761px) {
  .templates-test-card {
    grid-template-columns: minmax(0, 1fr) auto;
  }
}

@media (max-width: 760px) {
  .templates-hero,
  .templates-hub-head,
  .template-hub-category-head,
  .templates-detail-toolbar,
  .templates-editor-head,
  .templates-placeholder-card,
  .templates-test-card,
  .templates-preview-head {
    align-items: stretch;
    flex-direction: column;
  }

  .templates-system-mail-card {
    min-width: 0;
  }

  .templates-hub-search {
    min-width: 0;
  }

  .templates-detail-toolbar > div {
    text-align: left;
  }

  .templates-detail-toolbar .compact-button {
    width: 100%;
  }

  .templates-placeholder-list {
    justify-content: flex-start;
  }

  .templates-test-card .compact-button {
    width: 100%;
  }

  .templates-mail-preview,
  .template-email-body,
  .template-email-frame header {
    padding: 18px;
  }

  .template-email-frame header h3 {
    font-size: 20px;
  }

  .templates-preview-head span {
    max-width: none;
  }

  .templates-editor-head h3 {
    white-space: normal;
  }

  .saved-template-card {
    grid-template-columns: 1fr;
  }

  .saved-template-actions {
    justify-content: stretch;
  }

  .saved-template-actions > button {
    width: 100%;
  }
}

.license-status-badge.pending {
  background: #f0a43a;
}

.license-status-badge.processing {
  background: #246fc0;
}

.license-status-badge.valid {
  background: #2fa65a;
}

.license-status-badge.invalid,
.license-status-badge.rejected {
  background: #c94848;
}

.license-status-badge.unknown {
  background: #667887;
}

.license-sensitive-grid,
.request-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.license-sensitive-grid article,
.request-detail-grid article,
.request-detail-section {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
}

.license-sensitive-grid strong,
.request-detail-grid strong,
.request-detail-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.license-sensitive-grid span,
.request-detail-grid span,
.request-detail-section p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.request-detail-section {
  margin-top: 12px;
}

.requests-filter-bar {
  display: grid;
  grid-template-columns: 1fr minmax(220px, 0.36fr);
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.requests-filter-bar label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-weight: 900;
}

.requests-output {
  display: grid;
  gap: 16px;
}

.requests-company-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 125%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.requests-company-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.requests-company-group h3,
.requests-company-group p {
  margin: 0;
  color: #ffffff;
}

.requests-company-group > header > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 12px;
  font-weight: 900;
}

.licensecheck-empty,
.requests-empty {
  padding: 18px;
  border: 1px dashed rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
}

.requests-empty {
  border-color: rgba(15, 47, 74, 0.12);
  background: #ffffff;
  color: #0f2f4a;
}

.license-request-panel {
  width: min(1040px, 96vw);
}

.license-request-modal-body,
.account-recovery-request-body {
  align-content: start;
  gap: 16px;
}

.license-request-detail-content {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.license-request-form.hidden,
.account-recovery-form.hidden {
  display: none !important;
}

.license-request-form .content-modal-actions {
  margin: 0 -12px -12px;
}

.dashboard-shell {
  display: grid;
  gap: 16px;
  max-width: 1320px;
}

.dashboard-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 22px;
  border: 1px solid rgba(47, 166, 163, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 166, 163, 0.36), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 62%, #1f7478 128%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(15, 47, 74, 0.16);
}

.dashboard-hero h2,
.dashboard-hero p {
  margin: 0;
  color: #ffffff;
}

.dashboard-hero h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.dashboard-hero .eyebrow {
  color: #62d5d1;
}

.dashboard-hero p:not(.eyebrow) {
  max-width: 780px;
  opacity: 0.88;
  line-height: 1.55;
}

.dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.dashboard-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.dashboard-filter {
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: #f6fbfb;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 13px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-filter:hover,
.dashboard-filter.active {
  border-color: rgba(47, 166, 163, 0.58);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.18);
  transform: translateY(-1px);
}

.dashboard-momentum-card {
  display: grid;
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.6fr) auto;
  gap: 14px;
  align-items: stretch;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 95% 0%, rgba(47, 166, 163, 0.16), transparent 36%),
    linear-gradient(180deg, #ffffff, #f7fbfb);
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.dashboard-momentum-copy,
.dashboard-momentum-list,
.dashboard-momentum-actions {
  min-width: 0;
}

.dashboard-momentum-copy {
  display: grid;
  align-content: center;
  gap: 6px;
}

.dashboard-momentum-copy h3,
.dashboard-momentum-copy p {
  margin: 0;
}

.dashboard-momentum-copy h3 {
  color: #0f2f4a;
  font-size: 22px;
  line-height: 1.15;
}

.dashboard-momentum-copy p,
.dashboard-momentum-copy small {
  color: #53677a;
  line-height: 1.45;
}

.dashboard-momentum-copy .eyebrow {
  color: #2fa6a3;
}

.dashboard-momentum-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.dashboard-momentum-item {
  display: grid;
  grid-template-rows: auto auto 1fr auto;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 174px;
  padding: 12px 13px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-momentum-item-head {
  display: flex;
  min-width: 0;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.dashboard-momentum-item:hover {
  border-color: rgba(47, 166, 163, 0.48);
  box-shadow: 0 16px 26px rgba(47, 166, 163, 0.14);
  transform: translateY(-1px);
}

.dashboard-momentum-item.static {
  cursor: default;
}

.dashboard-momentum-item.static:hover {
  transform: none;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
}

.dashboard-momentum-start,
.dashboard-strategist-start {
  border-color: rgba(47, 166, 163, 0.5);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 16px 28px rgba(47, 166, 163, 0.18);
}

.dashboard-momentum-start span,
.dashboard-momentum-start strong,
.dashboard-momentum-start small,
.dashboard-momentum-start .dashboard-momentum-open,
.dashboard-momentum-start .dashboard-momentum-priority {
  color: #ffffff;
}

.dashboard-momentum-start span {
  background: rgba(255, 255, 255, 0.16);
  border-color: rgba(255, 255, 255, 0.28);
  color: #ffffff;
}

.dashboard-momentum-item span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  align-self: start;
  justify-self: start;
  width: fit-content;
  min-height: 22px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  background: linear-gradient(180deg, #f7fbfb, #e9f8f7);
  color: #00736f;
  font-size: 10.5px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.dashboard-momentum-priority,
.dashboard-momentum-open {
  font-style: normal;
  font-weight: 950;
}

.dashboard-momentum-priority {
  flex: 0 0 auto;
  padding: 3px 8px;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.08);
  color: #0f2f4a;
  font-size: 10.5px;
  line-height: 1.1;
}

.dashboard-momentum-item strong {
  color: #0f2f4a;
  font-size: 18px;
  line-height: 1.12;
}

.dashboard-momentum-item small {
  color: #53677a;
  display: -webkit-box;
  overflow: hidden;
  line-height: 1.34;
  max-height: 4.02em;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 3;
}

.dashboard-momentum-open {
  align-self: end;
  justify-self: start;
  color: #00736f;
  font-size: 12px;
  line-height: 1;
}

.dashboard-momentum-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.dashboard-momentum-detail-panel {
  width: min(720px, 94vw);
}

.dashboard-momentum-detail-body {
  display: grid;
  gap: 14px;
  padding: 18px;
}

.dashboard-momentum-detail-summary {
  margin: 0;
  padding: 12px 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f7fbfb);
  color: #0f2f4a;
  font-weight: 850;
  line-height: 1.42;
}

.dashboard-momentum-detail-text {
  color: #53677a;
  font-size: 14px;
  line-height: 1.55;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

.dashboard-personal-layout {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  align-items: start;
}

.dashboard-layout-source-hidden {
  display: none !important;
}

.dashboard-personal-layout > [data-dashboard-widget] {
  min-width: 0;
  grid-column: span 2;
}

.dashboard-personal-layout > .dashboard-widget-size-small {
  grid-column: span 1;
}

.dashboard-personal-layout > .dashboard-widget-size-normal {
  grid-column: span 2;
}

.dashboard-personal-layout > .dashboard-widget-size-wide {
  grid-column: span 3;
}

.dashboard-personal-layout > .dashboard-widget-size-full {
  grid-column: 1 / -1;
}

.dashboard-personal-layout > .dashboard-wide-panel {
  grid-row: auto;
}

.dashboard-personal-layout > .dashboard-momentum-card {
  grid-template-columns: minmax(0, 1fr);
}

.dashboard-personal-layout > .dashboard-momentum-card.dashboard-widget-size-full {
  grid-template-columns: minmax(260px, 0.78fr) minmax(0, 1.6fr) auto;
}

.dashboard-personal-layout > .dashboard-momentum-card .dashboard-momentum-list {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
}

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

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

.dashboard-ai-command-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-auto-flow: dense;
  align-items: start;
}

.dashboard-ai-panel {
  min-height: 100%;
}

.dashboard-ai-panel-opportunities,
.dashboard-ai-panel-actions,
.dashboard-ai-panel-strategist {
  grid-column: 1 / -1;
}

.dashboard-ai-panel .dashboard-panel-head {
  min-height: 56px;
}

.dashboard-ai-panel .dashboard-row-main strong,
.dashboard-ai-panel .dashboard-row-main small {
  overflow: visible;
  text-overflow: clip;
  white-space: normal;
}

.dashboard-ai-panel .dashboard-row {
  align-items: start;
}

.dashboard-ai-panel .dashboard-important-card {
  align-items: start;
}

.dashboard-ai-panel-opportunities .dashboard-list {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
  align-items: stretch;
}

.dashboard-ai-panel-actions .dashboard-list {
  grid-template-columns: repeat(auto-fit, minmax(300px, 1fr));
  align-items: start;
}

.dashboard-ai-panel-strategist .dashboard-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  align-items: start;
}

.dashboard-ai-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 8px;
}

.dashboard-module-widget {
  min-width: 0;
  border-color: rgba(47, 166, 163, 0.2);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.16), transparent 34%),
    linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.dashboard-module-widget .dashboard-panel-head {
  min-height: 0;
  margin: -4px -4px 2px;
  padding: 10px 11px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.18), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #00736f 100%);
}

.dashboard-module-widget .dashboard-panel-head h3,
.dashboard-module-widget .dashboard-panel-head .eyebrow {
  color: #ffffff;
}

.dashboard-module-widget .dashboard-panel-head .mini-button {
  flex: 0 0 auto;
  max-width: 110px;
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(255, 255, 255, 0.96);
  color: #0f2f4a;
}

.dashboard-module-summary {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.dashboard-module-score-row {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}

.dashboard-module-score-row strong {
  min-width: 0;
  color: #0f2f4a;
  font-size: 15px;
  font-weight: 950;
  line-height: 1.22;
  overflow-wrap: anywhere;
}

.dashboard-module-summary p {
  margin: 0;
  color: #52616d;
  font-size: 12.5px;
  line-height: 1.42;
  overflow-wrap: anywhere;
}

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

.dashboard-module-meta-grid span {
  min-width: 0;
  padding: 8px;
  border-radius: 8px;
  background: rgba(226, 247, 246, 0.72);
  color: #52616d;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-module-meta-grid b {
  display: block;
  margin-bottom: 2px;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-module-summary .dashboard-ai-action-row {
  margin-top: 0;
}

.dashboard-module-summary .dashboard-ai-action-row .compact-button {
  flex: 1 1 120px;
  min-width: 0;
  white-space: normal;
}

.dashboard-opportunity-row {
  display: grid;
  gap: 8px;
}

.dashboard-opportunity-card {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  gap: 10px;
  min-width: 0;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.07);
}

.dashboard-opportunity-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-opportunity-type {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #00736f;
  font-size: 10.5px;
  font-weight: 950;
  letter-spacing: 0.04em;
  line-height: 1;
  text-transform: uppercase;
}

.dashboard-opportunity-score {
  flex: 0 0 auto;
  color: #0f2f4a;
  font-size: 24px;
  font-weight: 950;
  line-height: 1;
}

.dashboard-opportunity-score.high {
  color: #00736f;
}

.dashboard-opportunity-score.medium {
  color: #0f2f4a;
}

.dashboard-opportunity-score.low,
.dashboard-opportunity-score.muted {
  color: #52616d;
}

.dashboard-opportunity-card-body {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.dashboard-opportunity-card-body h4,
.dashboard-opportunity-card-body p {
  margin: 0;
  min-width: 0;
}

.dashboard-opportunity-card-body h4 {
  color: #0f2f4a;
  font-size: 16px;
  font-weight: 950;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.dashboard-opportunity-card-body p {
  color: #52616d;
  display: -webkit-box;
  font-size: 13px;
  line-height: 1.42;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dashboard-opportunity-card .compact-button {
  justify-self: start;
}

.dashboard-opportunity-footer {
  display: flex;
  grid-column: 1 / -1;
  justify-content: flex-end;
}

.dashboard-panel {
  display: grid;
  gap: 12px;
  align-content: start;
  min-width: 0;
  padding: 15px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 32%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.dashboard-panel.has-urgent {
  border-color: rgba(47, 166, 163, 0.45);
  box-shadow: 0 18px 34px rgba(47, 166, 163, 0.16);
}

.dashboard-wide-panel {
  grid-row: span 2;
}

.dashboard-important-panel {
  border-color: rgba(47, 166, 163, 0.22);
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.12), transparent 36%),
    linear-gradient(180deg, #ffffff, #f8fbfb);
}

.dashboard-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.dashboard-panel-head h3,
.dashboard-panel-head p {
  margin: 0;
}

.dashboard-panel-head h3 {
  color: #0f2f4a;
  line-height: 1.2;
}

.dashboard-panel-head .eyebrow {
  color: #2fa6a3;
}

.dashboard-panel-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
}

.dashboard-important-head-actions {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  min-width: 0;
}

.dashboard-important-head-actions > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-important-more {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 0 9px 0 11px;
  border: 1px solid rgba(217, 75, 75, 0.28);
  border-radius: 999px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  font-size: 12px;
  font-weight: 950;
  box-shadow: 0 8px 18px rgba(217, 75, 75, 0.1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-important-more:hover {
  border-color: rgba(217, 75, 75, 0.5);
  box-shadow: 0 13px 26px rgba(217, 75, 75, 0.16);
  transform: translateY(-1px);
}

.dashboard-important-more em {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 5px;
  border-radius: 999px;
  background: #d94b4b;
  color: #ffffff;
  font-style: normal;
  font-size: 11px;
  font-weight: 950;
  box-shadow: 0 0 18px rgba(217, 75, 75, 0.22);
}

.dashboard-important-list,
.dashboard-list {
  display: grid;
  gap: 9px;
}

.dashboard-important-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.07);
}

.dashboard-important-card strong,
.dashboard-important-card p,
.dashboard-important-card small {
  display: block;
  margin: 0;
}

.dashboard-important-card strong {
  margin-top: 6px;
  color: #0f2f4a;
}

.dashboard-important-card p,
.dashboard-important-card small {
  color: #52616d;
  line-height: 1.42;
}

.dashboard-priority,
.dashboard-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 950;
  white-space: nowrap;
}

.dashboard-priority {
  padding: 4px 8px;
  text-transform: uppercase;
}

.dashboard-priority.high,
.dashboard-badge.high {
  background: #d94b4b;
  color: #ffffff;
}

.dashboard-priority.medium,
.dashboard-badge.medium {
  background: #2fa6a3;
  color: #ffffff;
}

.dashboard-priority.low,
.dashboard-badge.low,
.dashboard-badge.muted {
  background: #e9f8f7;
  color: #0f2f4a;
}

.dashboard-badge {
  padding: 6px 9px;
}

.dashboard-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  width: 100%;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  text-align: left;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.dashboard-row:hover {
  border-color: rgba(47, 166, 163, 0.52);
  box-shadow: 0 16px 30px rgba(47, 166, 163, 0.14);
  transform: translateY(-1px);
}

.dashboard-row.urgent {
  border-color: rgba(217, 75, 75, 0.22);
}

.dashboard-row.mail-inbox-unread {
  border-color: rgba(47, 166, 163, 0.3);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.12), transparent 38%),
    #ffffff;
}

.dashboard-row.mail-inbox-unread .dashboard-row-main strong::before {
  content: "";
  display: inline-block;
  width: 0.48rem;
  height: 0.48rem;
  margin-right: 0.45rem;
  border-radius: 999px;
  background: #2fa6a3;
  box-shadow: 0 0 0 4px rgba(47, 166, 163, 0.12);
  vertical-align: 0.08rem;
}

.dashboard-inbox-list .dashboard-row-main strong,
.dashboard-inbox-list .dashboard-row-main small {
  white-space: normal;
}

.dashboard-inbox-list .dashboard-row-main small {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
  overflow: hidden;
}

.dashboard-row.timeline {
  grid-template-columns: 38px minmax(0, 1fr);
}

.dashboard-row-main {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.dashboard-row-main strong,
.dashboard-row-main small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dashboard-row-main strong {
  color: #0f2f4a;
}

.dashboard-row-main small {
  color: #52616d;
}

.dashboard-call-summary {
  display: grid;
  gap: 8px;
  padding: 13px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #1f7478);
  color: #ffffff;
}

.dashboard-call-summary strong,
.dashboard-call-summary p {
  margin: 0;
  color: #ffffff;
}

.dashboard-call-summary p {
  line-height: 1.45;
  opacity: 0.88;
}

.dashboard-priorities-panel {
  width: min(760px, calc(100vw - 32px));
  max-height: min(760px, calc(100vh - 48px));
}

.dashboard-priorities-modal-body {
  display: grid;
  gap: 10px;
  max-height: min(560px, calc(100vh - 220px));
  overflow: auto;
  padding-right: 4px;
}

.dashboard-empty {
  margin: 0;
  padding: 13px;
  border: 1px dashed rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #f8fbfb;
  color: #52616d;
  line-height: 1.45;
}

.vacancies-shell,
.invoices-shell,
.documents-shell,
.timeline-shell,
.anonymous-cv-shell {
  display: grid;
  gap: 16px;
}

.vacancies-hero,
.invoices-hero,
.documents-hero,
.timeline-hero,
.anonymous-cv-hero,
.vacancies-empty,
.invoices-empty,
.documents-empty,
.timeline-empty {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 20px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.28), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 128%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.documents-hero h2,
.timeline-hero h2,
.anonymous-cv-hero h2,
.vacancies-hero h2,
.invoices-hero h2,
.vacancies-hero p,
.invoices-hero p,
.anonymous-cv-hero p,
.vacancies-empty h3,
.vacancies-empty p,
.invoices-empty h3,
.invoices-empty p,
.documents-hero p,
.timeline-hero p,
.documents-empty h3,
.documents-empty p,
.timeline-empty h3,
.timeline-empty p {
  margin: 0;
  color: #ffffff;
}

.documents-hero .eyebrow,
.timeline-hero .eyebrow,
.anonymous-cv-hero .eyebrow,
.vacancies-hero .eyebrow,
.invoices-hero .eyebrow,
.vacancy-output-card .eyebrow,
.documents-company-group .eyebrow {
  color: #62d5d1;
}

.vacancies-hero p:not(.eyebrow),
.invoices-hero p:not(.eyebrow),
.documents-hero p:not(.eyebrow),
.timeline-hero p:not(.eyebrow),
.anonymous-cv-hero p:not(.eyebrow),
.vacancies-empty p,
.invoices-empty p,
.documents-empty p,
.timeline-empty p {
  max-width: 780px;
  opacity: 0.88;
}

.vacancies-hero-actions,
.invoices-hero-actions,
.documents-hero-actions,
.timeline-hero-actions,
.anonymous-cv-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anonymous-cv-grid {
  display: grid;
  grid-template-columns: minmax(320px, 0.9fr) minmax(360px, 1.1fr);
  gap: 16px;
  align-items: start;
}

.anonymous-cv-input-card,
.anonymous-cv-preview-card {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 18px;
  border: 1px solid rgba(var(--theme-secondary-rgb, 31, 167, 160), 0.18);
  border-radius: var(--theme-card-radius, 8px);
  background:
    radial-gradient(circle at 100% 0%, rgba(var(--theme-secondary-rgb, 31, 167, 160), 0.08), transparent 38%),
    #ffffff;
  box-shadow: var(--theme-card-shadow, 0 18px 38px rgba(15, 47, 74, 0.08));
}

.anonymous-cv-card-head {
  display: grid;
  gap: 5px;
}

.anonymous-cv-card-head h3,
.anonymous-cv-card-head p {
  margin: 0;
}

.anonymous-cv-card-head h3 {
  color: var(--theme-primary, #0b3551);
  font-size: 20px;
}

.anonymous-cv-card-head p {
  color: #52616d;
  line-height: 1.48;
}

.anonymous-cv-input-card label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--theme-primary, #0b3551);
  font-size: 13px;
  font-weight: 900;
}

.anonymous-cv-input-card input,
.anonymous-cv-input-card select,
.anonymous-cv-input-card textarea {
  width: 100%;
  min-width: 0;
  font: inherit;
  font-weight: 500;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
}

.anonymous-cv-input-card input,
.anonymous-cv-input-card select {
  min-height: 42px;
  padding: 10px 12px;
}

.anonymous-cv-input-card textarea {
  min-height: 260px;
  padding: 12px;
  resize: vertical;
  line-height: 1.5;
}

.anonymous-cv-upload {
  padding: 14px;
  border: 1px dashed rgba(var(--theme-secondary-rgb, 31, 167, 160), 0.42);
  border-radius: 10px;
  background: rgba(var(--theme-secondary-rgb, 31, 167, 160), 0.06);
}

.anonymous-cv-upload input {
  padding: 8px;
  background: #ffffff;
}

.anonymous-cv-upload small {
  color: #52616d;
  font-weight: 650;
}

.anonymous-cv-check-panel {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #f7fbfb;
  color: #52616d;
}

.anonymous-cv-check-panel.has-risk {
  border-color: rgba(213, 126, 35, 0.3);
  background: #fff8ed;
}

.anonymous-cv-check-panel strong {
  color: var(--theme-primary, #0b3551);
}

.anonymous-cv-check-panel p,
.anonymous-cv-check-panel ul {
  margin: 0;
}

.anonymous-cv-check-panel ul {
  display: grid;
  gap: 5px;
  padding-left: 18px;
}

.anonymous-cv-actions,
.anonymous-cv-result-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.anonymous-cv-preview {
  min-height: 420px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 10px;
  background: #f8fbfb;
  overflow: hidden;
}

.anonymous-cv-profile-preview {
  display: grid;
  gap: 14px;
  padding: 16px;
}

.anonymous-cv-profile-preview header {
  padding: 18px;
  border-radius: 12px;
  background:
    radial-gradient(circle at 92% 0%, rgba(var(--theme-secondary-rgb, 31, 167, 160), 0.32), transparent 48%),
    linear-gradient(135deg, var(--theme-primary, #0b3551), var(--theme-secondary, #1fa7a0));
  color: #ffffff;
}

.anonymous-cv-profile-preview header span {
  display: block;
  margin-bottom: 7px;
  color: #b9fff8;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.anonymous-cv-profile-preview h3,
.anonymous-cv-profile-preview h4,
.anonymous-cv-profile-preview p {
  margin: 0;
}

.anonymous-cv-profile-preview h3 {
  color: #ffffff;
  font-size: 25px;
  line-height: 1.1;
}

.anonymous-cv-profile-preview header p {
  margin-top: 8px;
  color: rgba(255, 255, 255, 0.88);
  line-height: 1.48;
}

.anonymous-cv-profile-preview section {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

.anonymous-cv-profile-preview h4 {
  color: var(--theme-primary, #0b3551);
  font-size: 14px;
}

.anonymous-cv-profile-preview ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 18px;
  color: #365162;
}

.anonymous-cv-profile-preview p {
  color: #365162;
  line-height: 1.52;
}

.anonymous-cv-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.anonymous-cv-chip-row span,
.anonymous-cv-safe-inline,
.anonymous-cv-warning-inline span {
  display: inline-flex;
  align-items: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
}

.anonymous-cv-chip-row span {
  padding: 6px 9px;
  background: #e8faf8;
  color: var(--theme-primary, #0b3551);
}

.anonymous-cv-warning-inline {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.anonymous-cv-warning-inline span {
  padding: 6px 9px;
  background: #fff1db;
  color: #8a4c0e;
}

.anonymous-cv-safe-inline {
  width: fit-content;
  padding: 7px 10px;
  background: #e8faf8;
  color: #0f6a5c;
}

.anonymous-cv-version-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 9px;
  background: #ffffff;
}

.anonymous-cv-version-card h4 {
  margin: 0;
  color: var(--theme-primary, #0b3551);
}

#anonymousCvVersions {
  display: grid;
  gap: 8px;
}

#anonymousCvVersions article {
  display: grid;
  gap: 3px;
  padding: 10px;
  border-radius: 8px;
  background: #f8fbfb;
  color: #365162;
}

#anonymousCvVersions article strong {
  color: var(--theme-primary, #0b3551);
}

#anonymousCvVersions article span,
#anonymousCvVersions article small {
  color: #52616d;
}

@media (max-width: 980px) {
  .anonymous-cv-grid {
    grid-template-columns: 1fr;
  }

  .anonymous-cv-hero {
    flex-direction: column;
  }
}

.vacancies-filter-bar,
.invoices-filter-bar,
.documents-filter-bar,
.timeline-filter-bar {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.vacancies-filter-bar {
  grid-template-columns: 1.4fr minmax(190px, 0.42fr) minmax(210px, 0.45fr);
}

.invoices-filter-bar {
  grid-template-columns: 1.4fr minmax(190px, 0.42fr) minmax(210px, 0.45fr);
}

.documents-filter-bar {
  grid-template-columns: minmax(260px, 1.35fr) minmax(150px, 0.42fr) minmax(190px, 0.48fr) minmax(170px, 0.42fr) minmax(190px, 0.48fr);
}

.timeline-filter-bar {
  grid-template-columns: 1.5fr minmax(180px, 0.45fr) minmax(170px, 0.4fr) minmax(140px, 0.35fr) minmax(140px, 0.35fr);
}

.vacancies-filter-bar label,
.invoices-filter-bar label,
.documents-filter-bar label,
.timeline-filter-bar label,
.vacancy-form-card label,
.invoice-form-card label,
.document-form label,
.document-verification-form label,
.timeline-note-form label {
  display: grid;
  gap: 6px;
  color: #0f2f4a;
  font-weight: 900;
}

.vacancies-filter-bar input,
.vacancies-filter-bar select,
.invoices-filter-bar input,
.invoices-filter-bar select,
.documents-filter-bar input,
.documents-filter-bar select,
.timeline-filter-bar input,
.timeline-filter-bar select,
.vacancy-form-card input,
.vacancy-form-card select,
.vacancy-form-card textarea,
.invoice-form-card input,
.invoice-form-card select,
.invoice-form-card textarea,
.document-form input,
.document-form select,
.document-form textarea,
.document-verification-form input,
.document-verification-form select,
.document-verification-form textarea,
.timeline-note-form input,
.timeline-note-form select,
.timeline-note-form textarea {
  width: 100%;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 10px 12px;
}

.vacancies-output,
.invoices-output,
.documents-output,
.timeline-output,
.timeline-stream {
  display: grid;
  gap: 16px;
}

.timeline-compact-summary,
.timeline-full-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 34%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.07);
}

.timeline-compact-summary h3,
.timeline-full-toolbar h3 {
  margin: 0;
  color: #0f2f4a;
}

.timeline-compact-summary p,
.timeline-full-toolbar p {
  margin: 4px 0 0;
  color: #52616d;
  line-height: 1.45;
}

.timeline-compact-actions,
.timeline-full-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.timeline-compact-actions span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
  white-space: nowrap;
}

.timeline-stream-compact {
  gap: 10px;
}

.vacancy-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.vacancy-card {
  position: relative;
  min-height: 214px;
}

.vacancy-card-main {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 214px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.28), transparent 40%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 128%);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.16);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.vacancy-card-main:hover {
  border-color: #62d5d1;
  box-shadow: 0 22px 42px rgba(47, 166, 163, 0.2);
  transform: translateY(-2px);
}

.vacancy-card-main strong,
.vacancy-card-main p,
.vacancy-card-main small {
  margin: 0;
  color: #ffffff;
}

.vacancy-card-main strong {
  max-width: calc(100% - 30px);
  font-size: 18px;
  line-height: 1.2;
}

.vacancy-card-main p,
.vacancy-card-main small {
  opacity: 0.86;
  line-height: 1.45;
}

.vacancy-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #ffffff;
  font-size: 11px;
}

.vacancy-card-meta span,
.vacancy-card-meta em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.vacancy-status-badge {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.vacancy-status-badge.concept {
  background: #667887;
}

.vacancy-status-badge.review {
  background: #246fc0;
}

.vacancy-status-badge.ready,
.vacancy-status-badge.published {
  background: #2fa65a;
}

.vacancy-status-badge.closed {
  background: #c94848;
}

.vacancy-detail {
  display: grid;
  gap: 16px;
}

.vacancy-detail-head,
.vacancy-live-preview-card,
.vacancy-output-card {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.vacancy-detail-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.24), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 72%, #1f6f76 130%);
  color: #ffffff;
}

.vacancy-detail-head h3,
.vacancy-detail-head p {
  margin: 0;
  color: #ffffff;
}

.vacancy-detail-head p:not(.eyebrow) {
  opacity: 0.86;
}

.vacancy-live-preview-card {
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(242, 251, 251, 0.98)),
    #ffffff;
}

.vacancy-live-preview-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.vacancy-live-preview-card h4,
.vacancy-live-preview-card p {
  margin: 0;
}

.vacancy-live-preview-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.vacancy-live-preview-body {
  max-height: 430px;
  overflow: auto;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.vacancy-detail-actions,
.vacancy-output-actions,
.vacancy-linked-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.vacancy-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.vacancy-form-card {
  display: grid;
  align-content: start;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.07);
}

.vacancy-make-card {
  grid-column: 1 / -1;
  display: flex;
  justify-content: flex-end;
  padding: 18px;
  background:
    radial-gradient(circle at 94% 0%, rgba(98, 213, 209, 0.26), transparent 40%),
    linear-gradient(135deg, #f8ffff, #ffffff);
}

.vacancy-make-button {
  min-width: 220px;
  justify-content: center;
  box-shadow: 0 16px 28px rgba(47, 166, 163, 0.18);
}

.vacancy-form-card h4,
.vacancy-output-card h4 {
  margin: 0;
  color: #0f2f4a;
}

.vacancy-card-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.vacancy-field-grid {
  display: grid;
  align-content: start;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.vacancy-field-grid .wide {
  grid-column: 1 / -1;
}

.vacancy-output-card > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.vacancy-output-card .eyebrow {
  color: #2fa6a3;
}

.vacancy-output-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.vacancy-output-tabs button {
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: #f6fbfb;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  font-weight: 900;
  padding: 9px 12px;
}

.vacancy-output-tabs button:hover,
.vacancy-output-tabs button.active {
  border-color: rgba(47, 166, 163, 0.56);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.16);
}

.vacancy-output-panel {
  min-height: 260px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #fbfcfc;
}

.vacancy-output-state {
  width: fit-content;
  padding: 5px 8px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.1);
  color: #176d6f;
  font-size: 11px;
  font-weight: 900;
}

.vacancy-rich-output {
  display: grid;
  gap: 12px;
  color: #0f2f4a;
}

.vacancy-rich-output h5 {
  margin: 12px 0 0;
  color: #0f2f4a;
  font-size: 16px;
  font-weight: 950;
}

.vacancy-rich-output p,
.vacancy-rich-output li {
  margin: 0;
  color: #52616d;
  line-height: 1.58;
}

.vacancy-rich-output ul {
  display: grid;
  gap: 6px;
  margin: 0;
  padding-left: 20px;
}

.vacancy-output-grid,
.vacancy-output-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.vacancy-output-grid article,
.vacancy-output-notes article {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.vacancy-output-grid strong,
.vacancy-output-notes h5 {
  margin: 0;
  color: #0f2f4a;
}

.vacancies-empty.light {
  background: #ffffff;
  color: #0f2f4a;
}

.vacancies-empty.light h3,
.vacancies-empty.light p {
  color: #0f2f4a;
}

.vacancy-saved-modal-panel {
  width: min(1120px, 96vw);
}

.vacancy-saved-modal-list {
  display: grid;
  gap: 14px;
}

.vacancy-saved-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.vacancy-saved-card,
.vacancy-preview-modal-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.11), transparent 38%),
    #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.08);
}

.vacancy-saved-card header,
.vacancy-preview-modal-card header {
  display: grid;
  gap: 6px;
}

.vacancy-saved-card h3,
.vacancy-saved-card p,
.vacancy-preview-modal-card h3,
.vacancy-preview-modal-card p {
  margin: 0;
}

.vacancy-saved-card dl {
  display: grid;
  gap: 6px;
  margin: 0;
}

.vacancy-saved-card dl div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 0;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.vacancy-saved-card dt {
  color: #52616d;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.vacancy-saved-card dd {
  margin: 0;
  color: #0f2f4a;
  font-weight: 800;
  text-align: right;
}

.vacancy-saved-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.invoice-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.invoice-card {
  position: relative;
  min-height: 210px;
}

.invoice-card-main {
  display: grid;
  gap: 9px;
  width: 100%;
  min-height: 210px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 209, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 92% 0%, rgba(47, 166, 163, 0.3), transparent 39%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 68%, #1f6f76 128%);
  color: #ffffff;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.16);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.invoice-card-main:hover {
  border-color: #62d5d1;
  box-shadow: 0 22px 42px rgba(47, 166, 163, 0.2);
  transform: translateY(-2px);
}

.invoice-card-main strong,
.invoice-card-main p,
.invoice-card-main small {
  margin: 0;
  color: #ffffff;
}

.invoice-card-main strong {
  max-width: calc(100% - 34px);
  font-size: 18px;
  line-height: 1.2;
}

.invoice-card-main p,
.invoice-card-main small {
  opacity: 0.86;
  line-height: 1.45;
}

.invoice-card-amounts {
  display: grid;
  gap: 7px;
  margin-top: 4px;
  padding: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.08);
}

.invoice-card-amounts span,
.invoice-card-amounts em {
  color: rgba(255, 255, 255, 0.88);
  font-size: 12px;
  font-style: normal;
}

.invoice-card-amounts em {
  color: #ffffff;
  font-size: 16px;
  font-weight: 950;
}

.invoice-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
  color: #ffffff;
  font-size: 11px;
}

.invoice-card-meta span,
.invoice-card-meta em {
  color: rgba(255, 255, 255, 0.82);
  font-style: normal;
}

.invoice-status-badge {
  justify-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #667887;
  color: #ffffff;
  font-size: 11px;
  font-weight: 950;
}

.invoice-status-badge.ready {
  background: #2fa6a3;
}

.invoice-status-badge.sent {
  background: #246fc0;
}

.invoice-status-badge.paid {
  background: #2fa65a;
}

.invoice-status-badge.expired {
  background: #c94848;
}

.invoice-detail {
  display: grid;
  gap: 16px;
}

.invoice-detail-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.24), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 72%, #1f6f76 130%);
  color: #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.invoice-detail-head h3,
.invoice-detail-head p {
  margin: 0;
  color: #ffffff;
}

.invoice-detail-head p:not(.eyebrow) {
  opacity: 0.86;
}

.invoice-detail-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 9px;
  justify-content: flex-end;
}

.invoice-workspace-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.invoice-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invoice-form-card,
.invoice-preview-card {
  display: grid;
  gap: 12px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.07);
}

.invoice-form-card h4,
.invoice-preview-card h4 {
  margin: 0;
  color: #0f2f4a;
}

.invoice-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.invoice-field-grid .wide {
  grid-column: 1 / -1;
}

.invoice-candidate-link-field {
  gap: 8px;
}

.invoice-candidate-selection {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 12px;
  width: 100%;
  padding: 13px;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(53, 197, 191, 0.4), transparent 42%),
    linear-gradient(135deg, #0f2f4a 0%, #0c4f5f 58%, #1b9b9c 100%);
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.14), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
  overflow: hidden;
}

.invoice-candidate-copy {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.invoice-candidate-kicker {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.64rem;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.invoice-candidate-selection strong,
.invoice-candidate-selection small {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
}

.invoice-candidate-selection strong {
  color: #ffffff;
  font-size: 1rem;
  line-height: 1.2;
}

.invoice-candidate-selection small {
  color: rgba(255, 255, 255, 0.9);
  font-size: 0.8rem;
  line-height: 1.4;
  white-space: normal;
}

.invoice-candidate-helper {
  display: block;
  color: rgba(255, 255, 255, 0.78);
  font-size: 0.74rem;
  font-weight: 800;
  line-height: 1.35;
}

.invoice-candidate-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-start;
  padding-top: 4px;
  border-top: 1px solid rgba(255, 255, 255, 0.18);
}

.invoice-candidate-actions .compact-button {
  min-height: 36px;
  border-color: rgba(255, 255, 255, 0.46);
  background: rgba(255, 255, 255, 0.96);
  color: #0f2f4a;
}

.invoice-candidate-actions .compact-button:hover,
.invoice-candidate-actions .compact-button:focus-visible {
  border-color: #ffffff;
  background: #ffffff;
  color: #0b6f73;
}

.invoice-candidate-actions .compact-button:disabled {
  border-color: rgba(255, 255, 255, 0.22);
  background: rgba(255, 255, 255, 0.42);
  color: rgba(15, 47, 74, 0.7);
  cursor: not-allowed;
  box-shadow: none;
}

@media (max-width: 720px) {
  .invoice-candidate-actions {
    justify-content: stretch;
  }

  .invoice-candidate-actions .compact-button {
    flex: 1 1 140px;
  }
}

.invoice-preview-card {
  position: sticky;
  top: 18px;
  align-content: start;
}

.invoice-preview-card > header {
  display: grid;
  gap: 4px;
}

.invoice-preview-card p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
}

.invoice-calculation-list {
  display: grid;
  gap: 8px;
}

.invoice-calculation-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 0;
  border-bottom: 1px solid rgba(15, 47, 74, 0.08);
}

.invoice-calculation-list span {
  color: #52616d;
}

.invoice-calculation-list strong {
  color: #0f2f4a;
  text-align: right;
}

.invoice-line-preview {
  display: grid;
  gap: 8px;
  padding: 13px;
  border: 1px solid rgba(47, 166, 163, 0.24);
  border-radius: 8px;
  background: #f7fbfb;
}

.invoice-line-preview h5,
.invoice-line-preview p,
.invoice-line-preview small {
  margin: 0;
}

.invoice-line-preview h5 {
  color: #0f2f4a;
}

.invoice-line-preview p,
.invoice-line-preview small {
  color: #52616d;
  line-height: 1.5;
}

.invoice-total-box {
  display: grid;
  gap: 5px;
  padding: 15px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.invoice-total-box span,
.invoice-total-box strong,
.invoice-total-box small {
  margin: 0;
  color: #ffffff;
}

.invoice-total-box strong {
  font-size: 26px;
  line-height: 1.1;
}

.invoices-empty.light {
  background: #ffffff;
  color: #0f2f4a;
}

.invoices-empty.light h3,
.invoices-empty.light p {
  color: #0f2f4a;
}

.documents-company-group {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(98, 213, 209, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 94% 0%, rgba(47, 166, 163, 0.26), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 70%, #1f6f76 125%);
  color: #ffffff;
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.documents-company-group > header,
.timeline-day-group > header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.documents-company-group h3,
.documents-company-group p {
  margin: 0;
  color: #ffffff;
}

.documents-company-group > header > span,
.timeline-day-group > header > em {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 12px;
  font-style: normal;
  font-weight: 900;
}

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

.document-card {
  position: relative;
  min-height: 196px;
}

.document-card-main {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: 196px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.1);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.document-card-main:hover,
.timeline-card:hover {
  border-color: #4fc5c1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.timeline-card:focus-visible {
  outline: 3px solid rgba(47, 166, 163, 0.32);
  outline-offset: 3px;
}

.document-card-main strong,
.document-card-main p,
.document-card-main small {
  margin: 0;
}

.document-card-main strong {
  color: #0f2f4a;
  line-height: 1.25;
}

.document-card-main p,
.document-card-main small {
  color: #52616d;
  line-height: 1.45;
}

.document-card-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: auto;
}

.document-card-meta span {
  color: #788691;
  font-size: 11px;
}

.document-card-meta em,
.document-status-badge {
  justify-self: start;
  padding: 4px 8px;
  border-radius: 999px;
  background: #667887;
  color: #ffffff;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.document-status-badge.verified {
  background: #2fa65a;
}

.document-status-badge.review {
  background: #246fc0;
}

.document-status-badge.rejected,
.document-status-badge.expired {
  background: #c94848;
}

.document-status-badge.uploaded,
.document-status-badge.na {
  background: #667887;
}

.document-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid rgba(201, 72, 72, 0.24);
  border-radius: 999px;
  background: #ffffff;
  color: #c94848;
  cursor: pointer;
}

.document-form,
.document-verification-form,
.timeline-note-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.document-form .wide,
.document-verification-form .wide,
.timeline-note-form .wide,
.document-form .content-modal-actions.wide,
.document-verification-form .content-modal-actions.wide,
.timeline-note-form .content-modal-actions.wide {
  grid-column: 1 / -1;
}

.document-detail-panel,
.timeline-event-panel {
  width: min(1100px, 96vw);
}

.document-detail-grid,
.timeline-detail-grid,
.timeline-metadata-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.document-detail-grid article,
.timeline-detail-grid article,
.timeline-metadata-grid article,
.document-preview-card,
.document-detail-notes article,
.document-audit-section,
.timeline-detail-section {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #fbfcfc;
}

.document-preview-card,
.document-detail-notes {
  margin-top: 12px;
}

.document-preview-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.document-detail-notes {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.document-detail-grid strong,
.timeline-detail-grid strong,
.timeline-metadata-grid strong,
.document-preview-card h3,
.document-detail-notes h3,
.document-audit-section h3,
.timeline-detail-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.document-detail-grid span,
.timeline-detail-grid span,
.timeline-metadata-grid span,
.document-preview-card p,
.document-detail-notes p,
.document-audit-section p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
  overflow-wrap: anywhere;
}

.document-verification-form {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(15, 47, 74, 0.12);
}

.document-audit-list,
.timeline-card-list,
.timeline-mini-list {
  display: grid;
  gap: 8px;
}

.document-audit-list article {
  display: grid;
  gap: 4px;
  padding: 10px;
  border-radius: 8px;
  background: #ffffff;
  border: 1px solid rgba(15, 47, 74, 0.08);
}

.relationship-memory-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.relationship-memory-overview article {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 36%),
    #ffffff;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.06);
}

.relationship-memory-overview span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.relationship-memory-overview strong {
  color: #0f2f4a;
}

.relationship-memory-overview p {
  margin: 0;
  color: #52616d;
  line-height: 1.45;
}

.timeline-day-group {
  display: grid;
  gap: 10px;
}

.timeline-day-group > header > span {
  color: #0f2f4a;
  font-weight: 950;
}

.timeline-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px 1px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
  width: 100%;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(15, 47, 74, 0.08);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.timeline-card-selectable {
  grid-template-columns: minmax(86px, 0.28fr) 42px 1px minmax(0, 1fr) auto;
}

.timeline-card-has-delete {
  padding-right: 54px;
}

.timeline-select-control {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  width: fit-content;
  max-width: 100%;
  padding: 7px 9px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 999px;
  background: #f5fbfb;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 900;
  cursor: pointer;
}

.timeline-select-control input {
  width: 15px;
  height: 15px;
  margin: 0;
  accent-color: #2fa6a3;
}

.timeline-card-delete {
  position: absolute;
  top: 10px;
  right: 10px;
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  padding: 0;
  border: 1px solid rgba(164, 43, 43, 0.18);
  border-radius: 999px;
  background: #fff7f7;
  color: #a42b2b;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.08);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.timeline-card-delete:hover {
  border-color: rgba(164, 43, 43, 0.42);
  background: #ffecec;
  color: #7d1818;
  transform: translateY(-1px);
}

.timeline-card-delete svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.timeline-icon {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #0f2f4a;
  color: #7cff7c;
  font-weight: 950;
}

.timeline-line {
  align-self: stretch;
  background: linear-gradient(180deg, #2fa6a3, rgba(47, 166, 163, 0.08));
}

.timeline-card-content {
  display: grid;
  gap: 5px;
}

.timeline-card-content em {
  color: #2fa6a3;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
  text-transform: uppercase;
}

.timeline-card-content strong {
  color: #0f2f4a;
}

.timeline-card-content p,
.timeline-card-content small {
  margin: 0;
  color: #52616d;
  line-height: 1.45;
}

.timeline-status {
  align-self: start;
  padding: 5px 9px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 11px;
  font-weight: 950;
}

.timeline-cleanup-panel {
  max-width: 620px;
}

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

.timeline-cleanup-options button {
  width: 100%;
  min-height: 42px;
  justify-content: center;
}

.timeline-detail-section {
  margin-top: 12px;
}

.timeline-mini-list button {
  display: grid;
  gap: 4px;
  width: 100%;
  padding: 10px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
}

.timeline-mini-list span {
  color: #2fa6a3;
  font-size: 11px;
  font-weight: 950;
}

.candidate-central-timeline {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

@media (max-width: 1180px) {
  .personalization-layout {
    grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1.2fr);
  }

  .theme-preview-card {
    grid-column: 1 / -1;
  }

  .theme-preview-body {
    grid-template-columns: minmax(180px, 240px) minmax(0, 1fr);
    align-items: stretch;
  }

  .pitch-project-columns {
    grid-template-columns: 1fr;
  }

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

  .content-contact-grid,
  .contact-insight-grid,
  .candidate-positioning-grid,
  .multi-candidate-match-grid,
    .candidate-card-grid,
    .intake-session-grid,
    .calllist-card-grid,
    .task-card-grid,
    .vacancy-card-grid,
    .vacancy-form-grid,
    .invoice-card-grid,
    .invoice-form-grid,
    .licensecheck-grid,
    .requests-card-grid,
    .documents-card-grid,
    .dashboard-grid-middle,
    .dashboard-grid-bottom,
    .relationship-memory-overview {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

@media (max-width: 820px) {
  .content-contact-grid,
  .contact-insight-grid,
  .candidate-positioning-grid,
  .candidate-positioning-lists,
  .candidate-positioning-full-grid,
  .multi-candidate-match-grid,
  .multi-candidate-match-summary,
  .candidate-card-grid,
  .intake-session-grid,
  .candidate-relevance-grid,
  .candidate-form-grid,
  .candidate-detail-grid,
  .candidate-info-grid,
  .candidate-upload-grid,
  .licensecheck-grid,
  .requests-card-grid,
  .vacancy-card-grid,
  .vacancy-form-grid,
  .vacancy-output-grid,
  .vacancy-output-notes,
  .invoice-card-grid,
  .invoice-form-grid,
  .documents-card-grid,
  .dashboard-grid-middle,
  .dashboard-grid-bottom,
  .relationship-memory-overview,
  .document-detail-grid,
  .timeline-detail-grid,
  .timeline-metadata-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .settings-page,
  .logbook-page,
  .logbook-filters,
  .match-project-shell .search-project-filter-row,
  .overview-filter-bar,
  .candidate-crm-filter-row,
  .contactdb-filters.overview-filter-bar,
  .intake-filter-row,
  .candidate-relevance-filter-row,
  .mail-layout,
  .email-settings-layout,
  .dashboard-settings-layout,
  .personalization-layout,
  .mail-sender-row {
    grid-template-columns: 1fr;
  }

  .dashboard-widget-setting-card {
    grid-template-areas:
      "grip main"
      "visible visible"
      "position position"
      "size size"
      "actions actions";
    grid-template-columns: auto minmax(0, 1fr);
  }

  .dashboard-widget-visible-toggle,
  .dashboard-widget-position-control,
  .dashboard-widget-size-control,
  .dashboard-widget-order-actions {
    grid-column: 1 / -1;
  }

  .dashboard-widget-order-actions {
    justify-content: flex-start;
  }

  .timeline-compact-summary,
  .timeline-full-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .timeline-compact-actions,
  .timeline-full-actions {
    justify-content: flex-start;
  }

  .timeline-card,
  .timeline-card-selectable {
    grid-template-columns: 36px 1px minmax(0, 1fr);
  }

  .timeline-card-selectable .timeline-select-control {
    grid-column: 1 / -1;
  }

  .timeline-status {
    grid-column: 3;
  }

  .timeline-cleanup-options {
    grid-template-columns: 1fr;
  }

  .theme-preview-card {
    grid-column: auto;
  }

  .theme-preview-body {
    grid-template-columns: 1fr;
  }

  .match-project-shell .search-project-head {
    align-items: stretch;
    flex-direction: column;
  }

  .match-project-shell .search-project-head .primary-button {
    width: 100%;
  }

  .calllist-card-grid,
  .task-card-grid,
  .calllist-detail-grid,
  .calllist-intel-grid,
  .calllist-company-context,
  .calllist-form,
    .tasks-filter-bar,
    .requests-filter-bar,
    .vacancies-filter-bar,
    .invoices-filter-bar,
    .vacancy-detail-head,
    .vacancy-live-preview-card > header,
    .vacancy-field-grid,
    .invoice-detail-head,
    .invoice-workspace-grid,
    .invoice-field-grid,
    .documents-filter-bar,
    .timeline-filter-bar,
    .document-form,
    .document-verification-form,
    .timeline-note-form,
    .document-detail-notes,
    .task-form,
    .licensecheck-form,
    .license-request-form,
    .license-sensitive-grid,
    .request-detail-grid,
    .task-detail-summary,
    .task-detail-grid,
    .task-flow-grid {
    grid-template-columns: 1fr;
  }

  .vacancy-live-preview-card > header,
  .vacancy-card-title-row,
  .vacancy-output-card > header {
    align-items: stretch;
    flex-direction: column;
  }

  .vacancy-live-preview-actions,
  .vacancy-output-actions,
  .vacancy-detail-actions {
    justify-content: flex-start;
  }

  .calllist-hero,
  .dashboard-hero,
  .calllist-empty,
  .calllist-company-group > header,
  .tasks-hero,
  .tasks-empty,
  .tasks-company-group > header,
  .licensecheck-hero,
  .requests-hero,
  .vacancies-hero,
  .vacancies-empty,
  .invoices-hero,
  .invoices-empty,
  .documents-hero,
  .timeline-hero,
  .documents-empty,
  .timeline-empty,
  .requests-company-group > header,
  .documents-company-group > header,
  .licensecheck-section-head,
  .tasks-contact-group > header {
    display: grid;
  }

  .mail-hero {
    display: grid;
  }

  .mail-history-item {
    grid-template-columns: 1fr;
  }

  .profile-menu-grid {
    grid-template-columns: 1fr;
  }

  .profile-menu-card.logout {
    grid-column: auto;
  }

  .logbook-filter-actions {
    justify-content: flex-start;
  }

  .invoice-preview-card {
    position: static;
  }
}

@media (max-width: 560px) {
  .pitch-route-grid,
  .project-grid-split {
    grid-template-columns: 1fr;
  }

  .warm-angle-grid,
  .warm-angle-full-grid {
    grid-template-columns: 1fr;
  }

  .warm-angle-head {
    display: grid;
  }

  .content-contact-grid,
  .contact-insight-grid,
  .candidate-positioning-grid,
  .candidate-positioning-lists,
  .candidate-positioning-full-grid,
  .multi-candidate-match-grid,
  .multi-candidate-match-summary,
  .candidate-card-grid,
  .intake-session-grid,
  .candidate-relevance-grid,
  .candidate-form-grid,
  .candidate-detail-grid,
  .candidate-info-grid,
  .candidate-upload-grid {
    grid-template-columns: 1fr;
  }

  .documents-card-grid,
  .vacancy-card-grid,
  .vacancy-form-grid,
  .vacancy-saved-grid,
  .vacancy-output-grid,
  .vacancy-output-notes,
  .invoice-card-grid,
  .invoice-form-grid,
  .invoice-workspace-grid,
  .dashboard-ai-command-grid,
  .dashboard-grid-middle,
  .dashboard-grid-bottom,
  .relationship-memory-overview,
  .document-detail-grid,
  .timeline-detail-grid,
  .timeline-metadata-grid {
    grid-template-columns: 1fr;
  }

  .timeline-card {
    grid-template-columns: 34px minmax(0, 1fr);
  }

  .timeline-line,
  .timeline-status {
    display: none;
  }

  .dashboard-important-card,
  .dashboard-row {
    grid-template-columns: 1fr;
  }

  .profile-menu {
    padding: 12px;
  }

  .profile-menu-header,
  .profile-menu-card {
    display: grid;
  }

  .contact-insight-summary {
    display: grid;
  }

  .candidate-relevance-overview-head,
  .candidate-crm-head,
  .search-project-head.overview-hero,
  .contactdb-hero.overview-hero,
  .overview-hero,
  .intake-overview-head,
  .intake-detail-toolbar,
  .intake-detail-actions,
  .candidate-relevance-detail-toolbar,
  .candidate-relevance-detail-actions {
    align-items: stretch;
    flex-direction: column;
  }
}

.guided-call-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  min-height: 620px;
}

.guided-call-nav {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 18px;
  border-right: 1px solid var(--line);
  background: #f8faf9;
}

.guided-step {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  padding: 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  text-align: left;
  font: inherit;
  cursor: pointer;
}

.guided-step span {
  display: grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: var(--line);
  font-size: 12px;
  font-weight: 900;
}

.guided-step.active {
  border-color: var(--accent);
  background: #eefaf7;
}

.guided-call-stage {
  display: grid;
  grid-template-rows: 1fr auto;
  gap: 16px;
  padding: 26px;
}

.guided-call-stage h2 {
  margin-top: 8px;
  font-size: 28px;
}

.guided-call-copy {
  max-width: 820px;
  font-size: 17px;
  line-height: 1.65;
}

.guided-reaction-panel,
.guided-interest-form,
.call-outcome-card {
  display: grid;
  gap: 12px;
  max-width: 900px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.guided-reply-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.guided-reply-grid .answer-button {
  width: 100%;
}

.guided-reply-grid .answer-button.active {
  background: var(--accent);
  color: #fff;
  border-color: var(--accent);
}

.guided-reply-answer {
  display: grid;
  gap: 8px;
  padding: 12px;
  border-radius: 8px;
  background: var(--accent-soft);
}

.guided-interest-form label {
  display: grid;
  gap: 6px;
}

.call-outcome-list {
  display: grid;
  gap: 10px;
}

.call-outcome-card header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
}

.outcome-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.outcome-detail-grid div {
  display: grid;
  gap: 3px;
  min-width: 0;
  padding: 9px;
  border-radius: 6px;
  background: #f8faf9;
}

.outcome-detail-grid dt {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.outcome-detail-grid dd {
  margin: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-weight: 700;
}

.guided-call-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.call-add-button {
  width: 100%;
  justify-content: center;
}

.mini-button.danger {
  color: #a33131;
  border-color: #efc5c5;
}

.strategist-shell {
  display: grid;
  gap: 16px;
  max-width: 1320px;
}

.strategist-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border: 1px solid rgba(47, 166, 163, 0.32);
  border-radius: 10px;
  background:
    radial-gradient(circle at 88% 0%, rgba(47, 166, 163, 0.42), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 58%, #1f8a8b 128%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(15, 47, 74, 0.16);
}

.strategist-hero h2,
.strategist-hero p {
  margin: 0;
  color: #ffffff;
}

.strategist-hero h2 {
  max-width: 740px;
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
  letter-spacing: 0;
}

.strategist-hero .eyebrow {
  color: #62d5d1;
}

.strategist-hero p:not(.eyebrow) {
  max-width: 820px;
  opacity: 0.9;
  line-height: 1.55;
}

.strategist-hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.strategist-run-button {
  min-width: 172px;
  background: linear-gradient(135deg, #0f766e, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(47, 166, 163, 0.22);
}

.strategist-run-button.loading {
  opacity: 0.82;
  cursor: wait;
}

.strategist-context-selector {
  display: grid;
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.strategist-context-selector-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.strategist-context-selector-head h3,
.strategist-context-selector-head p {
  margin: 0;
}

.strategist-context-selector-head h3 {
  color: #0f2f4a;
  font-size: 17px;
  line-height: 1.15;
}

.strategist-context-selector-head > p:last-child {
  max-width: 560px;
  color: #53677a;
  font-size: 13px;
  line-height: 1.45;
  text-align: right;
}

.strategist-context-select-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.strategist-context-select-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.strategist-context-select-grid span {
  color: #2fa6a3;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strategist-context-select-grid select {
  width: 100%;
  min-width: 0;
  height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 9px;
  background: #f8fbfb;
  color: #0f2f4a;
  font: inherit;
  font-size: 13px;
  font-weight: 800;
}

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

.strategist-score-card {
  display: flex;
  flex-direction: column;
  gap: 9px;
  min-width: 0;
  min-height: 168px;
  padding: 17px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.12), transparent 34%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.strategist-score-card-primary {
  border-color: rgba(47, 166, 163, 0.32);
  background:
    radial-gradient(circle at 100% 0%, rgba(47, 166, 163, 0.2), transparent 38%),
    linear-gradient(180deg, #ffffff, #f5fbfb);
}

.strategist-score-card span {
  color: #2fa6a3;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  white-space: nowrap;
}

.strategist-score-card strong {
  color: #0f2f4a;
  font-size: clamp(20px, 1.9vw, 26px);
  line-height: 1.08;
  letter-spacing: 0;
  overflow-wrap: normal;
  word-break: normal;
  text-wrap: balance;
}

.strategist-score-card p {
  margin: 0;
  color: #53677a;
  font-size: 12px;
  line-height: 1.58;
}

.strategist-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.62fr);
  gap: 16px;
  align-items: start;
}

.strategist-side {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.strategist-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 32%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.strategist-feed-panel {
  align-content: start;
  min-height: 0;
}

.strategist-panel-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.strategist-panel-head h3,
.strategist-panel-head p {
  margin: 0;
}

.strategist-panel-head h3 {
  color: #0f2f4a;
  line-height: 1.18;
}

.strategist-panel-head .eyebrow {
  color: #2fa6a3;
}

.strategist-panel-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
}

.strategist-feed {
  display: grid;
  gap: 12px;
  align-self: start;
}

.strategist-insight-card {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.06);
}

.strategist-insight-card.high {
  border-color: rgba(47, 166, 163, 0.36);
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.16), transparent 36%),
    #ffffff;
}

.strategist-insight-card.warning {
  border-color: rgba(190, 126, 30, 0.26);
  background:
    radial-gradient(circle at top right, rgba(255, 205, 120, 0.22), transparent 32%),
    #ffffff;
}

.strategist-insight-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.strategist-insight-top span,
.strategist-insight-top em {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 950;
}

.strategist-insight-top span {
  background: #eaf8f7;
  color: #0f2f4a;
}

.strategist-insight-top em {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.strategist-insight-card h4,
.strategist-insight-card p,
.strategist-insight-card ul {
  margin: 0;
}

.strategist-insight-card h4 {
  color: #0f2f4a;
  font-size: 18px;
  line-height: 1.22;
}

.strategist-insight-card p {
  color: #40576b;
  line-height: 1.55;
}

.strategist-insight-card ul {
  display: grid;
  gap: 6px;
  padding-left: 18px;
  color: #53677a;
  line-height: 1.45;
}

.strategist-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.strategist-context {
  display: grid;
  gap: 9px;
}

.strategist-context-row {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 11px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #f8fbfb;
}

.strategist-context-row span {
  color: #2fa6a3;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategist-context-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #0f2f4a;
  line-height: 1.35;
}

.strategist-debug-block {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px dashed rgba(47, 166, 163, 0.36);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(47, 166, 163, 0.08), rgba(255, 255, 255, 0.94));
  color: #0f2f4a;
  font-size: 11px;
  line-height: 1.35;
}

.strategist-debug-block span {
  color: #2fa6a3;
  font-size: 10px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.strategist-debug-block strong,
.strategist-debug-block small {
  overflow-wrap: anywhere;
}

.strategist-debug-block .warning {
  color: #9f4a00;
}

.strategist-action-grid,
.strategist-roadmap {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(178px, 1fr));
  gap: 9px;
}

.strategist-action-grid button,
.strategist-roadmap span {
  min-width: 0;
  min-height: 42px;
  padding: 10px 13px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 10px;
  background: #f6fbfb;
  color: #0f2f4a;
  font: inherit;
  font-size: 13px;
  font-weight: 900;
  text-align: left;
  line-height: 1.18;
  white-space: nowrap;
}

.strategist-action-grid button {
  cursor: pointer;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    color 0.18s ease,
    transform 0.18s ease;
}

.strategist-action-grid button:hover {
  border-color: rgba(47, 166, 163, 0.54);
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.18);
  transform: translateY(-1px);
}

.strategist-roadmap span {
  display: flex;
  align-items: center;
  background: #ffffff;
  color: #53677a;
}

@media (max-width: 900px) {
  .dashboard-momentum-card {
    grid-template-columns: 1fr;
  }

  .dashboard-momentum-list {
    grid-template-columns: 1fr;
  }

  .dashboard-momentum-actions {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
  }

  .strategist-hero {
    flex-direction: column;
  }

  .strategist-hero-actions {
    justify-content: flex-start;
  }

  .strategist-score-grid,
  .strategist-layout,
  .strategist-context-select-grid {
    grid-template-columns: 1fr;
  }

  .strategist-context-selector-head {
    flex-direction: column;
  }

  .strategist-context-selector-head > p:last-child {
    text-align: left;
  }

  .strategist-action-grid,
  .strategist-roadmap {
    grid-template-columns: 1fr;
  }

  .who-tier-grid,
  .guided-call-layout {
    grid-template-columns: 1fr;
  }

  .guided-call-nav {
    border-right: 0;
    border-bottom: 1px solid var(--line);
  }

  .contactdb-filters {
    grid-template-columns: 1fr 1fr;
  }

  .contactdb-grid,
  .contact-edit-grid,
  .approach-advice-summary,
  .guided-reply-grid,
  .outcome-detail-grid {
    grid-template-columns: 1fr;
  }
}

.contact-card {
  display: grid;
  grid-template-columns: minmax(210px, 280px) minmax(0, 1fr);
  gap: 18px;
  padding: 16px;
}

.contact-persona {
  border-right: 1px solid var(--line);
  padding-right: 18px;
}

.contact-persona h3,
.contact-copy h3 {
  margin: 0 0 8px;
  font-size: 18px;
}

.contact-persona p,
.contact-copy p,
.call-script p {
  margin: 0;
  color: #273530;
  line-height: 1.6;
}

.call-script p.call-rich-text,
.guided-call-copy p.call-rich-text,
.guided-reply-answer p.call-rich-text,
.call-script .cue p.call-rich-text,
.guided-reply-answer .cue p.call-rich-text {
  margin: 0 0 15px;
  color: #273530;
  line-height: 1.68;
  white-space: pre-wrap;
}

.call-script p.call-rich-text:last-child,
.guided-call-copy p.call-rich-text:last-child,
.guided-reply-answer p.call-rich-text:last-child,
.call-script .cue p.call-rich-text:last-child,
.guided-reply-answer .cue p.call-rich-text:last-child {
  margin-bottom: 0;
}

.call-script ul.call-rich-text,
.guided-call-copy ul.call-rich-text,
.guided-reply-answer ul.call-rich-text,
.call-script .cue ul.call-rich-text,
.guided-reply-answer .cue ul.call-rich-text {
  display: grid;
  gap: 8px;
  margin: 4px 0 18px;
  padding-left: 22px;
  color: #273530;
  line-height: 1.6;
}

.call-coach-notes {
  display: grid;
  gap: 6px;
  margin: 12px 0 18px;
  padding: 12px 14px;
  border-left: 3px solid #2FA6A3;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.12);
  color: #0F2F4A;
}

.call-coach-notes span {
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-coach-notes p {
  margin: 0;
  color: #0F2F4A;
  line-height: 1.55;
}

.call-yes-panel {
  display: grid;
  gap: 12px;
  margin: 16px 0;
}

.call-yes-response {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 10px;
  background: rgba(47, 166, 163, 0.08);
}

.contact-copy ol {
  display: grid;
  gap: 8px;
  margin: 0;
  padding-left: 20px;
}

.contact-copy li {
  color: #273530;
  line-height: 1.55;
}

.tag-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.tag {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 9px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 800;
}

.contact-copy {
  display: grid;
  align-content: start;
  gap: 14px;
}

.call-shell {
  display: grid;
  grid-template-columns: minmax(220px, 300px) minmax(0, 1fr);
  gap: 16px;
  min-height: 62vh;
}

.call-sidebar,
.call-stage {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fff;
}

.call-sidebar {
  padding: 14px;
}

.call-contact-section + .call-contact-section {
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.call-sidebar h2 {
  margin: 0 0 12px;
  font-size: 13px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.call-contact-list {
  display: grid;
  gap: 8px;
}

.call-contact-scroll {
  display: grid;
  gap: 8px;
  max-height: 300px;
  overflow: auto;
  padding-right: 3px;
}

.call-contact {
  width: 100%;
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
  color: var(--ink);
  text-align: left;
}

.call-contact.active {
  border-color: rgba(47, 166, 163, 0.55);
  background: var(--accent-soft);
}

.call-contact strong {
  display: block;
  margin-bottom: 3px;
  font-size: 13px;
}

.call-contact span {
  color: var(--muted);
  font-size: 12px;
}

.call-contact-status {
  display: block;
  margin-top: 6px;
  color: var(--accent-dark);
  font-weight: 900;
}

.call-contact-status.error {
  color: var(--rose);
}

.call-loading-track {
  display: block;
  height: 6px;
  margin-top: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.call-loading-track span,
.call-generation-track span {
  display: block;
  width: 42%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-highlight), var(--accent));
  animation: callLoading 1.05s ease-in-out infinite;
}

@keyframes callLoading {
  0% {
    transform: translateX(-105%);
  }
  100% {
    transform: translateX(245%);
  }
}

.call-stage {
  display: grid;
  grid-template-rows: auto auto auto;
  overflow: visible;
}

.call-state {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-weight: 800;
}

.live-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--gold);
  box-shadow: 0 0 0 4px rgba(185, 120, 20, 0.14);
}

.call-script {
  display: grid;
  align-content: center;
  gap: 14px;
  padding: 24px;
}

.call-script h2 {
  margin: 0;
  font-size: clamp(24px, 3vw, 38px);
  line-height: 1.08;
  letter-spacing: 0;
}

.call-phase {
  width: max-content;
  max-width: 100%;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--surface-2);
  color: var(--accent-dark);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.call-script .cue {
  padding: 14px;
  border-left: 4px solid var(--blue);
  border-radius: 0 var(--radius) var(--radius) 0;
  background: #eef4fa;
}

.call-generation-track {
  width: 100%;
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: var(--surface-2);
}

.answer-grid {
  display: grid;
  gap: 12px;
  padding: 14px;
  border-top: 1px solid var(--line);
  background: #fbfcfc;
  max-height: none;
  overflow: visible;
}

.answer-stage {
  display: grid;
  gap: 7px;
}

.answer-stage-label {
  color: var(--muted);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.answer-stage-buttons {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.answer-button {
  min-height: 48px;
  padding: 10px;
  border: 1px solid var(--line-strong);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  text-align: left;
}

.answer-button:hover {
  border-color: var(--accent);
  color: var(--accent-dark);
}

.answer-button.close-action {
  border-color: rgba(47, 166, 163, 0.45);
  background: var(--accent-soft);
  color: var(--accent-dark);
}

.battle-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
}

.battle-grid section {
  min-width: 0;
}

.snippet-list,
.query-list {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.snippet,
.query-item {
  padding: 13px;
  color: #273530;
  line-height: 1.5;
}

.query-item {
  display: flex;
  gap: 10px;
  justify-content: space-between;
  align-items: flex-start;
}

.query-item code {
  white-space: normal;
  color: var(--accent-dark);
}

.mini-button {
  flex: 0 0 auto;
  min-height: 28px;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.ai-strategist-bubble {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 70;
  width: min(390px, calc(100vw - 36px));
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.ai-strategist-bubble.hidden {
  display: none;
}

.ai-strategist-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.ai-strategist-bubble-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(47, 166, 163, 0.26);
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(239, 254, 252, 0.94)),
    rgba(255, 255, 255, 0.88);
  box-shadow: 0 20px 50px rgba(11, 53, 81, 0.22);
  backdrop-filter: blur(14px);
  color: var(--ink);
}

.ai-strategist-bubble-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.ai-strategist-bubble-icon {
  display: inline-flex;
  width: 36px;
  height: 36px;
  align-items: center;
  justify-content: center;
  border-radius: 12px;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 0.03em;
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.28);
}

.ai-strategist-bubble-head small {
  display: block;
  margin-bottom: 2px;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.ai-strategist-bubble-head strong {
  display: block;
  color: var(--ink);
  font-size: 15px;
  line-height: 1.25;
}

.ai-strategist-bubble-close {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-weight: 900;
}

.ai-strategist-bubble-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
}

.ai-strategist-bubble-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.ai-strategist-bubble-actions .mini-button {
  min-height: 32px;
  padding-inline: 10px;
  border-color: rgba(47, 166, 163, 0.26);
  background: #fff;
  color: var(--ink);
}

.ai-strategist-bubble-actions .mini-button:first-child {
  background: linear-gradient(135deg, var(--ink), var(--accent-dark));
  color: #fff;
  border-color: transparent;
}

.ai-strategist-bubble-footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 11px;
}

.ai-strategist-bubble-footer button {
  border: 0;
  background: transparent;
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 800;
}

.copilot-page-shell {
  display: grid;
  gap: 18px;
}

.copilot-page-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 211, 153, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(11, 53, 81, 0.98), rgba(23, 128, 128, 0.92)),
    #0b3551;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
  overflow: hidden;
}

.copilot-page-hero h2,
.copilot-page-hero p {
  margin: 0;
  color: #fff;
}

.copilot-page-hero p,
.copilot-page-hero small {
  color: rgba(255, 255, 255, 0.82);
}

.copilot-page-hero p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 820px;
}

.copilot-page-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.copilot-page-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.copilot-core-overview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.copilot-core-overview-card,
.copilot-core-context,
.copilot-core-recommendations,
.copilot-core-activity {
  min-width: 0;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(236, 253, 252, 0.82)),
    #fff;
  box-shadow: 0 14px 32px rgba(15, 47, 74, 0.1);
}

.copilot-core-overview-card {
  align-self: start;
  display: grid;
  gap: 10px;
  min-height: 0;
}

.voice-center-shell {
  display: grid;
  gap: 18px;
}

.voice-center-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding: 24px;
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 211, 153, 0.24), transparent 34%),
    linear-gradient(135deg, #082b43, #168d8a);
  color: #fff;
  box-shadow: 0 18px 42px rgba(8, 35, 54, 0.16);
}

.voice-center-hero h2,
.voice-center-hero p {
  margin: 0;
  color: #fff;
}

.voice-center-hero p:not(.eyebrow) {
  margin-top: 6px;
  color: rgba(255, 255, 255, 0.82);
}

.voice-center-hero-actions,
.voice-center-actions,
.voice-center-mini-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.voice-audio-settings-button {
  display: inline-grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  cursor: pointer;
  box-shadow: 0 10px 24px rgba(8, 35, 54, 0.16);
  transition: transform 150ms ease, background 150ms ease, border-color 150ms ease;
}

.voice-audio-settings-button .icon {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.voice-audio-settings-button:hover,
.voice-audio-settings-button:focus-visible {
  border-color: rgba(255, 255, 255, 0.48);
  background: rgba(47, 166, 163, 0.32);
  transform: translateY(-1px);
}

.voice-center-status-grid,
.voice-center-main-grid,
.voice-center-secondary-grid,
.voice-center-form-grid,
.voice-context-grid {
  display: grid;
  gap: 12px;
}

.voice-center-status-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 180px), 1fr));
}

.voice-center-main-grid {
  grid-template-columns: minmax(280px, 0.9fr) minmax(340px, 1.1fr);
  align-items: start;
}

.voice-center-secondary-grid {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr));
  align-items: start;
}

.voice-center-status-card,
.voice-center-card,
.voice-center-list-item,
.voice-context-grid article,
.voice-context-stack,
.voice-transcript-placeholder {
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 252, 0.86)),
    #fff;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.08);
}

.voice-center-status-card {
  display: grid;
  gap: 5px;
  min-height: 108px;
  padding: 14px;
}

.voice-center-status-card span,
.voice-context-grid span {
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 1000;
  letter-spacing: .04em;
  text-transform: uppercase;
}

.voice-center-status-card strong {
  color: var(--brand-blue);
  font-size: 18px;
  font-weight: 1000;
}

.voice-center-status-card small,
.voice-context-grid small,
.voice-transcript-placeholder span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.35;
}

.voice-center-card {
  display: grid;
  gap: 12px;
  min-width: 0;
  padding: 16px;
}

.voice-center-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
}

.voice-center-card-head h3 {
  margin: 2px 0 0;
  color: var(--brand-blue);
}

.voice-center-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 24px;
  padding: 0 9px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.14);
  color: var(--accent-dark);
  font-size: 11px;
  font-weight: 950;
}

.voice-number-input-shell {
  position: relative;
  min-width: 0;
}

.voice-center-number-input-shell {
  width: 100%;
}

.voice-center-number-display {
  width: 100%;
  min-height: 48px;
  padding: 0 48px 0 14px;
  border: 1px solid rgba(47, 166, 163, 0.22);
  border-radius: 8px;
  background: #f8ffff;
  color: var(--brand-blue);
  font-size: 20px;
  font-weight: 1000;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-center-number-display:focus,
.voice-number-display:focus {
  border-color: rgba(47, 166, 163, 0.58);
  box-shadow: 0 0 0 3px rgba(47, 166, 163, 0.14);
  outline: none;
}

.voice-center-number-display::placeholder,
.voice-number-display::placeholder {
  color: rgba(15, 47, 74, 0.48);
  font-size: 14px;
  font-weight: 800;
}

.voice-center-number-display.is-empty {
  color: rgba(15, 47, 74, 0.48);
  font-size: 14px;
}

.voice-number-backspace {
  position: absolute;
  top: 50%;
  right: 8px;
  display: inline-grid;
  place-items: center;
  width: 32px;
  height: 32px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #ffffff, #edfafa);
  color: var(--brand-blue);
  cursor: pointer;
  font-size: 16px;
  font-weight: 1000;
  transform: translateY(-50%);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.voice-number-backspace:hover,
.voice-number-backspace:focus-visible {
  border-color: rgba(47, 166, 163, 0.45);
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.1);
  transform: translateY(-50%) scale(1.04);
}

.voice-center-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
}

.voice-center-keypad button {
  min-height: 44px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background: linear-gradient(135deg, #fff, #edfafa);
  color: var(--brand-blue);
  font-size: 17px;
  font-weight: 1000;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.07);
}

.voice-center-keypad button:hover {
  border-color: rgba(47, 166, 163, 0.45);
  transform: translateY(-1px);
}

.voice-center-keypad button:last-child {
  grid-column: 1 / -1;
}

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

.voice-center-form-grid .wide {
  grid-column: 1 / -1;
}

.voice-center-list {
  display: grid;
  gap: 10px;
}

.voice-center-list-item {
  display: grid;
  gap: 8px;
  padding: 12px;
}

.voice-center-list-item div:first-child {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.voice-center-list-item strong {
  color: var(--brand-blue);
}

.voice-center-list-item span,
.voice-center-list-item p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
}

.voice-center-context-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

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

.voice-context-grid article,
.voice-context-stack,
.voice-transcript-placeholder {
  display: grid;
  gap: 5px;
  padding: 12px;
}

.voice-context-grid strong,
.voice-context-stack strong,
.voice-transcript-placeholder strong {
  color: var(--brand-blue);
}

.voice-context-stack p {
  margin: 0;
  color: var(--ink-soft);
  font-size: 13px;
  line-height: 1.45;
}

@media (max-width: 920px) {
  .voice-center-main-grid {
    grid-template-columns: 1fr;
  }

  .voice-center-hero {
    flex-direction: column;
  }
}

@media (max-width: 620px) {
  .voice-center-form-grid,
  .voice-context-grid,
  .voice-center-context-search {
    grid-template-columns: 1fr;
  }
}

.voice-dialer-panel {
  position: fixed;
  top: 86px;
  right: auto;
  z-index: 960;
  width: min(360px, calc(100vw - 28px));
  max-height: calc(100vh - 108px);
  display: grid;
  gap: 12px;
  padding-bottom: 14px;
  border: 1px solid rgba(47, 166, 163, 0.28);
  border-radius: 12px;
  overflow: visible;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(237, 253, 252, 0.9)),
    #ffffff;
  box-shadow: 0 26px 64px rgba(8, 35, 54, 0.26);
  transform-origin: var(--voice-dialer-panel-arrow-left, 50%) 0;
}

.voice-dialer-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--voice-dialer-panel-arrow-left, 50%);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(47, 166, 163, 0.28);
  border-left: 1px solid rgba(47, 166, 163, 0.28);
  background: #082b43;
  transform: translateX(-50%) rotate(45deg);
}

.voice-dialer-panel.hidden,
.voice-call-widget.hidden {
  display: none;
}

.voice-dialer-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 90% 0%, rgba(52, 211, 153, 0.26), transparent 34%),
    linear-gradient(135deg, #082b43, #168d8a);
  color: #ffffff;
}

.voice-dialer-header h2,
.voice-dialer-header p {
  margin: 0;
  color: #ffffff;
}

.voice-dialer-header p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.voice-dialer-panel .voice-number-input-shell {
  margin: 0 16px;
}

.voice-number-display {
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 0 48px 0 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 10px;
  background: #f8ffff;
  color: #0f2f4a;
  font-size: 20px;
  font-weight: 950;
  letter-spacing: 0;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-number-display.is-empty {
  color: rgba(15, 47, 74, 0.48);
  font-size: 14px;
  font-weight: 800;
}

.voice-dialer-status {
  margin: -4px 16px 0;
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.voice-keypad {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 9px;
  padding: 0 16px;
}

.voice-keypad button {
  display: grid;
  place-items: center;
  min-height: 48px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 999px;
  background:
    linear-gradient(135deg, #ffffff, #edfafa);
  color: #0f2f4a;
  font-size: 18px;
  font-weight: 950;
  cursor: pointer;
  box-shadow: 0 8px 18px rgba(15, 47, 74, 0.08);
  transition: transform 150ms ease, border-color 150ms ease, box-shadow 150ms ease;
}

.voice-keypad button:hover,
.voice-keypad button:focus-visible {
  border-color: rgba(47, 166, 163, 0.42);
  transform: translateY(-1px);
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.12);
}

.voice-keypad-plus {
  grid-column: 1 / -1;
}

.voice-dialer-actions,
.voice-call-actions {
  display: flex;
  gap: 9px;
  padding: 0 16px;
}

.voice-dialer-actions > *,
.voice-call-actions > * {
  flex: 1 1 0;
}

.voice-call-start {
  background: linear-gradient(135deg, #0f2f4a, #168d8a);
}

.voice-call-widget {
  position: fixed;
  top: 86px;
  right: 22px;
  z-index: 961;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 10px;
  width: min(460px, calc(100vw - 28px));
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.3);
  border-radius: 12px;
  background:
    radial-gradient(circle at 96% 0%, rgba(52, 211, 153, 0.16), transparent 32%),
    linear-gradient(135deg, #082b43, #0f5f67);
  color: #ffffff;
  box-shadow: 0 24px 58px rgba(8, 35, 54, 0.24);
}

.voice-call-widget div {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.voice-call-widget span,
.voice-call-widget strong,
.voice-call-widget small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.voice-audio-settings-panel {
  width: min(720px, calc(100vw - 32px));
}

.voice-audio-settings-body {
  display: grid;
  gap: 16px;
  padding: 18px;
  overflow-x: hidden;
  overflow-y: auto;
}

.voice-audio-device-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.voice-audio-device-grid label {
  display: grid;
  gap: 7px;
  min-width: 0;
  color: var(--brand-blue);
  font-size: 12px;
  font-weight: 950;
}

.voice-audio-device-grid select {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-blue);
  font-weight: 850;
}

.voice-audio-device-grid select:disabled {
  background: #f1f6f6;
  color: rgba(15, 47, 74, 0.48);
}

.voice-mic-test-card {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 166, 163, 0.16), transparent 32%),
    linear-gradient(135deg, #f8ffff, #eefafa);
}

.voice-mic-test-card > div:first-child {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.voice-mic-test-card strong {
  color: var(--brand-blue);
  font-size: 14px;
  font-weight: 1000;
}

.voice-mic-test-card span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.voice-mic-meter {
  height: 14px;
  overflow: hidden;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.08);
}

.voice-mic-meter span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #2fa6a3, #0f2f4a);
  transition: width 80ms linear;
}

.voice-audio-settings-actions {
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

@media (max-width: 680px) {
  .voice-audio-device-grid {
    grid-template-columns: 1fr;
  }

  .voice-audio-settings-actions > button {
    flex: 1 1 100%;
  }
}

.voice-call-widget span {
  color: rgba(255, 255, 255, 0.74);
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
}

.voice-call-widget strong {
  color: #ffffff;
  font-size: 14px;
  font-weight: 950;
}

.voice-call-widget small {
  color: #7cffd3;
  font-size: 12px;
  font-weight: 950;
  font-variant-numeric: tabular-nums;
}

.copilot-core-panel {
  position: fixed;
  top: 86px;
  right: auto;
  z-index: 950;
  width: min(480px, calc(100vw - 28px));
  max-height: calc(100vh - 108px);
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  border: 1px solid rgba(47, 166, 163, 0.26);
  border-radius: 10px;
  overflow: visible;
  background: #f6fbfb;
  box-shadow: 0 24px 60px rgba(8, 35, 54, 0.24);
  transform-origin: var(--copilot-core-panel-arrow-left, 50%) 0;
}

.copilot-core-panel::before {
  content: "";
  position: absolute;
  top: -7px;
  left: var(--copilot-core-panel-arrow-left, 50%);
  width: 14px;
  height: 14px;
  border-top: 1px solid rgba(47, 166, 163, 0.26);
  border-left: 1px solid rgba(47, 166, 163, 0.26);
  background: #082b43;
  transform: translateX(-50%) rotate(45deg);
}

.copilot-core-panel.hidden {
  display: none;
}

.copilot-core-panel-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 18px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 211, 153, 0.26), transparent 34%),
    linear-gradient(135deg, #082b43, #168d8a);
  color: #fff;
}

.copilot-core-panel-header h2,
.copilot-core-panel-header p {
  margin: 0;
  color: #fff;
}

.copilot-core-panel-header p:not(.eyebrow) {
  margin-top: 5px;
  color: rgba(255, 255, 255, 0.82);
}

.copilot-core-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 12px 14px;
  border-bottom: 1px solid rgba(47, 166, 163, 0.18);
  background: rgba(255, 255, 255, 0.82);
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.copilot-core-body {
  display: grid;
  gap: 12px;
  padding: 14px;
  overflow: auto;
}

.copilot-core-section-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: flex-start;
  margin-bottom: 10px;
}

.copilot-core-section-head h3,
.copilot-core-rec-card h4 {
  margin: 0;
  color: var(--ink);
}

.copilot-core-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.copilot-core-metric {
  display: grid;
  gap: 3px;
  padding: 9px;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.09);
}

.copilot-core-metric span,
.copilot-core-muted,
.copilot-core-rec-card p,
.copilot-core-activity-list p {
  color: var(--muted);
}

.copilot-core-metric strong {
  color: var(--ink);
  font-size: 18px;
}

.copilot-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
}

.copilot-card-footer.suggestions {
  justify-content: center;
  margin-top: 4px;
}

.copilot-more-button {
  white-space: nowrap;
}

.copilot-core-focus {
  margin-top: 10px;
  padding: 10px;
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.76);
}

.copilot-core-prompt {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: #fff;
}

.copilot-core-prompt label {
  display: grid;
  gap: 7px;
  color: var(--ink);
  font-weight: 900;
}

.copilot-core-prompt textarea {
  width: 100%;
  min-height: 84px;
  resize: vertical;
  border: 1px solid rgba(15, 47, 74, 0.14);
  border-radius: 8px;
  padding: 10px;
  font: inherit;
}

.copilot-core-rec-list,
.copilot-core-activity-list {
  display: grid;
  gap: 10px;
}

.copilot-core-rec-card,
.copilot-core-activity-list article,
.copilot-core-activity-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
}

.copilot-core-rec-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.copilot-skill-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.copilot-core-overview-card .copilot-skill-list {
  align-content: start;
}

.copilot-skill-pill {
  display: inline-flex;
  align-items: center;
  padding: 7px 9px;
  border-radius: 999px;
  background: rgba(15, 47, 74, 0.08);
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.copilot-skill-pill.active {
  background: rgba(47, 166, 163, 0.18);
  color: var(--accent-dark);
}

.copilot-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.copilot-settings-grid > label:not(.automation-rule-card) {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.copilot-settings-grid > label small {
  color: var(--muted);
  font-weight: 700;
}

.copilot-board {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: var(--shadow-soft);
}

.copilot-board-header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.copilot-board-header h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.copilot-board-header p {
  margin: 0;
  color: var(--muted);
}

.copilot-insight-list {
  display: grid;
  gap: 12px;
}

.copilot-more-modal-card {
  max-height: min(72vh, 760px);
  overflow: auto;
}

.copilot-modal-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.copilot-modal-tile {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.08);
}

.copilot-modal-tile span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.copilot-modal-tile strong {
  color: var(--ink);
  font-size: 20px;
}

.copilot-modal-section {
  display: grid;
  gap: 7px;
  margin-top: 12px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.copilot-modal-section h4,
.copilot-modal-section p {
  margin: 0;
}

.copilot-modal-chip-grid,
.copilot-modal-stack {
  display: grid;
  gap: 10px;
}

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

.copilot-modal-chip-grid .copilot-skill-pill {
  justify-content: center;
  border-radius: 8px;
  min-height: 38px;
  text-align: center;
}

@media (max-width: 980px) {
  .copilot-core-overview-grid,
  .copilot-modal-grid,
  .copilot-modal-chip-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 640px) {
  .copilot-core-overview-grid,
  .copilot-core-metrics,
  .copilot-modal-grid,
  .copilot-modal-chip-grid {
    grid-template-columns: 1fr;
  }

  .copilot-card-footer {
    align-items: stretch;
    flex-direction: column;
  }

  .copilot-card-footer .secondary-button {
    width: 100%;
  }
}

.copilot-insight-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 250, 0.88));
  color: var(--ink);
}

.copilot-insight-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.copilot-insight-card h3 {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.copilot-insight-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.copilot-insight-card > header > strong {
  color: var(--accent-dark);
  font-size: 20px;
}

.copilot-insight-card small {
  color: var(--muted);
  font-weight: 700;
}

.copilot-ai-analysis {
  padding: 10px;
  border-radius: 8px;
  background: rgba(47, 166, 163, 0.09);
  color: var(--ink) !important;
}

.copilot-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.copilot-ai-button {
  border-color: rgba(11, 53, 81, 0.28);
  background: #0b3551;
  color: #fff;
}

.copilot-bubble {
  position: fixed;
  right: 18px;
  bottom: 74px;
  z-index: 72;
  width: min(390px, calc(100vw - 36px));
  opacity: 0;
  transform: translateY(14px) scale(0.98);
  pointer-events: none;
  transition:
    opacity 0.22s ease,
    transform 0.22s ease;
}

.copilot-bubble.hidden {
  display: none;
}

.copilot-bubble.visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  pointer-events: auto;
}

.copilot-bubble-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(47, 166, 163, 0.3);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 20px 50px rgba(11, 53, 81, 0.22);
  backdrop-filter: blur(14px);
  color: var(--ink);
}

.copilot-bubble-card header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.copilot-bubble-card header > span {
  display: inline-flex;
  width: 34px;
  height: 34px;
  align-items: center;
  justify-content: center;
  border-radius: 11px;
  background: linear-gradient(135deg, var(--ink), var(--accent));
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.copilot-bubble-card small {
  display: block;
  color: var(--accent-dark);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.copilot-bubble-card strong {
  display: block;
  color: var(--ink);
  line-height: 1.25;
}

.copilot-bubble-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.5;
}

.copilot-bubble-card [data-copilot-bubble-close] {
  width: 30px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--muted);
  font-weight: 900;
}

.market-scan-shell {
  display: grid;
  gap: 18px;
}

.market-scan-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 20px 22px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background:
    radial-gradient(circle at 88% 0%, rgba(52, 211, 153, 0.28), transparent 34%),
    linear-gradient(135deg, rgba(6, 38, 67, 0.98), rgba(23, 128, 128, 0.9)),
    #062643;
  color: #fff;
  box-shadow: 0 18px 40px rgba(15, 47, 74, 0.16);
  overflow: hidden;
}

.market-scan-hero h2,
.market-scan-hero p {
  margin: 0;
  color: #fff;
}

.market-scan-hero p,
.market-scan-hero small {
  color: rgba(255, 255, 255, 0.82);
}

.market-scan-hero p:not(.eyebrow) {
  margin-top: 6px;
  max-width: 820px;
}

.market-scan-hero-actions,
.market-scan-results-header {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
}

.market-scan-hero .secondary-button {
  border-color: rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
}

.market-scan-settings-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(220px, 1fr));
  gap: 12px;
  align-items: stretch;
}

.market-scan-settings-grid > label:not(.automation-rule-card) {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 900;
}

.market-scan-settings-grid > label small {
  color: var(--muted);
  font-weight: 700;
}

.market-scan-progress-card,
.market-scan-results {
  display: grid;
  gap: 14px;
  padding: 16px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--shadow-soft);
}

.market-scan-progress-card h3,
.market-scan-results h3 {
  margin: 0 0 4px;
  color: var(--ink);
}

.market-scan-progress-card small {
  color: var(--muted);
  font-weight: 700;
}

.market-scan-progress-track {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(11, 53, 81, 0.08);
}

.market-scan-progress-track span {
  display: block;
  width: 0%;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--accent), var(--accent-dark));
  transition: width 0.25s ease;
}

.market-scan-steps {
  display: grid;
  grid-template-columns: repeat(7, minmax(90px, 1fr));
  gap: 8px;
  padding: 0;
  margin: 0;
  list-style: none;
}

.market-scan-steps li {
  display: grid;
  gap: 6px;
  padding: 10px;
  border: 1px solid rgba(11, 53, 81, 0.1);
  border-radius: 8px;
  background: #fff;
  color: var(--muted);
}

.market-scan-steps li span {
  display: inline-flex;
  width: 24px;
  height: 24px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(11, 53, 81, 0.08);
  color: var(--ink);
  font-size: 11px;
  font-weight: 900;
}

.market-scan-steps li strong {
  color: inherit;
  font-size: 11px;
  line-height: 1.25;
}

.market-scan-steps li.active,
.market-scan-steps li.done {
  border-color: rgba(47, 166, 163, 0.32);
  color: var(--ink);
  background: rgba(241, 252, 250, 0.96);
}

.market-scan-steps li.done span,
.market-scan-steps li.active span {
  background: var(--accent);
  color: #fff;
}

.market-scan-opportunity-list {
  display: grid;
  gap: 12px;
}

.market-scan-candidate-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.82);
}

.market-scan-candidate-head h3,
.market-scan-candidate-head p {
  margin: 0;
}

.market-scan-candidate-head > span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 34px;
  padding: 6px 12px;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #07324b, #15aaa6);
  font-weight: 900;
  white-space: nowrap;
}

.market-scan-candidate-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.market-scan-candidate-grid.modal-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.market-scan-candidate-card {
  display: grid;
  gap: 8px;
  min-height: 190px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.2);
  border-radius: 8px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(236, 250, 248, 0.95));
  box-shadow: 0 12px 26px rgba(8, 51, 65, 0.08);
  cursor: pointer;
}

.market-scan-candidate-card:hover,
.market-scan-candidate-card:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(47, 166, 163, 0.42);
  box-shadow: 0 18px 34px rgba(8, 51, 65, 0.12);
}

.market-scan-candidate-card strong {
  color: var(--ink);
  font-size: 17px;
}

.market-scan-candidate-card p,
.market-scan-candidate-card small {
  margin: 0;
  color: var(--muted);
  line-height: 1.45;
}

.market-scan-candidate-card em {
  align-self: end;
  color: var(--accent-dark);
  font-style: normal;
  font-weight: 900;
}

.market-scan-candidate-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.market-scan-candidate-meta span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  padding: 4px 9px;
  border-radius: 999px;
  color: var(--ink);
  background: rgba(47, 166, 163, 0.1);
  font-size: 12px;
  font-weight: 900;
}

.market-scan-show-more-candidates {
  justify-self: end;
}

.market-scan-candidate-modal-card {
  max-height: min(74vh, 780px);
  overflow: auto;
}

.market-scan-candidate-summary {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-bottom: 14px;
}

.market-scan-candidate-summary article {
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 8px;
  background: #f7fbfb;
}

.market-scan-candidate-summary span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.market-scan-candidate-summary strong {
  display: block;
  margin-top: 5px;
  color: var(--ink);
  font-size: 24px;
}

.market-scan-candidate-detail-section {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.market-scan-candidate-detail-section h3,
.market-scan-candidate-detail-section p {
  margin: 0;
}

.market-scan-candidate-detail-section p strong {
  display: block;
  color: var(--ink);
}

.market-scan-candidate-opportunity-stack {
  display: grid;
  gap: 12px;
}

.market-scan-opportunity-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-left: 4px solid var(--accent);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 250, 0.9));
  color: var(--ink);
}

.market-scan-opportunity-card.compact {
  box-shadow: none;
}

.market-scan-opportunity-card header {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}

.market-scan-opportunity-card h3 {
  margin: 6px 0 4px;
  color: var(--ink);
  font-size: 17px;
}

.market-scan-opportunity-card p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.market-scan-opportunity-card small {
  color: var(--muted);
  font-weight: 700;
}

.market-scan-score {
  display: inline-flex;
  min-width: 58px;
  min-height: 58px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.1);
  color: var(--accent-dark);
  font-size: 20px;
  font-weight: 900;
}

.market-scan-action-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

@media (max-width: 1100px) {
  .market-scan-candidate-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .market-scan-candidate-head {
    align-items: stretch;
    flex-direction: column;
  }

  .market-scan-candidate-grid,
  .market-scan-candidate-grid.modal-grid,
  .market-scan-candidate-summary {
    grid-template-columns: 1fr;
  }

  .market-scan-opportunity-card header {
    grid-template-columns: 1fr;
  }
}

.ai-proactive-settings-card {
  display: grid;
  grid-template-columns: minmax(220px, 0.9fr) minmax(280px, 1.4fr);
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: var(--radius-lg);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(241, 252, 250, 0.92));
  box-shadow: var(--shadow-soft);
}

.ai-proactive-settings-copy h3 {
  margin: 3px 0 8px;
  color: var(--ink);
}

.ai-proactive-settings-copy p:last-child {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.ai-proactive-settings-controls {
  display: grid;
  gap: 12px;
  min-width: 0;
}

.ai-proactive-settings-controls > label:not(.automation-rule-card) {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-weight: 900;
}

.ai-proactive-settings-controls select {
  min-height: 42px;
}

.settings-two-column-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.settings-two-column-grid label:not(.automation-rule-card) {
  display: grid;
  gap: 6px;
  color: var(--ink);
  font-size: 12px;
  font-weight: 900;
}

.motivator-module-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.motivator-module-grid .permission-check {
  margin: 0;
  border: 1px solid rgba(15, 47, 74, 0.12);
  background: rgba(255, 255, 255, 0.86);
  color: #0b3551;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
}

.motivator-module-grid .permission-check span {
  color: #0b3551;
  font-weight: 850;
}

.dashboard-row.static-row {
  cursor: default;
}

.motivator-event-preview {
  grid-column: 1 / -1;
  min-width: 0;
}

.motivator-event-details {
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 12px 26px rgba(15, 47, 74, 0.08);
}

.motivator-event-details summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 13px 14px;
  cursor: pointer;
  color: #0b3551;
  font-weight: 900;
  list-style: none;
}

.motivator-event-details summary::-webkit-details-marker {
  display: none;
}

.motivator-event-details summary::after {
  content: "Bekijken";
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: rgba(47, 166, 163, 0.12);
  color: #0b3551;
  font-size: 11px;
  font-weight: 900;
}

.motivator-event-details[open] summary::after {
  content: "Sluiten";
}

.motivator-event-details summary span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.motivator-event-details summary small {
  color: #60717f;
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.motivator-event-list {
  display: grid;
  gap: 8px;
  padding: 0 14px 14px;
}

.motivator-event-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 11px 12px;
  border: 1px solid rgba(15, 47, 74, 0.08);
  border-radius: 8px;
  background: #ffffff;
}

.motivator-event-row span {
  display: grid;
  gap: 3px;
  min-width: 0;
}

.motivator-event-row strong {
  color: #0b3551;
  line-height: 1.25;
}

.motivator-event-row small {
  color: #60717f;
  line-height: 1.35;
}

.motivator-event-row em {
  flex: 0 0 auto;
  padding: 5px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-style: normal;
  font-weight: 900;
}

.motivator-event-row em.is-local {
  background: rgba(47, 166, 163, 0.12);
  color: #0b6f6a;
}

.motivator-event-row em.is-ai {
  background: rgba(15, 47, 74, 0.1);
  color: #0b3551;
}

.ai-proactive-toggle {
  margin: 0;
}

.ai-proactive-muted-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  color: var(--muted);
  font-size: 12px;
}

@media (max-width: 720px) {
  .ai-strategist-bubble,
  .copilot-bubble {
    right: 12px;
    bottom: 64px;
    width: calc(100vw - 24px);
  }

  .copilot-settings-grid,
  .market-scan-settings-grid {
    grid-template-columns: 1fr;
  }

  .copilot-board-header,
  .copilot-insight-card header,
  .market-scan-opportunity-card header {
    grid-template-columns: 1fr;
  }

  .market-scan-steps {
    grid-template-columns: 1fr;
  }

  .ai-proactive-settings-card {
    grid-template-columns: 1fr;
  }

  .intelligence-status-grid,
  .intelligence-budget-card,
  .intelligence-module-grid,
  .motivator-engine-layout,
  .intelligence-control-grid {
    grid-template-columns: 1fr;
  }

  .intelligence-module-card header {
    display: grid;
  }

  .intelligence-package-tags {
    max-width: none;
    text-align: left;
  }

  .settings-two-column-grid,
  .motivator-module-grid {
    grid-template-columns: 1fr;
  }

  .ai-proactive-muted-row {
    align-items: stretch;
    flex-direction: column;
  }
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 50;
  max-width: min(360px, calc(100vw - 36px));
  padding: 12px 14px;
  border-radius: var(--radius);
  background: var(--ink);
  color: #fff;
  box-shadow: var(--shadow);
  opacity: 0;
  transform: translateY(10px);
  pointer-events: none;
  transition:
    opacity 0.2s ease,
    transform 0.2s ease;
}

.toast.visible {
  opacity: 1;
  transform: translateY(0);
}

@media (max-width: 980px) {
  .platform-owner .home-layout,
  .home-layout,
  .match-layout,
  .intake-layout,
  .relevance-layout,
  .ai-sparren-shell,
  .pitch-route-grid,
  .pitch-builder-form {
    grid-template-columns: 1fr;
  }

  .platform-owner .home-layout,
  .home-layout {
    grid-auto-rows: min-content;
    align-items: start;
    align-content: start;
  }

  .pitch-builder-head {
    display: grid;
  }

  .pitch-builder-cancel {
    justify-self: start;
  }

  .module-sidebar {
    position: static;
    grid-template-columns: 1fr;
    overflow: visible;
  }

  .module-flyout {
    position: static;
    width: 100%;
    max-height: 52vh;
    margin-top: 8px;
  }

  .module-nav-group.open > .module-flyout {
    display: grid;
  }

  .home-module,
  .platform-owner-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .platform-owner-sidebar {
    position: static;
    grid-row: 3;
    order: 1;
  }

  .module-sidebar {
    grid-row: 1;
  }

  .home-module.active {
    grid-row: 2;
    margin-top: 0;
  }

  .platform-owner .home-module.active {
    grid-row: 2;
  }

  .project-create {
    grid-template-columns: 1fr;
  }

  .workspace {
    grid-template-columns: 1fr;
  }

  .input-panel,
  .output-panel,
  .match-input-card,
  .match-output-card,
  .intake-input-card,
  .intake-output-card,
  .relevance-input-card,
  .relevance-output-card {
    min-height: auto;
    height: auto;
    max-height: none;
  }

  .battle-grid {
    grid-template-columns: 1fr;
  }

  .who-grid,
  .who-toolbar,
  .who-stat-grid {
    grid-template-columns: 1fr;
  }

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

  .contact-card,
  .call-shell {
    grid-template-columns: 1fr;
  }

  .contact-persona {
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding-right: 0;
    padding-bottom: 14px;
  }

  .answer-stage-buttons {
    grid-template-columns: 1fr;
  }

  .ai-chat-panel {
    right: 12px;
    bottom: 12px;
    width: min(390px, calc(100vw - 24px));
    height: min(64vh, calc(100vh - 84px));
    min-width: min(300px, calc(100vw - 24px));
    min-height: 380px;
    max-height: calc(100vh - 72px);
  }

  .ai-chat-panel.expanded {
    width: calc(100vw - 24px);
    height: calc(100vh - 72px);
    min-height: calc(100vh - 72px);
  }

  .ai-chat-panel.minimized {
    width: 56px;
    min-width: 56px;
    height: 56px;
    min-height: 56px;
  }

  .ai-chat-panel.minimized .ai-chat-toggle {
    width: 56px;
    height: 56px;
  }

  .ai-chat-header-actions {
    gap: 6px;
  }

  .ai-sparren-chat-head {
    grid-template-columns: 1fr;
  }

  .ai-sparren-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 680px) {
  .topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px;
  }

  .brand,
  .brand-title-row {
    width: 100%;
  }

  .brand-title-row {
    flex-wrap: wrap;
  }

  .workspace-identity {
    flex: 1 1 190px;
    min-width: 0;
    max-width: none;
  }

  .workspace-header-actions {
    margin-left: auto;
  }

  .project-context-pill {
    max-width: 100%;
    order: 10;
  }

  .top-actions {
    width: 100%;
  }

  .top-actions button {
    flex: 1;
  }

  .workspace {
    padding: 10px;
  }

  .home-layout {
    padding: 10px;
  }

  .module-sidebar,
  .match-fit-grid,
  .manual-search-grid,
  .intake-summary-grid,
  .intake-summary-actions,
  .intake-question-grid,
  .intake-report-grid,
  .ai-sparren-form {
    grid-template-columns: 1fr;
  }

  .ai-sparren-message {
    width: 100%;
  }

  #intakeForm {
    grid-template-columns: 1fr;
  }

  .match-report,
  .intake-report,
  .relevance-report {
    padding: 16px;
  }

  .relevance-hero-card {
    grid-template-columns: 1fr;
  }


  .status-strip,
  .segmented {
    grid-template-columns: 1fr;
  }

  .output-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .export-actions {
    flex-wrap: wrap;
    justify-content: flex-end;
  }

  .tab-page {
    padding: 16px;
  }

  .ai-chat-form {
    grid-template-columns: 1fr;
  }

  .who-info-modal {
    padding: 10px;
  }

  .who-info-panel {
    max-height: 94vh;
    padding: 14px;
  }
}

.learning-shell {
  display: grid;
  gap: 16px;
  max-width: 1360px;
}

.learning-hero,
.learning-config-card {
  display: grid;
  gap: 14px;
  padding: 22px;
  border: 1px solid rgba(47, 166, 163, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 90% 0%, rgba(47, 166, 163, 0.36), transparent 38%),
    linear-gradient(135deg, #0f2f4a 0%, #123956 62%, #1f7478 128%);
  color: #ffffff;
  box-shadow: 0 20px 42px rgba(15, 47, 74, 0.16);
}

.learning-hero {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
}

.learning-hero h2,
.learning-hero p,
.learning-config-card h3,
.learning-config-card p {
  margin: 0;
  color: #ffffff;
}

.learning-hero h2 {
  font-size: clamp(30px, 4vw, 46px);
  line-height: 1.04;
}

.learning-hero .eyebrow,
.learning-config-card .eyebrow {
  color: #62d5d1;
}

.learning-hero p:not(.eyebrow) {
  max-width: 780px;
  opacity: 0.88;
  line-height: 1.55;
}

.learning-hero-actions,
.learning-training-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.learning-config-head,
.learning-panel-head,
.learning-training-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 14px;
}

.learning-config-head > span {
  max-width: 420px;
  color: rgba(255, 255, 255, 0.82);
  line-height: 1.5;
}

.learning-config-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  align-items: start;
  gap: 16px 12px;
}

.learning-config-grid label,
.learning-answer-form label {
  display: grid;
  gap: 7px;
  color: #ffffff;
  font-weight: 900;
}

.learning-config-grid > label:not(.wide) {
  grid-template-rows: auto 44px minmax(18px, auto);
  align-self: start;
}

.learning-config-grid .wide {
  grid-column: 1 / -1;
}

.learning-config-grid input,
.learning-config-grid select,
.learning-config-grid textarea,
.learning-answer-form textarea,
.learning-session-panel input {
  width: 100%;
  min-height: 44px;
  box-sizing: border-box;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  font: inherit;
  padding: 10px 12px;
}

.learning-config-grid label small {
  display: block;
  min-height: 18px;
  color: rgba(255, 255, 255, 0.72);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.35;
}

.learning-combobox {
  position: relative;
  z-index: 1;
  min-height: 44px;
}

.learning-combobox.open {
  z-index: 80;
}

.learning-combobox input[readonly] {
  cursor: pointer;
}

.learning-combobox-toggle {
  position: absolute;
  top: 50%;
  right: 7px;
  width: 34px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transform: translateY(-50%);
  border: 1px solid rgba(47, 166, 163, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.68), transparent 32%),
    linear-gradient(135deg, rgba(47, 166, 163, 0.16), rgba(47, 166, 163, 0.34));
  color: #0f2f4a;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.58);
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.learning-combobox-toggle svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.8;
  transition: transform 0.18s ease;
}

.learning-combobox.open .learning-combobox-toggle,
.learning-combobox-toggle:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background:
    radial-gradient(circle at 32% 22%, rgba(255, 255, 255, 0.55), transparent 32%),
    linear-gradient(135deg, #2fa6a3, #19777d);
  color: #ffffff;
  box-shadow:
    0 10px 22px rgba(47, 166, 163, 0.26),
    inset 0 1px 0 rgba(255, 255, 255, 0.32);
}

.learning-combobox.open .learning-combobox-toggle {
  transform: translateY(-50%) scale(1.02);
}

.learning-combobox.open .learning-combobox-toggle svg {
  transform: rotate(180deg);
}

.learning-combobox input {
  padding-right: 52px;
}

.learning-combobox-options {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  right: 0;
  z-index: 120;
  max-height: 245px;
  overflow-y: auto;
  display: grid;
  gap: 5px;
  padding: 8px;
  border: 1px solid rgba(47, 166, 163, 0.32);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 42px rgba(15, 47, 74, 0.22);
}

.learning-combobox-options.hidden {
  display: none;
}

.learning-combobox-options button,
.learning-combobox-empty {
  width: 100%;
  display: block;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #0f2f4a;
  cursor: pointer;
  font: inherit;
  font-weight: 850;
  padding: 9px 10px;
  text-align: left;
}

.learning-combobox-options button:hover,
.learning-combobox-options button:focus,
.learning-combobox-options button[aria-selected="true"] {
  outline: none;
  background: #e9f8f7;
  color: #0f2f4a;
}

.learning-combobox-options .learning-combobox-custom {
  background: linear-gradient(135deg, rgba(15, 47, 74, 0.94), rgba(47, 166, 163, 0.9));
  color: #ffffff;
}

.learning-combobox-empty {
  cursor: default;
  color: #6d7a85;
}

.learning-preset-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.learning-preset-row button {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  cursor: pointer;
  font-weight: 900;
  padding: 8px 12px;
  transition:
    background 0.18s ease,
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.learning-preset-row button:hover {
  border-color: rgba(98, 213, 209, 0.75);
  background: rgba(47, 166, 163, 0.22);
  box-shadow: 0 12px 24px rgba(47, 166, 163, 0.2);
  transform: translateY(-1px);
}

.learning-workbench {
  display: grid;
  grid-template-columns: minmax(280px, 0.34fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

.learning-session-panel,
.learning-training-panel {
  display: grid;
  gap: 14px;
  min-width: 0;
  padding: 16px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 32%),
    #ffffff;
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.08);
}

.learning-panel-head h3,
.learning-panel-head p,
.learning-training-head h3,
.learning-training-head p {
  margin: 0;
}

.learning-panel-head h3,
.learning-training-head h3 {
  color: #0f2f4a;
}

.learning-panel-head .eyebrow,
.learning-training-head .eyebrow {
  color: #2fa6a3;
}

.learning-panel-head > span {
  flex: 0 0 auto;
  padding: 6px 10px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 12px;
  font-weight: 950;
}

.learning-session-list,
.learning-message-stream {
  display: grid;
  gap: 10px;
}

.learning-session-card {
  position: relative;
  display: grid;
  gap: 10px;
  padding: 13px 42px 13px 13px;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  cursor: pointer;
  text-align: left;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.learning-session-card:hover,
.learning-session-card.active {
  border-color: rgba(47, 166, 163, 0.6);
  box-shadow: 0 16px 32px rgba(47, 166, 163, 0.14);
  transform: translateY(-1px);
}

.learning-session-card span {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 11px;
  font-weight: 950;
}

.learning-session-card strong,
.learning-session-card p,
.learning-session-card small,
.learning-session-card em {
  margin: 0;
}

.learning-session-card p,
.learning-session-card small {
  color: #52616d;
}

.learning-session-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.learning-session-meta em {
  color: #2fa6a3;
  font-style: normal;
  font-weight: 950;
}

.learning-session-card > button {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  border: 1px solid rgba(15, 47, 74, 0.12);
  border-radius: 50%;
  background: #ffffff;
  color: #0f2f4a;
  cursor: pointer;
  font-weight: 950;
}

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

.learning-progress-grid article {
  display: grid;
  gap: 4px;
  padding: 12px;
  border: 1px solid rgba(47, 166, 163, 0.18);
  border-radius: 8px;
  background: #f7fbfb;
}

.learning-progress-grid span {
  color: #52616d;
  font-size: 12px;
  font-weight: 850;
}

.learning-progress-grid strong {
  color: #0f2f4a;
  font-size: 20px;
}

.learning-message {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.06);
}

.learning-message.trainer {
  border-color: rgba(47, 166, 163, 0.22);
  background:
    radial-gradient(circle at 96% 0%, rgba(47, 166, 163, 0.1), transparent 32%),
    #ffffff;
}

.learning-message.feedback {
  border-color: rgba(47, 166, 163, 0.34);
  background: #f8fcfc;
}

.learning-message.learner {
  background: #0f2f4a;
  color: #ffffff;
}

.learning-message header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.learning-message header span {
  color: #2fa6a3;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.learning-message header small {
  color: #7a8a96;
}

.learning-message.learner header small,
.learning-message.learner p {
  color: rgba(255, 255, 255, 0.86);
}

.learning-message h4,
.learning-message p {
  margin: 0;
  line-height: 1.55;
}

.learning-term-card,
.learning-terms-summary,
.learning-question-box,
.learning-deepening,
.learning-feedback-list {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(15, 47, 74, 0.09);
  border-radius: 8px;
  background: #f7fbfb;
}

.learning-term-card strong,
.learning-question-box span,
.learning-feedback-list strong,
.learning-deepening strong {
  color: #0f2f4a;
}

.learning-term-card p,
.learning-term-card small,
.learning-term-card em,
.learning-deepening p {
  margin: 0;
  color: #52616d;
  line-height: 1.5;
}

.learning-term-card em {
  font-style: normal;
}

.learning-terms-summary {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  background: #f7fbfb;
}

.learning-terms-summary strong,
.learning-terms-summary p {
  margin: 0;
}

.learning-terms-summary strong {
  color: #0f2f4a;
}

.learning-terms-summary p {
  color: #52616d;
  line-height: 1.45;
}

.learning-question-box {
  background: linear-gradient(135deg, #0f2f4a, #2fa6a3);
  color: #ffffff;
}

.learning-question-box span,
.learning-question-box strong {
  color: #ffffff;
}

.learning-score-badge {
  justify-self: start;
  padding: 7px 11px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-weight: 950;
}

.learning-feedback-list ul {
  display: grid;
  gap: 5px;
  margin: 0;
  padding-left: 18px;
  color: #52616d;
}

.learning-answer-form {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: #0f2f4a;
}

.learning-answer-form > div {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.learning-answer-form small {
  max-width: 560px;
  color: rgba(255, 255, 255, 0.78);
  line-height: 1.45;
}

.learning-terms-modal {
  position: fixed;
  inset: 0;
  z-index: 1200;
  display: grid;
  place-items: center;
  padding: 22px;
  background: rgba(3, 14, 24, 0.58);
  backdrop-filter: blur(10px);
}

.learning-terms-modal.hidden {
  display: none;
}

.learning-terms-panel {
  width: min(920px, 96vw);
  max-height: min(760px, 90vh);
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  border: 1px solid rgba(47, 166, 163, 0.35);
  border-radius: 10px;
  background: #ffffff;
  box-shadow: 0 30px 70px rgba(0, 0, 0, 0.28);
}

.learning-terms-modal-body {
  display: grid;
  gap: 12px;
  overflow-y: auto;
  padding: 16px;
  scrollbar-color: #2fa6a3 #e9f8f7;
}

.learning-terms-card {
  display: grid;
  gap: 12px;
  padding: 15px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.08), transparent 34%),
    #ffffff;
  box-shadow: 0 12px 24px rgba(15, 47, 74, 0.07);
}

.learning-terms-card h3,
.learning-terms-card p {
  margin: 0;
}

.learning-terms-card h3 {
  color: #0f2f4a;
}

.learning-terms-card div {
  display: grid;
  gap: 5px;
  padding: 10px;
  border-radius: 8px;
  background: #f7fbfb;
}

.learning-terms-card span {
  color: #2fa6a3;
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.learning-terms-card p {
  color: #52616d;
  line-height: 1.55;
}

.learning-empty {
  display: grid;
  gap: 7px;
  padding: 18px;
  border: 1px dashed rgba(47, 166, 163, 0.35);
  border-radius: 8px;
  background: #ffffff;
  color: #0f2f4a;
}

.learning-empty h3,
.learning-empty p {
  margin: 0;
}

.learning-empty p {
  color: #52616d;
}

body.modal-stack-open {
  overflow: hidden;
}

.modal-stack-layer {
  position: fixed !important;
  inset: 0 !important;
  width: 100vw;
  height: 100vh;
  z-index: var(--modal-z-index, 1000) !important;
  display: grid !important;
  place-items: center;
  padding: clamp(14px, 2.4vw, 28px) !important;
  overflow: hidden;
  background: rgba(3, 14, 24, 0.58);
  backdrop-filter: blur(10px);
  isolation: isolate;
}

.modal-stack-layer.hidden {
  display: none !important;
  pointer-events: none !important;
}

.modal-stack-layer[data-modal-active="false"] {
  background: rgba(3, 14, 24, 0.34);
  pointer-events: none;
}

.modal-stack-layer[data-modal-active="false"] > * {
  filter: saturate(0.92) brightness(0.92);
}

.modal-stack-layer > :is(
  form,
  .package-limit-dialog,
  .contact-search-panel,
  .start-call-panel,
  .outreach-choice-panel,
  .apollo-credit-panel,
  .recent-search-panel,
  .content-modal-panel,
  .subject-panel,
  .api-key-reveal-panel,
  .contact-notes-panel,
  .contact-insight-panel,
  .intake-insight-panel,
  .contact-detail-panel,
  .candidate-modal-panel,
  .candidate-detail-panel,
  .candidate-notes-panel,
  .candidate-note-full-panel,
  .settings-panel,
  .profile-menu-panel,
  .email-section-modal-shell,
  .ai-sparren-project-panel,
  .learning-terms-panel
) {
  max-width: min(1180px, calc(100vw - 32px));
  max-height: min(920px, calc(100vh - 32px));
  overscroll-behavior: contain;
}

.modal-stack-layer > :is(.start-call-panel) {
  max-width: min(1320px, calc(100vw - 32px));
}

.modal-stack-layer > :is(.outreach-choice-panel, .apollo-credit-panel, .settings-panel, .package-limit-dialog) {
  max-width: min(620px, calc(100vw - 32px));
}

.modal-stack-layer > :is(.user-editor-panel form, .user-company-modal form) {
  max-height: min(920px, calc(100vh - 32px));
}

.stable-select-portal {
  z-index: 13000;
}

.toast {
  z-index: 12000;
}

@media (max-width: 1100px) {
  .learning-workbench,
  .learning-config-grid {
    grid-template-columns: 1fr;
  }

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

  .learning-terms-summary {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 720px) {
  .learning-hero,
  .learning-config-head,
  .learning-training-head,
  .learning-answer-form > div {
    align-items: stretch;
    flex-direction: column;
  }

  .learning-progress-grid {
    grid-template-columns: 1fr;
  }

  .personalization-head {
    flex-direction: column;
  }

  .theme-field-grid,
  .theme-style-grid {
    grid-template-columns: 1fr;
  }

  .personalization-actions > * {
    width: 100%;
  }
}

/* Full-platform polish guardrails: keeps demo and production screens tidy. */
html,
body {
  max-width: 100%;
  overflow-x: hidden;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

.project-home,
.app,
.home-layout,
.home-module,
.workspace,
.pitch-route-grid,
.pitch-builder-form,
.settings-page,
.logbook-page,
.users-admin-page,
.dashboard-shell,
.project-shell,
.match-project-shell,
.manual-search-shell,
.contactdb-shell,
.intake-overview-shell,
.candidate-crm-shell,
.ai-sparren-shell,
.learning-shell,
.mail-shell,
.calllist-shell,
.tasks-shell,
.licensecheck-shell,
.requests-shell,
.templates-shell,
.vacancies-shell,
.invoices-shell,
.documents-shell,
.timeline-shell {
  min-width: 0;
  max-width: 100%;
}

.home-module :where(section, article, header, footer, aside, div, form, fieldset, label),
.app :where(section, article, header, footer, aside, div, form, fieldset, label),
.profile-menu :where(section, article, header, div, form, label),
.learning-terms-modal :where(section, article, header, div, form, label) {
  min-width: 0;
}

.home-module :where(h1, h2, h3, h4, h5, p, span, strong, small, em, label, li, dd, dt, td, th),
.app :where(h1, h2, h3, h4, h5, p, span, strong, small, em, label, li, dd, dt, td, th),
.profile-menu :where(h1, h2, h3, h4, p, span, strong, small),
.learning-terms-modal :where(h1, h2, h3, h4, p, span, strong, small) {
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-module :where(input, select, textarea, .stable-select, .stable-select-button),
.app :where(input, select, textarea, .stable-select, .stable-select-button),
.profile-menu :where(input, select, textarea, .stable-select, .stable-select-button),
.learning-terms-modal :where(input, select, textarea, .stable-select, .stable-select-button) {
  max-width: 100%;
  min-width: 0;
}

.home-module :where(textarea),
.app :where(textarea) {
  resize: vertical;
}

.app .company-relevance-search-card :where(input, textarea) {
  color: #0f2f4a;
  -webkit-text-fill-color: #0f2f4a;
}

.app .company-relevance-search-card :where(input::placeholder, textarea::placeholder) {
  color: #7d8b98;
  -webkit-text-fill-color: #7d8b98;
}

.company-relevance-search-card input,
.company-relevance-search-card textarea {
  color: #0f2f4a;
  -webkit-text-fill-color: #0f2f4a;
}

.company-relevance-search-card input::placeholder,
.company-relevance-search-card textarea::placeholder {
  color: #7d8b98;
  -webkit-text-fill-color: #7d8b98;
}

.home-module :where(.primary-button, .secondary-button, .ghost-button, .compact-button),
.app :where(.primary-button, .secondary-button, .ghost-button, .compact-button),
.profile-menu :where(.primary-button, .secondary-button, .ghost-button, .compact-button),
.learning-terms-modal :where(.primary-button, .secondary-button, .ghost-button, .compact-button) {
  max-width: 100%;
  min-width: max-content;
  line-height: 1.18;
  text-align: center;
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

.home-module :where(.primary-button, .secondary-button, .ghost-button, .compact-button):not(.icon-button),
.app :where(.primary-button, .secondary-button, .ghost-button, .compact-button):not(.icon-button) {
  flex-shrink: 0;
  white-space: nowrap;
}

#candidate360Module :is(.candidate-360-actions, .candidate-360-item, .candidate-360-group-footer, .candidate-360-history-row) :is(.primary-button, .secondary-button, .compact-button):not(:disabled) {
  border-color: rgba(47, 166, 163, 0.48) !important;
  background: linear-gradient(135deg, #082942 0%, #0f4560 58%, #168f8d 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  box-shadow: 0 10px 22px rgba(15, 47, 74, 0.22) !important;
  opacity: 1 !important;
  text-shadow: none !important;
}

#candidate360Module :is(.candidate-360-actions, .candidate-360-item, .candidate-360-group-footer, .candidate-360-history-row) :is(.primary-button, .secondary-button, .compact-button):not(:disabled):hover,
#candidate360Module :is(.candidate-360-actions, .candidate-360-item, .candidate-360-group-footer, .candidate-360-history-row) :is(.primary-button, .secondary-button, .compact-button):not(:disabled):focus-visible {
  border-color: rgba(47, 166, 163, 0.72) !important;
  background: linear-gradient(135deg, #0f4560 0%, #2fa6a3 100%) !important;
  color: #ffffff !important;
  -webkit-text-fill-color: #ffffff !important;
  transform: translateY(-1px);
}

#candidate360Module :is(.candidate-360-actions, .candidate-360-item, .candidate-360-group-footer, .candidate-360-history-row) :is(.primary-button, .secondary-button, .compact-button):disabled {
  border-color: rgba(148, 163, 184, 0.36) !important;
  background: #eef3f5 !important;
  color: #64748b !important;
  -webkit-text-fill-color: #64748b !important;
  box-shadow: none !important;
  opacity: 1 !important;
  cursor: not-allowed;
  text-shadow: none !important;
}

.home-module :where(.icon-button),
.app :where(.icon-button),
.profile-button,
.app-back-button {
  flex: 0 0 auto;
}

.home-module :where(button) :where(span, strong, small, em),
.app :where(button) :where(span, strong, small, em),
.profile-menu :where(button) :where(span, strong, small, em) {
  overflow-wrap: normal;
  word-break: keep-all;
}

.home-module :where(
  .content-modal-actions,
  .modal-header-actions,
  .inline-actions,
  .dashboard-hero-actions,
  .dashboard-important-actions,
  .search-project-head-actions,
  .match-project-actions,
  .intake-actions,
  .relevance-actions,
  .candidate-crm-actions,
  .mail-actions,
  .calllist-actions,
  .tasks-actions,
  .licensecheck-hero-actions,
  .requests-hero-actions,
  .vacancies-hero-actions,
  .vacancy-detail-actions,
  .invoices-hero-actions,
  .invoice-detail-actions,
  .documents-hero-actions,
  .timeline-hero-actions,
  .learning-hero-actions,
  .learning-training-actions,
  .profile-form-actions,
  .users-admin-actions
),
.app :where(.content-modal-actions, .modal-header-actions, .inline-actions, .profile-form-actions) {
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
}

.home-module :where(.content-modal-actions, .modal-header-actions, .inline-actions) > *,
.app :where(.content-modal-actions, .modal-header-actions, .inline-actions) > * {
  max-width: 100%;
}

.home-module :where(
  .dashboard-panel,
  .project-card,
  .search-project-card,
  .manual-search-panel,
  .contact-company-card,
  .contact-person-card,
  .intake-card,
  .relevance-card,
  .candidate-card,
  .ai-sparren-card,
  .mail-card,
  .calllist-card,
  .task-card,
  .licensecheck-card,
  .request-card,
  .vacancy-card,
  .invoice-card,
  .document-card-main,
  .timeline-card,
  .learning-session-card,
  .learning-message,
  .profile-section-card,
  .users-list-panel,
  .user-card,
  .user-company-card
) {
  min-width: 0;
  max-width: 100%;
  overflow-wrap: anywhere;
}

.home-module :where(
  .dashboard-panel-head,
  .licensecheck-section-head,
  .requests-company-group > header,
  .documents-company-group > header,
  .timeline-day-group > header,
  .vacancy-detail-head,
  .invoice-detail-head,
  .user-editor-head,
  .profile-section-head,
  .learning-config-head,
  .learning-panel-head,
  .learning-training-head
) {
  gap: 14px;
}

.home-module :where(
  .dashboard-panel-head,
  .licensecheck-section-head,
  .requests-company-group > header,
  .documents-company-group > header,
  .timeline-day-group > header,
  .vacancy-detail-head,
  .invoice-detail-head,
  .user-editor-head,
  .profile-section-head,
  .learning-config-head,
  .learning-panel-head,
  .learning-training-head
) > * {
  min-width: 0;
}

.home-module :where([class*="-grid"], [class*="-row"], [class*="-list"], [class*="-output"]),
.app :where([class*="-grid"], [class*="-row"], [class*="-list"], [class*="-output"]) {
  min-width: 0;
}

.contact-search-panel,
.start-call-panel,
.outreach-choice-panel,
.apollo-credit-panel,
.recent-search-panel,
.content-modal-panel,
.subject-panel,
.api-key-reveal-panel,
.contact-notes-panel,
.contact-insight-panel,
.intake-insight-panel,
.contact-detail-panel,
.candidate-modal-panel,
.candidate-detail-panel,
.candidate-notes-panel,
.candidate-note-full-panel,
.settings-panel,
.profile-menu-panel,
.license-request-panel,
.task-form-panel,
.task-detail-panel,
.document-detail-panel,
.timeline-event-panel,
.mail-history-modal-panel,
.mail-detail-panel,
.ai-sparren-project-panel,
.learning-terms-panel,
.confirm-delete-panel {
  max-width: calc(100vw - 32px);
  max-height: min(90vh, 860px);
  overscroll-behavior: contain;
}

.contact-search-panel,
.start-call-panel,
.recent-search-panel,
.content-modal-panel,
.subject-panel,
.contact-notes-panel,
.contact-insight-panel,
.intake-insight-panel,
.contact-detail-panel,
.candidate-modal-panel,
.candidate-detail-panel,
.candidate-notes-panel,
.candidate-note-full-panel,
.settings-panel,
.license-request-panel,
.task-form-panel,
.task-detail-panel,
.document-detail-panel,
.timeline-event-panel,
.mail-history-modal-panel,
.mail-detail-panel,
.ai-sparren-project-panel,
.learning-terms-panel {
  scrollbar-gutter: auto;
}

.modal-header,
.profile-menu-header {
  min-width: 0;
}

.modal-header > div,
.profile-menu-header > div {
  min-width: 0;
}

.modal-header h2,
.modal-header p,
.profile-menu-header h2,
.profile-menu-header p {
  overflow-wrap: anywhere;
}

.content-modal-body,
.subject-modal-body,
.recent-search-modal-content,
.contact-notes-content,
.contact-insight-content,
.contact-detail-content,
.candidate-detail-content,
.candidate-notes-content,
.candidate-note-full-content,
.intake-insight-content,
.api-key-reveal-content,
.settings-content,
.learning-terms-modal-body {
  min-width: 0;
  max-width: 100%;
}

.stable-select-portal {
  max-width: calc(100vw - 20px);
}

.stable-select-portal button {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
}

/* Global XRI modal hardening: premium shell, controlled scrolling and form spacing. */
:is(
  .modal-stack-layer,
  .content-modal,
  .candidate-modal,
  .employee-management-modal,
  .email-section-modal,
  .theme-settings-modal,
  .user-editor-panel,
  .user-company-modal,
  .contact-search-modal,
  .recent-search-modal,
  .subject-modal,
  .api-key-reveal-modal,
  .contact-notes-modal,
  .contact-insight-modal,
  .intake-insight-modal,
  .contact-detail-modal,
  .candidate-detail-modal,
  .candidate-notes-modal,
  .candidate-note-full-modal,
  .settings-modal,
  .ai-sparren-project-modal,
  .learning-terms-modal
) > :is(
  form,
  .content-modal-panel,
  .candidate-modal-panel,
  .candidate-detail-panel,
  .candidate-notes-panel,
  .candidate-note-full-panel,
  .contact-search-panel,
  .recent-search-panel,
  .contact-notes-panel,
  .contact-insight-panel,
  .intake-insight-panel,
  .contact-detail-panel,
  .subject-panel,
  .api-key-reveal-panel,
  .mail-history-modal-panel,
  .mail-detail-panel,
  .task-form-panel,
  .task-detail-panel,
  .document-form-panel,
  .document-detail-panel,
  .timeline-event-panel,
  .email-section-modal-shell,
  .theme-settings-modal-shell,
  .employee-management-shell,
  .timeline-cleanup-panel,
  .ai-sparren-project-panel,
  .learning-terms-panel,
  .confirm-delete-panel
) {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(5, 20, 32, 0.32);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 860px);
  min-height: 0;
  overflow: hidden;
}

:is(
  .package-limit-modal,
  .extra-info-modal,
  .who-info-modal,
  .start-call-modal,
  .outreach-choice-modal,
  .apollo-credit-modal,
  .settings-modal,
  .profile-menu
) > :is(
  .package-limit-dialog,
  .extra-info-modal-panel,
  .who-info-panel,
  .start-call-panel,
  .outreach-choice-panel,
  .apollo-credit-panel,
  .settings-panel,
  .profile-menu-panel
) {
  background: #ffffff;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 16px;
  box-shadow: 0 28px 90px rgba(5, 20, 32, 0.32);
  display: flex;
  flex-direction: column;
  max-height: min(90vh, 860px);
  min-height: 0;
  overflow: hidden;
  scrollbar-gutter: auto;
}

:is(.modal-stack-layer, .user-editor-panel, .user-company-modal) > :is(.user-editor-panel form, .user-company-modal form, form) {
  background: #ffffff;
  overflow-x: hidden;
  overflow-y: auto;
}

:is(
  .modal-stack-layer,
  .content-modal,
  .candidate-modal,
  .employee-management-modal,
  .email-section-modal,
  .theme-settings-modal,
  .user-editor-panel,
  .user-company-modal,
  .contact-search-modal,
  .recent-search-modal,
  .subject-modal,
  .api-key-reveal-modal,
  .contact-notes-modal,
  .contact-insight-modal,
  .intake-insight-modal,
  .contact-detail-modal,
  .candidate-detail-modal,
  .candidate-notes-modal,
  .candidate-note-full-modal,
  .settings-modal,
  .ai-sparren-project-modal,
  .learning-terms-modal
) :is(.modal-header, .email-section-modal-head, .theme-settings-modal-head, .employee-management-head.modal-head, .user-editor-head) {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 166, 163, 0.42), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #2fa6a3 140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: 0 0 auto;
  padding: clamp(1rem, 2vw, 1.35rem);
}

:is(.who-info-modal) .who-info-header {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 166, 163, 0.42), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #2fa6a3 140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: 0 0 auto;
  padding: clamp(1rem, 2vw, 1.35rem);
}

:is(.who-info-modal) :is(.who-info-header h2, .who-info-header p, .who-info-header .eyebrow) {
  color: #ffffff;
}

:is(.extra-info-modal, .start-call-modal, .outreach-choice-modal, .apollo-credit-modal, .settings-modal) .modal-header {
  background:
    radial-gradient(circle at 88% 12%, rgba(47, 166, 163, 0.42), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #143a58 58%, #2fa6a3 140%);
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  color: #ffffff;
  flex: 0 0 auto;
  padding: clamp(1rem, 2vw, 1.35rem);
}

:is(.extra-info-modal, .start-call-modal, .outreach-choice-modal, .apollo-credit-modal, .settings-modal) :is(.modal-header h2, .modal-header p, .modal-header .eyebrow) {
  color: #ffffff;
}

:is(.package-limit-modal) .package-limit-dialog > .modal-close {
  align-items: center;
  background: rgba(15, 47, 74, 0.12);
  border: 1px solid rgba(15, 47, 74, 0.18);
  border-radius: 999px;
  color: #0f2f4a;
  cursor: pointer;
  display: inline-grid;
  height: 2.25rem;
  place-items: center;
  width: 2.25rem;
}

:is(.package-limit-modal) .package-limit-dialog > .modal-close:hover {
  background: rgba(47, 166, 163, 0.18);
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header, .email-section-modal-head, .theme-settings-modal-head, .employee-management-head.modal-head) {
  border-radius: 0;
  position: relative;
  top: auto;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header h2, .modal-header h3, .modal-header p, .modal-header .eyebrow, .email-section-modal-head h3, .email-section-modal-head p, .theme-settings-modal-head h3, .theme-settings-modal-head p, .employee-management-head h2, .employee-management-head h3, .employee-management-head p, .user-editor-head h3, .user-editor-head p, .user-editor-head .eyebrow) {
  color: #ffffff;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header h2, .email-section-modal-head h3, .theme-settings-modal-head h3, .employee-management-head h2, .employee-management-head h3, .user-editor-head h3) {
  letter-spacing: 0;
  line-height: 1.16;
  margin: 0;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header p:not(.eyebrow), .email-section-modal-head p:not(.eyebrow), .theme-settings-modal-head p:not(.eyebrow), .employee-management-head p, .user-editor-head p:not(.eyebrow)) {
  color: rgba(255, 255, 255, 0.84);
  line-height: 1.45;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header .secondary-button, .modal-header .icon-button, .email-section-modal-head .icon-button, .theme-settings-modal-head .icon-button, .employee-management-head .secondary-button, .user-editor-head .secondary-button) {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  color: #ffffff;
  box-shadow: 0 10px 22px rgba(0, 0, 0, 0.12);
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header .secondary-button, .modal-header .icon-button, .modal-header .modal-close, .email-section-modal-head .icon-button, .theme-settings-modal-head .icon-button, .employee-management-head .secondary-button, .user-editor-head .secondary-button):hover {
  background: rgba(47, 166, 163, 0.34);
  color: #ffffff;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) .modal-header .modal-close {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  color: #ffffff;
  cursor: pointer;
  display: inline-grid;
  flex: 0 0 auto;
  font-weight: 900;
  height: 2.25rem;
  place-items: center;
  width: 2.25rem;
}

:is(
  .modal-stack-layer,
  .content-modal,
  .candidate-modal,
  .employee-management-modal,
  .email-section-modal,
  .theme-settings-modal,
  .user-editor-panel,
  .user-company-modal,
  .contact-search-modal,
  .recent-search-modal,
  .subject-modal,
  .api-key-reveal-modal,
  .contact-notes-modal,
  .contact-insight-modal,
  .intake-insight-modal,
  .contact-detail-modal,
  .candidate-detail-modal,
  .candidate-notes-modal,
  .candidate-note-full-modal,
  .settings-modal,
  .ai-sparren-project-modal,
  .learning-terms-modal
) :is(
  .content-modal-body,
  .extra-info-modal-content,
  .who-info-content,
  .guided-call-layout,
  .apollo-credit-content,
  .recent-search-modal-content,
  .subject-modal-body,
  .contact-search-content,
  .contact-notes-content,
  .contact-insight-content,
  .intake-insight-content,
  .contact-detail-content,
  .candidate-detail-content,
  .candidate-notes-content,
  .candidate-note-full-content,
  .mail-history-modal-list,
  .email-section-modal-body,
  .theme-settings-modal-body,
  .employee-management-grid,
  .learning-terms-modal-body,
  .settings-content
) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  scrollbar-gutter: auto;
}

:is(.start-call-modal, .outreach-choice-modal, .apollo-credit-modal) :is(.guided-call-layout, .apollo-credit-content, .choice-actions) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  scrollbar-gutter: auto;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.timeline-note-form, .document-form, .document-verification-form, .calllist-form, .task-form, .manual-contact-form, .candidate-form, .ai-mail-form) {
  flex: 1 1 auto;
  min-height: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: clamp(1rem, 2vw, 1.35rem);
  scrollbar-gutter: auto;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.content-modal-actions, .email-section-modal-actions, .theme-settings-modal-actions, .employee-management-form .profile-form-actions, .employee-management-form .content-modal-actions, .user-editor-panel .profile-form-actions, .user-company-modal .profile-form-actions) {
  background: #ffffff;
  border-top: 1px solid rgba(15, 47, 74, 0.1);
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-top: 0;
  padding: 0.9rem clamp(1rem, 2vw, 1.35rem) clamp(1rem, 2vw, 1.35rem);
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(label) {
  min-width: 0;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(input, select, textarea) {
  max-width: 100%;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.timeline-note-form, .document-form, .document-verification-form) {
  gap: 0.9rem;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.timeline-note-form label, .document-form label, .document-verification-form label, .employee-management-form label, .profile-form-grid label) {
  display: grid;
  gap: 0.35rem;
  min-width: 0;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) .timeline-note-form textarea {
  min-height: 8.5rem;
  resize: vertical;
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.timeline-note-panel, .document-form-panel, .calllist-form-panel, .task-form-panel, .candidate-modal-panel, .manual-contact-panel, .timeline-cleanup-panel) {
  width: min(960px, calc(100vw - 32px));
}

:is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.mail-history-modal-panel, .mail-detail-panel, .document-detail-panel, .timeline-event-panel, .employee-management-shell) {
  width: min(1120px, calc(100vw - 32px));
}

:is(.modal-stack-layer, .employee-management-modal) > .employee-management-shell {
  padding: 0;
}

:is(.modal-stack-layer, .employee-management-modal) .employee-management-grid {
  background: #f4f8f9;
  gap: 1rem;
}

@media (max-width: 720px) {
  :is(
    .modal-stack-layer,
    .content-modal,
    .candidate-modal,
    .employee-management-modal,
    .email-section-modal,
    .theme-settings-modal,
    .user-editor-panel,
    .user-company-modal,
    .contact-search-modal,
    .recent-search-modal,
    .subject-modal,
    .api-key-reveal-modal,
    .contact-notes-modal,
    .contact-insight-modal,
    .intake-insight-modal,
    .contact-detail-modal,
    .candidate-detail-modal,
    .candidate-notes-modal,
    .candidate-note-full-modal,
    .settings-modal,
    .ai-sparren-project-modal,
    .learning-terms-modal
  ) {
    padding: 10px !important;
  }

  :is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.timeline-note-form, .document-form, .document-verification-form) {
    grid-template-columns: 1fr;
  }

  :is(.modal-stack-layer, .content-modal, .candidate-modal, .employee-management-modal, .email-section-modal, .theme-settings-modal, .user-editor-panel, .user-company-modal, .contact-search-modal, .recent-search-modal, .subject-modal, .api-key-reveal-modal, .contact-notes-modal, .contact-insight-modal, .intake-insight-modal, .contact-detail-modal, .candidate-detail-modal, .candidate-notes-modal, .candidate-note-full-modal, .settings-modal, .ai-sparren-project-modal, .learning-terms-modal) :is(.modal-header, .email-section-modal-head, .theme-settings-modal-head, .employee-management-head.modal-head) {
    gap: 0.75rem;
  }
}

.home-module :where(
  .mini-button,
  .settings-nav,
  .logbook-nav,
  .dashboard-filter,
  .dashboard-important-more,
  .stable-select-button,
  .learning-combobox-toggle,
  .learning-preset-row button,
  .vacancy-output-tabs button,
  .candidate-detail-tabs button,
  .answer-button,
  .upload-button,
  .candidate-route-parse-button,
  .contact-list-add-button,
  .call-add-button
),
.app :where(
  .mini-button,
  .settings-nav,
  .logbook-nav,
  .dashboard-filter,
  .dashboard-important-more,
  .stable-select-button,
  .learning-combobox-toggle,
  .learning-preset-row button,
  .vacancy-output-tabs button,
  .candidate-detail-tabs button,
  .answer-button,
  .upload-button,
  .candidate-route-parse-button,
  .contact-list-add-button,
  .call-add-button
) {
  overflow-wrap: normal;
  word-break: keep-all;
  white-space: nowrap;
  flex-shrink: 0;
}

.home-module .manual-result-card .enrich-actions,
.app .manual-result-card .enrich-actions {
  align-items: stretch;
}

.home-module .manual-result-card .mini-button,
.app .manual-result-card .mini-button {
  flex: 1 1 100%;
  min-width: 0;
  max-width: 100%;
  justify-content: center;
  overflow-wrap: anywhere;
  text-align: center;
  white-space: normal;
}

@media (max-width: 1180px) {
  .dashboard-personal-layout,
  .dashboard-grid-middle,
  .dashboard-ai-command-grid,
  .dashboard-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-personal-layout > .dashboard-widget-size-small,
  .dashboard-personal-layout > .dashboard-widget-size-normal {
    grid-column: span 1;
  }

  .dashboard-personal-layout > .dashboard-widget-size-wide,
  .dashboard-personal-layout > .dashboard-widget-size-full {
    grid-column: 1 / -1;
  }

  .dashboard-personal-layout > .dashboard-momentum-card.dashboard-widget-size-full {
    grid-template-columns: minmax(0, 1fr);
  }

  .dashboard-wide-panel {
    grid-row: auto;
  }
}

@media (max-width: 720px) {
  .dashboard-settings-head {
    flex-direction: column;
  }

  .dashboard-settings-actions,
  .dashboard-settings-actions > * {
    width: 100%;
  }

  .dashboard-personal-layout,
  .dashboard-settings-preview {
    grid-template-columns: 1fr;
  }

  .dashboard-personal-layout > .dashboard-widget-size-small,
  .dashboard-personal-layout > .dashboard-widget-size-normal,
  .dashboard-personal-layout > .dashboard-widget-size-wide,
  .dashboard-personal-layout > .dashboard-widget-size-full,
  .dashboard-preview-widget-small,
  .dashboard-preview-widget-normal,
  .dashboard-preview-widget-wide,
  .dashboard-preview-widget-full {
    grid-column: 1 / -1;
  }
}

@media (min-width: 761px) and (max-width: 1180px) {
  .topbar {
    align-items: stretch;
    flex-wrap: wrap;
    gap: 12px;
    padding: 10px 14px;
  }

  .brand,
  .brand-title-row {
    flex: 1 1 520px;
    min-width: 0;
  }

  .workspace-identity {
    width: auto;
    max-width: min(520px, 62vw);
  }

  .language-switcher {
    flex: 0 1 auto;
    max-width: 100%;
    overflow-x: auto;
  }

  .platform-owner .home-layout,
  .home-layout {
    grid-template-columns: minmax(0, 1fr);
    grid-auto-rows: min-content;
    align-items: start;
    align-content: start;
    gap: 14px;
    max-width: 100%;
    padding: 14px;
  }

  .home-module,
  .platform-owner-sidebar,
  .module-sidebar {
    grid-column: 1;
    grid-row: auto;
  }

  .module-sidebar,
  .platform-owner-sidebar {
    position: static;
    top: auto;
    grid-row: auto;
    display: flex;
    flex-wrap: wrap;
    align-items: stretch;
    gap: 10px;
    width: 100%;
    max-width: 100%;
    max-height: none;
    overflow: visible;
    padding: 12px;
    border-radius: 14px;
  }

  .module-sidebar {
    order: -2;
    grid-row: 1;
  }

  .platform-owner-sidebar {
    order: 1;
    grid-row: 3;
  }

  .module-nav-group {
    flex: 1 1 210px;
    min-width: 180px;
    max-width: none;
  }

  .platform-owner-eyebrow {
    flex: 1 0 100%;
  }

  .platform-owner-nav {
    flex: 1 1 170px;
    min-width: 158px;
  }

  .module-flyout {
    position: static;
    width: 100%;
    max-width: 100%;
    max-height: min(440px, 52vh);
    margin-top: 8px;
    overflow: auto;
    transform: none;
  }

  .module-nav-group.open > .module-flyout {
    display: grid;
  }

  .home-module {
    width: 100%;
    margin-top: 0;
  }

  .home-module.active {
    grid-row: 2;
  }

  .platform-owner .home-module.active {
    grid-row: 2;
  }

  .dashboard-hero,
  .licensecheck-hero,
  .requests-hero,
  .vacancies-hero,
  .invoices-hero,
  .documents-hero,
  .timeline-hero,
  .learning-hero,
  .users-admin-header,
  .profile-hero,
  .strategist-hero {
    padding: 16px;
  }

  .dashboard-momentum-card {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .dashboard-momentum-actions {
    flex-flow: row wrap;
    justify-content: flex-start;
  }

  .workspace,
  .match-layout,
  .intake-layout,
  .relevance-layout,
  .mail-layout,
  .settings-page,
  .logbook-page,
  .users-admin-grid,
  .contactdb-shell,
  .employee-shell,
  .employee-chat-company-layout,
  .employee-request-layout,
  .employee-management-layout,
  .employee-management-grid,
  .invoice-workspace-grid,
  .document-detail-grid,
  .timeline-detail-grid,
  .vacancy-output-grid,
  .pitch-route-grid,
  .pitch-builder-form,
  .project-create {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-sidebar {
    position: static;
    display: flex;
    flex-wrap: wrap;
    overflow: visible;
  }

  .employee-nav {
    flex: 1 1 150px;
    min-width: 140px;
    text-align: center;
    white-space: normal;
  }

  .employee-request-calendar {
    position: static;
  }

  .employee-chat-form,
  .employee-chat-form.employer,
  .employee-request-actions {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .candidate-form-grid,
  .candidate-detail-grid,
  .candidate-info-grid,
  .candidate-upload-grid,
  .vacancy-form-grid,
  .invoice-form-grid,
  .documents-filter-bar,
  .requests-filter-bar,
  .logbook-filters,
  .users-filter-row,
  .contactdb-filters,
  .candidate-relevance-filter-row,
  .intake-filter-row,
  .overview-filter-bar,
  .search-project-filter-row,
  .employee-form-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .content-modal-actions,
  .modal-header-actions,
  .profile-form-actions,
  .dashboard-hero-actions,
  .requests-hero-actions,
  .vacancies-hero-actions,
  .documents-hero-actions,
  .timeline-hero-actions,
  .learning-hero-actions,
  .strategist-hero-actions,
  .users-admin-actions {
    justify-content: flex-start;
  }

  .home-module :where(.match-table-card, .score-table, .pricing-table-wrap, .requests-output, .documents-output, .logbook-main, .users-list-panel),
  .public-site :where(.pricing-table-wrap) {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .modal-stack-layer,
  .content-modal,
  .candidate-modal,
  .candidate-detail-modal,
  .candidate-notes-modal,
  .candidate-note-full-modal,
  .settings-modal,
  .contact-detail-modal,
  .contact-insight-modal,
  .intake-insight-modal,
  .subject-modal,
  .recent-search-modal,
  .learning-terms-modal,
  .employee-management-modal {
    align-items: flex-start;
    place-items: start center;
    padding: 16px;
    overflow-y: auto;
  }

  .modal-stack-layer > *,
  .content-modal-panel,
  .candidate-modal-panel,
  .candidate-detail-panel,
  .candidate-notes-panel,
  .candidate-note-full-panel,
  .settings-panel,
  .contact-detail-panel,
  .contact-insight-panel,
  .intake-insight-panel,
  .subject-panel,
  .recent-search-panel,
  .learning-terms-panel,
  .employee-management-shell {
    width: min(100%, calc(100vw - 32px));
    max-height: calc(100dvh - 32px);
    overflow: auto;
  }

  .public-quick-grid,
  .public-feature-grid,
  .public-integration-grid,
  .public-intelligence-grid,
  .public-workflow-grid,
  .public-module-grid,
  .guide-faq-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .public-contact-page-grid,
  .feature-page-intro,
  .feature-browser,
  .feature-detail-grid,
  .feature-workflow-deep,
  .feature-category-layout,
  .feature-category-section.is-reversed .feature-category-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .feature-category-heading,
  .feature-category-nav,
  .feature-category-panel,
  .feature-category-section.is-reversed .feature-category-heading,
  .feature-category-section.is-reversed .feature-category-nav,
  .feature-category-section.is-reversed .feature-category-panel {
    grid-column: auto;
  }

  .public-section,
  .feature-page-intro,
  .feature-browser,
  .feature-detail-grid,
  .feature-workflow-deep {
    padding-inline: 18px;
  }
}

@media (max-width: 820px) {
  .home-module :where(
    .dashboard-hero,
    .licensecheck-hero,
    .requests-hero,
    .vacancies-hero,
    .invoices-hero,
    .documents-hero,
    .timeline-hero,
    .learning-hero,
    .users-admin-header,
    .profile-hero
  ) {
    align-items: stretch;
    flex-direction: column;
  }

  .home-module :where(
    .dashboard-hero-actions,
    .licensecheck-hero-actions,
    .requests-hero-actions,
    .vacancies-hero-actions,
    .invoices-hero-actions,
    .documents-hero-actions,
    .timeline-hero-actions,
    .learning-hero-actions,
    .strategist-hero-actions,
    .users-admin-actions
  ) {
    justify-content: flex-start;
  }

  .home-module :where(
    .dashboard-hero-actions,
    .licensecheck-hero-actions,
    .requests-hero-actions,
    .vacancies-hero-actions,
    .invoices-hero-actions,
    .documents-hero-actions,
    .timeline-hero-actions,
    .learning-hero-actions,
    .strategist-hero-actions,
    .users-admin-actions
  ) > button {
    flex: 1 1 180px;
  }

  .dashboard-grid-middle,
  .dashboard-ai-command-grid,
  .dashboard-grid-bottom {
    grid-template-columns: 1fr;
  }

  .dashboard-ai-panel-opportunities,
  .dashboard-ai-panel-actions,
  .dashboard-ai-panel-strategist {
    grid-column: auto;
  }

  .dashboard-ai-panel-opportunities .dashboard-list,
  .dashboard-ai-panel-actions .dashboard-list,
  .dashboard-ai-panel-strategist .dashboard-list {
    grid-template-columns: 1fr;
  }

  .modal-header,
  .profile-menu-header {
    align-items: stretch;
    flex-direction: column;
  }

  .modal-header-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .contact-search-modal,
  .start-call-modal,
  .outreach-choice-modal,
  .apollo-credit-modal,
  .recent-search-modal,
  .content-modal,
  .subject-modal,
  .api-key-reveal-modal,
  .contact-notes-modal,
  .contact-insight-modal,
  .intake-insight-modal,
  .contact-detail-modal,
  .candidate-modal,
  .candidate-detail-modal,
  .candidate-notes-modal,
  .candidate-note-full-modal,
  .settings-modal,
  .profile-menu,
  .learning-terms-modal {
    padding: 12px;
  }

  .content-modal-actions,
  .modal-header-actions,
  .profile-form-actions {
    justify-content: stretch;
  }

  .content-modal-actions > button,
  .modal-header-actions > button,
  .profile-form-actions > button,
  .home-module :where(.primary-button, .secondary-button, .ghost-button).compact-button {
    flex: 1 1 100%;
  }
}

@media (max-width: 900px) {
  .devices-section-grid {
    grid-template-columns: 1fr;
  }

  .devices-modal-grid,
  .devices-modal-summary {
    grid-template-columns: 1fr;
  }

  .devices-overview-card {
    align-items: stretch;
    flex-direction: column;
  }

  .devices-settings-head {
    flex-direction: column;
  }

  .devices-settings-actions {
    justify-content: flex-start;
    width: 100%;
  }
}

@media (max-width: 560px) {
  .device-session-card header {
    flex-direction: column;
  }

  .device-session-card dl {
    grid-template-columns: 1fr;
  }

  .device-card-actions > button,
  .devices-settings-actions > button,
  .devices-overview-card > button {
    flex: 1 1 100%;
  }

  .devices-all-modal-panel {
    width: 100%;
    max-height: calc(100vh - 24px);
  }
}

/* Bedrijfsrelevantie mainpage polish: keep after generic app controls. */
.company-relevance-shell {
  gap: 22px;
}

.company-relevance-layout {
  grid-template-columns: minmax(360px, 470px) minmax(0, 1fr);
  gap: 22px;
}

.relevance-input-card.company-relevance-search-card {
  position: relative;
  overflow: hidden;
  padding: 24px;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: var(--radius);
  background:
    radial-gradient(circle at 86% 9%, rgba(95, 226, 218, 0.26), transparent 34%),
    linear-gradient(150deg, #0a2a43 0%, #0f5870 58%, #128d8b 118%);
  box-shadow:
    0 28px 62px rgba(15, 47, 74, 0.22),
    inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.relevance-input-card.company-relevance-search-card::after {
  content: "";
  position: absolute;
  inset: auto 0 -48px 30%;
  height: 150px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  filter: blur(2px);
  pointer-events: none;
}

.company-relevance-search-card > * {
  position: relative;
  z-index: 1;
}

.company-relevance-search-card .block-heading {
  align-items: center;
  margin-bottom: 12px;
}

.company-relevance-search-card .block-heading h2,
.company-relevance-search-card label,
.company-relevance-search-card .muted-line {
  color: #ffffff;
}

.company-relevance-search-card .block-heading .step {
  border: 1px solid rgba(255, 255, 255, 0.34);
  background: rgba(255, 255, 255, 0.13);
  color: #ffffff;
}

.company-relevance-search-card form {
  gap: 16px;
}

.company-relevance-search-card input,
.company-relevance-search-card textarea {
  border: 1px solid rgba(255, 255, 255, 0.76);
  background: #ffffff;
  color: #0f2f4a;
  -webkit-text-fill-color: #0f2f4a;
  box-shadow: 0 12px 26px rgba(6, 26, 42, 0.15);
}

.company-relevance-search-card input::placeholder,
.company-relevance-search-card textarea::placeholder {
  color: #7d8b98;
  -webkit-text-fill-color: #7d8b98;
}

.company-relevance-search-card .sticky-actions {
  position: static;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, auto);
  gap: 16px;
  align-items: center;
  margin-top: 2px;
  padding: 0;
  border: 0;
  background: transparent;
  backdrop-filter: none;
}

.company-relevance-search-card .sticky-actions button {
  flex: initial;
  min-width: 0;
  min-height: 44px;
  justify-content: center;
  white-space: nowrap;
}

.company-relevance-search-card .sticky-actions .primary-button {
  border: 0;
  background: linear-gradient(135deg, #eafffb 0%, #34d7cf 72%, #1db8b3 100%);
  color: #08283f;
  box-shadow: 0 18px 36px rgba(4, 23, 36, 0.24);
}

.company-relevance-search-card .sticky-actions .secondary-button {
  border: 1px solid rgba(255, 255, 255, 0.55);
  background: rgba(255, 255, 255, 0.12);
  color: #ffffff;
  box-shadow: none;
}

.company-relevance-search-card .sticky-actions .secondary-button:hover {
  background: rgba(255, 255, 255, 0.2);
}

.company-relevance-search-card .sticky-actions #companyRelevanceAnalyzeShortcut {
  grid-column: 1 / -1;
  border: 0;
  background: rgba(255, 255, 255, 0.96);
  color: #08283f;
  box-shadow: 0 14px 30px rgba(4, 23, 36, 0.2);
}

.company-relevance-search-card .sticky-actions #companyRelevanceAnalyzeShortcut:hover {
  background: linear-gradient(135deg, #123e62 0%, #128d8b 100%);
  color: #ffffff;
}

.company-relevance-search-card .muted-line {
  margin-top: 14px;
  padding-top: 14px;
  border-top: 1px solid rgba(255, 255, 255, 0.16);
  opacity: 0.9;
}

.company-relevance-workspace {
  gap: 16px;
}

.company-relevance-empty,
.company-relevance-info-strip,
.company-relevance-output-empty {
  border: 1px solid rgba(47, 166, 163, 0.22);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(229, 248, 246, 0.92)),
    #ffffff;
  box-shadow: 0 16px 38px rgba(15, 47, 74, 0.08);
}

.company-relevance-empty,
.company-relevance-output-empty {
  min-height: 112px;
  display: grid;
  align-content: center;
}

.company-relevance-output-empty h3 {
  font-size: 1.08rem;
}

.company-relevance-compact-result {
  border: 1px solid rgba(47, 166, 163, 0.2);
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 1), rgba(233, 250, 248, 0.92)),
    #ffffff;
  box-shadow: 0 22px 46px rgba(15, 47, 74, 0.12);
}

.company-relevance-compact-score {
  min-width: 204px;
  padding: 16px;
  border: 0;
  background:
    radial-gradient(circle at top right, rgba(70, 224, 215, 0.32), transparent 40%),
    linear-gradient(135deg, #0f2f4a 0%, #137e86 100%);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(15, 47, 74, 0.18);
}

.company-relevance-compact-score :where(.company-relevance-score-kicker, strong, small, em) {
  color: #ffffff;
}

.company-relevance-compact-score strong {
  font-size: 40px;
}

.company-relevance-compact-score em {
  max-width: 172px;
  color: rgba(255, 255, 255, 0.82);
  font-size: 0.74rem;
  font-style: normal;
  font-weight: 800;
  line-height: 1.25;
}

.company-relevance-compact-score .dashboard-badge {
  justify-self: end;
  border-color: rgba(255, 255, 255, 0.42);
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
}

.company-relevance-company-list-card,
.company-relevance-history-card {
  border: 1px solid rgba(15, 47, 74, 0.08);
  background:
    linear-gradient(145deg, #ffffff, rgba(238, 250, 248, 0.72)),
    #ffffff;
  box-shadow: 0 22px 48px rgba(15, 47, 74, 0.1);
}

.company-relevance-history-card > header,
.company-relevance-company-list-card header {
  align-items: flex-start;
}

.company-relevance-history-row {
  border-color: rgba(15, 47, 74, 0.08);
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 8px 22px rgba(15, 47, 74, 0.06);
}

.company-relevance-history-row > button {
  min-height: 74px;
}

/* Bedrijfsrelevantie detail header: compact report toolbar, not a hero card. */
.company-relevance-detail-report .company-relevance-report-head {
  display: flex;
  flex-wrap: nowrap;
  justify-content: space-between;
  min-height: 0;
  padding: 12px 14px;
  align-items: center;
  border: 1px solid rgba(47, 166, 163, 0.22);
  background:
    radial-gradient(circle at 96% 0%, rgba(56, 214, 206, 0.22), transparent 34%),
    linear-gradient(135deg, #0f2f4a 0%, #116f79 100%);
  box-shadow: 0 14px 30px rgba(15, 47, 74, 0.16);
}

.company-relevance-detail-report .company-relevance-report-title {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.company-relevance-detail-report .company-relevance-report-title .eyebrow {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1;
}

.company-relevance-detail-report .company-relevance-report-head h3 {
  margin: 0;
  font-size: clamp(1.28rem, 1.8vw, 1.72rem);
  line-height: 1.1;
}

.company-relevance-detail-report .company-relevance-report-meta {
  margin-top: 0;
  min-width: 0;
}

.company-relevance-detail-report .company-relevance-report-meta span {
  min-width: 0;
  overflow: hidden;
  color: rgba(255, 255, 255, 0.84);
  text-overflow: ellipsis;
  white-space: nowrap;
}

.company-relevance-detail-report .company-relevance-report-actions {
  align-self: center;
  flex: 0 0 auto;
}

.company-relevance-detail-report .company-relevance-report-actions .compact-button {
  min-height: 36px;
  white-space: nowrap;
}

@media (max-width: 1180px) {
  .company-relevance-layout {
    grid-template-columns: minmax(320px, 410px) minmax(0, 1fr);
  }
}

@media (max-width: 980px) {
  .company-relevance-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .deal-intelligence-decision-card,
  .deal-intelligence-contact-list article,
  .deal-intelligence-candidate-fit,
  .hiring-pressure-department-list article,
  .hiring-pressure-role-list article,
  .hiring-pressure-candidate-list article {
    display: grid;
  }

  .deal-intelligence-signal-list {
    grid-template-columns: 1fr;
  }

  .deal-intelligence-decision-card em,
  .deal-intelligence-contact-list em,
  .deal-intelligence-candidate-fit em,
  .hiring-pressure-department-list em,
  .hiring-pressure-role-list em,
  .hiring-pressure-candidate-list em {
    justify-self: start;
  }

  .relevance-input-card.company-relevance-search-card {
    padding: 18px;
  }

  .company-relevance-search-card .sticky-actions,
  .company-relevance-compact-result header {
    grid-template-columns: 1fr;
  }

  .company-relevance-search-card .sticky-actions {
    gap: 10px;
  }

  .company-relevance-compact-score {
    justify-items: start;
    text-align: left;
  }

  .company-relevance-detail-report .company-relevance-report-head {
    padding: 14px;
  }
}

.company-relevance-result-list {
  display: grid;
  gap: 10px;
  min-width: 0;
}

.company-relevance-result-row {
  display: flex;
  flex-direction: row;
  align-items: center;
  min-height: 0;
  gap: 14px;
  padding: 12px 14px;
}

.company-relevance-result-row.is-selected {
  border-color: rgba(20, 165, 155, 0.42);
  box-shadow: 0 18px 38px rgba(20, 165, 155, 0.14);
}

.company-relevance-result-row .company-relevance-result-body {
  flex: 1 1 auto;
}

.company-relevance-result-row .company-relevance-result-top {
  margin-bottom: 6px;
}

.company-relevance-result-row h3 {
  margin: 0;
  font-size: 1rem;
}

.company-relevance-result-row .company-relevance-industry {
  margin: 4px 0 0;
  color: var(--ink-soft);
  font-size: 0.86rem;
  line-height: 1.35;
}

.company-relevance-result-row .company-relevance-result-facts {
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px 14px;
  margin-top: 8px;
}

.company-relevance-result-row .company-relevance-card-actions {
  flex: 0 0 auto;
  justify-content: flex-end;
  margin-top: 0;
}

.company-relevance-results-more {
  justify-self: center;
  margin-top: 4px;
}

.company-relevance-apollo-results-modal {
  display: flex;
  flex-direction: column;
  width: min(980px, calc(100vw - 32px));
  max-height: calc(100vh - 64px);
  overflow: hidden;
}

.company-relevance-apollo-modal-list {
  min-height: 0;
  overflow-y: auto;
  padding: 16px;
  background: linear-gradient(135deg, rgba(244, 252, 251, 0.96), #ffffff);
}

.company-relevance-result-list-modal {
  padding-bottom: 2px;
}

@media (max-width: 780px) {
  .company-relevance-result-row {
    align-items: stretch;
    flex-direction: column;
  }

  .company-relevance-result-row .company-relevance-result-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-relevance-result-row .company-relevance-card-actions {
    justify-content: flex-start;
  }
}

@media (max-width: 560px) {
  .company-relevance-result-row .company-relevance-result-facts {
    grid-template-columns: 1fr;
  }

  .company-relevance-result-row .company-relevance-card-actions .compact-button {
    width: 100%;
    justify-content: center;
  }

  .company-relevance-apollo-results-modal {
    width: calc(100vw - 18px);
    max-height: calc(100vh - 24px);
  }
}

/* Bedrijfsrelevantie wide workflow rebuild. Keep last so it wins over older split-column rules. */
.company-relevance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 18px;
}

.relevance-input-card.company-relevance-search-card {
  max-height: none;
  overflow: visible;
  width: 100%;
  max-width: none;
}

.company-relevance-search-card form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px 18px;
  align-items: start;
}

.company-relevance-search-card .company-relevance-field {
  min-width: 0;
}

.company-relevance-search-card label.company-relevance-field {
  display: grid;
  gap: 7px;
}

.company-relevance-search-card #companyRelevanceContext {
  min-height: 118px;
  resize: vertical;
}

.company-relevance-search-card .company-relevance-candidate-compact {
  min-height: 76px;
  align-self: stretch;
}

.company-relevance-search-card .sticky-actions {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 12px;
  align-items: stretch;
}

.company-relevance-search-card .sticky-actions button {
  width: 100%;
  min-height: 46px;
}

.company-relevance-search-card .sticky-actions #companyRelevanceAnalyzeShortcut {
  grid-column: 1 / -1;
}

.company-relevance-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 16px;
  min-width: 0;
}

.company-relevance-results,
.company-relevance-result-list {
  width: 100%;
  min-width: 0;
}

.company-relevance-result-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 12px;
}

.company-relevance-result-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(166px, 190px);
  gap: 18px;
  align-items: stretch;
  width: 100%;
  min-height: 0;
  padding: 16px;
}

.company-relevance-result-row .company-relevance-result-body {
  display: grid;
  gap: 8px;
  min-width: 0;
}

.company-relevance-result-row .company-relevance-result-top {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 0;
}

.company-relevance-result-row h3 {
  max-width: 100%;
  font-size: clamp(1rem, 1.5vw, 1.2rem);
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.company-relevance-result-row .company-relevance-result-facts {
  display: grid;
  grid-template-columns: repeat(4, minmax(118px, 1fr));
  gap: 10px;
  margin-top: 4px;
}

.company-relevance-result-row .company-relevance-result-facts > div {
  display: grid;
  align-content: start;
  gap: 4px;
  min-width: 0;
  padding: 10px 12px;
  border: 1px solid rgba(47, 166, 163, 0.14);
  border-radius: 8px;
  background: rgba(246, 252, 251, 0.86);
}

.company-relevance-result-row .company-relevance-result-facts dt {
  color: var(--muted);
  font-size: 0.67rem;
  font-weight: 900;
  letter-spacing: 0;
  line-height: 1.1;
  text-transform: uppercase;
}

.company-relevance-result-row .company-relevance-result-facts dd {
  min-width: 0;
  margin: 0;
  color: var(--text);
  font-size: 0.9rem;
  font-weight: 850;
  line-height: 1.24;
  overflow-wrap: anywhere;
}

.company-relevance-result-row .company-relevance-result-facts a {
  color: #086d76;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.company-relevance-result-row .company-relevance-card-actions {
  display: flex;
  flex-direction: column;
  flex-wrap: nowrap;
  align-items: stretch;
  justify-content: center;
  gap: 10px;
  min-width: 0;
  margin-top: 0;
}

.company-relevance-result-row .company-relevance-card-actions .compact-button {
  flex: 0 0 auto;
  min-width: 0;
  width: 100%;
  justify-content: center;
  white-space: normal;
}

.company-relevance-results-more {
  justify-self: center;
  min-width: min(100%, 260px);
}

.company-relevance-apollo-results-modal {
  width: min(1120px, calc(100vw - 32px));
}

@media (max-width: 980px) {
  .company-relevance-search-card form {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-relevance-search-card .sticky-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .company-relevance-result-row {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-relevance-result-row .company-relevance-card-actions {
    display: flex;
    flex-direction: column;
  }
}

@media (max-width: 700px) {
  .company-relevance-result-row .company-relevance-result-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 560px) {
  .company-relevance-search-card form,
  .company-relevance-search-card .sticky-actions,
  .company-relevance-result-row .company-relevance-card-actions,
  .company-relevance-result-row .company-relevance-result-facts {
    grid-template-columns: minmax(0, 1fr);
  }

  .company-relevance-result-row {
    padding: 14px;
  }
}
/* AI Control Center */
.ai-control-shell {
  display: grid;
  gap: 18px;
}

.ai-control-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b3551 0%, #0e6070 62%, #1fa7a0 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(11, 53, 81, 0.18);
}

.ai-control-hero h2,
.ai-control-hero p {
  color: inherit;
}

.ai-control-actions {
  display: flex;
  gap: 10px;
  align-items: end;
  flex-wrap: wrap;
}

.ai-control-actions label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  color: #e6fbfb;
  font-weight: 800;
}

.ai-control-actions select {
  min-height: 40px;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  padding: 0 12px;
  color: #0b3551;
  background: #fff;
  font-weight: 800;
}

.ai-control-scorecards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.ai-control-scorecard,
.ai-control-card,
.ai-control-module-card,
.ai-control-log-card {
  border: 1px solid rgba(11, 53, 81, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 14px 32px rgba(11, 53, 81, 0.08);
}

.ai-control-scorecard {
  padding: 16px;
}

.ai-control-scorecard span {
  display: block;
  color: #5d7280;
  font-size: 0.78rem;
  font-weight: 800;
}

.ai-control-scorecard strong {
  display: block;
  margin-top: 6px;
  color: #0b3551;
  font-size: 1.35rem;
  line-height: 1.1;
}

.ai-control-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.ai-control-tab {
  border: 1px solid rgba(11, 53, 81, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #0b3551;
  font-weight: 900;
  cursor: pointer;
}

.ai-control-tab.active,
.ai-control-tab:hover {
  background: linear-gradient(135deg, #0b3551, #1fa7a0);
  color: #fff;
  border-color: transparent;
}

.ai-control-panel {
  display: grid;
  gap: 14px;
}

.ai-control-grid,
.ai-control-model-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 14px;
}

.ai-control-card {
  padding: 18px;
}

.ai-control-card h3,
.ai-control-module-card h3,
.ai-control-log-card h3 {
  margin: 0 0 8px;
  color: #0b3551;
}

.ai-control-module-list,
.ai-control-log-list {
  display: grid;
  gap: 12px;
}

.ai-control-module-card {
  display: grid;
  grid-template-columns: minmax(220px, 1.2fr) minmax(260px, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
}

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

.ai-badge {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e6f7f7;
  color: #0b3551;
  font-size: 0.72rem;
  font-weight: 900;
}

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

.ai-badge.orange {
  background: #fef3c7;
  color: #92400e;
}

.ai-badge.red {
  background: #fee2e2;
  color: #991b1b;
}

.ai-badge.muted {
  background: #eef3f4;
  color: #60747c;
}

.ai-control-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(70px, 1fr));
  gap: 8px;
  margin: 0;
}

.ai-control-metrics.compact {
  grid-template-columns: repeat(2, minmax(90px, 1fr));
  margin-top: 12px;
}

.ai-control-metrics div {
  padding: 8px;
  border-radius: 8px;
  background: #f4f8f9;
}

.ai-control-metrics dt {
  color: #687b84;
  font-size: 0.7rem;
  font-weight: 800;
}

.ai-control-metrics dd {
  margin: 3px 0 0;
  color: #0b3551;
  font-weight: 900;
}

.ai-control-module-actions {
  display: grid;
  gap: 8px;
  min-width: 170px;
}

.ai-control-module-actions select {
  min-height: 38px;
  border: 1px solid #cfe0e3;
  border-radius: 8px;
  padding: 0 10px;
  color: #0b3551;
  font-weight: 850;
}

.ai-control-log-card {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
}

@media (max-width: 900px) {
  .ai-control-hero,
  .ai-control-log-card {
    display: grid;
  }

  .ai-control-module-card {
    grid-template-columns: 1fr;
  }

  .ai-control-metrics {
    grid-template-columns: repeat(2, minmax(100px, 1fr));
  }
}

/* Subscription Builder */
.subscription-builder-shell {
  display: grid;
  gap: 18px;
}

.subscription-builder-hero {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  align-items: flex-start;
  padding: 24px;
  border-radius: 8px;
  background: linear-gradient(135deg, #0b3551 0%, #0e6070 62%, #1fa7a0 100%);
  color: #fff;
  box-shadow: 0 18px 42px rgba(11, 53, 81, 0.18);
}

.subscription-builder-hero h2,
.subscription-builder-hero p {
  color: inherit;
}

.subscription-builder-actions,
.subscription-editor-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  align-items: center;
}

.subscription-builder-tabs {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.subscription-builder-tab {
  border: 1px solid rgba(11, 53, 81, 0.12);
  border-radius: 8px;
  padding: 10px 14px;
  background: #fff;
  color: #0b3551;
  font-weight: 900;
  cursor: pointer;
}

.subscription-builder-tab.active,
.subscription-builder-tab:hover {
  background: linear-gradient(135deg, #0b3551, #1fa7a0);
  color: #fff;
  border-color: transparent;
}

.subscription-builder-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(320px, 0.75fr);
  gap: 16px;
  align-items: start;
}

#subscriptionsModule:not(.subscription-editor-open) .subscription-builder-grid {
  grid-template-columns: 1fr;
}

#subscriptionsModule:not(.subscription-editor-open) .subscription-builder-tabs,
#subscriptionsModule:not(.subscription-editor-open) .subscription-editor-card {
  display: none;
}

.subscription-builder-panel,
.subscription-editor-card,
.subscription-package-card,
.subscription-ai-card,
.subscription-module-group,
.subscription-assignment-card {
  border: 1px solid rgba(11, 53, 81, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  box-shadow: 0 14px 34px rgba(11, 53, 81, 0.08);
}

.subscription-builder-panel,
.subscription-editor-card {
  padding: 16px;
}

.subscription-panel-head,
.subscription-editor-head,
.subscription-package-card header,
.subscription-ai-card header,
.subscription-assignment-card {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.subscription-package-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.subscription-package-grid.two {
  grid-template-columns: repeat(auto-fit, minmax(320px, 1fr));
}

.subscription-package-card,
.subscription-ai-card {
  padding: 14px;
  cursor: pointer;
}

.subscription-package-card,
.subscription-ai-card {
  display: grid;
  gap: 10px;
  align-content: start;
}

.subscription-overview-sections,
.subscription-editor-nav-cards,
.subscription-limit-grid,
.subscription-model-toggle-grid,
.subscription-module-model-grid,
.subscription-public-editor {
  display: grid;
  gap: 12px;
}

.subscription-overview-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 167, 160, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.72);
}

.subscription-overview-head,
.subscription-editor-page-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.subscription-overview-head h3,
.subscription-editor-page-head h3,
.subscription-ai-editor-section h4 {
  margin: 0;
}

.subscription-overview-head span {
  display: inline-grid;
  min-width: 30px;
  height: 30px;
  place-items: center;
  border-radius: 999px;
  background: rgba(31, 167, 160, 0.16);
  color: #0b6070;
  font-weight: 900;
}

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

.subscription-editor-nav-card {
  display: grid;
  gap: 6px;
  min-height: 94px;
  padding: 14px;
  border: 1px solid rgba(31, 167, 160, 0.18);
  border-radius: 8px;
  background: #fff;
  color: #0b3551;
  text-align: left;
  cursor: pointer;
}

.subscription-editor-nav-card:hover {
  border-color: rgba(31, 167, 160, 0.48);
  box-shadow: 0 12px 28px rgba(11, 53, 81, 0.1);
}

.subscription-editor-nav-card span {
  color: var(--muted);
  font-weight: 700;
}

.subscription-package-card.active {
  border-color: rgba(31, 167, 160, 0.7);
  box-shadow: 0 18px 36px rgba(31, 167, 160, 0.16);
}

.subscription-package-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin: 12px 0;
}

.subscription-package-metrics span,
.subscription-ai-models span {
  display: block;
  padding: 8px;
  border-radius: 8px;
  background: rgba(217, 244, 243, 0.65);
  color: #0b3551;
  font-size: 0.82rem;
  font-weight: 800;
}

.subscription-package-tags,
.subscription-module-list article div {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.subscription-package-tags span,
.subscription-module-list article div span,
.subscription-status-pill {
  border-radius: 999px;
  padding: 5px 8px;
  background: #d9f4f3;
  color: #0b6070;
  font-size: 0.72rem;
  font-weight: 900;
}

.subscription-status-pill.archived {
  background: #f5e7e7;
  color: #9a3131;
}

.subscription-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.subscription-editor-card form,
.subscription-module-groups,
.subscription-assignment-list,
.subscription-public-preview {
  display: grid;
  gap: 12px;
}

.subscription-editor-card label {
  display: grid;
  gap: 6px;
  color: #0b3551;
  font-weight: 900;
}

.subscription-editor-card input,
.subscription-editor-card textarea,
.subscription-editor-card select,
.subscription-assignment-card select {
  width: 100%;
  border: 1px solid rgba(11, 53, 81, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: #0b3551;
  font-weight: 800;
  background: #fff;
}

.subscription-inline-check {
  grid-template-columns: auto 1fr !important;
  align-items: center;
}

.subscription-module-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.subscription-module-group {
  padding: 14px;
}

.subscription-module-list article {
  border: 1px solid rgba(11, 53, 81, 0.09);
  border-radius: 8px;
  padding: 12px;
  background: #f8fbfb;
}

.subscription-module-toggle {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 10px;
  align-items: flex-start;
  padding: 12px;
  border: 1px solid rgba(11, 53, 81, 0.09);
  border-radius: 8px;
  background: #f8fbfb;
  color: #0b3551;
  cursor: pointer;
}

.subscription-module-toggle input {
  width: 18px;
  height: 18px;
  margin-top: 2px;
  accent-color: #1fa7a0;
}

.subscription-module-toggle span {
  display: grid;
  gap: 5px;
}

.subscription-module-toggle small {
  color: var(--muted);
  font-weight: 700;
}

.subscription-module-toggle em {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  font-style: normal;
}

.subscription-module-toggle b {
  width: fit-content;
  padding: 3px 7px;
  border-radius: 999px;
  background: rgba(31, 167, 160, 0.12);
  color: #0b6070;
  font-size: 10px;
}

.subscription-limit-grid,
.subscription-module-model-grid,
.subscription-public-editor {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.subscription-limit-grid label,
.subscription-module-model-grid label,
.subscription-public-editor label,
.subscription-assignment-add {
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 1px solid rgba(11, 53, 81, 0.1);
  border-radius: 8px;
  background: #fff;
  color: #0b3551;
  font-weight: 900;
}

.subscription-limit-grid input,
.subscription-module-model-grid select,
.subscription-public-editor input,
.subscription-public-editor textarea,
.subscription-assignment-add select {
  width: 100%;
  border: 1px solid rgba(11, 53, 81, 0.16);
  border-radius: 8px;
  padding: 10px 12px;
  color: #0b3551;
  font-weight: 800;
  background: #fff;
}

.subscription-model-toggle-grid {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.subscription-ai-editor-section {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(31, 167, 160, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
}

.subscription-assignment-add {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
}

.subscription-public-editor label:has(textarea),
.subscription-public-editor .subscription-inline-check {
  grid-column: 1 / -1;
}

.subscription-table-wrap {
  overflow-x: auto;
}

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

.subscription-table th,
.subscription-table td {
  padding: 10px;
  border-bottom: 1px solid rgba(11, 53, 81, 0.08);
  text-align: left;
}

.subscription-assignment-card {
  align-items: center;
  padding: 12px;
}

.subscription-public-preview {
  grid-template-columns: repeat(auto-fit, minmax(250px, 1fr));
}

.pricing-more-button {
  margin: 4px 0 10px;
  align-self: flex-start;
}

.public-pricing-detail-panel {
  max-width: 760px;
}

.public-pricing-detail-body {
  display: grid;
  gap: 14px;
}

@media (max-width: 980px) {
  .subscription-builder-grid,
  .subscription-builder-hero {
    display: grid;
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .subscription-form-grid,
  .subscription-package-metrics,
  .subscription-assignment-card,
  .subscription-limit-grid,
  .subscription-module-model-grid,
  .subscription-public-editor,
  .subscription-assignment-add {
    display: grid;
    grid-template-columns: 1fr;
  }
}

/* Kandidatenlijst polish: keep compact cards readable after global wrapping rules. */
.app .candidate-card-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.app .candidate-status-pill {
  display: inline-flex;
  min-width: max-content;
  overflow-wrap: normal;
  white-space: nowrap;
  word-break: keep-all;
  writing-mode: horizontal-tb;
}

.app .candidate-card-main .candidate-card-head,
.app .candidate-card-main .candidate-card-head small {
  color: rgba(255, 255, 255, 0.82);
}

.app .candidate-card-main .candidate-card-head strong {
  color: #ffffff;
}

.app .candidate-card-main .candidate-card-meta,
.app .candidate-card-main .candidate-card-meta span,
.app .candidate-card-main .candidate-card-meta small {
  color: #344b5d;
}

.app .candidate-detail-grid {
  align-items: start;
}

.app .candidate-marketfit-preview,
.app .candidate-pitch-projects-section {
  height: auto;
  min-height: 0;
}

.app .candidate-add-company-button {
  width: auto;
  min-width: 0;
  min-height: 38px;
}

@media (max-width: 820px) {
  .app .candidate-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 620px) {
  .app .candidate-card-grid {
    grid-template-columns: 1fr;
  }
}
