:root {
  --navy-1000: #07131f;
  --navy-950: #0a1928;
  --navy-900: #10263a;
  --navy-800: #193951;
  --teal-700: #187a78;
  --teal-600: #238c89;
  --teal-100: #e4f3f1;
  --gold-600: #c7852d;
  --gold-100: #fbf0dc;
  --green-600: #16805d;
  --green-100: #e5f5ed;
  --red-600: #bb4c45;
  --red-100: #faeae7;
  --orange-600: #b76a28;
  --blue-600: #2e6db4;
  --blue-100: #e7f0fa;
  --ink: #112235;
  --muted: #687789;
  --muted-light: #91a0ae;
  --line: #dde5e8;
  --line-dark: #ced8dd;
  --surface: #ffffff;
  --canvas: #f4f5f2;
  --canvas-warm: #f7f5f0;
  --shadow-sm: 0 1px 2px rgba(7, 24, 37, 0.04), 0 7px 20px rgba(7, 24, 37, 0.035);
  --shadow-md: 0 18px 50px rgba(7, 24, 37, 0.09);
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  scroll-behavior: smooth;
}

body {
  min-height: 100vh;
  margin: 0;
  color: var(--ink);
  background: var(--canvas);
  font-family: "DM Sans", sans-serif;
  -webkit-font-smoothing: antialiased;
}

button,
input,
select {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button:focus-visible,
a:focus-visible,
input:focus-visible,
select:focus-visible {
  outline: 3px solid rgba(35, 140, 137, 0.25);
  outline-offset: 2px;
}

[hidden] {
  display: none !important;
}

.sign-in-screen {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(380px, 0.88fr) minmax(430px, 1.12fr);
  background: var(--surface);
}

.sign-in-panel {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: clamp(38px, 7vw, 92px);
}

.sign-in-brand,
.console-brand {
  display: flex;
  align-items: center;
  gap: 13px;
  color: inherit;
  text-decoration: none;
}

.sign-in-brand {
  position: absolute;
  top: 45px;
}

.brand-seal {
  width: 56px;
  height: 48px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
}

.brand-seal img {
  width: 100%;
  height: 100%;
  display: block;
  object-fit: contain;
}

.sign-in-brand strong,
.sign-in-brand small,
.console-brand strong,
.console-brand small {
  display: block;
}

.sign-in-brand strong,
.console-brand strong {
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  letter-spacing: -0.025em;
}

.sign-in-brand small,
.console-brand small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.2em;
}

.sign-in-copy {
  max-width: 540px;
}

.kicker {
  margin: 0 0 10px;
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.19em;
}

.sign-in-copy h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(42px, 5vw, 70px);
  line-height: 1.01;
  letter-spacing: -0.06em;
}

.sign-in-copy > p:last-child {
  max-width: 510px;
  margin: 24px 0 0;
  color: var(--muted);
  font-size: 17px;
  line-height: 1.72;
}

.google-button {
  width: min(360px, 100%);
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 11px;
  margin-top: 34px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  cursor: pointer;
  font-weight: 700;
}

.google-button:hover {
  border-color: var(--teal-600);
  transform: translateY(-1px);
}

.google-button:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.google-button svg {
  width: 20px;
  height: 20px;
}

.back-link {
  width: min(360px, 100%);
  margin-top: 19px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  text-decoration: none;
}

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

.notice,
.error-text {
  width: min(500px, 100%);
  margin: 20px 0 0;
  border-radius: 10px;
  font-size: 13px;
  line-height: 1.5;
  padding: 12px 14px;
}

.notice {
  color: #6e541b;
  background: #fff7e5;
  border: 1px solid #ecd9aa;
}

.error-text {
  color: #8b322c;
  background: var(--red-100);
  border: 1px solid #e9c9c5;
}

.sign-in-visual {
  position: relative;
  min-height: 100vh;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 48%, rgba(40, 149, 144, 0.3), transparent 18%),
    radial-gradient(circle at 80% 10%, rgba(218, 157, 55, 0.18), transparent 26%),
    linear-gradient(145deg, var(--navy-950), #122f47 62%, #183f51);
}

.sign-in-visual::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: linear-gradient(rgba(255, 255, 255, 0.025) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.025) 1px, transparent 1px);
  background-size: 58px 58px;
  mask-image: radial-gradient(circle, #000, transparent 75%);
}

.mission-core {
  position: absolute;
  z-index: 3;
  top: 50%;
  left: 50%;
  width: 230px;
  height: 230px;
  display: grid;
  place-content: center;
  color: white;
  background: rgba(8, 25, 40, 0.25);
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 50%;
  box-shadow: 0 0 80px rgba(35, 140, 137, 0.34), inset 0 0 0 12px rgba(255, 255, 255, 0.02);
  text-align: center;
  transform: translate(-50%, -50%);
}

.mission-logo {
  width: 190px;
  height: 145px;
  object-fit: contain;
}

.mission-core small {
  margin-top: 6px;
  color: #d8e3e8;
  font-size: 8px;
  font-weight: 800;
  line-height: 1.45;
  letter-spacing: 0.16em;
}

.mission-orbit {
  position: absolute;
  top: 50%;
  left: 50%;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  transform: translate(-50%, -50%);
}

.orbit-one {
  width: min(52vw, 590px);
  height: min(52vw, 590px);
}

.orbit-two {
  width: min(75vw, 860px);
  height: min(75vw, 860px);
  border-color: rgba(255, 255, 255, 0.07);
}

.mission-point {
  position: absolute;
  width: 18px;
  height: 18px;
  background: #f3c371;
  border: 5px solid rgba(255, 255, 255, 0.19);
  border-radius: 50%;
  box-shadow: 0 0 25px rgba(243, 195, 113, 0.6);
}

.point-one { top: 23%; left: 31%; }
.point-two { top: 31%; right: 17%; }
.point-three { bottom: 18%; left: 26%; }
.point-four { right: 29%; bottom: 24%; }

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

.sidebar {
  position: sticky;
  z-index: 40;
  top: 0;
  height: 100vh;
  min-height: 690px;
  display: flex;
  flex-direction: column;
  color: #dbe4e9;
  background:
    radial-gradient(circle at 20% 2%, rgba(35, 140, 137, 0.19), transparent 27%),
    var(--navy-950);
  border-right: 1px solid rgba(255, 255, 255, 0.055);
  padding: 23px 17px 17px;
}

.console-brand {
  color: #fff;
  padding: 0 9px 21px;
}

.console-brand .brand-seal {
  width: 44px;
  height: 42px;
}

.console-brand small {
  color: #8093a1;
}

.primary-nav {
  flex: 1 1 auto;
  overflow-y: auto;
  padding-right: 1px;
}

.primary-nav > p {
  margin: 21px 13px 8px;
  color: #657987;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.18em;
}

.nav-item {
  position: relative;
  width: 100%;
  min-height: 43px;
  display: flex;
  align-items: center;
  gap: 11px;
  color: #aebcc6;
  background: transparent;
  border: 0;
  border-radius: 9px;
  cursor: pointer;
  padding: 0 12px;
  text-align: left;
}

.nav-item:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.045);
}

.nav-item.active {
  color: #fff;
  background: rgba(35, 140, 137, 0.19);
  box-shadow: inset 3px 0 0 #43aaa5;
}

.nav-icon {
  width: 22px;
  display: inline-grid;
  place-items: center;
  color: #8da3af;
  font-size: 18px;
}

.nav-item.active .nav-icon {
  color: #79ceca;
}

.nav-count {
  min-width: 21px;
  height: 21px;
  display: grid;
  place-items: center;
  margin-left: auto;
  color: #fff;
  background: var(--red-600);
  border-radius: 10px;
  font-size: 10px;
  font-weight: 800;
  padding: 0 6px;
}

.nav-state {
  width: 8px;
  height: 8px;
  margin-left: auto;
  background: #70818c;
  border-radius: 50%;
}

