:root {
  --bg: #f5f7fb;
  --panel: #ffffff;
  --ink: #111827;
  --muted: #64748b;
  --line: #dbe3ef;
  --brand: #174ea6;
  --brand-2: #0b2f68;
  --accent: #f97316;
  --good: #0f9f6e;
  --warn: #b7791f;
  --danger: #c2410c;
  --soft-blue: #eef5ff;
  --soft-orange: #fff5ed;
  --shadow: 0 18px 50px rgba(15, 23, 42, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.skip-link {
  position: fixed;
  left: 16px;
  top: 12px;
  z-index: 1000;
  transform: translateY(-160%);
  border-radius: 8px;
  background: #ffffff;
  color: var(--brand-2);
  padding: 10px 14px;
  font-weight: 900;
  text-decoration: none;
  box-shadow: var(--shadow);
}

.skip-link:focus {
  transform: translateY(0);
}

body.locked .app-shell {
  display: none;
}

.auth-screen {
  position: relative;
  overflow: hidden;
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
  gap: 28px;
  align-items: center;
  padding: clamp(22px, 5vw, 72px);
  background:
    radial-gradient(circle at 18% 22%, rgba(249, 115, 22, 0.2), transparent 28%),
    radial-gradient(circle at 86% 18%, rgba(96, 165, 250, 0.22), transparent 30%),
    linear-gradient(135deg, #07111f 0%, #0b2f68 52%, #10213d 100%);
}

.company-front {
  position: relative;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: clamp(20px, 3vw, 34px);
  background:
    radial-gradient(circle at 12% 24%, rgba(249, 115, 22, 0.28), transparent 24%),
    radial-gradient(circle at 90% 10%, rgba(59, 130, 246, 0.35), transparent 26%),
    linear-gradient(135deg, #06111f 0%, #0c2757 48%, #101827 100%);
}

.company-front::before,
.company-front::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.company-front::before {
  opacity: 0.42;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.95), transparent 82%);
}

.company-front::after {
  opacity: 0.16;
  background:
    repeating-linear-gradient(90deg, transparent 0 52px, rgba(255, 255, 255, 0.8) 53px, transparent 54px),
    repeating-linear-gradient(180deg, transparent 0 78px, rgba(249, 115, 22, 0.8) 79px, transparent 80px);
  animation: dataSweep 18s linear infinite;
}

.company-hero {
  position: relative;
  z-index: 1;
  min-width: 0;
}

.company-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: clamp(22px, 4vw, 44px);
  color: #fff;
}

.company-nav-actions {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.company-nav-actions a,
.btn-glass {
  color: #fff;
  text-decoration: none;
  font-weight: 900;
}

.company-nav-actions a {
  font-size: 13px;
}

.product-nav {
  position: relative;
}

.product-nav-trigger {
  display: inline-flex;
  min-height: 36px;
  align-items: center;
}

.product-menu {
  position: absolute;
  top: calc(100% + 12px);
  right: 0;
  z-index: 40;
  display: grid;
  width: min(520px, calc(100vw - 36px));
  gap: 8px;
  border: 1px solid rgba(226, 232, 240, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.34);
  padding: 12px;
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
  transform: translateY(8px);
  transition: opacity 0.16s ease, transform 0.16s ease, visibility 0.16s ease;
}

.product-menu::before {
  content: "";
  position: absolute;
  inset: -14px 0 auto;
  height: 14px;
}

.product-nav:hover .product-menu,
.product-nav:focus-within .product-menu,
.product-nav.open .product-menu {
  opacity: 1;
  visibility: visible;
  pointer-events: auto;
  transform: translateY(0);
}

.product-menu a {
  display: grid;
  gap: 4px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  padding: 12px;
  text-decoration: none;
}

.product-menu a:hover,
.product-menu a:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  background: var(--soft-orange);
}

.product-menu strong {
  font-size: 15px;
}

.product-menu span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.product-menu-all {
  background: var(--soft-blue) !important;
}

.btn-glass {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  padding: 0 14px;
}

.company-hero-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.95fr) minmax(320px, 0.7fr);
  gap: clamp(20px, 4vw, 44px);
  align-items: center;
  min-height: clamp(440px, 58vh, 660px);
}

.company-copy h1 {
  max-width: 860px;
}

.company-cta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.hero-proof-row {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-proof-row span {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(226, 232, 240, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: #dbeafe;
  padding: 8px 11px;
  font-size: 12px;
  font-weight: 850;
}

.hero-proof-row strong {
  color: #fff;
  font-size: 14px;
}

.hero-system-visual {
  position: relative;
  min-height: clamp(340px, 42vw, 520px);
  border: 1px solid rgba(226, 232, 240, 0.2);
  border-radius: 8px;
  background:
    linear-gradient(160deg, rgba(255, 255, 255, 0.13), rgba(255, 255, 255, 0.04)),
    rgba(5, 12, 24, 0.52);
  box-shadow: 0 34px 120px rgba(0, 0, 0, 0.34);
  overflow: hidden;
}

.hero-system-visual::before {
  content: "";
  position: absolute;
  inset: 14px;
  border: 1px solid rgba(255, 255, 255, 0.13);
  border-radius: 8px;
  background:
    linear-gradient(90deg, rgba(96, 165, 250, 0.14), transparent 42%),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 28px);
}

.hero-grid-lines {
  position: absolute;
  inset: 0;
  opacity: 0.44;
  background-image:
    linear-gradient(rgba(255,255,255,0.07) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,0.07) 1px, transparent 1px);
  background-size: 34px 34px;
  animation: dataSweep 11s linear infinite;
}

