: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;
}

body.auth-locked .project-home,
body.auth-locked .app,
body.auth-locked .profile-menu,
body.auth-locked .ai-chat-panel,
body.auth-locked .desktop-only-workspace,
body.auth-locked .employee-portal {
  display: none !important;
}

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

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 .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 .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 .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-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");
}

.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-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-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-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 {
    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: 820px) {
  .public-header {
    min-height: auto;
    padding: 0.85rem 1rem;
  }

  .public-brand small {
    display: none;
  }

  .public-nav {
    display: none;
  }

  .public-hero {
    min-height: 620px;
    padding: 0;
  }

  .public-hero-slide {
    align-items: flex-end;
    padding: 4.5rem 1rem 5.8rem;
    background-position: 58% center;
  }

  .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 {
    right: 1rem;
    left: 1rem;
    bottom: 1.25rem;
  }

  .public-quick-grid,
  .public-section,
  .public-contact-section,
  .public-footer,
  .public-page-hero,
  .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;
  }

  .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-hero h1 {
    font-size: 2.35rem;
  }

  .public-hero {
    min-height: 680px;
  }

  .public-hero-slide {
    padding: 4.25rem 1rem 6.2rem;
  }

  .public-hero-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .public-hero-controls {
    display: grid;
    grid-template-columns: 1fr;
  }

  .public-hero-controls button {
    justify-content: center;
    width: 100%;
  }

  .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 {
    grid-template-columns: 1fr;
  }

  .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: 900px) {
  .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-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;
  }

  .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-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-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-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;
}

.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-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-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-list-card {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.9rem;
}

.employee-list-card > div {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
}

.employee-list-card span {
  color: #5d7180;
  line-height: 1.45;
}

.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-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-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;
}

.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-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-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-management-layout,
  .employee-management-grid,
  .employee-chat-company-layout {
    grid-template-columns: 1fr;
  }

  .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;
  }
}

@media (max-width: 620px) {
  .employee-portal {
    overflow-x: hidden;
  }

  .employee-topbar,
  .employee-top-actions,
  .employee-chat-form,
  .employee-chat-form.employer {
    align-items: stretch;
    flex-direction: column;
    grid-template-columns: 1fr;
  }

  .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-topbar {
    position: static;
    padding: 0.85rem;
  }

  .employee-brand,
  .employee-brand div,
  .employee-top-actions {
    min-width: 0;
  }

  .employee-shell {
    gap: 0.85rem;
    padding: 0.85rem;
  }

  .employee-sidebar {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
    padding: 0.65rem;
  }

  .employee-nav {
    min-width: 0;
    white-space: normal;
  }

  .employee-dashboard-grid,
  .employee-vacation-summary,
  .employee-profile-grid,
  .employee-form-grid {
    grid-template-columns: 1fr;
  }

  .employee-section-head {
    gap: 0.5rem;
  }

  .employee-list-card {
    align-items: stretch;
  }

  .employee-chat-message {
    max-width: 100%;
  }

  .employee-form-card input,
  .employee-form-card textarea,
  .employee-form-card select {
    font-size: 16px;
  }
}

.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;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    background 0.18s ease;
}

.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;
}

.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;
}

.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-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-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: center;
  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;
  gap: 1rem;
  justify-content: space-between;
  margin-top: 1rem;
  padding: 1rem;
}

.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;
  gap: 0.55rem;
  justify-content: flex-end;
}

.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;
  }

  .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) 168px;
  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;
}

.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;
  gap: 9px;
  width: 100%;
  min-height: 44px;
  padding: 0 11px;
  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: left;
  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: hidden;
  text-overflow: ellipsis;
  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;
  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-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: 138px;
}

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) 158px;
}

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) 152px;
}

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;
}

.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(auto-fit, minmax(min(100%, 300px), 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;
}

.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;
  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);
}

.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;
  flex: 0 0 auto;
  overflow: hidden;
  border-radius: 16px;
  background:
    radial-gradient(circle at 70% 20%, rgba(var(--theme-secondary-rgb), 0.28), transparent 44%),
    #ffffff;
  color: #0f2f4a;
  font-size: 13px;
  font-weight: 950;
  box-shadow:
    0 10px 22px rgba(var(--theme-primary-rgb), 0.2),
    0 0 0 1px rgba(255, 255, 255, 0.7) inset;
}