.nav-state.state-ready { background: #45b98b; box-shadow: 0 0 0 3px rgba(69, 185, 139, 0.12); }
.nav-state.state-importing { background: #e5a64a; animation: pulse 1.4s infinite; }
.nav-state.state-error { background: #e36b61; }
.nav-state.state-not_imported { background: #e5a64a; }

.mission-card {
  margin: 19px 4px 14px;
  padding: 15px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.065);
  border-radius: 12px;
}

.mission-card span {
  color: #d5a64e;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.17em;
}

.mission-card strong {
  display: block;
  margin-top: 7px;
  color: #f5f8f9;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
}

.mission-card p {
  margin: 5px 0 0;
  color: #7f929e;
  font-size: 10px;
  line-height: 1.5;
}

.account-card {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) 28px;
  align-items: center;
  gap: 9px;
  padding: 13px 8px 0;
  border-top: 1px solid rgba(255, 255, 255, 0.08);
}

.account-avatar,
.person-avatar,
.profile-avatar {
  display: grid;
  place-items: center;
  color: #fff;
  background: linear-gradient(145deg, var(--teal-600), #1f6f7f);
  border-radius: 50%;
  font-family: "Manrope", sans-serif;
  font-weight: 800;
  text-transform: uppercase;
}

.person-avatar-image {
  object-fit: cover;
}

.account-avatar {
  width: 34px;
  height: 34px;
  font-size: 12px;
}

.account-card div {
  min-width: 0;
}

.account-card strong,
.account-card small,
.account-card div > span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.account-card strong {
  color: #f7f9fa;
  font-size: 11px;
}

.account-card small {
  margin: 2px 0;
  color: #718692;
  font-size: 9px;
}

.account-card div > span {
  color: #d2a44f;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.account-card button {
  width: 28px;
  height: 28px;
  color: #80939e;
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
}

.account-card button:hover {
  color: #fff;
  background: rgba(255, 255, 255, 0.06);
}

.console {
  min-width: 0;
}

.console-topbar {
  position: sticky;
  z-index: 30;
  top: 0;
  height: 68px;
  display: grid;
  grid-template-columns: minmax(280px, 620px) 1fr;
  align-items: center;
  gap: 24px;
  background: rgba(255, 255, 255, 0.92);
  border-bottom: 1px solid var(--line);
  backdrop-filter: blur(15px);
  padding: 0 31px;
}

.global-search {
  height: 40px;
  display: grid;
  grid-template-columns: 24px minmax(0, 1fr) 25px;
  align-items: center;
  color: var(--muted);
  background: #f3f6f6;
  border: 1px solid transparent;
  border-radius: 10px;
  padding: 0 11px;
}

.global-search:focus-within {
  background: #fff;
  border-color: rgba(35, 140, 137, 0.45);
  box-shadow: 0 0 0 3px rgba(35, 140, 137, 0.08);
}

.global-search input {
  min-width: 0;
  color: var(--ink);
  background: transparent;
  border: 0;
  outline: 0;
}

.global-search input::placeholder {
  color: #91a0aa;
}

.global-search kbd {
  height: 22px;
  display: grid;
  place-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 5px;
  box-shadow: 0 1px 0 #ccd5d9;
  font-size: 11px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 13px;
}

.freshness-badge {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}

.freshness-badge::before {
  content: "";
  width: 7px;
  height: 7px;
  display: inline-block;
  margin-right: 7px;
  background: var(--green-600);
  border-radius: 50%;
}

.refresh-button,
.secondary-action,
.text-button,
.primary-action {
  cursor: pointer;
  text-decoration: none;
}

.refresh-button {
  height: 36px;
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  font-size: 12px;
  font-weight: 700;
  padding: 0 13px;
}

.refresh-button:hover {
  border-color: var(--teal-600);
}

.mobile-menu-button {
  display: none;
}

.console-content {
  max-width: 1640px;
  margin: 0 auto;
  padding: 31px;
}

.console-view {
  display: none;
}

.console-view.active-view {
  display: block;
  animation: view-in 0.25s ease-out;
}

.view-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
  margin: 1px 0 24px;
}

.view-header h1 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: clamp(27px, 3vw, 38px);
  line-height: 1.1;
  letter-spacing: -0.045em;
}

.view-header > div > p:last-child {
  margin: 8px 0 0;
  color: var(--muted);
  font-size: 14px;
}

.primary-action,
.secondary-action {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border-radius: 9px;
  font-size: 12px;
  font-weight: 800;
  padding: 0 17px;
  white-space: nowrap;
}

.primary-action {
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  box-shadow: 0 8px 20px rgba(16, 38, 58, 0.15);
}

.primary-action:hover {
  background: var(--navy-800);
  transform: translateY(-1px);
}

.secondary-action {
  color: var(--navy-800);
  background: #fff;
  border: 1px solid var(--line-dark);
}

.secondary-action:hover {
  border-color: var(--teal-600);
  color: var(--teal-700);
}

.secondary-action:disabled,
.primary-action:disabled {
  cursor: wait;
  opacity: 0.55;
  transform: none;
}

.connection-banner {
  min-height: 73px;
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  margin-bottom: 18px;
  background: #fff;
  border: 1px solid var(--line);
  border-left: 4px solid #8597a3;
  border-radius: 12px;
  box-shadow: var(--shadow-sm);
  padding: 12px 16px;
}

.connection-mark,
.data-status-icon {
  display: grid;
  place-items: center;
  border-radius: 10px;
}

.connection-mark {
  width: 36px;
  height: 36px;
  background: #eef2f3;
}

.connection-mark span {
  width: 10px;
  height: 10px;
  background: #8597a3;
  border-radius: 50%;
}

.connection-banner strong {
  display: block;
  color: var(--navy-900);
  font-size: 13px;
}

.connection-banner p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.connection-banner button {
  color: var(--teal-700);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 11px;
  font-weight: 800;
}

.connection-banner.status-ready { border-left-color: var(--green-600); }
.connection-banner.status-ready .connection-mark { background: var(--green-100); }
.connection-banner.status-ready .connection-mark span { background: var(--green-600); box-shadow: 0 0 0 4px rgba(22, 128, 93, 0.12); }
.connection-banner.status-importing { border-left-color: var(--gold-600); }
.connection-banner.status-importing .connection-mark { background: var(--gold-100); }
.connection-banner.status-importing .connection-mark span { background: var(--gold-600); animation: pulse 1.4s infinite; }
.connection-banner.status-error { border-left-color: var(--red-600); }
.connection-banner.status-error .connection-mark { background: var(--red-100); }
.connection-banner.status-error .connection-mark span { background: var(--red-600); }
.connection-banner.status-not_imported { border-left-color: var(--gold-600); }
.connection-banner.status-not_imported .connection-mark { background: var(--gold-100); }
.connection-banner.status-not_imported .connection-mark span { background: var(--gold-600); }

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

.metric-card,
.console-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
}

.metric-card {
  min-height: 127px;
  position: relative;
  overflow: hidden;
  padding: 19px 20px;
}

.metric-card::after {
  content: "";
  position: absolute;
  right: -22px;
  bottom: -31px;
  width: 80px;
  height: 80px;
  background: var(--teal-100);
  border-radius: 50%;
  opacity: 0.5;
}

.metric-label {
  color: var(--muted);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.14em;
}

.metric-card strong {
  position: relative;
  z-index: 1;
  display: block;
  margin: 9px 0 2px;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 31px;
  letter-spacing: -0.05em;
}

.metric-card small {
  position: relative;
  z-index: 1;
  color: var(--muted);
  font-size: 10px;
}

.attention-metric {
  background: linear-gradient(150deg, #fff, #fff9f5);
}

.attention-metric::after {
  background: var(--red-100);
}

.overview-layout {
  display: grid;
  grid-template-columns: 1.45fr 1fr 1fr;
  gap: 16px;
  margin-bottom: 16px;
}

.console-card {
  padding: 20px;
}

.card-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 17px;
}

.card-heading h2 {
  margin: 0;
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 18px;
  letter-spacing: -0.035em;
}

.text-button {
  flex: 0 0 auto;
  color: var(--teal-700);
  background: transparent;
  border: 0;
  font-size: 10px;
  font-weight: 800;
}

.text-button:hover {
  color: var(--navy-800);
}