.data-rain {
  position: absolute;
  inset: -20% 12% auto;
  display: grid;
  grid-template-columns: repeat(6, 1fr);
  gap: 10px;
  color: rgba(191, 219, 254, 0.76);
  font-size: 12px;
  font-weight: 950;
  letter-spacing: 0.16em;
  text-align: center;
}

.data-rain span {
  animation: codeRain 5.8s linear infinite;
}

.data-rain span:nth-child(2) { animation-delay: 0.7s; }
.data-rain span:nth-child(3) { animation-delay: 1.5s; }
.data-rain span:nth-child(4) { animation-delay: 2.1s; }
.data-rain span:nth-child(5) { animation-delay: 2.9s; }
.data-rain span:nth-child(6) { animation-delay: 3.6s; }

.record-terminal {
  position: absolute;
  left: 8%;
  right: 8%;
  top: 22%;
  z-index: 1;
  border: 1px solid rgba(226, 232, 240, 0.24);
  border-radius: 8px;
  background: rgba(4, 9, 18, 0.86);
  box-shadow: 0 24px 70px rgba(0, 0, 0, 0.36);
  overflow: hidden;
}

.terminal-bar {
  display: flex;
  align-items: center;
  gap: 7px;
  min-height: 38px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.14);
  padding: 0 12px;
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
}

.terminal-bar i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: var(--accent);
}

.terminal-bar i:nth-child(2) { background: #facc15; }
.terminal-bar i:nth-child(3) { background: #22c55e; }
.terminal-bar strong { margin-left: auto; }

.record-flow {
  display: grid;
  gap: 10px;
  padding: 16px;
}

.record-flow span {
  display: block;
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(96, 165, 250, 0.24);
  border-radius: 8px;
  background: rgba(23, 78, 166, 0.22);
  color: #e0f2fe;
  padding: 9px 11px;
  font-size: 13px;
  font-weight: 850;
  animation: recordPulse 3.6s ease-in-out infinite;
}

.record-flow span:nth-child(even) {
  justify-self: end;
  background: rgba(249, 115, 22, 0.18);
}

.signal-grid {
  position: absolute;
  right: 9%;
  bottom: 14%;
  display: grid;
  grid-template-columns: repeat(4, 32px);
  gap: 9px;
  z-index: 1;
}

.signal-grid span {
  aspect-ratio: 1;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.11);
  animation: signalBlink 2.8s ease-in-out infinite;
}

.signal-grid span:nth-child(3n) { background: rgba(249, 115, 22, 0.34); }
.signal-grid span:nth-child(4n) { background: rgba(96, 165, 250, 0.32); }

.metric-burst {
  position: absolute;
  left: 9%;
  bottom: 12%;
  z-index: 1;
  display: grid;
  gap: 2px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  color: var(--brand-2);
  padding: 15px 18px;
  box-shadow: 0 20px 60px rgba(0, 0, 0, 0.3);
}

.metric-burst strong {
  font-size: 42px;
  line-height: 0.9;
}

.metric-burst span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

@keyframes dataSweep {
  from { transform: translate3d(0, 0, 0); }
  to { transform: translate3d(-78px, 78px, 0); }
}

@keyframes codeRain {
  0% { transform: translateY(-90px); opacity: 0; }
  12% { opacity: 0.9; }
  100% { transform: translateY(560px); opacity: 0; }
}

@keyframes recordPulse {
  0%, 100% { transform: translateX(0); opacity: 0.72; }
  50% { transform: translateX(8px); opacity: 1; }
}

@keyframes signalBlink {
  0%, 100% { opacity: 0.35; transform: scale(0.92); }
  50% { opacity: 1; transform: scale(1); }
}

.platform-board {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
  padding: 16px;
}

.board-head,
.board-row {
  border-radius: 8px;
  padding: 14px;
}

.board-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  background: #0d1b2f;
  color: #fff;
  margin-bottom: 10px;
}

.board-head span {
  color: #bfdbfe;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.board-row {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  background: #fff;
  margin-top: 8px;
}

.board-row.primary {
  border-color: rgba(249, 115, 22, 0.34);
  background: var(--soft-orange);
}

.board-row strong {
  color: var(--brand-2);
  font-size: 18px;
}

.board-row span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 750;
}

.company-content {
  display: grid;
  gap: 16px;
  margin-top: clamp(18px, 4vw, 44px);
}

.section-lead {
  max-width: 860px;
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 15px;
  font-weight: 750;
  line-height: 1.7;
}

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