.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(310px, 33vw);
  gap: 4px;
  padding: 8px 12px 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: 9.5px;
  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-role-badge {
  display: inline-flex;
  align-items: center;
  max-width: 120px;
  min-height: 18px;
  padding: 0 7px;
  border: 1px solid rgba(var(--theme-accent-rgb), 0.38);
  border-radius: 999px;
  background: rgba(var(--theme-accent-rgb), 0.18);
  color: #ffffff;
  font-size: 9.5px;
  font-weight: 900;
  line-height: 1;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.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);
}

.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;
}

.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(auto-fill, minmax(260px, 1fr));
  gap: 16px;
}

.candidate-relevance-card,
.candidate-relevance-empty-card {
  position: relative;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: 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: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 {
  position: absolute;
  top: 10px;
  right: 10px;
  z-index: 2;
}

.candidate-relevance-card-main {
  display: grid;
  width: 100%;
  min-height: 280px;
  gap: 10px;
  padding: 18px;
  padding-right: 52px;
  border: 0;
  background: transparent;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.candidate-relevance-card-main strong {
  color: var(--brand);
  font-size: 20px;
  line-height: 1.2;
}

.candidate-relevance-card-main > span:not(.candidate-relevance-status) {
  color: var(--muted);
  font-weight: 700;
}

.candidate-relevance-card-main p {
  margin: 0;
  color: var(--ink-soft);
  line-height: 1.5;
}

.candidate-relevance-card-main dl {
  display: grid;
  gap: 6px;
  margin: auto 0 0;
}

.candidate-relevance-card-main dl div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.candidate-relevance-card-main dt {
  font-weight: 800;
}

.candidate-relevance-status,
.candidate-relevance-card-footer span,
.relevance-score-mini {
  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: var(--brand);
  color: #fff;
}

.candidate-relevance-card-footer {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.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);
}

.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;
}

.intake-input-card {
  max-height: none;
  overflow: visible;
}

#matchForm,
#intakeForm,
#candidateRelevanceForm {
  display: grid;
  gap: 0;
}

#intakeForm {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  padding: 16px;
}

#intakeForm .form-block {
  border: 1px solid var(--line);
  border-radius: var(--radius);
  background: #fbfcfc;
}

#intakeForm .sticky-actions,
#intakeForm .generation-status {
  grid-column: 1 / -1;
}

.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;
}


.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-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-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-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;
}

.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 {
  width: min(1040px, 96vw);
}

.saved-candidate-picker-tools {
  display: grid;
  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;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
  padding: 12px 20px 22px;
}

.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;
  justify-content: space-between;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.tabs {
  display: flex;
  gap: 6px;
  min-width: 0;
  overflow-x: auto;
}

.tab {
  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: nowrap;
  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;
}

.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;
}

.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;
}

.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;
}

.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-signature-row label,
.email-test-row label {
  flex: 1 1 240px;
}

.email-signature-row small {
  color: #60717f;
}

.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;
}

.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: minmax(250px, 1.35fr) repeat(5, minmax(135px, 1fr)) auto;
}

.contactdb-company {
  padding: 18px;
  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%);
  box-shadow: 0 18px 38px rgba(15, 47, 74, 0.14);
}

.contactdb-grid {
  grid-template-columns: repeat(auto-fill, minmax(260px, 1fr));
  gap: 14px;
}

.contactdb-card {
  min-height: 128px;
  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);
}

.candidate-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(310px, 1fr));
  gap: 16px;
}

.candidate-card {
  display: grid;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(15, 47, 74, 0.1);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcfc 100%);
  box-shadow: 0 16px 36px rgba(15, 47, 74, 0.08);
  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: 6px;
  width: 100%;
  min-height: 164px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    radial-gradient(circle at top right, rgba(47, 166, 163, 0.1), transparent 34%),
    #fbfcfc;
  color: #0f2f4a;
  text-align: left;
  cursor: pointer;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.candidate-card-main:hover {
  border-color: #2fa6a3;
  box-shadow: 0 12px 28px rgba(15, 47, 74, 0.14);
  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: #0f2f4a;
  font-size: 17px;
  line-height: 1.25;
}