.attention-list {
  min-height: 191px;
}

.attention-item {
  width: 100%;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  color: var(--ink);
  background: transparent;
  border: 0;
  border-bottom: 1px solid #edf1f2;
  cursor: pointer;
  padding: 11px 2px;
  text-align: left;
}

.attention-item:last-child {
  border-bottom: 0;
}

.attention-item:hover {
  color: var(--teal-700);
}

.attention-item > span:first-child {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  color: var(--orange-600);
  background: var(--gold-100);
  border-radius: 9px;
  font-weight: 800;
}

.attention-item strong,
.attention-item small {
  display: block;
}

.attention-item strong {
  font-size: 12px;
}

.attention-item small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.attention-item > small {
  font-weight: 700;
}

.bar-chart {
  min-height: 190px;
}

.chart-row {
  margin-bottom: 13px;
}

.chart-row > div {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 6px;
}

.chart-row strong {
  overflow: hidden;
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.chart-row small {
  color: var(--muted);
  font-size: 9px;
  white-space: nowrap;
}

.chart-track {
  height: 5px;
  display: block;
  overflow: hidden;
  background: #edf1f1;
  border-radius: 4px;
}

.chart-track i {
  height: 100%;
  display: block;
  background: linear-gradient(90deg, var(--teal-600), #55b3ad);
  border-radius: inherit;
}

.coverage-ring-row {
  min-height: 188px;
  display: grid;
  grid-template-columns: 117px minmax(0, 1fr);
  align-items: center;
  gap: 18px;
}

.coverage-ring,
.donut {
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
}

.coverage-ring {
  width: 112px;
  height: 112px;
  background: conic-gradient(var(--teal-600) calc(var(--coverage) * 1%), #e8edee 0);
}

.coverage-ring::after,
.donut::after {
  content: "";
  position: absolute;
  background: #fff;
  border-radius: 50%;
}

.coverage-ring::after {
  width: 80px;
  height: 80px;
}

.coverage-ring span {
  position: relative;
  z-index: 1;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  font-weight: 800;
}

.coverage-legend {
  display: grid;
  gap: 13px;
}

.coverage-legend > div {
  display: grid;
  grid-template-columns: 9px 1fr;
  column-gap: 8px;
}

.coverage-legend strong,
.coverage-legend small {
  grid-column: 2;
}

.coverage-legend strong {
  font-size: 12px;
}

.coverage-legend small {
  color: var(--muted);
  font-size: 9px;
}

.legend-dot {
  width: 8px;
  height: 8px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
}

.email-dot { background: var(--teal-600); }
.phone-dot { background: var(--gold-600); }
.address-dot { background: var(--blue-600); }

.launchpad {
  margin-bottom: 16px;
}

.team-summary-card {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px 28px;
  margin-bottom: 16px;
  overflow: hidden;
}

.team-summary-card::after {
  content: "";
  position: absolute;
  right: -70px;
  top: -90px;
  width: 210px;
  height: 210px;
  background: var(--teal-100);
  border-radius: 50%;
  opacity: 0.45;
  pointer-events: none;
}

.team-summary-card .card-heading,
.team-summary-list {
  position: relative;
  z-index: 1;
}

.team-summary-card .card-heading {
  grid-column: 1;
  margin: 0;
}

.team-summary-card .card-heading p:last-child {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 10px;
}

.team-summary-stats {
  position: relative;
  z-index: 1;
  grid-column: 2;
  grid-row: 1;
  min-width: 110px;
  text-align: right;
}

.team-summary-stats strong,
.team-summary-stats span {
  display: block;
}

.team-summary-stats strong {
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 31px;
}

.team-summary-stats span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.team-summary-list {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.team-summary-person {
  min-width: 0;
  display: grid;
  grid-template-columns: 35px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid #e5ebec;
  border-radius: 9px;
  cursor: pointer;
  padding: 9px;
  text-align: left;
}

.team-summary-person:hover {
  background: #fff;
  border-color: rgba(35, 140, 137, 0.45);
}

.team-summary-person .person-avatar {
  width: 34px;
  height: 34px;
}

.team-summary-person > span:nth-child(2) {
  min-width: 0;
}

.team-summary-person strong,
.team-summary-person small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.team-summary-person strong {
  font-size: 9px;
}

.team-summary-person small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 8px;
}

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

.launchpad-grid button {
  min-height: 103px;
  display: grid;
  grid-template-columns: 32px 1fr;
  grid-template-rows: auto 1fr;
  column-gap: 11px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid #e5ebec;
  border-radius: 10px;
  cursor: pointer;
  padding: 15px;
  text-align: left;
}

.launchpad-grid button:hover {
  background: #fff;
  border-color: rgba(35, 140, 137, 0.5);
  transform: translateY(-2px);
  box-shadow: var(--shadow-sm);
}

.launchpad-grid span {
  width: 31px;
  height: 31px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 8px;
  font-size: 16px;
}

.launchpad-grid strong {
  font-size: 11px;
}

.launchpad-grid small {
  margin-top: 4px;
  color: var(--muted);
  font-size: 9px;
  line-height: 1.45;
}

.directory-card,
.onboarding-card,
.team-card {
  padding: 0;
  overflow: hidden;
}

.directory-filters {
  min-height: 66px;
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(130px, 0.65fr)) auto;
  gap: 9px;
  align-items: center;
  border-bottom: 1px solid var(--line);
  padding: 12px 17px;
}

.directory-filters input,
.directory-filters select,
.registration-toolbar input,
.add-user-form input,
.add-user-form select {
  width: 100%;
  height: 40px;
  color: var(--ink);
  background: #f8faf9;
  border: 1px solid var(--line);
  border-radius: 8px;
  outline: 0;
  padding: 0 12px;
}

.directory-filters label,
.add-user-form label {
  min-width: 0;
}

.directory-filters label > span,
.add-user-form label > span {
  display: block;
  margin: 0 0 5px 2px;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.1em;
}

.directory-filters > button,
.add-user-form > button,
.registration-toolbar form button,
.table-footer button,
.data-control-actions button {
  min-height: 40px;
  color: #fff;
  background: var(--navy-900);
  border: 1px solid var(--navy-900);
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 0 14px;
}

.directory-filters > button:hover,
.add-user-form > button:hover,
.registration-toolbar form button:hover,
.data-control-actions button:hover {
  background: var(--navy-800);
}

.table-footer button {
  color: var(--teal-700);
  background: #fff;
  border-color: var(--line-dark);
}

.directory-filters input:focus,
.directory-filters select:focus,
.registration-toolbar input:focus,
.add-user-form input:focus,
.add-user-form select:focus {
  background: #fff;
  border-color: var(--teal-600);
  box-shadow: 0 0 0 3px rgba(35, 140, 137, 0.08);
}

.people-grid {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) minmax(190px, 1.2fr) minmax(130px, 0.75fr) minmax(120px, 0.7fr) 80px;
  gap: 14px;
  align-items: center;
}

.table-header {
  min-height: 39px;
  color: var(--muted);
  background: #fafbfa;
  border-bottom: 1px solid var(--line);
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 0 18px;
}

.person-row {
  min-height: 69px;
  color: var(--ink);
  background: #fff;
  border-bottom: 1px solid #edf1f2;
  cursor: pointer;
  padding: 9px 18px;
}

.person-row:hover {
  background: #fbfdfc;
  box-shadow: inset 3px 0 0 var(--teal-600);
}

.person-cell {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.person-avatar {
  width: 37px;
  height: 37px;
  font-size: 11px;
}

.person-cell strong,
.person-cell small,
.person-row > div:not(.person-cell) strong,
.person-row > div:not(.person-cell) small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.person-cell strong,
.person-row > div strong {
  font-size: 11px;
}

.person-cell small,
.person-row > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.status-pill,
.access-badge,
.user-status,
.run-state {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  padding: 5px 8px;
}

.status-pill.status-active,
.status-pill.status-approved,
.status-pill.status-success {
  color: var(--green-600);
  background: var(--green-100);
}

.status-pill.status-inactive,
.status-pill.status-declined,
.status-pill.status-error {
  color: var(--red-600);
  background: var(--red-100);
}

.status-pill.status-pending {
  color: var(--orange-600);
  background: var(--gold-100);
}

.person-row > span:last-child {
  justify-self: end;
}

.people-list {
  min-height: 340px;
}

.table-message,
.empty-state {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.6;
  text-align: center;
}

.table-message {
  padding: 45px 20px;
}

.empty-state {
  min-height: 120px;
  display: grid;
  place-items: center;
  background: #fafbfa;
  border: 1px dashed var(--line-dark);
  border-radius: 10px;
  padding: 18px;
}

.table-footer {
  min-height: 56px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  color: var(--muted);
  padding: 8px 18px;
}

.table-footer small {
  font-size: 10px;
}

.filter-tabs {
  display: inline-flex;
  gap: 4px;
  background: #e9eeed;
  border-radius: 9px;
  padding: 4px;
}

.filter-tabs button {
  min-height: 32px;
  color: var(--muted);
  background: transparent;
  border: 0;
  border-radius: 7px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
  padding: 0 12px;
}

.filter-tabs button.active {
  color: var(--ink);
  background: #fff;
  box-shadow: 0 2px 8px rgba(7, 24, 37, 0.07);
}

.pipeline-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.pipeline-summary article {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  padding: 15px 17px;
}

.pipeline-summary span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
}

.pipeline-summary strong {
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
}

.registration-toolbar {
  min-height: 67px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  border-bottom: 1px solid var(--line);
  padding: 12px 17px;
}

.registration-toolbar form {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
}

.registration-list {
  min-height: 350px;
}

.registration-card {
  border-bottom: 1px solid var(--line);
}

.registration-summary {
  width: 100%;
  min-height: 75px;
  display: grid;
  grid-template-columns: 42px minmax(180px, 1fr) auto auto;
  align-items: center;
  gap: 13px;
  color: var(--ink);
  background: #fff;
  border: 0;
  cursor: pointer;
  padding: 11px 18px;
  text-align: left;
}

.registration-summary:hover {
  background: #fbfdfc;
}

.registration-summary strong,
.registration-summary small {
  display: block;
}

.registration-summary strong {
  font-size: 12px;
}

.registration-summary small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 9px;
}