.home-choice-grid a {
  display: grid;
  gap: 6px;
  min-height: 112px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  padding: 16px;
  text-decoration: none;
}

.home-choice-grid a:hover,
.home-choice-grid a:focus-visible {
  border-color: rgba(249, 115, 22, 0.45);
  background: var(--soft-orange);
}

.home-choice-grid strong {
  font-size: 18px;
  line-height: 1.2;
}

.home-choice-grid span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.outcome-grid,
.process-grid,
.trust-grid,
.partner-grid,
.service-matrix,
.industry-grid {
  display: grid;
  gap: 12px;
}

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

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

.outcome-grid article,
.trust-grid article,
.partner-grid article,
.service-matrix article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
}

.outcome-grid strong,
.trust-grid strong,
.partner-grid strong,
.service-matrix strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-2);
  font-size: 20px;
}

.outcome-grid span,
.trust-grid span,
.partner-grid span,
.service-matrix span {
  color: var(--muted);
  font-size: 14px;
  font-weight: 750;
  line-height: 1.6;
}

.service-matrix small {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 10px;
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand);
  padding: 6px 9px;
  font-size: 11px;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-ecosystem {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.97), #fff7ed);
}

.partner-grid article span {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.partner-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 14px;
  font-weight: 700;
  line-height: 1.6;
}

.service-matrix {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.service-matrix article {
  min-height: 170px;
}

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

.process-grid.seven-step {
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.process-grid article {
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.process-grid span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.process-grid strong {
  color: var(--brand-2);
  font-size: 18px;
  line-height: 1.2;
}

.process-grid p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  font-weight: 700;
  line-height: 1.55;
}

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

.industry-grid article {
  display: grid;
  min-height: 92px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  padding: 16px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1.25;
}

.premium-products article {
  min-height: 250px;
}

.subpage {
  background:
    radial-gradient(circle at 14% 18%, rgba(249, 115, 22, 0.18), transparent 24%),
    radial-gradient(circle at 88% 8%, rgba(59, 130, 246, 0.26), transparent 26%),
    linear-gradient(135deg, #06111f 0%, #0c2757 48%, #101827 100%);
}

.subpage-shell {
  width: min(1180px, calc(100% - 32px));
  margin: 0 auto;
  padding: 42px 0;
}

.subpage-nav {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-bottom: 42px;
  color: #fff;
}

.subpage-nav strong {
  font-size: 20px;
}

.subpage-nav div {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
}

.subpage-nav a {
  color: #fff;
  font-size: 13px;
  font-weight: 900;
  text-decoration: none;
}

.subpage-hero {
  max-width: 860px;
  margin-bottom: 18px;
  color: #fff;
}

.subpage-hero h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 76px);
  line-height: 0.95;
}

.subpage-hero p {
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  font-weight: 700;
  line-height: 1.65;
}

.company-section,
.office-strip {
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
  padding: clamp(16px, 2.4vw, 24px);
}

.section-kicker {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.section-kicker h2,
.office-strip h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: clamp(23px, 3vw, 34px);
  line-height: 1.05;
}

.product-grid,
.country-grid {
  display: grid;
  gap: 12px;
}

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

.product-grid article,
.country-grid article {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 16px;
}

.product-grid article span {
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
}

.product-grid h3 {
  margin: 10px 0 8px;
  color: var(--brand-2);
  font-size: 20px;
}

.product-grid p,
.country-grid span {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.55;
  font-weight: 700;
}

.premium-products article {
  display: grid;
  align-content: start;
}

.premium-products article a {
  width: fit-content;
  margin-top: 12px;
  color: var(--brand);
  font-size: 13px;
  font-weight: 950;
  text-decoration: none;
}

.card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.portfolio-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.proof-link-strip,
.status-matrix,
.buyer-route-grid,
.buyer-proof-grid,
.country-version-panel {
  display: grid;
  gap: 12px;
}

.proof-link-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.proof-link-strip a,
.status-matrix article,
.buyer-route-grid article,
.buyer-readiness-panel,
.buyer-proof-grid article,
.country-version-panel div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  color: var(--brand-2);
  padding: 16px;
  text-decoration: none;
  box-shadow: 0 18px 50px rgba(15, 23, 42, 0.06);
}

.proof-link-strip strong,
.status-matrix strong,
.buyer-route-grid strong,
.buyer-proof-grid strong,
.country-version-panel strong {
  display: block;
  margin-bottom: 7px;
  color: var(--brand-2);
  font-size: 17px;
}

.proof-link-strip span,
.status-matrix span,
.buyer-route-grid span,
.buyer-proof-grid span,
.country-version-panel span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.55;
}

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

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

.buyer-readiness-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.85fr) minmax(320px, 1.15fr);
  gap: 18px;
  align-items: center;
  padding: 20px;
}

.buyer-readiness-panel h2 {
  margin: 8px 0 10px;
  color: var(--brand-2);
  font-size: clamp(24px, 3vw, 34px);
  line-height: 1.08;
}

.buyer-readiness-panel p {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.6;
}

.explore-panel {
  border: 1px solid rgba(148, 163, 184, 0.32);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 55px rgba(15, 23, 42, 0.08);
}