.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: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.candidate-card-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
  min-width: 0;
}

.candidate-card-actions .mini-button {
  min-height: 28px;
  white-space: nowrap;
}

.candidate-status-pill {
  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;
}

.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-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;
}

.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: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;
}

.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-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;
  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;
  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 {
  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-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 {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.mail-start-card {
  position: relative;
  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;
  transition:
    border-color 0.18s ease,
    box-shadow 0.18s ease,
    transform 0.18s ease;
}

.mail-start-card:hover {
  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 strong {
  align-self: end;
  font-size: 1.25rem;
  font-weight: 950;
}

.mail-start-card small {
  color: #526779;
  font-size: 0.94rem;
  font-weight: 750;
  line-height: 1.5;
}

.mail-start-info {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: #2fa6a3;
  color: #ffffff;
  font-size: 0.8rem;
  font-weight: 950;
  font-style: normal;
}

.mail-start-info span {
  position: absolute;
  right: 0;
  top: 34px;
  z-index: 3;
  display: none;
  width: min(260px, 72vw);
  padding: 10px 12px;
  border-radius: 8px;
  background: #0f2f4a;
  color: #ffffff;
  box-shadow: 0 16px 34px rgba(15, 47, 74, 0.22);
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1.45;
}

.mail-start-info:hover span,
.mail-start-info:focus 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-history-head {
  justify-content: space-between;
  align-items: flex-start;
}

.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-start-actions,
  .mail-layout,
  .ai-mail-modal-grid,
  .ai-mail-select-grid,
  .mail-to-row,
  .mail-document-filters,
  .mail-history-filters {
    grid-template-columns: 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;
  }
}

.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 {
  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-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 {
  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-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 {
  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 {
  border-color: #4fc5c1;
  box-shadow: 0 16px 32px rgba(0, 0, 0, 0.18);
  transform: translateY(-1px);
}

.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-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-detail-grid,
.task-flow-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.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-grid strong,
.task-flow-card h3,
.task-notes-section h3 {
  margin: 0;
  color: #0f2f4a;
}

.task-detail-grid 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-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;
}

.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);
}

.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;
}

.dashboard-momentum-item {
  display: grid;
  gap: 6px;
  min-width: 0;
  padding: 12px;
  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: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 {
  color: #ffffff;
}

.dashboard-momentum-start span {
  background: rgba(255, 255, 255, 0.16);
}

.dashboard-momentum-item span {
  width: fit-content;
  padding: 4px 8px;
  border-radius: 999px;
  background: #e9f8f7;
  color: #0f2f4a;
  font-size: 10px;
  font-weight: 950;
  text-transform: uppercase;
}

.dashboard-momentum-item strong {
  color: #0f2f4a;
  line-height: 1.2;
}

.dashboard-momentum-item small {
  color: #53677a;
  line-height: 1.4;
}

.dashboard-momentum-actions {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 8px;
}

.dashboard-grid {
  display: grid;
  gap: 14px;
}

.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-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.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;
}

.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-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);
}

.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-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-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,
    .candidate-relevance-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));
  }
}

@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,
  .personalization-layout,
  .mail-sender-row {
    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-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-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;
}

.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 {
    right: 12px;
    bottom: 64px;
    width: calc(100vw - 24px);
  }

  .ai-proactive-settings-card {
    grid-template-columns: 1fr;
  }

  .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;
  }

  .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;
  }

  .platform-owner-sidebar {
    position: static;
    grid-row: auto;
    order: -1;
  }

  .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 {
    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;
}

.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;
}

.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: stable;
}

.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;
}

.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;
}

@media (max-width: 1180px) {
  .dashboard-grid-middle,
  .dashboard-grid-bottom {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .dashboard-wide-panel {
    grid-row: auto;
  }
}

@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-grid-bottom {
    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%;
  }
}