.registration-details {
  display: none;
  background: #f8faf9;
  border-top: 1px solid #edf1f2;
  padding: 20px 72px 23px;
}

.registration-card.expanded .registration-details {
  display: block;
}

.registration-card.expanded .expand-registration {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.expand-registration {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 9px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 0 13px;
  white-space: nowrap;
}

.expand-registration:hover {
  color: #fff;
  background: var(--navy-900);
  border-color: var(--navy-900);
}

.short-review-label {
  display: none;
}

.registration-chevron {
  display: inline-block;
  font-size: 14px;
  line-height: 1;
  transition: transform 160ms ease;
}

.registration-card.expanded .registration-chevron {
  transform: rotate(180deg);
}

.team-grid,
.profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px 24px;
}

.registration-details .team-grid > div,
.profile-grid > div {
  min-width: 0;
}

.profile-grid > div {
  display: grid;
  align-content: start;
  gap: 5px;
  padding: 11px 13px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 9px;
}

.registration-details label,
.profile-grid label,
.profile-grid small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  line-height: 1.25;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.registration-details p,
.profile-grid p {
  margin: 0;
  overflow-wrap: anywhere;
  font-size: 11px;
  line-height: 1.55;
}

.profile-grid strong {
  display: block;
  min-width: 0;
  overflow-wrap: anywhere;
  color: var(--ink);
  font-size: 11px;
  line-height: 1.45;
}

.translated-registration {
  margin-top: 18px;
  padding: 18px;
  background: #f3f8f7;
  border: 1px solid #d8e8e5;
  border-radius: 14px;
}

.translated-registration .kicker {
  margin-bottom: 12px;
}

.review-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.review-actions button {
  min-height: 36px;
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 0 13px;
}

.review-actions .approve {
  color: #fff;
  background: var(--green-600);
  border: 1px solid var(--green-600);
}

.review-actions .approve:disabled {
  cursor: wait;
  opacity: 0.55;
}

.review-actions button:not(.approve) {
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line-dark);
}

.match-banner {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 11px;
  margin-top: 15px;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  font-size: 10px;
  padding: 12px;
}

.match-banner > span {
  width: 38px;
  height: 38px;
  display: grid;
  place-items: center;
  color: #fff;
  background: var(--blue-600);
  border-radius: 50%;
  font-size: 9px;
  font-weight: 800;
}

.match-banner strong,
.match-banner small {
  display: block;
}

.match-banner small {
  margin-top: 2px;
  color: var(--muted);
  line-height: 1.45;
}

.match-banner button {
  min-height: 32px;
  color: var(--navy-900);
  background: #fff;
  border: 1px solid var(--line-dark);
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 0 10px;
}

.match-banner.match-found {
  border-color: #a9ddd0;
  background: var(--green-100);
}

.match-banner.match-found > span {
  background: var(--green-600);
}

.match-banner.match-failed {
  border-color: #efcf9e;
  background: var(--gold-100);
}

.match-banner.match-failed > span {
  background: #bd7618;
}

.confirmation-dialog {
  width: min(440px, calc(100vw - 30px));
  margin: auto;
  padding: 0;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 40px 100px rgba(7, 24, 37, 0.3);
}

.confirmation-dialog::backdrop {
  background: rgba(5, 18, 29, 0.68);
  backdrop-filter: blur(4px);
}

.confirmation-shell {
  padding: 31px;
}

.confirmation-icon {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  margin-bottom: 18px;
  color: var(--red-600);
  background: #fff0ed;
  border-radius: 50%;
  font-size: 19px;
  font-weight: 800;
}

.confirmation-shell h2 {
  margin: 6px 0 9px;
  font-family: "Manrope", sans-serif;
  font-size: 23px;
}

.confirmation-shell > p:not(.kicker) {
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.confirmation-shell > p strong {
  color: var(--ink);
}

.confirmation-actions {
  display: flex;
  justify-content: flex-end;
  gap: 9px;
  margin-top: 25px;
}

.confirmation-actions button {
  min-height: 39px;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  cursor: pointer;
  font-size: 10px;
  font-weight: 800;
  padding: 0 14px;
}

.confirmation-actions button:not(.danger-button) {
  color: var(--ink);
  background: #fff;
}

.confirmation-actions .danger-button {
  color: #fff;
  background: var(--red-600);
  border-color: var(--red-600);
}

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

.registration-photo-card {
  min-height: 150px;
  display: grid;
  grid-template-columns: 145px 1fr;
  gap: 18px;
  align-items: center;
  overflow: hidden;
  color: var(--ink);
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 12px;
  text-decoration: none;
}

.registration-photo-card img {
  width: 145px;
  height: 150px;
  display: block;
  object-fit: cover;
}

.profile-photo-card img {
  object-position: center;
}

.registration-photo-card small,
.registration-photo-card strong {
  display: block;
}

.registration-photo-card small {
  color: var(--teal-700);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.13em;
}

.registration-photo-card strong {
  margin-top: 5px;
  font-family: "Manrope", sans-serif;
  font-size: 13px;
}

.avatar-choice {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr) 16px auto;
  align-items: center;
  gap: 9px;
  margin-top: 9px;
  padding-top: 9px;
  border-top: 1px solid rgba(23, 128, 95, 0.2);
  cursor: pointer;
}

.avatar-choice img {
  width: 38px;
  height: 38px;
  object-fit: cover;
  border-radius: 50%;
}

.avatar-choice > span strong,
.avatar-choice > span small {
  display: block;
}

.avatar-choice > b {
  font-size: 9px;
  white-space: nowrap;
}

.avatar-choice input {
  width: 15px;
  height: 15px;
  accent-color: var(--green-600);
}

.photo-missing-note {
  margin-bottom: 16px;
  color: var(--muted);
  background: #fff;
  border: 1px dashed var(--line-dark);
  border-radius: 9px;
  font-size: 10px;
  padding: 12px;
}