.explore-panel.buyer-readiness-panel {
  display: block;
  padding: 0;
}

.explore-panel summary {
  display: grid;
  gap: 8px;
  padding: 20px;
  cursor: pointer;
  list-style: none;
}

.explore-panel summary::-webkit-details-marker {
  display: none;
}

.explore-panel summary::after {
  content: "Open details";
  justify-self: start;
  border: 1px solid rgba(249, 115, 22, 0.45);
  border-radius: 999px;
  padding: 7px 11px;
  color: #9a3412;
  background: #fff7ed;
  font-size: 12px;
  font-weight: 900;
}

.explore-panel[open] summary::after {
  content: "Hide details";
}

.explore-panel summary strong {
  color: var(--brand-2);
  font-size: clamp(20px, 3vw, 30px);
  line-height: 1.1;
}

.explore-panel summary small {
  max-width: 760px;
  color: var(--muted);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.5;
}

.explore-panel-body {
  padding: 0 20px 20px;
}

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

.buyer-proof-grid article,
.country-version-panel div {
  min-height: 0;
  box-shadow: none;
}

.country-version-panel {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.status-list {
  display: grid;
  gap: 8px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.status-list li {
  display: grid;
  gap: 3px;
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.status-list b {
  color: var(--brand-2);
  font-size: 13px;
}

.status-list small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.posture-pill {
  display: inline-flex;
  width: fit-content;
  border-radius: 999px;
  padding: 7px 10px;
  background: #eef5ff;
  color: var(--brand);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.posture-pill.implementation {
  background: #fff7ed;
  color: #c2410c;
}

.posture-pill.unsupported {
  background: #fef2f2;
  color: #b91c1c;
}

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

.country-grid strong {
  display: block;
  margin-bottom: 8px;
  color: var(--brand-2);
  font-size: 18px;
}

.office-strip {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.office-strip p,
.client-access p {
  max-width: 760px;
  margin: 8px 0 0;
  color: var(--muted);
  font-weight: 750;
  line-height: 1.55;
}

.location-line {
  margin-top: 12px;
  color: var(--brand-2);
  font-size: 13px;
  font-weight: 900;
}

.company-footer {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  border-top: 1px solid var(--line);
  padding: 18px clamp(22px, 5vw, 72px);
  color: var(--muted);
  background: #fff;
}

.company-footer div {
  display: grid;
  gap: 3px;
}

.company-footer strong {
  color: var(--brand-2);
}

.company-footer address {
  margin: 0;
  font-style: normal;
  text-align: right;
}

.client-access {
  display: grid;
  gap: 8px;
}

.client-access h2 {
  margin: 8px 0 0;
  color: var(--brand-2);
  font-size: clamp(21px, 2.5vw, 28px);
  line-height: 1.1;
}

.compact-client-access {
  padding-block: 16px;
}

body.locked:not(.show-client-login) .compact-client-access {
  display: none;
}

body:not(.locked) .auth-screen:not(.company-front) {
  display: none;
}

body.locked:not(.show-client-login) .company-front > .auth-card {
  display: none;
}

body.show-client-login .company-front {
  grid-template-columns: minmax(0, 1fr) minmax(360px, 460px);
}

.auth-copy {
  max-width: 720px;
  color: #fff;
}

.auth-copy h1 {
  margin: 0 0 16px;
  font-size: clamp(42px, 7vw, 78px);
  line-height: 0.94;
  letter-spacing: 0;
}

.auth-copy p {
  max-width: 680px;
  margin: 0;
  color: #dbeafe;
  font-size: 18px;
  line-height: 1.65;
  font-weight: 650;
}

.partner-line {
  margin-top: 14px !important;
  color: #fff !important;
  font-size: 15px !important;
  font-weight: 850 !important;
}

.auth-proof {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 22px;
}

.auth-proof span {
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  padding: 9px 12px;
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.auth-card {
  display: grid;
  gap: 14px;
  width: min(460px, 100%);
  justify-self: end;
  border: 1px solid rgba(226, 232, 240, 0.7);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
  padding: 24px;
}

.auth-brand {
  color: var(--brand-2);
  margin-bottom: 4px;
}

.auth-card input,
.auth-card select {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-weight: 750;
}

.auth-note {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.55;
  font-weight: 700;
}

.auth-note code {
  color: var(--brand);
  font-weight: 900;
}

button,
input,
select,
textarea {
  font: inherit;
}

.check-row {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}

.check-row input {
  width: auto;
  margin-top: 4px;
}

button,
select {
  cursor: pointer;
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(23, 78, 166, 0.22);
  outline-offset: 2px;
}

.app-shell {
  display: grid;
  grid-template-columns: 292px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 18px;
  padding: 22px;
  background: #0d1b2f;
  color: #e5eefb;
  overflow-y: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  color: inherit;
  text-decoration: none;
}

.brand-mark {
  display: grid;
  width: 46px;
  height: 46px;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--accent), #ffb37b);
  color: #111827;
  font-weight: 950;
}

.eyelogs-mark {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  border: 1px solid rgba(226, 232, 240, 0.22);
  background:
    linear-gradient(135deg, rgba(249, 115, 22, 0.16), transparent 42%),
    linear-gradient(135deg, #07111f, #10213d);
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.14),
    0 10px 24px rgba(15, 23, 42, 0.18);
}

.eyelogs-mark::before {
  content: "E";
  position: absolute;
  inset: 0 auto 0 0;
  display: flex;
  width: 50%;
  align-items: center;
  justify-content: flex-end;
  padding-right: 3px;
  color: #f8fafc;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.eyelogs-mark::after {
  content: "L";
  position: absolute;
  inset: 8px 0 8px auto;
  display: flex;
  width: 50%;
  align-items: center;
  justify-content: flex-start;
  border-left: 1px solid rgba(249, 115, 22, 0.72);
  padding-left: 5px;
  color: #f8fafc;
  font-size: 23px;
  font-weight: 950;
  line-height: 1;
  letter-spacing: 0;
}

.eye-ring {
  display: none;
}

.data-pupil {
  display: none;
}

.brand strong {
  display: block;
  font-size: 18px;
  font-weight: 950;
}

.brand small,
.tenant-card small,
.security-card p {
  color: #9fb0c7;
}

.tenant-card,
.security-card {
  border: 1px solid rgba(226, 232, 240, 0.12);
  border-radius: 8px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.05);
}

.tenant-card span,
.security-card .eyebrow {
  display: block;
  color: #93c5fd;
  font-size: 11px;
  font-weight: 900;
  text-transform: uppercase;
  margin-bottom: 6px;
}

.tenant-card strong,
.security-card strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.nav-list {
  display: grid;
  gap: 6px;
}

.nav-item {
  min-height: 42px;
  border: 0;
  border-radius: 8px;
  padding: 0 12px;
  background: transparent;
  color: #c7d6ea;
  text-align: left;
  font-weight: 800;
}

.nav-item:hover,
.nav-item.active {
  background: #17355f;
  color: #fff;
}

.workspace {
  min-width: 0;
  padding: 22px;
}

.topbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(240px, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin: -22px -22px 22px;
  padding: 14px 22px;
  border-bottom: 1px solid var(--line);
  background: rgba(245, 247, 251, 0.9);
  backdrop-filter: blur(16px);
}

.menu-button {
  display: none;
  min-height: 40px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--brand-2);
  font-weight: 900;
  padding: 0 12px;
}

.global-search {
  position: relative;
}

.global-search label {
  position: absolute;
  left: 14px;
  top: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.global-search input {
  width: 100%;
  min-height: 54px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  padding: 22px 14px 7px;
  font-weight: 700;
}

.topbar-actions,
.head-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

.session-pill {
  display: inline-flex;
  min-height: 34px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--panel);
  color: var(--brand-2);
  padding: 0 12px;
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.environment-pill[data-mode="local"] {
  border-color: #e3d4a3;
  color: #6b520b;
  background: #fff8dd;
}

.environment-pill[data-mode="live"] {
  border-color: #b7d7ca;
  color: #14523d;
  background: #ecf8f3;
}

.environment-pill[data-mode="signed-out"] {
  color: var(--muted);
}

.topbar-actions select,
.filter-row select,
.filter-row input {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--ink);
  font-weight: 800;
  padding: 0 12px;
}

.btn {
  min-height: 42px;
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 0 14px;
  font-weight: 900;
  white-space: nowrap;
}

.btn-primary {
  background: var(--accent);
  color: #fff;
}

.btn-dark {
  background: var(--brand-2);
  color: #fff;
}

.btn-light {
  background: var(--panel);
  border-color: var(--line);
  color: var(--brand-2);
}

.wide {
  width: 100%;
}

.page {
  display: none;
}

.page.active {
  display: block;
}

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

.page-head h1 {
  max-width: 820px;
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: clamp(32px, 4.8vw, 58px);
  line-height: 0.98;
  letter-spacing: 0;
}

.page-head p,
.panel p,
.upload-panel p {
  max-width: 760px;
  margin: 0;
  color: var(--muted);
  font-size: 15px;
  line-height: 1.6;
  font-weight: 650;
}

.eyebrow {
  display: block;
  margin-bottom: 8px;
  color: var(--accent);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 14px;
}

.company-shell-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 14px;
  margin-bottom: 14px;
}

.platform-overview {
  display: grid;
  gap: 14px;
}

.shell-products {
  margin-top: 14px;
}

.metric-card,
.panel,
.table-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: var(--shadow);
}

.metric-card {
  padding: 16px;
}

.metric-card span,
.metric-card small {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.metric-card strong {
  display: block;
  margin: 8px 0 4px;
  color: var(--brand-2);
  font-size: 28px;
  font-weight: 950;
}

.ai-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 14px;
}

.ai-panel,
.ai-side {
  padding: 18px;
}

.ai-thread {
  display: grid;
  gap: 12px;
  min-height: 320px;
  max-height: 460px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 12px;
}

.ai-message {
  max-width: 86%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.ai-message.user {
  justify-self: end;
  background: var(--soft-blue);
}

.ai-message strong {
  display: block;
  margin-bottom: 4px;
  color: var(--brand-2);
  font-size: 12px;
  font-weight: 950;
}

.ai-message p {
  white-space: pre-wrap;
}

.ai-compose {
  display: grid;
  gap: 10px;
  margin-top: 12px;
}

.ai-compose textarea {
  width: 100%;
  min-height: 112px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  resize: vertical;
}

.action-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(300px, 0.8fr);
  gap: 16px;
  margin-top: 16px;
  margin-bottom: 14px;
}

.action-card.priority {
  border-color: rgba(249, 115, 22, 0.32);
  background: linear-gradient(180deg, #fff, #fff7ed);
}

.exception-list,
.quality-grid,
.state-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.exception-list div,
.quality-grid div,
.state-grid div {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
}

.exception-list strong,
.quality-grid strong,
.state-grid strong {
  display: block;
  color: var(--brand-2);
  font-size: 24px;
  margin-bottom: 4px;
}

.exception-list span,
.quality-grid span,
.state-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
}

.work-queue {
  display: grid;
  gap: 8px;
  margin-top: 14px;
}

.queue-item {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  text-align: left;
}

.queue-item strong {
  color: var(--brand-2);
}

.queue-item span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.health-meter {
  height: 12px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  margin: 14px 0;
}

.health-meter span {
  display: block;
  width: var(--score);
  height: 100%;
  background: linear-gradient(90deg, var(--good), #68d391);
}

.dashboard-grid,
.payroll-grid,
.resume-grid,
.settings-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 14px;
  margin-bottom: 14px;
}

.panel {
  padding: 18px;
}

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

.panel h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: 24px;
  line-height: 1.1;
}