.pco-write-status {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr) auto;
  gap: 11px;
  align-items: center;
  margin-top: 14px;
  border-radius: 9px;
  padding: 11px 12px;
}

.pco-write-status > span {
  width: 29px;
  height: 29px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 800;
}

.pco-write-status strong,
.pco-write-status small {
  display: block;
}

.pco-write-status strong {
  font-size: 10px;
}

.pco-write-status small {
  margin-top: 3px;
  font-size: 9px;
}

.pco-write-status button {
  min-height: 34px;
  color: inherit;
  background: #fff;
  border: 1px solid currentColor;
  border-radius: 7px;
  cursor: pointer;
  font-size: 9px;
  font-weight: 800;
  padding: 0 11px;
}

.pco-write-status.sync-synced {
  color: var(--green-600);
  background: var(--green-100);
}

.pco-write-status.sync-synced > span {
  color: #fff;
  background: var(--green-600);
}

.pco-write-status.sync-failed {
  color: var(--red-600);
  background: var(--red-100);
}

.pco-write-status.sync-failed > span {
  color: #fff;
  background: var(--red-600);
}

.pco-write-status.sync-not_started,
.pco-write-status.sync-pending {
  color: var(--blue-600);
  background: var(--blue-100);
}

.pco-write-status.sync-not_started > span,
.pco-write-status.sync-pending > span {
  color: #fff;
  background: var(--blue-600);
}

.read-only-note {
  margin-top: 16px;
  color: var(--muted);
  font-size: 10px;
}

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

.insight-card {
  min-height: 325px;
}

.span-two {
  grid-column: span 2;
}

.large-chart {
  min-height: 255px;
}

.donut-wrap {
  min-height: 250px;
  display: grid;
  grid-template-columns: 150px minmax(0, 1fr);
  align-items: center;
  gap: 24px;
}

.donut {
  width: 145px;
  height: 145px;
  background: conic-gradient(var(--teal-600) calc(var(--donut) * 1%), #e6ebec 0);
}

.donut::after {
  width: 102px;
  height: 102px;
}

.donut > div {
  position: relative;
  z-index: 1;
  text-align: center;
}

.donut strong,
.donut small {
  display: block;
}

.donut strong {
  font-family: "Manrope", sans-serif;
  font-size: 24px;
}

.donut small {
  color: var(--muted);
  font-size: 9px;
}

.donut-legend {
  display: grid;
  gap: 15px;
}

.donut-legend > div {
  display: grid;
  grid-template-columns: 10px 1fr;
  column-gap: 9px;
}

.donut-legend i {
  width: 9px;
  height: 9px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
}

.active-swatch { background: var(--teal-600); }
.inactive-swatch { background: #cbd4d8; }

.donut-legend strong,
.donut-legend small {
  display: block;
}

.donut-legend strong {
  font-size: 12px;
}

.donut-legend small {
  color: var(--muted);
  font-size: 9px;
}

.coverage-list,
.mini-list {
  display: grid;
  gap: 9px;
}

.coverage-list > div,
.mini-list > div {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  align-items: center;
}

.coverage-list label,
.mini-list span {
  color: var(--muted);
  font-size: 10px;
}

.coverage-list strong,
.mini-list strong {
  font-size: 11px;
}

.coverage-list i {
  height: 5px;
  grid-column: 1 / -1;
  overflow: hidden;
  background: #edf1f2;
  border-radius: 5px;
}

.coverage-list i span {
  height: 100%;
  display: block;
  background: var(--teal-600);
  border-radius: inherit;
}

.single-insight {
  display: grid;
  place-items: center;
  min-height: 220px;
  text-align: center;
}

.single-insight strong {
  display: block;
  color: var(--teal-700);
  font-family: "Manrope", sans-serif;
  font-size: 58px;
  letter-spacing: -0.07em;
}

.single-insight span {
  color: var(--muted);
  font-size: 11px;
}

.data-control-panel {
  min-height: 156px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 25px;
  margin-bottom: 16px;
  padding: 24px;
}

.data-control-main {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
}

.data-status-icon {
  width: 54px;
  height: 54px;
  color: var(--teal-700);
  background: var(--teal-100);
  font-size: 22px;
}

.data-control-main h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
}

.data-control-main p {
  margin: 5px 0 0;
  color: var(--muted);
  font-size: 11px;
}

.record-total {
  margin-top: 13px;
}

.record-total strong {
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}

.record-total span {
  margin-left: 5px;
  color: var(--muted);
  font-size: 10px;
}

.data-control-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 9px;
}

.data-control-actions > div {
  min-width: 115px;
  text-align: right;
}

.data-control-actions > div strong,
.data-control-actions > div span {
  display: block;
}

.data-control-actions > div strong {
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 28px;
}

.data-control-actions > div span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.09em;
}

.sync-progress {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 8px;
  font-size: 10px;
  padding: 9px 12px;
}

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

.dataset-card {
  min-height: 111px;
  display: grid;
  grid-template-columns: 35px 1fr;
  grid-template-rows: auto 1fr;
  gap: 3px 11px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: var(--shadow-sm);
  padding: 16px;
  color: var(--ink);
  cursor: pointer;
  font: inherit;
  text-align: left;
}

.dataset-card:hover {
  border-color: rgba(35, 140, 137, 0.52);
  box-shadow: 0 10px 28px rgba(7, 24, 37, 0.08);
  transform: translateY(-2px);
}

.dataset-icon {
  width: 34px;
  height: 34px;
  grid-row: 1 / span 2;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 8px;
}

.dataset-card strong {
  font-size: 11px;
}

.dataset-card p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 8px;
  line-height: 1.4;
}

.dataset-count {
  color: var(--navy-950);
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-weight: 800;
}

.dataset-card small {
  grid-column: 2;
  color: var(--muted);
  font-size: 8px;
}

.dataset-card.dataset-ready small {
  color: var(--teal-700);
  font-weight: 800;
}

.data-bottom-grid {
  display: grid;
  grid-template-columns: 1.3fr 1fr;
  gap: 16px;
}

.sync-history {
  min-height: 180px;
}

.sync-history > article {
  min-height: 44px;
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid #edf1f2;
  font-size: 10px;
}

.sync-history > article:last-child {
  border-bottom: 0;
}

.sync-history article strong,
.sync-history article small {
  display: block;
}

.sync-history article small {
  margin-top: 2px;
  color: var(--muted);
}

.run-state {
  color: var(--muted);
  background: #edf1f2;
}

.run-state.run-complete,
.run-state.run-completed { color: var(--green-600); background: var(--green-100); }
.run-state.run-failed { color: var(--red-600); background: var(--red-100); }
.run-state.run-running { color: var(--orange-600); background: var(--gold-100); }

.diagnostic-details {
  max-height: 240px;
  overflow: auto;
  margin: 12px 0 0;
  color: #bed1dd;
  background: var(--navy-950);
  border-radius: 9px;
  font: 10px/1.55 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  padding: 13px;
  white-space: pre-wrap;
}

.protection-card p {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.65;
}

.automation-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 15px;
}

.automation-card {
  position: relative;
  min-height: 243px;
  overflow: hidden;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  padding: 19px;
}

.automation-card::after {
  content: "";
  position: absolute;
  right: -45px;
  bottom: -55px;
  width: 130px;
  height: 130px;
  background: var(--teal-100);
  border-radius: 50%;
  opacity: 0.45;
}

.automation-icon {
  width: 39px;
  height: 39px;
  display: grid;
  place-items: center;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 10px;
  font-size: 18px;
}

.automation-state {
  position: absolute;
  top: 19px;
  right: 19px;
  border-radius: 12px;
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
  padding: 5px 8px;
  text-transform: uppercase;
}

.automation-card.live .automation-state {
  color: var(--green-600);
  background: var(--green-100);
}

.automation-card.planned .automation-state {
  color: var(--orange-600);
  background: var(--gold-100);
}

.automation-card h2 {
  margin: 19px 0 7px;
  font-family: "Manrope", sans-serif;
  font-size: 16px;
}