.status-pill {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border-radius: 999px;
  padding: 0 10px;
  font-size: 12px;
  font-weight: 900;
}

.status-pill.success {
  background: #e8fff6;
  color: var(--good);
}

.status-pill.warning {
  background: #fff8e6;
  color: var(--warn);
}

.funnel-bars {
  display: grid;
  gap: 12px;
}

.funnel-bars div {
  position: relative;
  display: flex;
  justify-content: space-between;
  overflow: hidden;
  border-radius: 8px;
  background: #edf3fb;
  padding: 12px;
  color: var(--brand-2);
  font-weight: 900;
}

.funnel-bars div::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--w);
  background: linear-gradient(90deg, rgba(23, 78, 166, 0.18), rgba(249, 115, 22, 0.16));
}

.funnel-bars span,
.funnel-bars strong {
  position: relative;
}

.risk-list,
.salary-lines,
.role-list,
.trust-checks {
  display: grid;
  gap: 10px;
}

.risk-list div,
.salary-lines div,
.role-list div,
.trust-checks div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}

.risk-list strong,
.salary-lines strong {
  color: var(--brand-2);
  font-size: 22px;
}

.risk-list span,
.salary-lines span,
.role-list span {
  color: var(--muted);
  font-weight: 750;
}

.architecture-strip {
  display: grid;
  grid-template-columns: minmax(280px, 0.7fr) 1fr;
  gap: 16px;
  align-items: center;
}

.architecture-tags,
.document-grid,
.service-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.architecture-tags span,
.candidate-card div span {
  border-radius: 999px;
  background: var(--soft-blue);
  color: var(--brand);
  padding: 7px 10px;
  font-size: 12px;
  font-weight: 900;
}

.filter-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

label {
  color: var(--muted);
  font-size: 12px;
  font-weight: 900;
}

.kanban {
  display: grid;
  grid-template-columns: repeat(5, minmax(220px, 1fr));
  gap: 12px;
  overflow-x: auto;
  padding-bottom: 8px;
}

.kanban-column {
  min-height: 420px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #edf3fb;
  padding: 10px;
}

.kanban-column.hidden {
  display: none;
}

.kanban-column header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 10px;
}

.kanban-column h2 {
  margin: 0;
  color: var(--brand-2);
  font-size: 15px;
}

.kanban-column header span {
  color: var(--muted);
  font-weight: 900;
}

.candidate-card {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 12px;
  margin-bottom: 10px;
}

.candidate-card strong {
  color: var(--brand-2);
}

.candidate-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  font-weight: 700;
}

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

.candidate-card.hidden {
  display: none;
}

.candidate-card.hired {
  border-color: rgba(15, 159, 110, 0.35);
}

.ats-quality {
  margin-top: 16px;
}

.detail-panel,
.approval-detail {
  margin-top: 16px;
}