.automation-card > p {
  min-height: 48px;
  margin: 0;
  color: var(--muted);
  font-size: 10px;
  line-height: 1.55;
}

.automation-flow {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 18px;
}

.automation-flow span {
  color: var(--navy-800);
  background: #f2f5f5;
  border-radius: 6px;
  font-size: 8px;
  font-weight: 700;
  padding: 6px 7px;
}

.automation-flow i {
  width: 15px;
  height: 1px;
  display: inline-block;
  background: var(--muted-light);
}

.automation-flow b {
  color: var(--muted-light);
  font-size: 9px;
}

.team-card > .card-heading {
  padding: 20px 20px 0;
}

.add-user-form {
  display: grid;
  grid-template-columns: minmax(240px, 1fr) 170px auto;
  gap: 9px;
  border-bottom: 1px solid var(--line);
  padding: 0 20px 20px;
}

.role-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  background: #f8faf9;
  border-bottom: 1px solid var(--line);
  padding: 15px 20px;
}

.role-guide > article {
  display: grid;
  grid-template-columns: 10px 1fr;
  gap: 2px 8px;
}

.role-dot {
  width: 8px;
  height: 8px;
  grid-row: 1 / span 2;
  align-self: center;
  border-radius: 50%;
}

.admin-dot { background: var(--gold-600); }
.editor-dot { background: var(--teal-600); }
.viewer-dot { background: var(--blue-600); }

.role-guide strong {
  font-size: 10px;
}

.role-guide small {
  color: var(--muted);
  font-size: 8px;
}

.user-row {
  min-height: 64px;
  display: grid;
  grid-template-columns: minmax(220px, 1fr) 120px 120px auto;
  align-items: center;
  gap: 16px;
  border-bottom: 1px solid #edf1f2;
  padding: 9px 20px;
}

.user-row:last-child {
  border-bottom: 0;
}

.user-row strong,
.user-row small {
  display: block;
}

.user-row strong {
  font-size: 11px;
}

.user-row small {
  margin-top: 2px;
  color: var(--muted);
  font-size: 9px;
}

.access-badge.access-admin { color: #8a5b11; background: var(--gold-100); }
.access-badge.access-editor { color: var(--teal-700); background: var(--teal-100); }
.access-badge.access-viewer { color: var(--blue-600); background: var(--blue-100); }
.user-status { color: var(--green-600); background: var(--green-100); }

.user-row button {
  color: var(--red-600);
  background: transparent;
  border: 0;
  cursor: pointer;
  font-size: 10px;
  font-weight: 700;
}

.protected-user {
  color: var(--muted);
  font-size: 9px;
}

.person-dialog {
  width: min(900px, calc(100vw - 30px));
  max-height: min(860px, calc(100vh - 30px));
  margin: auto;
  overflow: hidden;
  background: #fff;
  border: 0;
  border-radius: 17px;
  box-shadow: 0 40px 100px rgba(7, 24, 37, 0.3);
  padding: 0;
}

.person-dialog::backdrop {
  background: rgba(5, 18, 29, 0.68);
  backdrop-filter: blur(4px);
}

.dialog-shell {
  position: relative;
  max-height: inherit;
  overflow-y: auto;
}

.dialog-close {
  position: sticky;
  z-index: 4;
  top: 15px;
  left: calc(100% - 52px);
  width: 34px;
  height: 34px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.93);
  border: 1px solid var(--line);
  border-radius: 50%;
  cursor: pointer;
  font-size: 18px;
}

.dialog-loading {
  min-height: 400px;
  display: grid;
  place-items: center;
  color: var(--muted);
}

.profile-header {
  min-height: 180px;
  display: grid;
  grid-template-columns: 76px minmax(0, 1fr);
  align-items: center;
  gap: 20px;
  margin-top: -35px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 20%, rgba(220, 159, 55, 0.23), transparent 28%),
    linear-gradient(140deg, var(--navy-950), var(--navy-800));
  padding: 40px 44px 31px;
}

.profile-avatar {
  width: 74px;
  height: 74px;
  background: rgba(35, 140, 137, 0.87);
  border: 5px solid rgba(255, 255, 255, 0.12);
  font-size: 21px;
}

.profile-header h1,
.profile-header h2 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 28px;
  letter-spacing: -0.045em;
}

.profile-header > a {
  color: #fff;
  font-size: 9px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
}

.profile-header p {
  margin: 5px 0 0;
  color: #b8c6cf;
  font-size: 11px;
}

.profile-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.profile-chips span {
  color: #dbe7eb;
  background: rgba(255, 255, 255, 0.09);
  border: 1px solid rgba(255, 255, 255, 0.09);
  border-radius: 12px;
  font-size: 8px;
  font-weight: 700;
  padding: 5px 8px;
}

.profile-section {
  border-bottom: 1px solid var(--line);
  padding: 25px 44px;
}

.profile-section:last-child {
  border-bottom: 0;
}

.profile-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 17px;
}

.profile-section h3 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 14px;
}

.profile-section-heading a {
  color: var(--teal-700);
  font-size: 10px;
  font-weight: 800;
  text-decoration: none;
}

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

.custom-fields > div {
  background: #f7f9f8;
  border: 1px solid #e7ecec;
  border-radius: 8px;
  padding: 11px;
}

.custom-fields strong,
.custom-fields span {
  display: block;
}

.catalog-header {
  color: #fff;
  background:
    radial-gradient(circle at 82% 20%, rgba(220, 159, 55, 0.23), transparent 30%),
    linear-gradient(140deg, var(--navy-950), var(--navy-800));
  padding: 44px 44px 31px;
}

.catalog-header .kicker {
  color: #67c5bf;
}

.catalog-header h1 {
  margin: 0;
  font-family: "Manrope", sans-serif;
  font-size: 29px;
  letter-spacing: -0.045em;
}

.catalog-header > p:last-child {
  margin: 6px 0 0;
  color: #b9c7cf;
  font-size: 10px;
}

.catalog-records {
  display: grid;
  gap: 10px;
  padding: 24px 44px 35px;
}

.catalog-record {
  display: grid;
  grid-template-columns: minmax(180px, 0.7fr) minmax(280px, 1.3fr);
  gap: 22px;
  background: #f8faf9;
  border: 1px solid #e5ebec;
  border-radius: 10px;
  padding: 15px;
}

.catalog-record > div strong,
.catalog-record > div small {
  display: block;
}

.catalog-record > div strong {
  font-size: 11px;
}

.catalog-record > div small {
  margin-top: 3px;
  color: var(--muted);
  font-size: 8px;
}

.catalog-record dl {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 16px;
  margin: 0;
}

.catalog-record dl div {
  min-width: 0;
}