.detail-grid,
.approval-grid,
.audit-layout {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.detail-grid section,
.approval-grid section {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
}

.detail-grid h3,
.approval-grid h3 {
  margin: 0 0 10px;
  color: var(--brand-2);
  font-size: 15px;
}

.compact-dl {
  display: grid;
  gap: 8px;
  margin: 0;
}

.compact-dl div {
  display: grid;
  grid-template-columns: 96px 1fr;
  gap: 10px;
}

.compact-dl dt {
  color: var(--muted);
  font-weight: 900;
}

.compact-dl dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.timeline {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.timeline li {
  border-left: 3px solid var(--accent);
  padding-left: 10px;
}

.timeline strong,
.timeline span {
  display: block;
}

.timeline strong {
  color: var(--brand-2);
}

.timeline span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 750;
  line-height: 1.45;
}

.score-grid,
.process-steps,
.tab-strip,
.inline-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.score-grid span,
.process-steps span,
.tab-strip button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--brand-2);
  padding: 8px 10px;
  font-size: 12px;
  font-weight: 900;
}

.process-steps {
  margin-bottom: 14px;
}

.process-steps .done {
  background: #e8fff6;
  color: var(--good);
}

.process-steps .active {
  background: var(--soft-orange);
  color: var(--danger);
}

.tab-strip {
  margin-bottom: 14px;
}

.tab-strip button {
  cursor: default;
}

.tab-strip button.active {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
}

.checklist {
  display: grid;
  gap: 8px;
}

.checklist label {
  display: flex;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  font-size: 14px;
}

.compact-table {
  box-shadow: none;
}

.calendar-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 8px;
}

.calendar-grid span,
.calendar-grid button {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--brand-2);
  font-weight: 900;
  text-align: center;
}

.calendar-grid span {
  display: grid;
  place-items: center;
  background: var(--soft-blue);
}

.calendar-grid button.risk {
  background: #fff1f2;
  color: var(--danger);
}

.filter-stack {
  display: grid;
  gap: 10px;
  align-content: start;
}

.filter-stack select,
.filter-stack input {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
}

.settings-matrix {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.toast {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 30;
  display: none;
  max-width: min(360px, calc(100vw - 36px));
  border-radius: 8px;
  background: var(--brand-2);
  color: #fff;
  padding: 12px 14px;
  box-shadow: var(--shadow);
  font-weight: 900;
}

.toast.show {
  display: block;
}

.company-footer {
  display: grid;
  grid-template-columns: minmax(240px, 1.2fr) minmax(220px, 0.8fr) auto;
  align-items: center;
  gap: 24px;
  border-top: 1px solid rgba(226, 232, 240, 0.14);
  background: #07111f;
  color: #dbeafe;
  padding: 24px clamp(22px, 5vw, 72px);
  font-size: 13px;
  font-weight: 750;
}

body:not(.locked) .company-footer:not(.company-public-footer) {
  display: none;
}

.footer-brand,
.footer-company {
  display: grid;
  gap: 5px;
  margin: 0;
}

.footer-company address {
  margin: 0;
  font-style: normal;
}

.company-footer strong {
  color: #fff;
  font-size: 18px;
  letter-spacing: 0;
}

.company-footer span,
.company-footer address,
.footer-links a {
  color: #9fb0c7;
  line-height: 1.5;
}

.footer-company > span {
  color: #e2e8f0;
  font-size: 11px;
  font-weight: 950;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.footer-links {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  white-space: nowrap;
}

.footer-links a {
  border: 1px solid rgba(148, 163, 184, 0.24);
  border-radius: 999px;
  padding: 8px 11px;
  text-decoration: none;
}

.footer-links a:hover {
  border-color: rgba(96, 165, 250, 0.52);
  color: #fff;
  background: rgba(37, 99, 235, 0.14);
}

.empty-state {
  display: grid;
  gap: 6px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  background: #fbfdff;
  padding: 14px;
  color: var(--muted);
}

.empty-state strong {
  color: var(--brand-2);
  font-size: 14px;
}

.empty-state span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
  line-height: 1.45;
}

.upload-panel {
  display: grid;
  align-content: center;
  gap: 14px;
  min-height: 280px;
  border-style: dashed;
  background: var(--soft-blue);
  cursor: pointer;
}

.upload-panel strong {
  color: var(--brand-2);
  font-size: 28px;
}

.parsed-fields {
  display: grid;
  gap: 10px;
  margin: 0;
}

.parsed-fields div {
  display: grid;
  grid-template-columns: 120px 1fr;
  gap: 12px;
  border-bottom: 1px solid var(--line);
  padding-bottom: 10px;
}

.parsed-fields dt {
  color: var(--muted);
  font-weight: 900;
}

.parsed-fields dd {
  margin: 0;
  color: var(--ink);
  font-weight: 750;
}

.table-card,
.table-wrap {
  overflow-x: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 760px;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 14px;
  text-align: left;
  vertical-align: top;
}

th {
  color: var(--muted);
  font-size: 12px;
  font-weight: 950;
  text-transform: uppercase;
  background: #fbfdff;
}

td {
  color: var(--ink);
  font-weight: 700;
}

td small {
  display: block;
  margin-top: 4px;
  color: var(--muted);
}

.payroll-grid,
.settings-grid {
  align-items: start;
}

.salary-lines .total {
  background: var(--soft-orange);
  border-color: rgba(249, 115, 22, 0.28);
}

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

.template-card {
  display: grid;
  gap: 12px;
}

pre {
  overflow-x: auto;
  margin: 0;
  border-radius: 8px;
  background: #0d1b2f;
  color: #dbeafe;
  padding: 14px;
  line-height: 1.55;
}

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

.form-grid input,
.form-grid select,
.form-grid textarea {
  width: 100%;
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  padding: 12px;
  font-weight: 700;
}

.form-grid textarea {
  min-height: 112px;
  resize: vertical;
}

.meeting-confirmation {
  display: grid;
  gap: 8px;
  border: 1px solid #b7e4c7;
  border-radius: 8px;
  background: #f0fdf4;
  color: #14532d;
  padding: 12px;
  font-size: 13px;
  font-weight: 750;
  line-height: 1.5;
}

.meeting-confirmation a {
  color: #0f766e;
  font-weight: 900;
}

.meeting-confirmation.warning {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.modal-backdrop {
  position: fixed;
  inset: 0;
  z-index: 20;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 18px;
  background: rgba(15, 23, 42, 0.58);
  backdrop-filter: blur(12px);
}

.modal-backdrop.open,
.modal-backdrop.active {
  display: flex;
}

.modal {
  width: min(560px, 100%);
  max-height: calc(100vh - 36px);
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  padding: 18px;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.28);
}

.modal-wide {
  width: min(860px, 100%);
}

.api-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

body.sidebar-open {
  overflow: hidden;
}

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

  .sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 15;
    width: min(320px, 86vw);
    transform: translateX(-105%);
    transition: transform 0.2s ease;
  }

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

  .menu-button {
    display: inline-flex;
    align-items: center;
  }

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

  .topbar-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }
}