.catalog-record dt {
  color: var(--muted);
  font-size: 7px;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.catalog-record dd {
  margin: 2px 0 0;
  overflow: hidden;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.custom-fields strong {
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.custom-fields span {
  margin-top: 4px;
  font-size: 10px;
  overflow-wrap: anywhere;
}

.toast {
  position: fixed;
  z-index: 100;
  right: 24px;
  bottom: 24px;
  max-width: min(390px, calc(100vw - 48px));
  color: #fff;
  background: var(--navy-900);
  border-radius: 10px;
  box-shadow: var(--shadow-md);
  font-size: 12px;
  line-height: 1.5;
  padding: 13px 17px;
}

.toast.success { background: #176c52; }
.toast.error { background: #933d38; }

.skeleton-stack {
  display: grid;
  gap: 11px;
}

.skeleton-stack span {
  height: 38px;
  display: block;
  background: linear-gradient(90deg, #edf1f2 25%, #f8fafa 50%, #edf1f2 75%);
  background-size: 200% 100%;
  border-radius: 7px;
  animation: shimmer 1.4s infinite;
}

@keyframes view-in {
  from { opacity: 0; transform: translateY(5px); }
  to { opacity: 1; transform: translateY(0); }
}

@keyframes shimmer {
  from { background-position: 200% 0; }
  to { background-position: -200% 0; }
}

@keyframes pulse {
  50% { opacity: 0.35; transform: scale(0.82); }
}

@media (max-width: 1260px) {
  .metric-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .priority-card {
    grid-column: span 2;
  }

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

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

  .directory-filters {
    grid-template-columns: minmax(200px, 1.4fr) repeat(3, minmax(110px, 0.65fr));
  }

  .directory-filters button {
    grid-column: 1 / -1;
    justify-self: end;
  }
}

@media (max-width: 1030px) {
  .app-shell {
    grid-template-columns: 80px minmax(0, 1fr);
  }

  .sidebar {
    padding-inline: 11px;
  }

  .console-brand {
    justify-content: center;
    padding-inline: 0;
  }

  .console-brand > span:last-child,
  .nav-item > span:not(.nav-icon, .nav-count, .nav-state),
  .primary-nav > p,
  .mission-card,
  .account-card div {
    display: none;
  }

  .nav-item {
    justify-content: center;
    padding: 0;
  }

  .nav-icon {
    width: auto;
  }

  .nav-count,
  .nav-state {
    position: absolute;
    top: 5px;
    right: 7px;
    margin: 0;
  }

  .account-card {
    grid-template-columns: 34px;
    justify-content: center;
    padding-inline: 0;
  }

  .account-card button {
    display: none;
  }

  .people-grid {
    grid-template-columns: minmax(210px, 1.3fr) minmax(180px, 1fr) minmax(120px, 0.65fr) 80px;
  }

  .people-grid > :nth-child(4) {
    display: none;
  }
}

@media (max-width: 820px) {
  .sign-in-screen {
    grid-template-columns: 1fr;
  }

  .sign-in-panel {
    position: relative;
    min-height: 100vh;
    padding: 120px 32px 50px;
  }

  .sign-in-brand {
    top: 33px;
  }

  .sign-in-copy h1 {
    font-size: clamp(40px, 12vw, 60px);
  }

  .sign-in-visual {
    display: none;
  }

  .app-shell {
    display: block;
  }

  .sidebar {
    position: fixed;
    left: -268px;
    width: 246px;
    padding: 23px 17px 17px;
    box-shadow: 20px 0 45px rgba(7, 24, 37, 0.25);
    transition: left 0.22s ease;
  }

  .sidebar.mobile-open {
    left: 0;
  }

  .console-brand {
    justify-content: flex-start;
    padding-inline: 9px;
  }

  .console-brand > span:last-child,
  .nav-item > span:not(.nav-icon, .nav-count, .nav-state),
  .mission-card,
  .account-card div {
    display: block;
  }

  .primary-nav > p {
    display: block;
  }

  .nav-item {
    justify-content: flex-start;
    padding: 0 12px;
  }

  .nav-icon {
    width: 22px;
  }

  .nav-count,
  .nav-state {
    position: static;
    margin-left: auto;
  }

  .account-card {
    grid-template-columns: 34px minmax(0, 1fr) 28px;
    justify-content: normal;
    padding-inline: 8px;
  }

  .account-card button {
    display: block;
  }

  .console-topbar {
    grid-template-columns: 38px minmax(0, 1fr);
    gap: 10px;
    padding: 0 16px;
  }

  .mobile-menu-button {
    width: 38px;
    height: 38px;
    display: grid;
    place-items: center;
    color: var(--navy-800);
    background: #f3f6f6;
    border: 0;
    border-radius: 9px;
    cursor: pointer;
    font-size: 18px;
  }

  .topbar-actions {
    display: none;
  }

  .global-search kbd {
    display: none;
  }

  .global-search {
    grid-template-columns: 23px minmax(0, 1fr);
  }

  .console-content {
    padding: 22px 16px 35px;
  }

  .view-header {
    align-items: flex-start;
  }

  .view-header > .primary-action,
  .view-header > .secondary-action {
    display: none;
  }

  .connection-banner {
    grid-template-columns: 36px minmax(0, 1fr);
  }

  .connection-banner button {
    grid-column: 2;
    justify-self: start;
    padding: 0;
  }

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

  .overview-layout,
  .insight-grid,
  .data-bottom-grid {
    grid-template-columns: 1fr;
  }

  .priority-card,
  .span-two {
    grid-column: auto;
  }

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

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

  .directory-filters {
    grid-template-columns: 1fr 1fr;
  }

  .directory-filters .wide-filter {
    grid-column: 1 / -1;
  }

  .people-grid {
    grid-template-columns: minmax(180px, 1.2fr) minmax(130px, 0.8fr) 78px;
  }

  .people-grid > :nth-child(3),
  .people-grid > :nth-child(4) {
    display: none;
  }

  .registration-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .registration-toolbar form {
    width: 100%;
  }

  .registration-summary {
    grid-template-columns: 40px minmax(160px, 1fr) auto;
  }

  .registration-summary > :nth-child(3) {
    display: none;
  }

  .registration-details {
    padding-inline: 20px;
  }

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

  .automation-board {
    grid-template-columns: 1fr;
  }

  .data-control-panel {
    grid-template-columns: 1fr;
  }

  .data-control-actions {
    justify-content: flex-start;
  }

  .add-user-form {
    grid-template-columns: 1fr 130px;
  }

  .add-user-form button {
    grid-column: 1 / -1;
  }

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

  .user-row {
    grid-template-columns: minmax(160px, 1fr) 85px auto;
  }

  .user-row > :nth-child(3) {
    display: none;
  }
}

@media (max-width: 540px) {
  .sign-in-panel {
    padding-inline: 22px;
  }

  .console-content {
    padding-inline: 12px;
  }

  .view-header h1 {
    font-size: 29px;
  }

  .metric-grid {
    gap: 9px;
  }

  .metric-card {
    min-height: 112px;
    padding: 16px;
  }

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

  .overview-layout {
    gap: 11px;
  }

  .console-card {
    padding: 17px;
  }

  .launchpad-grid,
  .directory-filters,
  .team-grid,
  .profile-grid,
  .custom-fields,
  .dataset-grid {
    grid-template-columns: 1fr;
  }

  .team-summary-card {
    grid-template-columns: 1fr;
  }

  .team-summary-stats {
    grid-column: 1;
    grid-row: auto;
    text-align: left;
  }

  .team-summary-list {
    grid-template-columns: 1fr;
  }

  .directory-filters .wide-filter {
    grid-column: auto;
  }

  .directory-filters button {
    grid-column: auto;
    width: 100%;
  }

  .coverage-ring-row {
    grid-template-columns: 105px minmax(0, 1fr);
  }

  .coverage-ring {
    width: 100px;
    height: 100px;
  }

  .coverage-ring::after {
    width: 72px;
    height: 72px;
  }

  .people-grid {
    grid-template-columns: minmax(0, 1fr) 70px;
  }

  .people-grid > :nth-child(2),
  .people-grid > :nth-child(3),
  .people-grid > :nth-child(4) {
    display: none;
  }

  .filter-tabs {
    width: 100%;
  }

  .filter-tabs button {
    flex: 1;
    padding-inline: 5px;
  }

  .pipeline-summary {
    grid-template-columns: 1fr 1fr;
    gap: 8px;
  }

  .pipeline-summary article {
    padding: 12px;
  }

  .registration-summary {
    grid-template-columns: 36px minmax(0, 1fr) auto;
    padding-inline: 12px;
  }

  .registration-summary > :nth-child(3) {
    display: none;
  }

  .full-review-label {
    display: none;
  }

  .short-review-label {
    display: inline;
  }

  .expand-registration {
    min-height: 36px;
    gap: 6px;
    padding-inline: 10px;
  }

  .registration-photo-grid {
    grid-template-columns: 1fr;
  }

  .registration-photo-card {
    grid-template-columns: 104px 1fr;
  }

  .registration-photo-card img {
    width: 104px;
    height: 126px;
  }

  .pco-write-status {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .pco-write-status button {
    grid-column: 1 / -1;
  }

  .donut-wrap {
    grid-template-columns: 1fr;
    justify-items: center;
  }

  .donut-legend {
    width: 100%;
    grid-template-columns: 1fr 1fr;
  }

  .data-control-main {
    grid-template-columns: 43px 1fr;
  }

  .data-status-icon {
    width: 43px;
    height: 43px;
  }

  .add-user-form {
    grid-template-columns: 1fr;
  }

  .add-user-form button {
    grid-column: auto;
  }

  .user-row {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 9px;
    padding-inline: 15px;
  }

  .user-row > :nth-child(2),
  .user-row > :nth-child(3) {
    display: none;
  }

  .profile-header {
    grid-template-columns: 60px minmax(0, 1fr);
    gap: 13px;
    padding-inline: 20px;
  }

  .profile-avatar {
    width: 58px;
    height: 58px;
  }

  .profile-header h2 {
    font-size: 22px;
  }

  .profile-section {
    padding-inline: 20px;
  }

  .catalog-header {
    padding-inline: 20px;
  }

  .catalog-records {
    padding-inline: 16px;
  }

  .catalog-record {
    grid-template-columns: 1fr;
  }

  .toast {
    right: 12px;
    bottom: 12px;
    max-width: calc(100vw - 24px);
  }
}

.campus-person-cell {
  display: grid;
  grid-template-columns: 18px 38px minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.campus-person-cell input[type="checkbox"],
.campus-select-all input[type="checkbox"],
.routing-rule-row input[type="checkbox"] {
  width: 15px;
  height: 15px;
  accent-color: var(--teal-600);
}

.campus-bulk-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
  padding: 12px 18px;
  background: #fafbfa;
  border-bottom: 1px solid var(--line);
  font-size: 11px;
}

.campus-select-all {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.routing-rule-row {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 8px;
  padding: 9px 4px;
  border-bottom: 1px solid #edf1f2;
  font-size: 11px;
}

.routing-rule-row:last-child {
  border-bottom: none;
}

.routing-rule-row small {
  color: var(--muted);
  font-size: 9px;
}

.field-mapping-question small {
  display: block;
  margin-top: 3px;
}

.field-mapping-controls {
  display: grid;
  grid-template-columns: minmax(280px, 1fr);
  min-width: min(430px, 46vw);
}

.field-mapping-controls label {
  display: grid;
  gap: 4px;
}

.field-mapping-controls label > span {
  color: var(--muted);
  font-size: 8px;
  font-weight: 800;
  letter-spacing: 0.08em;
}

.field-mapping-controls select {
  width: 100%;
}

@media (max-width: 820px) {
  .routing-rule-row:has(.field-mapping-controls) {
    grid-template-columns: 1fr;
  }

  .field-mapping-controls {
    min-width: 0;
  }
}

/* Record diagnostic output. Structural JSON only -- no field values are ever
   rendered here -- but it still scrolls inside its own box so a long record
   cannot stretch the page. */
.diagnostic-output {
  margin: 16px 0 0;
  padding: 16px;
  max-height: 420px;
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--canvas);
  font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  white-space: pre;
  color: var(--ink);
}

/* Contact promotion preview: a summary stat row plus a candidate list. */
.promotion-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
  margin: 16px 0;
}

.promotion-summary > div {
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--canvas);
}

.promotion-summary strong {
  display: block;
  font-family: "Manrope", sans-serif;
  font-size: 20px;
  color: var(--navy-950);
}

.promotion-summary small {
  color: var(--muted);
}

.promotion-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.promotion-row {
  display: grid;
  grid-template-columns: minmax(180px, 1.3fr) 90px minmax(160px, 1fr) minmax(110px, 0.8fr) minmax(140px, 1fr);
  gap: 14px;
  align-items: center;
  padding: 10px 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
}

.promotion-row-rejected {
  background: var(--red-100);
  border-color: rgba(187, 76, 69, 0.25);
}

.promotion-row small {
  display: block;
  color: var(--muted);
}

/* -- Form Editor: hold-to-unlock gesture ---------------------------------- */

.console-brand {
  position: relative;
}

.console-brand.holding .brand-seal {
  animation: form-editor-hold-pulse 0.9s ease forwards;
}

.console-brand .brand-seal {
  position: relative;
}

.console-brand .brand-seal::after {
  content: "";
  position: absolute;
  inset: -4px;
  border-radius: 50%;
  border: 2px solid var(--teal-600);
  opacity: 0;
  transform: scale(0.7);
}

.console-brand.holding .brand-seal::after {
  animation: form-editor-hold-ring 0.9s ease forwards;
}

@keyframes form-editor-hold-pulse {
  0% { transform: scale(1); }
  50% { transform: scale(0.92); }
  100% { transform: scale(1); }
}

@keyframes form-editor-hold-ring {
  0% { opacity: 0; transform: scale(0.7); }
  70% { opacity: 1; }
  100% { opacity: 1; transform: scale(1.15); }
}

#form-editor-pin-input {
  width: 100%;
  margin-top: 18px;
  padding: 12px 14px;
  font-size: 20px;
  font-weight: 700;
  letter-spacing: 6px;
  text-align: center;
  color: var(--ink);
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: 10px;
}

.pin-dialog-error {
  margin: 10px 0 0;
  color: var(--red-600);
  font-size: 11px;
  font-weight: 700;
}

/* -- Form Editor: sections and fields -------------------------------------- */

.form-editor-header-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.form-editor-sections {
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.form-editor-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 13px;
  box-shadow: var(--shadow-sm);
  padding: 20px;
}

.form-editor-section-header {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  margin-bottom: 14px;
}

.form-editor-section-header .fe-field {
  flex: 1;
}

.form-editor-section-title-input {
  width: 100%;
  font-family: "Manrope", sans-serif;
  font-size: 17px;
  font-weight: 800;
  color: var(--ink);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  background: transparent;
}

.form-editor-section-title-input:hover,
.form-editor-section-title-input:focus {
  border-color: var(--line);
  background: var(--canvas);
}

.form-editor-section-help-input {
  width: 100%;
  margin-top: 4px;
  font-size: 12px;
  color: var(--muted);
  border: 1px solid transparent;
  border-radius: 8px;
  padding: 6px 8px;
  background: transparent;
  resize: vertical;
}

.form-editor-section-help-input:hover,
.form-editor-section-help-input:focus {
  border-color: var(--line);
  background: var(--canvas);
}

.form-editor-section-actions {
  display: flex;
  gap: 6px;
}

.form-editor-section-actions button {
  min-width: 30px;
  min-height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
  cursor: pointer;
}

.form-editor-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.form-editor-field {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 14px;
  background: var(--canvas-warm);
}

.form-editor-field.is-system {
  background: var(--teal-100);
  border-color: rgba(35, 140, 137, 0.25);
}

.form-editor-field-header {
  display: flex;
  align-items: center;
  gap: 10px;
}

.fe-label-input {
  flex: 1;
  font-size: 14px;
  font-weight: 700;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
}

.fe-type-badge {
  flex-shrink: 0;
  padding: 4px 9px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--teal-700);
  background: var(--teal-100);
  border-radius: 999px;
}

.fe-help-input,
.fe-placeholder-input {
  width: 100%;
  margin-top: 8px;
  font-size: 12px;
  color: var(--ink);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: #fff;
  resize: vertical;
}

.form-editor-options {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-top: 10px;
}

.form-editor-option-row {
  display: grid;
  grid-template-columns: 1fr 1fr auto;
  gap: 6px;
}

.form-editor-option-row input {
  font-size: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 6px 8px;
  background: #fff;
}

.form-editor-field-footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

.form-editor-field-footer label {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted);
}

.form-editor-field-footer select {
  font-size: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 5px 8px;
  background: #fff;
}

.form-editor-field-footer button {
  font-size: 10px;
  font-weight: 800;
  border: 1px solid var(--line-dark);
  border-radius: 8px;
  padding: 5px 10px;
  background: #fff;
  cursor: pointer;
}

.fe-system-note {
  font-size: 10px;
  font-weight: 700;
  color: var(--teal-700);
}

.form-editor-add-field {
  align-self: flex-start;
  margin-top: 4px;
  font-size: 11px;
  font-weight: 800;
  color: var(--teal-700);
  background: none;
  border: 1px dashed var(--teal-600);
  border-radius: 8px;
  padding: 8px 12px;
  cursor: pointer;
}