@media (max-width: 860px) {
  .auth-screen {
    grid-template-columns: 1fr;
    align-items: start;
  }

  body.show-client-login .company-front {
    grid-template-columns: 1fr;
  }

  .hero-system-visual {
    min-height: 320px;
  }

  .company-hero-grid,
  .product-grid,
  .country-grid,
  .country-version-panel,
  .home-choice-grid,
  .outcome-grid,
  .process-grid,
  .process-grid.seven-step,
  .trust-grid,
  .partner-grid,
  .industry-grid,
  .proof-link-strip,
  .status-matrix,
  .buyer-route-grid,
  .buyer-readiness-panel,
  .company-shell-grid {
    grid-template-columns: 1fr;
  }

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

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

  .company-nav,
  .subpage-nav,
  .section-kicker,
  .office-strip {
    align-items: flex-start;
    flex-direction: column;
  }

  .product-nav,
  .product-nav-trigger,
  .product-menu {
    width: 100%;
  }

  .product-menu {
    position: static;
    display: none;
    margin-top: 8px;
    opacity: 1;
    pointer-events: auto;
    transform: none;
  }

  .product-nav:hover .product-menu,
  .product-nav:focus-within .product-menu,
  .product-nav.open .product-menu {
    display: grid;
  }

  .workspace {
    padding: 16px;
  }

  .topbar {
    margin: -16px -16px 16px;
    padding: 12px 16px;
  }

  .page-head,
  .panel-head {
    flex-direction: column;
  }

  .metric-grid,
  .action-grid,
  .dashboard-grid,
  .ai-workspace,
  .payroll-grid,
  .resume-grid,
  .settings-grid,
  .settings-matrix,
  .detail-grid,
  .approval-grid,
  .audit-layout,
  .architecture-strip,
  .filter-row,
  .document-grid,
  .api-grid {
    grid-template-columns: 1fr;
  }

  .exception-list,
  .quality-grid,
  .state-grid {
    grid-template-columns: 1fr;
  }

  .ai-message {
    max-width: 100%;
  }

  .head-actions,
  .topbar-actions {
    width: 100%;
  }

  .head-actions .btn,
  .topbar-actions .btn,
  .topbar-actions select {
    flex: 1;
  }

  .company-nav-actions,
  .company-cta-row,
  .portfolio-actions {
    width: 100%;
  }

  .company-nav-actions a,
  .company-nav-actions .btn,
  .company-cta-row .btn,
  .portfolio-actions .btn {
    flex: 1 1 160px;
    text-align: center;
    justify-content: center;
  }

  .company-footer {
    grid-template-columns: 1fr;
    align-items: flex-start;
  }

  .footer-links {
    justify-content: flex-start;
    flex-wrap: wrap;
  }
}

@media (max-width: 520px) {
  .hero-system-visual {
    min-height: 280px;
  }

  .record-terminal {
    left: 5%;
    right: 5%;
  }

  .signal-grid {
    grid-template-columns: repeat(4, 24px);
    gap: 7px;
  }

  .service-matrix {
    grid-template-columns: 1fr;
  }

  .buyer-proof-grid {
    grid-template-columns: 1fr;
  }

  .page-head h1 {
    font-size: 34px;
  }

  .metric-card strong {
    font-size: 24px;
  }

  .parsed-fields div {
    grid-template-columns: 1fr;
  }

  .risk-list div,
  .salary-lines div,
  .role-list div,
  .queue-item {
    flex-direction: column;
  }

  .compact-dl div {
    grid-template-columns: 1fr;
  }

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

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.001ms !important;
  }
}
