:root {
  --hg-night: #102f29;
  --hg-deep: #173f37;
  --hg-teal: #2f7465;
  --hg-teal-bright: #6ca896;
  --hg-mint: #94b8ab;
  --hg-sky: #8daab0;
  --hg-sand: #c7a36d;
  --hg-sand-soft: #e4d1af;
  --hg-paper: #ececea;
  --hg-card: #f7f6f1;
  --hg-ink: #1b322e;
  --hg-copy: #687773;
  --hg-line: rgba(27, 50, 46, 0.11);
  --hg-shadow: 0 22px 55px rgba(34, 50, 46, 0.08);
  --hg-card-radius: 28px;
  --hg-ease: cubic-bezier(0.16, 1, 0.3, 1);
}

/* Homepage */

.entry-screen {
  display: flex;
  align-items: stretch;
  justify-content: center;
  background: #06161c;
  color: #f8f5ed;
  isolation: isolate;
}

.entry-video,
.entry-shade {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}

.entry-video {
  z-index: -3;
  pointer-events: none;
  object-fit: cover;
  object-position: center 54%;
  filter: saturate(0.92) contrast(1.04) brightness(0.86);
}

.entry-video::-webkit-media-controls,
.entry-video::-webkit-media-controls-panel,
.entry-video::-webkit-media-controls-overlay-play-button,
.entry-video::-webkit-media-controls-start-playback-button {
  display: none !important;
  -webkit-appearance: none;
}

.entry-shade {
  z-index: -2;
  pointer-events: none;
  background:
    linear-gradient(180deg, rgba(3, 17, 23, 0.72) 0%, rgba(3, 17, 23, 0.08) 34%, rgba(3, 17, 23, 0.03) 59%, rgba(3, 17, 23, 0.7) 100%),
    linear-gradient(90deg, rgba(3, 20, 27, 0.34), transparent 52%, rgba(4, 27, 33, 0.08));
}

.entry-nav {
  position: absolute;
  z-index: 6;
  top: 22px;
  left: clamp(20px, 3.5vw, 58px);
  right: clamp(20px, 3.5vw, 58px);
  min-height: 64px;
  padding: 0 4px 14px;
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  gap: 24px;
  border-bottom: 1px solid rgba(232, 246, 242, 0.18);
}

.entry-brand {
  width: max-content;
  display: inline-flex;
  align-items: center;
  gap: 12px;
  color: #fffdf6;
  font-family: "Pixelify Sans", ui-monospace, monospace;
  font-size: 20px;
  text-decoration: none;
}

.entry-brand-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(236, 246, 241, 0.5);
  border-radius: 14px;
  background: rgba(5, 33, 40, 0.24);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(12px);
  font-size: 16px;
}

.entry-nav-links {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(20px, 3vw, 46px);
}

.entry-nav-links a {
  color: rgba(247, 248, 240, 0.74);
  font-family: "Manrope", sans-serif;
  font-size: 13px;
  font-weight: 500;
  text-decoration: none;
  transition: color 180ms ease;
}

.entry-nav-links a:hover {
  color: #fffdf8;
}

.entry-sign-in {
  min-width: 104px;
  min-height: 44px;
  justify-self: end;
  padding: 0 20px;
  border: 1px solid rgba(239, 247, 241, 0.32);
  border-radius: 999px;
  background: rgba(6, 31, 38, 0.26);
  color: #fffdf8;
  font-family: "Manrope", sans-serif;
  font-weight: 600;
  backdrop-filter: blur(16px);
  transition: background-color 180ms ease, transform 180ms ease, border-color 180ms ease;
}

.entry-sign-in:hover {
  transform: translateY(-1px);
  border-color: rgba(255, 255, 255, 0.58);
  background: rgba(10, 49, 57, 0.48);
}

.entry-content {
  position: relative;
  z-index: 3;
  width: min(1180px, calc(100% - 44px));
  margin: auto;
  padding: 86px 0 132px;
  text-align: center;
}

.entry-kicker {
  width: max-content;
  max-width: 100%;
  min-height: 34px;
  margin: 0 auto 25px;
  padding: 5px 14px 5px 5px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid rgba(239, 247, 241, 0.2);
  border-radius: 999px;
  background: rgba(6, 35, 42, 0.28);
  color: rgba(250, 250, 243, 0.76);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  backdrop-filter: blur(14px);
}

.entry-kicker span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f6f3eb;
  color: #173036;
}

.entry-content h1 {
  max-width: 1160px;
  margin: 0 auto;
  color: #fffdf7;
  font-family: "Pixelify Sans", ui-monospace, monospace;
  font-size: clamp(58px, 8.1vw, 122px);
  font-weight: 400;
  letter-spacing: -0.045em;
  line-height: 0.88;
  text-wrap: balance;
  text-shadow: 0 10px 42px rgba(3, 18, 22, 0.44);
}

.entry-copy {
  max-width: 680px;
  margin: 27px auto 0;
  color: rgba(250, 249, 241, 0.76);
  font-family: "Manrope", sans-serif;
  font-size: clamp(14px, 1.3vw, 17px);
  line-height: 1.65;
  text-shadow: 0 4px 20px rgba(4, 18, 22, 0.35);
}

.entry-access {
  width: min(620px, 100%);
  margin: 30px auto 0;
  display: grid;
  justify-items: center;
}

.entry-cta-group > .entry-button {
  min-width: 190px;
  min-height: 54px;
  margin: 0;
  border: 0;
  background: #f8f6ef;
  color: #112b31;
  font-family: "Manrope", sans-serif;
  font-weight: 700;
  box-shadow: 0 18px 48px rgba(3, 20, 24, 0.28);
}

.entry-cta-group > .entry-button:hover {
  background: #ffffff;
  box-shadow: 0 22px 58px rgba(3, 20, 24, 0.34);
}

.entry-cta-group {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
}

.entry-cta-group > button[hidden] {
  display: none;
}

.entry-account-button {
  min-width: 166px;
  min-height: 54px;
  padding: 0 20px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  border: 1px solid rgba(247, 244, 235, 0.34);
  border-radius: 999px;
  background: rgba(7, 37, 44, 0.34);
  color: rgba(255, 253, 247, 0.9);
  font: 700 13px/1 "Manrope", sans-serif;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(16px);
  cursor: pointer;
  transition: transform 180ms ease, background-color 180ms ease, border-color 180ms ease;
}

.entry-account-button span:last-child {
  color: #e3bb7f;
  font-size: 17px;
}

.entry-account-button:hover {
  transform: translateY(-1px);
  border-color: rgba(247, 244, 235, 0.58);
  background: rgba(7, 37, 44, 0.5);
}

.entry-account-button:focus-visible {
  outline: 2px solid #f8f6ef;
  outline-offset: 4px;
}

.entry-account-button.is-primary {
  min-width: 190px;
  border-color: transparent;
  background: #f8f6ef;
  color: #112b31;
  box-shadow: 0 18px 48px rgba(3, 20, 24, 0.28);
}

.entry-demo-note {
  margin: 12px 0 0;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: rgba(250, 249, 241, 0.66);
  font: 600 10px/1.4 "Manrope", sans-serif;
  letter-spacing: 0.04em;
}

.entry-demo-note[hidden] {
  display: none;
}

.entry-demo-note span {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #49e0b7;
  box-shadow: 0 0 14px rgba(73, 224, 183, 0.72);
}

.entry-capabilities {
  position: absolute;
  z-index: 4;
  left: clamp(20px, 3.5vw, 58px);
  right: clamp(20px, 3.5vw, 58px);
  bottom: 26px;
  min-height: 58px;
  padding-top: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: clamp(24px, 7vw, 110px);
  border-top: 1px solid rgba(238, 243, 234, 0.18);
  color: rgba(250, 248, 239, 0.62);
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.entry-capabilities span {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

.entry-capabilities span::before {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--hg-sand-soft);
}

.entry-screen.is-auth-mode .entry-access {
  position: fixed;
  z-index: 20;
  inset: 0;
  width: auto;
  margin: 0;
  padding: 30px;
  place-content: center;
  background: rgba(4, 22, 27, 0.68);
  backdrop-filter: blur(12px);
}

.entry-screen.is-auth-mode .auth-tabs,
.entry-screen.is-auth-mode .auth-form,
.entry-screen.is-auth-mode .auth-status {
  width: min(560px, calc(100vw - 40px));
}

.entry-screen.is-auth-mode .auth-tabs {
  justify-self: start;
  background: rgba(8, 39, 46, 0.78);
}

.entry-screen.is-auth-mode .auth-form {
  border-color: rgba(235, 244, 236, 0.2);
  background: rgba(8, 38, 45, 0.84);
  box-shadow: 0 32px 90px rgba(2, 16, 20, 0.46);
}

.auth-panel-close {
  min-height: 44px;
  margin-top: 12px;
  padding: 0 18px;
  border: 1px solid rgba(245, 248, 241, 0.22);
  border-radius: 999px;
  background: rgba(4, 27, 33, 0.5);
  color: rgba(255, 255, 250, 0.78);
}

.auth-panel-close[hidden] {
  display: none;
}

/* Product shell */

.product-shell {
  --text: var(--hg-ink);
  --muted: var(--hg-copy);
  --primary: var(--hg-teal);
  --primary-hover: #0f5b68;
  --primary-text: #fff;
  --border: var(--hg-line);
  position: relative;
  width: 100%;
  height: 100dvh;
  min-height: 0;
  display: block;
  overflow: hidden;
  background:
    radial-gradient(circle at 82% -22%, rgba(141, 170, 176, 0.11), transparent 35%),
    linear-gradient(145deg, #efefec 0%, #e9eae6 100%);
  color: var(--hg-ink);
  color-scheme: light;
  font-family: "Manrope", -apple-system, BlinkMacSystemFont, "PingFang SC", sans-serif;
}

.product-sidebar {
  position: absolute;
  z-index: 2100;
  inset: 0 auto 0 0;
  width: 100px;
  min-height: 0;
  padding: 14px 10px 12px;
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 14px;
  background: transparent;
  color: rgba(18, 61, 53, 0.72);
  box-shadow: none;
  pointer-events: none;
}

.product-sidebar button,
.product-sidebar nav {
  pointer-events: auto;
}

.sidebar-brand {
  width: 62px;
  height: 62px;
  margin: 0 auto;
  border: 4px solid rgba(255, 255, 255, 0.86);
  border-radius: 999px;
  background: var(--hg-deep);
  color: #fffaf0;
  font-family: "Pixelify Sans", ui-monospace, monospace;
  font-size: 19px;
  box-shadow: 0 10px 26px rgba(18, 61, 53, 0.18), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-nav {
  --active-index: 0;
  --sidebar-item-height: 60px;
  position: relative;
  padding: 0;
  display: grid;
  justify-items: center;
  gap: 8px;
  overflow: visible;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.sidebar-nav::before {
  content: none;
}

.sidebar-utilities {
  display: grid;
  gap: 8px;
}

.sidebar-spacer {
  flex: 1 1 auto;
}

.sidebar-item,
.sidebar-profile {
  width: 100%;
  min-height: var(--sidebar-item-height, 60px);
  padding: 8px 4px;
  display: grid;
  place-items: center;
  gap: 4px;
  border: 0;
  border-radius: 999px;
  background: transparent;
  color: inherit;
  transition: color 220ms ease, background-color 220ms ease, transform 220ms var(--hg-ease), box-shadow 220ms ease;
}

.sidebar-nav .sidebar-item {
  position: relative;
  z-index: 1;
  width: 68px;
  min-height: 68px;
  border: 0;
  background: rgba(255, 255, 252, 0.86);
  box-shadow: 0 12px 28px rgba(18, 61, 53, 0.1), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(16px) saturate(88%);
}

.sidebar-nav .sidebar-item:hover {
  background: rgba(239, 243, 237, 0.96);
  color: var(--hg-teal);
  transform: translateY(-2px) scale(1.025);
}

.sidebar-utilities .sidebar-item {
  width: 68px;
  margin-inline: auto;
  border: 1px solid rgba(18, 61, 53, 0.08);
  background: rgba(255, 255, 252, 0.9);
  box-shadow: 0 10px 25px rgba(18, 61, 53, 0.06);
}

.sidebar-utilities .sidebar-item:hover {
  background: rgba(103, 203, 179, 0.18);
  color: var(--hg-deep);
  transform: translateY(-1px);
}

.sidebar-item.is-active {
  background: var(--hg-deep);
  color: #fffdf7;
  box-shadow: 0 14px 30px rgba(18, 61, 53, 0.22), inset 0 1px rgba(255, 255, 255, 0.08);
}

.sidebar-nav .sidebar-item.is-active:hover {
  background: var(--hg-deep);
  color: #fffdf7;
}

.sidebar-item svg,
.workspace-icon-button svg,
.applications-search svg {
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.sidebar-item svg {
  width: 21px;
  height: 21px;
}

.sidebar-item:first-child svg path:first-child {
  fill: currentColor;
  stroke: none;
}

.sidebar-item span,
.sidebar-profile > span:last-child {
  max-width: 100%;
  overflow: hidden;
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.sidebar-profile {
  min-height: 68px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  font: inherit;
}

.sidebar-profile[disabled] {
  cursor: default;
  opacity: 1;
}

.sidebar-profile.is-admin {
  cursor: pointer;
}

.sidebar-profile.is-admin:hover .sidebar-profile-avatar {
  transform: translateY(-2px);
  background: var(--hg-sand);
  box-shadow: 0 10px 22px rgba(85, 67, 41, 0.16);
}

.sidebar-profile-avatar {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--hg-sky);
  color: #24383a;
  font-weight: 700;
  transition: transform 180ms var(--hg-ease), background-color 180ms ease, box-shadow 180ms ease;
}

.auth-invite-field input {
  text-transform: uppercase;
  letter-spacing: 0.09em;
}

.product-main {
  position: relative;
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.app-view {
  width: 100%;
  height: 100%;
  min-width: 0;
  min-height: 0;
}

.app-view[hidden] {
  display: none !important;
}

.app-view.is-view-entering-forward {
  animation: workspace-view-forward 440ms var(--hg-ease) both;
}

.app-view.is-view-entering-backward {
  animation: workspace-view-backward 440ms var(--hg-ease) both;
}

@keyframes workspace-view-forward {
  from {
    opacity: 0.24;
    transform: translateX(34px) scale(0.992);
    clip-path: inset(0 0 0 7% round 34px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    clip-path: inset(0 round 0);
  }
}

@keyframes workspace-view-backward {
  from {
    opacity: 0.24;
    transform: translateX(-34px) scale(0.992);
    clip-path: inset(0 7% 0 0 round 34px);
  }
  to {
    opacity: 1;
    transform: translateX(0) scale(1);
    clip-path: inset(0 round 0);
  }
}

.overview-view,
.applications-view {
  padding: clamp(20px, 2.1vw, 32px);
  padding-left: calc(100px + clamp(20px, 2.1vw, 32px));
  overflow: auto;
}

.overview-view {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 22px;
}

.workspace-page-header {
  min-height: 78px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 24px;
}

.workspace-page-header h2 {
  margin: 3px 0 5px;
  color: var(--hg-ink);
  font-size: clamp(28px, 2.5vw, 38px);
  font-weight: 600;
  letter-spacing: -0.045em;
  line-height: 1;
}

.workspace-page-header > div > p:last-child {
  color: var(--hg-copy);
  font-size: 13px;
}

.workspace-kicker,
.workspace-eyebrow {
  color: var(--hg-teal);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.16em;
}

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

.demo-data-chip {
  min-height: 44px;
  padding: 0 14px 0 8px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(199, 163, 109, 0.34);
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.72);
  color: rgba(27, 50, 46, 0.68);
  font: inherit;
  font-size: 10px;
  font-weight: 700;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}

.demo-data-chip[hidden] { display: none; }

.demo-data-chip span {
  padding: 6px 8px;
  border-radius: 999px;
  background: var(--hg-sand-soft);
  color: var(--hg-deep);
  font-family: "Manrope", sans-serif;
  font-size: 8px;
  letter-spacing: 0.12em;
}

.demo-data-chip:hover,
.demo-data-chip:focus-visible {
  border-color: rgba(199, 163, 109, 0.72);
  background: #f8f4ea;
  transform: translateY(-1px);
}

.account-chip[data-state="demo"] .account-state-dot {
  background: var(--hg-sand);
  box-shadow: 0 0 0 4px rgba(210, 154, 97, 0.14);
}

.demo-data-chip:focus-visible {
  outline: 2px solid rgba(47, 116, 101, 0.62);
  outline-offset: 2px;
}

.workspace-primary-button,
.workspace-icon-button,
.workspace-text-button {
  border: 0;
  font: inherit;
  font-weight: 700;
}

.workspace-primary-button,
.workspace-icon-button {
  min-height: 46px;
  padding: 0 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border-radius: 15px;
}

.workspace-primary-button {
  background: var(--hg-deep);
  color: #fffdf7;
  box-shadow: 0 12px 28px rgba(11, 51, 59, 0.16);
}

.workspace-primary-button:hover {
  background: #12434b;
  transform: translateY(-1px);
}

.workspace-icon-button {
  border: 1px solid var(--hg-line);
  background: rgba(255, 255, 255, 0.56);
  color: var(--hg-ink);
}

.workspace-icon-button svg {
  width: 18px;
  height: 18px;
}

.workspace-text-button {
  padding: 6px 0;
  background: transparent;
  color: var(--hg-teal);
  font-size: 11px;
}

.workspace-text-button:hover {
  color: var(--hg-deep);
}

.overview-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  grid-template-rows: minmax(270px, 0.98fr) minmax(270px, 1.02fr);
  gap: 18px;
}

.workspace-card {
  position: relative;
  min-width: 0;
  min-height: 0;
  padding: 22px;
  overflow: hidden;
  border: 1px solid rgba(27, 50, 46, 0.07);
  border-radius: var(--hg-card-radius);
  background: rgba(247, 246, 241, 0.94);
  box-shadow: var(--hg-shadow), inset 0 1px rgba(255, 255, 255, 0.72);
}

.workspace-card-heading {
  position: relative;
  z-index: 2;
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.workspace-card-heading h3 {
  margin-top: 5px;
  color: var(--hg-ink);
  font-size: 19px;
  font-weight: 700;
  letter-spacing: -0.025em;
}

.workspace-card-heading > strong,
.workspace-card-heading > span {
  color: var(--hg-copy);
  font-size: 12px;
  font-weight: 600;
}

.pipeline-overview-card {
  grid-column: span 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 4px;
  isolation: isolate;
  border-color: rgba(75, 67, 53, 0.07);
  background:
    radial-gradient(circle at 86% 8%, rgba(255, 255, 255, 0.32), transparent 34%),
    linear-gradient(135deg, #dad5ca 0%, #cbc4b7 100%);
  box-shadow: 0 24px 58px rgba(72, 65, 52, 0.09), inset 0 1px rgba(255, 255, 255, 0.5);
}

.pipeline-overview-card::after {
  position: absolute;
  z-index: -1;
  right: -36px;
  bottom: -64px;
  width: 240px;
  height: 180px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 50%;
  content: "";
  transform: rotate(-18deg);
}

.pipeline-overview-card .workspace-eyebrow,
.pipeline-overview-card .workspace-card-heading > strong {
  color: rgba(30, 48, 49, 0.58);
}

.pipeline-overview-card .workspace-card-heading h3 {
  color: #172f31;
}

.pipeline-overview-card .overview-recent {
  display: none;
}

.role-signals-card {
  grid-column: span 7;
  container-type: inline-size;
  padding: 18px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
  border-color: rgba(27, 50, 46, 0.07);
  background:
    radial-gradient(circle at 100% 0%, rgba(255, 255, 255, 0.25), transparent 40%),
    linear-gradient(145deg, #d9e0db 0%, #cbd5ce 100%);
  color: var(--hg-ink);
  box-shadow: 0 24px 58px rgba(45, 72, 64, 0.1), inset 0 1px rgba(255, 255, 255, 0.52);
}

.role-signals-card .workspace-eyebrow {
  color: var(--hg-teal);
}

.role-signals-card .workspace-card-heading h3 {
  color: var(--hg-ink);
  font-size: 17px;
}

.role-signals-card .overview-empty {
  color: rgba(27, 50, 46, 0.55);
}

.role-signal-summary {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
}

.role-signal-metric {
  min-width: 88px;
  display: grid;
  justify-items: end;
}

.role-signal-metric > strong {
  color: var(--hg-deep);
  font-family: "Manrope", sans-serif;
  font-size: 23px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.role-signal-metric > span {
  margin-top: 3px;
  color: rgba(27, 50, 46, 0.52);
  font-size: 10px;
}

.role-signal-metric > .role-speed {
  margin-top: 5px;
  color: rgba(47, 116, 101, 0.78);
  font-size: 9px;
}

.role-plan-trigger {
  width: clamp(176px, 16vw, 230px);
  min-width: 0;
  min-height: 50px;
  padding: 7px 14px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 2px;
  overflow: hidden;
  border: 1px solid rgba(47, 116, 101, 0.2);
  border-radius: 16px;
  background: rgba(247, 246, 241, 0.5);
  color: var(--hg-deep);
  font: inherit;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 12px 30px rgba(3, 41, 33, 0.1), inset 0 1px rgba(255, 255, 255, 0.48);
  transition: background-color 180ms ease, border-color 180ms ease, box-shadow 180ms ease;
}

.role-plan-trigger > span,
.role-plan-trigger > strong {
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-plan-trigger > span {
  color: rgba(27, 50, 46, 0.54);
  font-size: 8px;
  font-weight: 760;
  letter-spacing: 0.12em;
}

.role-plan-trigger > strong {
  color: var(--hg-deep);
  font-size: 11px;
  font-weight: 720;
}

.role-plan-trigger.is-empty {
  border-color: rgba(199, 163, 109, 0.48);
  background: rgba(228, 209, 175, 0.52);
}

.role-plan-trigger:hover,
.role-plan-trigger:focus-visible {
  border-color: rgba(47, 116, 101, 0.38);
  background: rgba(247, 246, 241, 0.76);
  box-shadow: 0 14px 32px rgba(3, 41, 33, 0.13), inset 0 1px rgba(255, 255, 255, 0.68);
}

.role-plan-trigger:focus-visible {
  outline: 2px solid rgba(47, 116, 101, 0.62);
  outline-offset: 2px;
}

.geography-card {
  grid-column: span 7;
  padding: 0;
  border-color: rgba(27, 50, 46, 0.08);
  background:
    radial-gradient(circle at 82% 18%, rgba(255, 255, 255, 0.34), transparent 34%),
    linear-gradient(145deg, #d8ddd8 0%, #c7d0c9 100%);
  box-shadow: 0 24px 58px rgba(45, 72, 64, 0.1), inset 0 1px rgba(255, 255, 255, 0.56);
}

.map-card-heading {
  position: absolute;
  z-index: 5;
  top: 18px;
  left: 18px;
  right: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
  pointer-events: none;
}

.map-title-chip {
  padding: 10px 13px 11px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 17px;
  background: rgba(239, 238, 231, 0.84);
  box-shadow: 0 9px 28px rgba(22, 57, 59, 0.11);
  backdrop-filter: blur(12px);
  pointer-events: auto;
}

.map-title-chip .workspace-eyebrow {
  margin-bottom: 3px;
  font-size: 10px;
}

.map-title-chip h3 {
  font-size: 15px;
}

.overview-map-controls {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  pointer-events: auto;
}

.overview-map-filter {
  width: 164px;
  min-height: 42px;
  padding: 5px 6px 5px 10px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 17px;
  background: rgba(239, 238, 231, 0.84);
  box-shadow: 0 9px 28px rgba(22, 57, 59, 0.11);
  color: var(--hg-copy);
  font-size: 9px;
  font-weight: 750;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.overview-map-filter .system-select {
  min-width: 0;
}

.overview-map-filter .system-select-trigger {
  min-height: 32px;
  padding: 0 29px 0 9px;
  border-color: rgba(27, 50, 46, 0.1);
  border-radius: 12px;
  background: rgba(255, 255, 252, 0.7);
  color: var(--hg-ink);
  font-size: 10px;
  font-weight: 700;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86);
}

.overview-map-filter .system-select-caret {
  position: absolute;
  right: 5px;
  width: 22px;
  height: 22px;
  background: rgba(47, 116, 101, 0.1);
  color: var(--hg-teal);
}

.overview-map-filter .system-select-trigger:hover,
.overview-map-filter .system-select.is-open .system-select-trigger {
  border-color: rgba(47, 116, 101, 0.3);
  background: rgba(255, 255, 252, 0.9);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.1);
}

.overview-map-filter .system-select-menu {
  right: 0;
  left: auto;
  width: 176px;
  border-color: rgba(27, 50, 46, 0.14);
  background: rgba(247, 246, 241, 0.97);
  color: var(--hg-ink);
  box-shadow: 0 18px 42px rgba(34, 50, 46, 0.16), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(94%);
}

.overview-map-filter .system-select-menu::before {
  background: linear-gradient(90deg, transparent, rgba(47, 116, 101, 0.48), transparent);
}

.overview-map-filter .system-select-option {
  color: var(--hg-copy);
  font-size: 10px;
}

.overview-map-filter .system-select-option:hover,
.overview-map-filter .system-select-option:focus-visible,
.overview-map-filter .system-select-option[aria-selected="true"] {
  background: rgba(204, 225, 216, 0.42);
  color: var(--hg-deep);
}

.map-research-button {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(245, 248, 240, 0.52);
  border-radius: 50%;
  background: rgba(239, 238, 231, 0.88);
  box-shadow: 0 9px 28px rgba(22, 57, 59, 0.13);
  color: var(--hg-teal);
  font-size: 20px;
  font-weight: 700;
  cursor: pointer;
  backdrop-filter: blur(12px);
  pointer-events: auto;
  transition: background 180ms ease, color 180ms ease, transform 180ms ease;
}

.map-research-button:hover,
.map-research-button:focus-visible {
  background: var(--hg-sand-soft);
  color: var(--hg-deep);
  transform: translateY(-2px);
}

.map-research-button:focus-visible {
  outline: 2px solid rgba(11, 51, 59, 0.72);
  outline-offset: 3px;
}

.agenda-overview-card {
  grid-column: span 5;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 16px;
  border-color: rgba(49, 56, 52, 0.06);
  background:
    radial-gradient(circle at 88% 0%, rgba(255, 255, 255, 0.36), transparent 34%),
    linear-gradient(145deg, #e5e5df 0%, #d9dcd7 100%);
  box-shadow: 0 24px 58px rgba(47, 57, 53, 0.08), inset 0 1px rgba(255, 255, 255, 0.62);
}

.overview-pipeline {
  position: relative;
  min-height: 136px;
  display: grid;
  align-items: stretch;
  overflow: hidden;
}

.overview-funnel-track {
  position: relative;
  width: 100%;
  height: 100%;
  min-height: 136px;
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 5px;
  isolation: isolate;
}

.overview-funnel-track::before {
  position: absolute;
  z-index: -1;
  inset: 21px 0 24px;
  border-radius: 22px;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.1) 0, rgba(255, 255, 255, 0.1) 1px, transparent 1px, transparent 20%),
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), rgba(255, 255, 255, 0));
  content: "";
  pointer-events: none;
}

.funnel-stage {
  position: relative;
  min-width: 0;
  min-height: 136px;
  padding: 0;
  overflow: visible;
  border: 0;
  background: transparent;
  color: #18363a;
  cursor: pointer;
  opacity: 1;
  touch-action: manipulation;
  transition: opacity 240ms ease, filter 240ms ease;
}

.overview-funnel-track:has(.funnel-stage:hover) .funnel-stage:not(:hover) {
  opacity: 0.42;
}

.funnel-stage:hover,
.funnel-stage:focus-visible {
  z-index: 3;
  filter: saturate(1.08) brightness(1.02);
}

.funnel-stage:focus-visible {
  outline: 2px solid rgba(20, 73, 79, 0.78);
  outline-offset: -2px;
  border-radius: 16px;
}

.funnel-stage-shape {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  pointer-events: none;
  transform-origin: left center;
  animation: funnel-stage-enter 720ms var(--hg-ease) var(--funnel-delay) both;
}

.funnel-stage-layer {
  transform-box: fill-box;
  transform-origin: center;
  transition: transform 300ms var(--hg-ease), opacity 240ms ease;
}

.funnel-stage:hover .funnel-stage-layer:nth-of-type(1),
.funnel-stage:focus-visible .funnel-stage-layer:nth-of-type(1) {
  transform: scaleY(1.08);
}

.funnel-stage:hover .funnel-stage-layer:nth-of-type(2),
.funnel-stage:focus-visible .funnel-stage-layer:nth-of-type(2) {
  transform: scaleY(1.055);
}

.funnel-stage-value,
.funnel-stage-percent,
.funnel-stage-label {
  position: absolute;
  z-index: 2;
  left: 50%;
  opacity: 0;
  transform: translateX(-50%);
  animation: funnel-label-enter 420ms ease-out calc(var(--funnel-delay) + 180ms) forwards;
  white-space: nowrap;
}

.funnel-stage-value {
  top: 7px;
  color: #173337;
  font-size: 15px;
  font-weight: 750;
  letter-spacing: -0.03em;
}

.funnel-stage-percent {
  top: 50%;
  min-width: 44px;
  min-height: 24px;
  padding: 0 10px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 999px;
  background: #153b40;
  box-shadow: 0 7px 18px rgba(26, 51, 51, 0.18);
  color: #fffaf0;
  font-size: 10px;
  font-weight: 750;
  transform: translate(-50%, -50%);
}

.funnel-stage-label {
  bottom: 5px;
  max-width: calc(100% - 8px);
  overflow: hidden;
  color: rgba(26, 54, 57, 0.68);
  font-size: 10px;
  font-weight: 700;
  text-overflow: ellipsis;
}

@keyframes funnel-stage-enter {
  from { opacity: 0; transform: scaleX(0.08) scaleY(0.72); }
  to { opacity: 1; transform: scaleX(1) scaleY(1); }
}

@keyframes funnel-label-enter {
  from { opacity: 0; }
  to { opacity: 1; }
}

.overview-recent {
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.recent-update {
  min-width: 0;
  padding: 10px 12px;
  border-radius: 15px;
  background: rgba(232, 232, 224, 0.5);
}

.recent-update strong,
.recent-update span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.recent-update strong {
  color: var(--hg-ink);
  font-size: 11px;
}

.recent-update span {
  margin-top: 4px;
  color: var(--hg-copy);
  font-size: 9px;
}

.role-speed {
  color: var(--hg-sand-soft);
  font-weight: 650;
}

.overview-role-chart {
  position: relative;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(230px, 0.95fr) minmax(280px, 1.2fr);
  gap: 10px;
}

.overview-role-chart > .overview-empty {
  grid-column: 1 / -1;
  min-height: 90px;
}

.role-onboarding-empty {
  grid-column: 1 / -1;
  min-width: 0;
  min-height: 126px;
  padding: 16px 18px;
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(250px, 1.35fr);
  align-items: center;
  gap: 16px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.46);
  border-radius: 21px;
  background:
    radial-gradient(circle at 88% 18%, rgba(199, 163, 109, 0.2), transparent 34%),
    linear-gradient(145deg, #173f37 0%, #214b42 100%);
  color: #f7f3e9;
  text-align: left;
  cursor: pointer;
  box-shadow: 0 14px 34px rgba(23, 63, 55, 0.16), inset 0 1px rgba(255, 255, 255, 0.09);
}

.role-onboarding-copy {
  display: grid;
  gap: 5px;
}

.role-onboarding-copy small {
  color: var(--hg-sand-soft);
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.16em;
}

.role-onboarding-copy strong {
  font-size: 17px;
  letter-spacing: -0.02em;
}

.role-onboarding-copy em {
  max-width: 320px;
  color: rgba(245, 241, 232, 0.58);
  font-size: 10px;
  font-style: normal;
  line-height: 1.55;
}

.role-onboarding-bubbles {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 7px;
}

.role-onboarding-bubbles span {
  padding: 8px 11px;
  border-radius: 999px;
  background: rgba(247, 246, 241, 0.1);
  color: rgba(247, 243, 233, 0.82);
  font-size: 9px;
  box-shadow: inset 0 0 0 1px rgba(247, 243, 233, 0.12);
}

.role-onboarding-empty:hover .role-onboarding-bubbles span:nth-child(odd),
.role-onboarding-empty:focus-visible .role-onboarding-bubbles span:nth-child(odd) {
  background: rgba(228, 209, 175, 0.22);
  transform: translateY(-2px);
}

.role-onboarding-empty:focus-visible {
  outline: 3px solid rgba(199, 163, 109, 0.7);
  outline-offset: 3px;
}

.role-viz-panel {
  min-width: 0;
  min-height: 0;
  padding: 10px 11px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 6px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.42);
  border-radius: 18px;
  color: var(--hg-deep);
  box-shadow: 0 12px 30px rgba(3, 41, 33, 0.1), inset 0 1px rgba(255, 255, 255, 0.48);
}

.role-distribution-panel {
  background:
    radial-gradient(circle at 18% 44%, rgba(121, 167, 151, 0.16), transparent 45%),
    linear-gradient(145deg, #1b443b 0%, #14372f 100%);
  color: #f3efe6;
  box-shadow: 0 14px 34px rgba(23, 63, 55, 0.18), inset 0 1px rgba(255, 255, 255, 0.08);
}

.role-conversion-panel {
  background:
    radial-gradient(circle at 86% 12%, rgba(255, 255, 255, 0.38), transparent 38%),
    linear-gradient(145deg, #f0eee8 0%, #dfded5 100%);
  box-shadow: 0 14px 34px rgba(55, 62, 58, 0.09), inset 0 1px rgba(255, 255, 255, 0.55);
}

.role-viz-heading {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}

.role-viz-heading strong {
  color: var(--hg-deep);
  font-size: 11px;
  font-weight: 720;
}

.role-viz-heading span {
  color: rgba(18, 61, 53, 0.5);
  font-size: 8px;
  white-space: nowrap;
}

.role-distribution-panel .role-viz-heading strong {
  color: #f5f1e8;
}

.role-distribution-panel .role-viz-heading span {
  color: rgba(239, 235, 225, 0.48);
}

.role-distribution-body {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(148px, 0.95fr) minmax(104px, 1.05fr);
  align-items: center;
  gap: 6px;
}

.role-donut {
  position: relative;
  width: 100%;
  max-width: 164px;
  min-width: 0;
  min-height: 0;
  height: 100%;
  max-height: 164px;
  align-self: center;
  justify-self: center;
  display: grid;
  place-items: center;
  background-image: radial-gradient(circle, rgba(241, 237, 227, 0.1) 1px, transparent 1.2px);
  background-position: center;
  background-size: 10px 10px;
}

.role-donut svg {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  overflow: visible;
  filter: drop-shadow(0 8px 14px rgba(0, 0, 0, 0.12));
}

.role-donut-track {
  stroke: rgba(244, 240, 230, 0.12);
}

.role-donut-segment {
  cursor: pointer;
  animation: role-donut-appear 520ms var(--hg-ease) both;
  transition: opacity 180ms ease, filter 180ms ease;
}

.role-donut-segment:focus {
  outline: none;
}

.role-distribution-panel.has-active .role-donut-segment:not(.is-active) {
  opacity: 0.22;
}

.role-donut-segment.is-active {
  filter: saturate(1.2) brightness(1.12) drop-shadow(0 3px 4px rgba(18, 61, 53, 0.24));
}

.role-donut-center {
  position: absolute;
  display: grid;
  justify-items: center;
}

.role-donut-center strong {
  color: #f6f1e8;
  font-family: "Manrope", sans-serif;
  font-size: 22px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.role-donut-center small {
  max-width: 72px;
  margin-top: 4px;
  color: rgba(241, 237, 227, 0.58);
  font-size: 9px;
  text-align: center;
  white-space: nowrap;
}

.role-distribution-legend {
  min-width: 0;
  display: grid;
  align-content: center;
  gap: 3px;
}

.role-distribution-item {
  min-width: 0;
  min-height: 24px;
  padding: 3px 5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(245, 241, 232, 0.82);
  cursor: pointer;
  transition: opacity 160ms ease, background 160ms ease, transform 160ms ease;
}

.role-distribution-item > span,
.role-distribution-item > strong {
  min-width: 0;
  display: flex;
  align-items: center;
}

.role-distribution-item > span {
  gap: 6px;
  overflow: hidden;
  font-size: 10px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-distribution-item i {
  width: 9px;
  height: 9px;
  flex: 0 0 auto;
  border-radius: 3px;
  background: var(--role-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 12%, transparent);
}

.role-distribution-item > strong {
  gap: 4px;
  color: #f6f1e8;
  font-family: "Manrope", sans-serif;
  font-size: 11px;
  font-variant-numeric: tabular-nums;
}

.role-distribution-item small {
  color: rgba(241, 237, 227, 0.46);
  font-size: 8px;
  font-weight: 600;
}

.role-distribution-item:hover,
.role-distribution-item:focus-visible,
.role-distribution-item.is-active {
  background: rgba(255, 255, 255, 0.1);
  transform: translateX(2px);
}

.role-distribution-item:focus-visible {
  outline: 2px solid rgba(228, 209, 175, 0.68);
  outline-offset: 1px;
}

.role-distribution-panel.has-active .role-distribution-item:not(.is-active) {
  opacity: 0.34;
}

.role-progress-list {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(54px, 1fr));
  align-items: stretch;
  gap: 8px;
}

.role-progress-row {
  min-width: 0;
  min-height: 0;
  padding: 7px 6px 5px;
  display: grid;
  grid-template-rows: auto minmax(54px, 1fr) auto;
  justify-items: center;
  gap: 6px;
  border: 0;
  border-radius: 14px;
  background: transparent;
  color: var(--hg-deep);
  text-align: center;
  cursor: pointer;
  transition: background 160ms ease, transform 160ms ease;
}

.role-progress-row:hover,
.role-progress-row:focus-visible {
  background: rgba(255, 255, 255, 0.36);
  transform: translateY(-2px);
}

.role-progress-row:focus-visible {
  outline: 2px solid rgba(18, 61, 53, 0.62);
  outline-offset: 1px;
}

.role-progress-value {
  align-self: end;
  color: var(--hg-deep);
  font-family: "Manrope", sans-serif;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
  line-height: 1;
}

.role-progress-caption {
  min-width: 0;
  display: grid;
  align-items: center;
  justify-items: center;
  gap: 2px;
}

.role-progress-label {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 5px;
  justify-content: center;
  overflow: hidden;
  color: rgba(18, 61, 53, 0.82);
  font-size: 11px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.role-progress-label i {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--role-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--role-color) 14%, transparent);
}

.role-progress-track {
  position: relative;
  width: 24px;
  height: 100%;
  min-height: 54px;
  overflow: hidden;
  border-radius: 8px 8px 4px 4px;
  background-color: rgba(18, 61, 53, 0.1);
  background-image: radial-gradient(circle, rgba(18, 61, 53, 0.2) 1px, transparent 1.2px);
  background-size: 6px 6px;
}

.role-progress-track i {
  position: absolute;
  inset: auto 0 0;
  width: 100%;
  height: var(--role-progress);
  min-height: 3px;
  border-radius: inherit;
  background: linear-gradient(0deg, var(--role-color), color-mix(in srgb, var(--role-color) 72%, #ffffff));
  box-shadow: 0 0 12px color-mix(in srgb, var(--role-color) 30%, transparent);
  animation: role-progress-grow 520ms var(--hg-ease) both;
}

.role-progress-caption small {
  color: rgba(18, 61, 53, 0.48);
  font-size: 9px;
  font-weight: 620;
  white-space: nowrap;
}

@keyframes role-donut-appear {
  from { opacity: 0; }
  to { opacity: 1; }
}

@keyframes role-progress-grow {
  from { height: 0; opacity: 0.3; }
  to { height: var(--role-progress); opacity: 1; }
}

@media (prefers-reduced-motion: reduce) {
  .role-donut-segment,
  .role-progress-track i { animation: none; }
}

@container (max-width: 520px) {
  .overview-role-chart {
    grid-template-columns: 1fr;
    grid-template-rows: minmax(106px, 0.9fr) minmax(124px, 1.1fr);
    gap: 8px;
  }

  .role-viz-panel {
    padding: 7px 9px;
    gap: 4px;
    border-radius: 14px;
  }

  .role-viz-heading span {
    display: none;
  }

  .role-distribution-body {
    grid-template-columns: 88px minmax(0, 1fr);
    gap: 8px;
  }

  .role-donut svg {
    width: 88px;
    height: 88px;
  }

  .role-donut-center strong {
    font-size: 15px;
  }

  .role-donut-center small {
    max-width: 54px;
    margin-top: 2px;
    font-size: 8px;
  }

  .role-distribution-legend {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 2px;
  }

  .role-distribution-item {
    min-height: 19px;
    padding: 2px 3px;
  }

  .role-distribution-item > span {
    gap: 4px;
    font-size: 8px;
  }

  .role-distribution-item i {
    width: 6px;
    height: 6px;
    border-radius: 2px;
  }

  .role-distribution-item > strong {
    font-size: 9px;
  }

  .role-distribution-item small {
    display: none;
  }

  .role-progress-list {
    gap: 4px;
  }

  .role-progress-row {
    padding: 5px 3px 4px;
    grid-template-rows: auto minmax(44px, 1fr) auto;
    gap: 4px;
  }

  .role-progress-label {
    font-size: 9px;
  }

  .role-progress-label i {
    width: 5px;
    height: 5px;
  }

  .role-progress-value {
    font-size: 13px;
  }

  .role-progress-track {
    width: 18px;
    min-height: 44px;
  }

  .role-progress-caption small {
    font-size: 7px;
  }
}

.overview-map {
  position: absolute;
  inset: 0;
  overflow: hidden;
  background:
    radial-gradient(circle at 50% 50%, rgba(255, 255, 255, 0.22), transparent 48%),
    linear-gradient(rgba(27, 50, 46, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 50, 46, 0.026) 1px, transparent 1px);
  background-size: auto, 32px 32px, 32px 32px;
}

.overview-choropleth {
  position: absolute;
  top: -16%;
  left: 8%;
  width: 78%;
  height: 132%;
}

.overview-province {
  stroke: rgba(199, 163, 109, 0.92);
  stroke-width: 1.25;
  vector-effect: non-scaling-stroke;
  cursor: default;
  transition: fill 180ms ease, opacity 180ms ease, filter 180ms ease, stroke 180ms ease;
}

.overview-province.count-0 {
  fill: #d8ddd7;
}

.overview-province.count-1 {
  fill: #b8c9bf;
}

.overview-province.count-2 {
  fill: #88a99c;
}

.overview-province.count-3 {
  fill: #537c6e;
}

.overview-province.count-4 {
  fill: #254f45;
}

.overview-province[data-count]:not([data-count="0"]) {
  cursor: pointer;
}

.overview-map.has-active-province .overview-province:not(.is-active) {
  opacity: 0.54;
}

.overview-province.is-active {
  fill: #c4a16c;
  stroke: rgba(199, 163, 109, 0.92);
  stroke-width: 1.25;
  filter: drop-shadow(0 3px 5px rgba(27, 50, 46, 0.14));
}

.overview-province:focus,
.overview-province:focus-visible {
  outline: none;
}

.overview-province:focus-visible {
  fill: #c4a16c;
  filter: brightness(0.94) drop-shadow(0 3px 5px rgba(27, 50, 46, 0.14));
}

.overview-country-outline {
  stroke: #173f37;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
  vector-effect: non-scaling-stroke;
  pointer-events: none;
  filter: drop-shadow(0 1px 1.5px rgba(23, 63, 55, 0.08));
}

.overview-province-count {
  pointer-events: none;
}

.overview-province-count circle {
  fill: #173f37;
  stroke: #f3eee4;
  stroke-width: 2;
  vector-effect: non-scaling-stroke;
  filter: drop-shadow(0 4px 6px rgba(23, 63, 55, 0.2));
}

.overview-province-count text {
  fill: #fffaf0;
  font-family: "Manrope", sans-serif;
  font-size: 12px;
  font-weight: 800;
  text-anchor: middle;
  dominant-baseline: middle;
}

.overview-map-legend {
  position: absolute;
  z-index: 4;
  right: 18px;
  bottom: 18px;
  padding: 7px 9px;
  display: flex;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.4);
  border-radius: 999px;
  background: rgba(232, 232, 224, 0.72);
  color: rgba(27, 50, 46, 0.62);
  font-size: 10px;
  backdrop-filter: blur(10px);
}

.overview-map-legend span {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.overview-map-legend i {
  width: 7px;
  height: 7px;
  border-radius: 2px;
}

.overview-map-legend i.count-0 { background: #d8ddd7; }
.overview-map-legend i.count-1 { background: #b8c9bf; }
.overview-map-legend i.count-2 { background: #88a99c; }
.overview-map-legend i.count-3 { background: #537c6e; }

.overview-map-summary {
  position: absolute;
  z-index: 5;
  left: 18px;
  bottom: 18px;
  width: max-content;
  max-width: calc(100% - 190px);
  padding: 7px 10px;
  border: 1px solid rgba(246, 246, 237, 0.44);
  border-radius: 999px;
  background: rgba(239, 238, 231, 0.82);
  color: var(--hg-copy);
  font-size: 11px;
  font-weight: 600;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  backdrop-filter: blur(12px);
}

.overview-agenda {
  min-height: 0;
  padding: 8px;
  overflow-y: auto;
  display: grid;
  align-content: start;
  gap: 8px;
  border: 1px solid rgba(255, 255, 255, 0.58);
  border-radius: 20px;
  background: rgba(248, 247, 242, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.74);
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 116, 101, 0.22) transparent;
}

.overview-agenda-item {
  min-height: 58px;
  padding: 5px 6px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border: 1px solid rgba(27, 50, 46, 0.08);
  border-radius: 16px;
  background: rgba(255, 255, 252, 0.72);
  color: var(--hg-ink);
  transition: border-color 180ms ease, background 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

.overview-agenda-item:hover,
.overview-agenda-item:focus-within {
  border-color: rgba(196, 161, 108, 0.5);
  background: rgba(231, 218, 193, 0.7);
  box-shadow: 0 9px 22px rgba(98, 75, 46, 0.08);
  transform: translateY(-1px);
}

.overview-agenda-item.is-overdue {
  border-color: rgba(199, 104, 87, 0.32);
}

.overview-agenda-main {
  min-width: 0;
  min-height: 48px;
  padding: 4px 6px;
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: inherit;
  text-align: left;
  cursor: pointer;
}

.overview-agenda-main:focus-visible,
.overview-agenda-join:focus-visible {
  outline: 2px solid rgba(20, 73, 79, 0.76);
  outline-offset: 2px;
}

.overview-agenda-join {
  min-height: 36px;
  padding: 0 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  border: 1px solid rgba(11, 51, 59, 0.12);
  border-radius: 999px;
  background: var(--hg-deep);
  color: #fffaf0;
  font-size: 10px;
  font-weight: 750;
  text-decoration: none;
  white-space: nowrap;
  transition: background 180ms ease, transform 180ms ease;
}

.overview-agenda-join:hover {
  background: var(--hg-teal);
  transform: translateY(-1px);
}

.agenda-date-block {
  display: grid;
  place-items: center;
  color: var(--hg-teal);
}

.agenda-date-block b {
  font-size: 17px;
  line-height: 1;
}

.agenda-date-block span {
  margin-top: 3px;
  font-size: 10px;
  font-weight: 700;
}

.overview-agenda-copy {
  min-width: 0;
}

.overview-agenda-copy strong,
.overview-agenda-copy span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.overview-agenda-copy strong {
  font-size: 12px;
}

.overview-agenda-copy span {
  margin-top: 4px;
  color: var(--hg-copy);
  font-size: 11px;
}

.overview-agenda-time {
  color: var(--hg-copy);
  font-size: 11px;
  font-weight: 700;
}

.overview-agenda-empty {
  min-height: 100%;
  padding: 22px;
  display: grid;
  align-content: end;
  border: 1px dashed rgba(27, 50, 46, 0.14);
  border-radius: 16px;
  background:
    radial-gradient(circle at 82% 20%, rgba(148, 184, 171, 0.24), transparent 34%),
    linear-gradient(145deg, rgba(255, 255, 252, 0.74), rgba(237, 237, 230, 0.78));
}

.overview-agenda-empty span {
  margin-bottom: 7px;
  color: var(--hg-teal);
  font-size: 10px;
  font-weight: 750;
  letter-spacing: 0.15em;
}

.overview-agenda-empty strong {
  color: var(--hg-ink);
  font-size: 15px;
}

.overview-agenda-empty small {
  max-width: 250px;
  margin-top: 6px;
  color: var(--hg-copy);
  font-size: 11px;
  line-height: 1.55;
}

.overview-empty {
  min-height: 110px;
  display: grid;
  place-items: center;
  color: rgba(100, 119, 120, 0.7);
  font-size: 12px;
  text-align: center;
}

/* Applications */

.applications-view {
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 20px;
}

.applications-toolbar {
  min-height: 66px;
  padding: 10px;
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(180px, 0.42fr) minmax(190px, 0.46fr) auto;
  gap: 12px;
  border: 1px solid var(--hg-line);
  border-radius: 22px;
  background: rgba(252, 251, 247, 0.72);
}

.applications-search {
  min-width: 0;
  padding: 0 16px;
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid transparent;
  border-radius: 15px;
  background: rgba(226, 230, 225, 0.58);
}

.applications-search:focus-within {
  border-color: rgba(23, 105, 119, 0.35);
  background: #f8f7f2;
}

.applications-search svg {
  width: 19px;
  height: 19px;
  color: var(--hg-copy);
}

.applications-search input {
  width: 100%;
  min-width: 0;
  min-height: 42px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hg-ink);
}

.applications-filter {
  padding: 6px 10px 6px 14px;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  align-items: center;
  gap: 10px;
  border-left: 1px solid var(--hg-line);
  color: var(--hg-copy);
  font-size: 10px;
  font-weight: 700;
}

.applications-filter .system-select {
  min-width: 0;
}

.applications-filter .system-select-trigger {
  min-height: 42px;
  padding: 0 36px 0 12px;
  border: 1px solid var(--hg-line);
  border-radius: 13px;
  background: var(--hg-card);
  color: var(--hg-ink);
  font-weight: 600;
}

.applications-filter .system-select-caret {
  position: absolute;
  right: 8px;
  background: rgba(108, 168, 150, 0.15);
  color: var(--hg-teal);
}

.applications-filter .system-select-trigger:hover,
.applications-filter .system-select.is-open .system-select-trigger {
  border-color: rgba(47, 116, 101, 0.3);
  background: rgba(240, 244, 238, 0.98);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.1);
}

.applications-filter .system-select-menu {
  border-color: rgba(27, 50, 46, 0.14);
  background: rgba(251, 250, 246, 0.98);
  color: var(--hg-ink);
  box-shadow: 0 18px 42px rgba(34, 50, 46, 0.18), inset 0 1px rgba(255, 255, 255, 0.9);
}

.applications-filter .system-select-option {
  color: var(--hg-copy);
}

.applications-filter .system-select-option:hover,
.applications-filter .system-select-option:focus-visible,
.applications-filter .system-select-option[aria-selected="true"] {
  background: rgba(204, 225, 216, 0.42);
  color: var(--hg-deep);
}

.applications-scope {
  min-height: 46px;
  padding: 0 6px 0 14px;
  display: flex;
  align-items: center;
  gap: 9px;
  border: 1px solid rgba(23, 105, 119, 0.16);
  border-radius: 15px;
  background: rgba(195, 222, 219, 0.34);
  color: var(--hg-teal);
  font-size: 10px;
  font-weight: 700;
  white-space: nowrap;
}

.applications-scope[hidden] {
  display: none;
}

.applications-scope button {
  width: 36px;
  min-width: 36px;
  height: 36px;
  border: 0;
  border-radius: 11px;
  background: rgba(20, 72, 78, 0.09);
  color: var(--hg-teal);
  font-size: 18px;
  cursor: pointer;
}

.applications-scope button:hover,
.applications-scope button:focus-visible {
  background: rgba(20, 72, 78, 0.16);
}

.applications-card {
  min-height: 0;
  overflow: hidden;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  border: 1px solid var(--hg-line);
  border-radius: var(--hg-card-radius);
  background: rgba(252, 251, 247, 0.9);
  box-shadow: var(--hg-shadow);
}

.applications-card-heading,
.application-row {
  display: grid;
  grid-template-columns: minmax(230px, 1.45fr) minmax(132px, 0.68fr) minmax(150px, 0.82fr) minmax(160px, 0.9fr) 238px;
  align-items: center;
  gap: 14px;
}

.applications-card-heading {
  min-height: 48px;
  padding: 0 20px;
  border-bottom: 1px solid var(--hg-line);
  color: var(--hg-copy);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.applications-list {
  min-height: 0;
  overflow-y: auto;
  padding: 8px;
  scrollbar-width: thin;
  scrollbar-color: rgba(22, 93, 104, 0.24) transparent;
}

.application-row {
  width: 100%;
  min-height: 76px;
  padding: 10px 12px;
  border: 0;
  border-radius: 17px;
  background: transparent;
  color: var(--hg-ink);
  text-align: left;
}

.application-row:hover {
  background: rgba(226, 231, 226, 0.62);
}

.application-main,
.application-base,
.application-schedule {
  min-width: 0;
}

.application-main strong,
.application-main span,
.application-base strong,
.application-base span,
.application-schedule strong,
.application-schedule span {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.application-main strong {
  font-size: 13px;
}

.application-company-link {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  border-radius: 5px;
  color: var(--hg-deep);
  text-decoration: none;
  transition: color 160ms ease, background-color 160ms ease;
}

.application-company-link svg {
  width: 13px;
  height: 13px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.application-company-link:hover,
.application-company-link:focus-visible {
  outline: 0;
  background: rgba(228, 209, 175, 0.34);
  color: #765729;
}

.application-main span,
.application-base span,
.application-schedule span {
  margin-top: 4px;
  color: var(--hg-copy);
  font-size: 12px;
  line-height: 1.45;
}

.application-base strong,
.application-schedule strong {
  font-size: 13px;
}

.application-stage-control {
  min-width: 0;
  --application-stage-color: #82919d;
}

.application-stage-control[data-stage="applied"] { --application-stage-color: #4db7ef; }
.application-stage-control[data-stage="test"] { --application-stage-color: #9a74ee; }
.application-stage-control[data-stage="interview"] { --application-stage-color: #ffb444; }
.application-stage-control[data-stage="offer"] { --application-stage-color: #42d7ac; }
.application-stage-control[data-stage="ended"] { --application-stage-color: #697886; }

.application-stage-control .system-select-trigger {
  min-height: 44px;
  padding: 6px 7px 6px 14px;
  border-color: color-mix(in srgb, var(--application-stage-color) 28%, var(--hg-line));
  border-radius: 14px;
  background:
    linear-gradient(90deg, color-mix(in srgb, var(--application-stage-color) 13%, transparent), transparent 74%),
    rgba(255, 255, 252, 0.74);
  color: var(--hg-deep);
  font-size: 12px;
  font-weight: 700;
}

.application-stage-control .system-select-trigger::before {
  width: 8px;
  height: 8px;
  flex: 0 0 auto;
  border-radius: 50%;
  background: var(--application-stage-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--application-stage-color) 14%, transparent);
  content: "";
}

.application-stage-control .system-select-value {
  margin-right: auto;
}

.application-stage-control .system-select-caret {
  background: color-mix(in srgb, var(--application-stage-color) 12%, transparent);
  color: var(--hg-teal);
}

.application-stage-control .system-select-trigger:hover,
.application-stage-control .system-select-trigger:focus-visible,
.application-stage-control .system-select.is-open .system-select-trigger {
  border-color: color-mix(in srgb, var(--application-stage-color) 58%, var(--hg-line));
  background: color-mix(in srgb, var(--application-stage-color) 13%, #fffdf8);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--application-stage-color) 12%, transparent);
}

.application-stage-control .system-select-menu {
  min-width: 172px;
  border-color: rgba(27, 50, 46, 0.14);
  background: rgba(251, 250, 246, 0.98);
  color: var(--hg-ink);
  box-shadow: 0 18px 42px rgba(34, 50, 46, 0.18), inset 0 1px rgba(255, 255, 255, 0.9);
  backdrop-filter: blur(20px) saturate(92%);
}

.application-stage-control .system-select-option {
  min-height: 42px;
  color: var(--hg-copy);
}

.application-stage-control .system-select-option:hover,
.application-stage-control .system-select-option:focus-visible,
.application-stage-control .system-select-option[aria-selected="true"] {
  background: rgba(204, 225, 216, 0.42);
  color: var(--hg-deep);
}

.application-stage-control .system-select-option[aria-selected="true"] .system-select-option-indicator {
  border-color: var(--application-stage-color);
  background: var(--application-stage-color);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--application-stage-color) 14%, transparent);
}

.application-schedule {
  width: 100%;
  min-width: 0;
  min-height: 52px;
  padding: 7px 10px;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  color: var(--hg-ink);
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: border-color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
}

.application-schedule:hover,
.application-schedule:focus-visible {
  outline: 0;
  border-color: rgba(199, 163, 109, 0.32);
  background: rgba(228, 209, 175, 0.22);
  box-shadow: inset 3px 0 rgba(199, 163, 109, 0.66);
}

.application-actions {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 6px;
}

.application-action {
  min-width: 0;
  min-height: 44px;
  padding: 0 10px;
  border: 1px solid var(--hg-line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.7);
  color: var(--hg-teal);
  font-size: 12px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.application-action svg {
  width: 15px;
  height: 15px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
  flex: 0 0 auto;
}

.application-edit {
  border-color: rgba(199, 155, 91, 0.34);
  background: rgba(229, 194, 143, 0.2);
  color: #765729;
}

.application-delete {
  border-color: rgba(168, 79, 93, 0.2);
  background: rgba(168, 79, 93, 0.06);
  color: #914653;
}

.application-action:hover,
.application-action:focus-visible {
  border-color: rgba(31, 113, 105, 0.34);
  background: rgba(204, 225, 216, 0.68);
  color: var(--hg-teal);
  box-shadow: 0 7px 18px rgba(20, 65, 60, 0.1);
}

.application-edit:hover,
.application-edit:focus-visible {
  border-color: rgba(183, 132, 55, 0.5);
  background: rgba(229, 194, 143, 0.42);
  color: #5f431c;
}

.application-delete:hover,
.application-delete:focus-visible {
  border-color: rgba(168, 79, 93, 0.42);
  background: rgba(168, 79, 93, 0.13);
  color: #7f3542;
}

.application-action:active {
  box-shadow: none;
  opacity: 0.76;
}

/* Existing research view, now contained as a dedicated page */

.research-view {
  --background: #dce2dd;
  --surface: rgba(247, 246, 241, 0.82);
  --surface-solid: #f7f6f1;
  --surface-soft: rgba(227, 232, 226, 0.84);
  --text: #1b322e;
  --muted: #687773;
  --border: rgba(27, 50, 46, 0.12);
  --hud-surface: rgba(247, 246, 241, 0.78);
  --hud-surface-deep: rgba(241, 241, 235, 0.94);
  --hud-surface-inner: rgba(229, 233, 227, 0.7);
  --hud-border: rgba(27, 50, 46, 0.12);
  --hud-shadow: 0 16px 38px rgba(34, 50, 46, 0.09), inset 0 1px rgba(255, 255, 255, 0.82);
  --primary: #2f7465;
  --primary-hover: #173f37;
  --primary-text: #fffaf0;
  --accent-soft: rgba(108, 168, 150, 0.16);
  --screening: #9fb6b0;
  --pending: #7c8999;
  --applied: #48b8ff;
  --test: #aa7dff;
  --interview: #ffb94a;
  --offer: #48e3b2;
  --ended: #67717e;
  --signal: #c39255;
  --city-volume: #86a99d;
  --city-preference: #c39255;
  position: relative;
  overflow: hidden;
  background: var(--background);
  color: var(--text);
}

.research-view .toolbar {
  top: 18px;
  left: 118px;
  right: 18px;
}

.research-view .mission-left {
  left: 118px;
}

.research-view .mission-right {
  right: 18px;
}

.research-view .mission-right .insights {
  grid-template-rows: minmax(218px, 0.72fr) minmax(0, 1.38fr);
  gap: 14px;
}

.research-view .insight-cities {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}

.research-view .insight-cities .city-chart {
  min-height: 0;
  padding: 2px 7px 4px 0;
  overflow-y: auto;
  align-content: start;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 116, 101, 0.3) transparent;
}

.research-view .mission-sidebar {
  bottom: 18px;
}

/* Flat research map: the same paper, sage and sand language as the workspace. */

.research-view .map-frame {
  background: #dbe1dc;
  box-shadow: inset 0 0 0 1px rgba(27, 50, 46, 0.05);
}

.research-view .map-frame::after {
  background:
    linear-gradient(rgba(27, 50, 46, 0.026) 1px, transparent 1px),
    linear-gradient(90deg, rgba(27, 50, 46, 0.026) 1px, transparent 1px),
    linear-gradient(rgba(225, 231, 225, 0.08), rgba(225, 231, 225, 0.08));
  background-size: 72px 72px, 72px 72px, auto;
  opacity: 0.58;
}

.research-view .toolbar,
.research-view .mission-left .list-panel,
.research-view .insight-panel,
.research-view .route-panel {
  border-color: rgba(27, 50, 46, 0.12);
  background: rgba(247, 246, 241, 0.8);
  box-shadow: 0 16px 38px rgba(34, 50, 46, 0.09), inset 0 1px rgba(255, 255, 255, 0.82);
  backdrop-filter: blur(20px) saturate(92%);
}

.research-view .toolbar {
  background: linear-gradient(105deg, rgba(247, 246, 241, 0.9), rgba(232, 236, 230, 0.82));
}

.research-view .hud-heading,
.research-view .insight-heading,
.research-view .route-itinerary-heading {
  background: linear-gradient(90deg, rgba(47, 116, 101, 0.2), transparent 82%) left bottom / 100% 1px no-repeat;
}

.research-view .system-select-trigger,
.research-view .account-chip,
.research-view .map-action,
.research-view .map-mode-indicator,
.research-view .route-close,
.research-view .route-swap,
.research-view .panel-rollup,
.research-view .insight-open-button {
  border-color: rgba(27, 50, 46, 0.13);
  background: rgba(255, 255, 252, 0.62);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.8);
}

.research-view .system-select-trigger:hover,
.research-view .map-action:hover,
.research-view .route-close:hover,
.research-view .route-swap:hover,
.research-view .panel-rollup:hover,
.research-view .insight-open-button:hover {
  border-color: rgba(47, 116, 101, 0.3);
  background: rgba(108, 168, 150, 0.16);
  color: var(--hg-deep);
}

.research-view .system-select-menu {
  border-color: rgba(27, 50, 46, 0.14);
  background: rgba(247, 246, 241, 0.96);
  box-shadow: 0 18px 42px rgba(34, 50, 46, 0.14), inset 0 1px rgba(255, 255, 255, 0.88);
  backdrop-filter: blur(22px) saturate(92%);
}

.research-view .system-select-menu::before {
  background: linear-gradient(90deg, transparent, rgba(47, 116, 101, 0.48), transparent);
}

.research-view .system-select-option {
  color: rgba(27, 50, 46, 0.72);
}

.research-view .system-select-option:hover,
.research-view .system-select-option:focus-visible,
.research-view .system-select-option[aria-selected="true"] {
  background: rgba(108, 168, 150, 0.16);
  color: var(--hg-deep);
}

.research-view .system-select-caret {
  background: rgba(47, 116, 101, 0.1);
  color: var(--hg-teal);
}

.research-view .account-chip button,
.research-view .selection-card .button,
.research-view .agenda-event-actions button {
  background: rgba(27, 50, 46, 0.06);
  color: var(--hg-ink);
}

.research-view .map-mode-indicator .system-pulse {
  background: var(--hg-teal-bright);
  box-shadow: 0 0 0 4px rgba(108, 168, 150, 0.15);
}

.research-view .map-mode-indicator small,
.research-view .section-heading .eyebrow,
.research-view .insight-heading .eyebrow,
.research-view .route-endpoint span,
.research-view .route-plan-time strong {
  color: var(--hg-teal);
}

.research-view .record-list {
  scrollbar-color: rgba(47, 116, 101, 0.28) transparent;
}

.research-view .mission-left .record-card {
  border-color: rgba(27, 50, 46, 0.08);
  background: rgba(255, 255, 252, 0.48);
}

.research-view .record-card:hover {
  border-color: rgba(47, 116, 101, 0.2);
  background: rgba(108, 168, 150, 0.12);
}

.research-view .record-card[aria-pressed="true"] {
  border-color: color-mix(in srgb, var(--record-accent, var(--hg-teal)) 34%, rgba(27, 50, 46, 0.12));
  background:
    radial-gradient(circle at 84% 8%, color-mix(in srgb, var(--record-accent, var(--hg-teal)) 12%, transparent), transparent 48%),
    rgba(232, 236, 230, 0.82);
  color: var(--hg-ink);
  box-shadow: 0 10px 24px rgba(34, 50, 46, 0.08), inset 3px 0 color-mix(in srgb, var(--record-accent, var(--hg-teal)) 68%, transparent);
}

.research-view .record-card[aria-pressed="true"] .record-address,
.research-view .record-card[aria-pressed="true"] .record-schedule,
.research-view .record-card[aria-pressed="true"] .record-meta {
  color: rgba(27, 50, 46, 0.68);
}

.research-view .city-chart-track,
.research-view .deadline-bar {
  background: rgba(27, 50, 46, 0.075);
}

.research-view .city-chart-volume {
  background: color-mix(in srgb, var(--city-volume) 76%, transparent);
  box-shadow: none;
}

.research-view .city-chart-volume i,
.research-view .chart-legend i {
  background: var(--city-preference);
  box-shadow: none;
}

.research-view .stage-flow {
  border-color: rgba(27, 50, 46, 0.1);
  background: rgba(27, 50, 46, 0.055);
}

.research-view .stage-flow-segment {
  border-right-color: rgba(247, 246, 241, 0.72);
}

.research-view .stage-flow-labels small,
.research-view .city-chart-label span {
  color: rgba(27, 50, 46, 0.66);
}

.research-view .selection-card {
  border-color: color-mix(in srgb, var(--selection-accent) 26%, rgba(27, 50, 46, 0.12));
  background:
    radial-gradient(circle at 84% 6%, color-mix(in srgb, var(--selection-accent) 11%, transparent), transparent 48%),
    rgba(247, 246, 241, 0.9);
  box-shadow: 0 18px 40px rgba(34, 50, 46, 0.12), inset 0 1px rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(22px) saturate(90%);
}

.research-view .route-panel,
.research-view .route-picker,
.research-view .route-itinerary,
.research-view .route-endpoint,
.research-view .route-plan,
.research-view .route-itinerary-step article {
  border-color: rgba(27, 50, 46, 0.11);
  background: rgba(255, 255, 252, 0.52);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.route-mode-switch {
  margin-bottom: 12px;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  padding: 5px;
  border: 1px solid rgba(27, 50, 46, 0.1);
  border-radius: 999px;
  background: rgba(27, 50, 46, 0.055);
}

.route-mode-switch button {
  min-width: 0;
  min-height: 40px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  padding: 7px 12px;
  border: 1px solid transparent;
  border-radius: 999px;
  background: transparent;
  color: rgba(27, 50, 46, 0.6);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.route-mode-switch button span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 50%;
  background: rgba(47, 116, 101, 0.1);
  font-size: 10px;
  font-weight: 800;
}

.route-mode-switch button strong {
  overflow: hidden;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.route-mode-switch button:hover {
  background: rgba(255, 255, 252, 0.48);
  color: var(--hg-deep);
}

.route-mode-switch button[aria-pressed="true"] {
  border-color: rgba(47, 116, 101, 0.16);
  background: rgba(255, 255, 252, 0.84);
  color: var(--hg-deep);
  box-shadow: 0 7px 18px rgba(34, 50, 46, 0.08), inset 0 1px rgba(255, 255, 255, 0.94);
}

.route-mode-switch button[data-route-mode="driving"][aria-pressed="true"] {
  border-color: rgba(212, 156, 89, 0.28);
  background: rgba(226, 190, 139, 0.22);
}

.route-mode-switch button[data-route-mode="driving"][aria-pressed="true"] span {
  background: rgba(212, 156, 89, 0.2);
  color: #8b5b28;
}

.research-view .route-plan.is-driving:hover,
.research-view .route-plan.is-driving[aria-pressed="true"] {
  border-color: rgba(212, 156, 89, 0.35);
  background: rgba(226, 190, 139, 0.18);
}

.route-itinerary-step.is-driving .route-step-rail i {
  box-shadow: 0 0 0 3px rgba(212, 156, 89, 0.18);
}

.route-driving-action {
  color: rgba(139, 91, 40, 0.76) !important;
}

.research-view .route-endpoint:hover,
.research-view .route-endpoint.is-active,
.research-view .route-plan:hover,
.research-view .route-plan[aria-pressed="true"] {
  border-color: rgba(47, 116, 101, 0.28);
  background: rgba(108, 168, 150, 0.14);
}

.research-view .route-picker-option {
  background: rgba(255, 255, 252, 0.4);
  color: var(--hg-ink);
}

.research-view .route-picker-option:hover {
  border-color: rgba(47, 116, 101, 0.2);
  background: rgba(108, 168, 150, 0.13);
}

.research-view .maplibregl-ctrl-group,
.research-view .maplibregl-ctrl-attrib {
  border: 1px solid rgba(27, 50, 46, 0.12);
  background: rgba(247, 246, 241, 0.88) !important;
  color: rgba(27, 50, 46, 0.68);
  box-shadow: 0 8px 20px rgba(34, 50, 46, 0.1);
}

.research-view .maplibregl-ctrl-group button {
  color: var(--hg-deep);
}

.research-view .maplibregl-ctrl-group button + button {
  border-top-color: rgba(27, 50, 46, 0.1);
}

.research-view .globe-marker-name {
  border-left-color: var(--marker-color);
  border-radius: 8px;
  background: rgba(23, 63, 55, 0.9);
  color: #fffaf0;
  box-shadow: 0 6px 16px rgba(34, 50, 46, 0.18);
}

.research-view .job-marker::before {
  border-color: rgba(255, 250, 240, 0.96);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--marker-color) 18%, transparent), 0 5px 14px rgba(34, 50, 46, 0.2);
}

.research-view .job-marker::after {
  border-color: color-mix(in srgb, var(--marker-color) 42%, transparent);
  box-shadow: none;
}

.research-view .point-cluster {
  --cluster-color: var(--hg-teal);
  --cluster-color-soft: rgba(47, 116, 101, 0.16);
  color: #fffaf0;
}

.research-view .point-cluster::before {
  background: rgba(247, 246, 241, 0.86);
  box-shadow: 0 0 0 5px var(--cluster-color-soft), 0 8px 20px rgba(34, 50, 46, 0.16);
}

.research-view .point-cluster span {
  border-color: rgba(255, 250, 240, 0.82);
  background: var(--hg-deep);
}

/* Calendar motion stays compositor-only: a quiet top-origin fade and lift. */

.calendar-dialog {
  --event-assessment: #8d76af;
  --event-interview: #c39147;
  --event-deadline: #5e8fa0;
  --event-offer: #4f987f;
  --text: var(--hg-ink);
  --muted: var(--hg-copy);
  --border: rgba(27, 50, 46, 0.12);
  --surface-solid: var(--hg-card);
  --surface-soft: rgba(225, 230, 224, 0.78);
  --primary: var(--hg-teal);
  --primary-hover: var(--hg-deep);
  --primary-text: #fffaf0;
  width: min(1180px, calc(100% - 32px));
  height: min(800px, calc(100dvh - 32px));
  max-height: calc(100dvh - 32px);
  border: 1px solid rgba(27, 50, 46, 0.12);
  border-radius: 32px;
  background:
    radial-gradient(circle at 78% 4%, rgba(148, 184, 171, 0.22), transparent 38%),
    #e8ebe6;
  color: var(--hg-ink);
  box-shadow: 0 34px 90px rgba(34, 50, 46, 0.22), inset 0 1px rgba(255, 255, 255, 0.88);
  color-scheme: light;
  backdrop-filter: none;
  transform-origin: 82% 0;
}

.calendar-dialog::backdrop {
  background: rgba(27, 50, 46, 0.22);
  backdrop-filter: none;
}

.calendar-dialog.is-opening {
  animation: calendar-enter 240ms cubic-bezier(0.22, 1, 0.36, 1) both;
  will-change: transform, opacity;
}

.calendar-dialog.is-minimizing {
  pointer-events: none;
  animation: calendar-exit 180ms cubic-bezier(0.4, 0, 1, 1) both;
  will-change: transform, opacity;
}

@keyframes calendar-enter {
  from { opacity: 0; transform: translateY(-14px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

@keyframes calendar-exit {
  from { opacity: 1; transform: translateY(0) scale(1); }
  to { opacity: 0; transform: translateY(-10px) scale(0.985); }
}

.calendar-shell {
  padding: 22px;
  gap: 16px;
}

.calendar-dialog-header h2 {
  color: var(--hg-deep);
  font-size: 28px;
  font-weight: 650;
}

.calendar-dialog-header .eyebrow {
  color: var(--hg-teal);
}

.calendar-dialog-header > div > p:last-child {
  color: var(--hg-copy);
  font-size: 13px;
  line-height: 1.55;
}

.calendar-minimize {
  min-height: 44px;
  padding: 0 15px;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  border: 1px solid rgba(27, 50, 46, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.62);
  color: var(--hg-deep);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.86);
}

.calendar-minimize svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.calendar-minimize:hover {
  background: rgba(108, 168, 150, 0.17);
}

.calendar-toolbar {
  min-height: 50px;
  padding: 6px 8px;
  border-color: rgba(27, 50, 46, 0.11);
  background: rgba(247, 246, 241, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
}

.calendar-toolbar strong {
  color: var(--hg-deep);
  font-size: 15px;
  font-weight: 650;
}

.calendar-nav-button,
.calendar-today-button {
  min-width: 40px;
  min-height: 38px;
  color: var(--hg-deep);
  font-size: 13px;
}

.calendar-nav-button:hover,
.calendar-today-button:hover {
  background: rgba(108, 168, 150, 0.16);
}

.calendar-today-button {
  color: var(--hg-teal);
  font-weight: 650;
}

.calendar-workspace {
  grid-template-columns: minmax(0, 1.5fr) minmax(340px, 0.88fr);
  gap: 18px;
}

.calendar-weekdays {
  color: rgba(27, 50, 46, 0.6);
  font-size: 12px;
  font-weight: 650;
}

.calendar-grid {
  gap: 7px;
}

.calendar-day {
  padding: 9px;
  border-color: rgba(27, 50, 46, 0.1);
  border-radius: 17px;
  background: rgba(255, 255, 252, 0.5);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.68);
  transition: transform 170ms var(--hg-ease), border-color 170ms ease, background 170ms ease;
}

.calendar-day:hover {
  border-color: rgba(47, 116, 101, 0.24);
  background: rgba(255, 255, 252, 0.78);
  transform: translateY(-1px);
}

.calendar-day.is-outside {
  color: rgba(27, 50, 46, 0.32);
  background: rgba(223, 227, 221, 0.36);
}

.calendar-day.is-today .calendar-day-number {
  color: #fffaf0;
  background: var(--hg-deep);
  box-shadow: 0 0 0 4px rgba(47, 116, 101, 0.12);
}

.calendar-day[aria-selected="true"] {
  border-color: rgba(47, 116, 101, 0.38);
  background:
    radial-gradient(circle at 84% 12%, rgba(199, 163, 109, 0.2), transparent 46%),
    rgba(220, 230, 223, 0.76);
  box-shadow: inset 0 0 0 1px rgba(47, 116, 101, 0.08);
}

.calendar-day-number {
  width: 29px;
  height: 29px;
  font-size: 13px;
  font-weight: 650;
}

.calendar-day-events {
  gap: 7px;
}

.calendar-day-events .event-dot {
  width: 10px;
  height: 10px;
}

.calendar-day-events .event-assessment {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-assessment) 17%, transparent);
}

.calendar-day-events .event-interview {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-interview) 17%, transparent);
}

.calendar-day-events .event-deadline {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-deadline) 17%, transparent);
}

.calendar-day-events .event-offer {
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--event-offer) 17%, transparent);
}

.calendar-day-count {
  color: rgba(27, 50, 46, 0.62);
  font-size: 11px;
  font-weight: 650;
}

.calendar-legend {
  color: rgba(27, 50, 46, 0.68);
  font-size: 12px;
}

.calendar-legend .event-dot {
  width: 9px;
  height: 9px;
}

.calendar-agenda {
  padding: 16px;
  border-color: rgba(27, 50, 46, 0.11);
  background:
    radial-gradient(circle at 88% 0%, rgba(148, 184, 171, 0.18), transparent 38%),
    rgba(247, 246, 241, 0.72);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
  scrollbar-color: rgba(47, 116, 101, 0.3) transparent;
}

.agenda-heading {
  background: linear-gradient(90deg, rgba(47, 116, 101, 0.2), transparent 82%) left bottom / 100% 1px no-repeat;
}

.agenda-heading .eyebrow {
  color: var(--hg-teal);
}

.agenda-heading h3 {
  color: var(--hg-deep);
  font-size: 19px;
  font-weight: 650;
}

.agenda-empty {
  color: var(--hg-copy);
  font-size: 13px;
}

.agenda-event {
  padding: 13px 14px;
  gap: 9px;
  border-color: color-mix(in srgb, var(--event-color) 32%, rgba(27, 50, 46, 0.1));
  border-radius: 18px;
  background:
    radial-gradient(circle at 94% 8%, color-mix(in srgb, var(--event-color) 12%, transparent), transparent 48%),
    rgba(255, 255, 252, 0.58);
  box-shadow: inset 3px 0 color-mix(in srgb, var(--event-color) 56%, transparent), inset 0 1px rgba(255, 255, 255, 0.74);
}

.agenda-event.is-focused {
  border-color: color-mix(in srgb, var(--event-color) 56%, rgba(27, 50, 46, 0.14));
  background:
    radial-gradient(circle at 92% 7%, color-mix(in srgb, var(--event-color) 15%, transparent), transparent 52%),
    rgba(227, 235, 229, 0.88);
  box-shadow: inset 4px 0 var(--event-color), 0 10px 24px rgba(34, 50, 46, 0.08);
}

.agenda-event-title {
  color: var(--hg-ink);
  font-size: 14px;
  font-weight: 650;
}

.agenda-event-title:hover,
.agenda-event-title[aria-pressed="true"] {
  color: var(--hg-teal);
}

.agenda-event-time {
  font-size: 12px;
  font-weight: 650;
}

.agenda-event-job,
.agenda-event-meta {
  color: rgba(27, 50, 46, 0.66);
  font-size: 12px;
  line-height: 1.55;
}

.agenda-event-job .event-dot {
  width: 9px;
  height: 9px;
}

.agenda-event-actions button {
  min-height: 34px;
  padding: 5px 10px;
  background: rgba(27, 50, 46, 0.06);
  color: rgba(27, 50, 46, 0.78);
  font-size: 11px;
}

.agenda-event-actions button:hover {
  background: rgba(108, 168, 150, 0.17);
  color: var(--hg-deep);
}

.event-form {
  border-top-color: rgba(27, 50, 46, 0.11);
}

.event-form input,
.event-form select,
.event-form textarea {
  border-color: rgba(27, 50, 46, 0.12);
  background: rgba(255, 255, 252, 0.72);
  color: var(--hg-ink);
  font-size: 13px;
}

.calendar-dialog .system-select-trigger {
  min-height: 44px;
  border-color: rgba(27, 50, 46, 0.13);
  background: rgba(255, 255, 252, 0.76);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
}

.calendar-dialog .system-select-trigger:hover,
.calendar-dialog .system-select.is-open .system-select-trigger {
  border-color: rgba(47, 116, 101, 0.34);
  background: rgba(240, 244, 238, 0.98);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.12);
}

.calendar-dialog .system-select-caret {
  background: rgba(108, 168, 150, 0.16);
  color: var(--hg-teal);
}

.calendar-dialog .system-select-menu {
  border-color: rgba(27, 50, 46, 0.14);
  background:
    linear-gradient(135deg, rgba(148, 184, 171, 0.12), transparent 42%),
    rgba(251, 250, 246, 0.98);
  box-shadow: 0 18px 45px rgba(18, 42, 36, 0.18), inset 0 1px rgba(255, 255, 255, 0.92);
}

.calendar-dialog .system-select-option {
  color: var(--hg-copy);
}

.calendar-dialog .system-select-option:hover,
.calendar-dialog .system-select-option:focus-visible,
.calendar-dialog .system-select-option[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(228, 209, 175, 0.42), rgba(204, 225, 216, 0.22));
  color: var(--hg-deep);
}

.calendar-dialog .system-select-option[aria-selected="true"] .system-select-option-indicator {
  border-color: var(--hg-teal);
  background: var(--hg-teal);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.18);
}

/* Career direction onboarding */

.career-directions-dialog {
  width: min(820px, calc(100vw - 36px));
  max-width: none;
  max-height: calc(100dvh - 36px);
  padding: 0;
  overflow: visible;
  border: 0;
  border-radius: 34px;
  background: transparent;
  color: var(--hg-ink);
}

.career-directions-dialog::backdrop {
  background: rgba(20, 48, 41, 0.3);
  backdrop-filter: blur(7px) saturate(72%);
}

.career-directions-shell {
  padding: clamp(22px, 3vw, 34px);
  display: grid;
  gap: 22px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 34px;
  background:
    radial-gradient(circle at 82% 8%, rgba(121, 167, 151, 0.26), transparent 32%),
    radial-gradient(circle at 10% 88%, rgba(199, 163, 109, 0.16), transparent 31%),
    linear-gradient(145deg, #f2f1eb 0%, #e1e6df 100%);
  box-shadow: 0 34px 90px rgba(25, 55, 47, 0.2), inset 0 1px rgba(255, 255, 255, 0.92);
}

.career-directions-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 22px;
}

.career-directions-heading h2 {
  margin: 5px 0 7px;
  color: var(--hg-deep);
  font-size: clamp(25px, 3vw, 34px);
  font-weight: 650;
  letter-spacing: -0.04em;
}

.career-directions-heading > div > p:last-child {
  max-width: 560px;
  color: var(--hg-copy);
  font-size: 12px;
  line-height: 1.55;
}

.career-directions-close {
  width: 44px;
  height: 44px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border: 1px solid rgba(27, 50, 46, 0.12);
  border-radius: 50%;
  background: rgba(255, 255, 252, 0.55);
  color: rgba(27, 50, 46, 0.68);
  font: inherit;
  font-size: 23px;
  cursor: pointer;
}

.career-direction-cloud {
  min-height: 260px;
  padding: 22px;
  display: flex;
  align-content: center;
  align-items: center;
  justify-content: center;
  flex-wrap: wrap;
  gap: 9px;
  border: 1px solid rgba(255, 255, 255, 0.56);
  border-radius: 27px;
  background:
    radial-gradient(circle, rgba(23, 63, 55, 0.07) 1px, transparent 1.2px),
    rgba(213, 221, 214, 0.58);
  background-size: 13px 13px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.58);
}

.career-direction-bubble {
  min-height: 44px;
  padding: 0 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  border: 1px solid rgba(23, 63, 55, 0.13);
  border-radius: 999px;
  background: rgba(248, 247, 242, 0.86);
  color: rgba(23, 63, 55, 0.74);
  font: inherit;
  font-size: 11px;
  font-weight: 680;
  cursor: pointer;
  box-shadow: 0 7px 18px rgba(35, 65, 57, 0.07), inset 0 1px rgba(255, 255, 255, 0.76);
  transition: background 180ms ease, border-color 180ms ease, color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}

.career-direction-bubble.is-small { min-height: 44px; padding-inline: 14px; font-size: 10px; }
.career-direction-bubble.is-medium { min-height: 48px; padding-inline: 18px; }
.career-direction-bubble.is-large { min-height: 54px; padding-inline: 21px; font-size: 12px; }

.career-direction-bubble:hover,
.career-direction-bubble:focus-visible {
  border-color: rgba(199, 163, 109, 0.62);
  background: #f6eedf;
  color: var(--hg-deep);
  transform: translateY(-2px);
}

.career-direction-bubble.is-selected {
  border-color: rgba(23, 63, 55, 0.72);
  background: var(--hg-deep);
  color: #fffaf0;
  box-shadow: 0 10px 24px rgba(23, 63, 55, 0.2), inset 0 1px rgba(255, 255, 255, 0.12);
}

.career-direction-bubble.is-selected:nth-child(4n + 2) {
  border-color: #c7a36d;
  background: #d8b77e;
  color: #173f37;
}

.career-direction-bubble span {
  font-size: 14px;
  line-height: 1;
}

.career-direction-bubble:focus-visible,
.career-directions-close:focus-visible,
.career-directions-footer button:focus-visible,
.career-custom-row button:focus-visible {
  outline: 2px solid rgba(47, 116, 101, 0.72);
  outline-offset: 3px;
}

.career-custom-row {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(280px, 1.3fr);
  align-items: center;
  gap: 18px;
}

.career-custom-row label {
  color: rgba(27, 50, 46, 0.65);
  font-size: 11px;
  font-weight: 650;
}

.career-custom-row > div {
  min-width: 0;
  padding: 5px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 7px;
  border: 1px solid rgba(27, 50, 46, 0.12);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.68);
}

.career-custom-row input {
  min-width: 0;
  min-height: 44px;
  padding: 0 14px;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--hg-ink);
  font: inherit;
  font-size: 12px;
}

.career-custom-row button {
  min-height: 44px;
  padding: 0 15px;
  border: 0;
  border-radius: 999px;
  background: rgba(121, 167, 151, 0.22);
  color: var(--hg-deep);
  font: inherit;
  font-size: 10px;
  font-weight: 720;
  cursor: pointer;
}

.career-directions-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
}

.career-directions-footer p {
  color: var(--hg-copy);
  font-size: 10px;
}

.career-directions-footer p[data-state="active"] { color: var(--hg-teal); }
.career-directions-footer p[data-state="error"] { color: #9b5749; }

.career-directions-footer > div {
  display: flex;
  gap: 8px;
}

.career-directions-footer button {
  min-height: 44px;
  padding: 0 18px;
  border-radius: 999px;
  font: inherit;
  font-size: 11px;
  font-weight: 720;
  cursor: pointer;
}

.career-directions-skip {
  border: 1px solid rgba(27, 50, 46, 0.12);
  background: rgba(255, 255, 252, 0.5);
  color: rgba(27, 50, 46, 0.68);
}

.career-directions-save {
  border: 1px solid var(--hg-deep);
  background: var(--hg-deep);
  color: #fffaf0;
  box-shadow: 0 10px 24px rgba(23, 63, 55, 0.17);
}

.career-directions-save:disabled { opacity: 0.55; cursor: wait; }

@media (max-width: 720px) {
  .workspace-header-actions .demo-data-chip {
    grid-column: 1 / -1;
    justify-self: start;
  }

  .career-directions-dialog {
    width: min(100% - 18px, 620px);
    max-height: calc(100dvh - 18px);
  }

  .career-directions-shell {
    max-height: calc(100dvh - 18px);
    padding: 20px 16px;
    gap: 16px;
    overflow: auto;
    border-radius: 26px;
  }

  .career-directions-heading > div > p:last-child { font-size: 11px; }

  .career-direction-cloud {
    min-height: 0;
    padding: 16px 11px;
    gap: 7px;
    border-radius: 22px;
  }

  .career-direction-bubble,
  .career-direction-bubble.is-small,
  .career-direction-bubble.is-medium,
  .career-direction-bubble.is-large {
    min-height: 44px;
    padding-inline: 14px;
    font-size: 10px;
  }

  .career-custom-row {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .career-directions-footer {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }

  .career-directions-footer > div {
    display: grid;
    grid-template-columns: 1fr 1fr;
  }

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

  .role-onboarding-bubbles { justify-content: flex-start; }
}

@media (prefers-reduced-motion: reduce) {
  .career-direction-bubble,
  .role-onboarding-bubbles span,
  .demo-data-chip { transition: none; }
}

/* Owner access and usage console */

.admin-dialog {
  width: min(1180px, calc(100vw - 40px));
  max-width: none;
  max-height: calc(100vh - 40px);
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--hg-ink);
  overflow: visible;
}

.admin-dialog::backdrop {
  background: rgba(28, 43, 39, 0.48);
  backdrop-filter: blur(10px) saturate(72%);
}

.admin-shell {
  height: min(820px, calc(100vh - 48px));
  padding: 24px;
  display: grid;
  grid-template-rows: auto auto minmax(0, 1fr);
  gap: 18px;
  overflow: hidden;
  border: 1px solid rgba(255, 255, 255, 0.84);
  border-radius: 34px;
  background:
    radial-gradient(circle at 88% 4%, rgba(141, 170, 176, 0.17), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 252, 0.98), rgba(234, 236, 231, 0.98));
  box-shadow: 0 34px 95px rgba(18, 42, 36, 0.22), inset 0 1px rgba(255, 255, 255, 0.94);
}

.admin-dialog-heading,
.admin-panel-heading,
.admin-recent-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
}

.admin-dialog-heading h2 {
  margin: 4px 0 5px;
  color: var(--hg-deep);
  font-size: clamp(27px, 3vw, 39px);
  letter-spacing: -0.045em;
}

.admin-dialog-heading > div:first-child > p:last-child,
.admin-panel-note {
  margin: 0;
  color: var(--hg-copy);
  font-size: 12px;
  line-height: 1.55;
}

.admin-heading-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

.admin-heading-actions .button-quiet {
  border-color: rgba(27, 50, 46, 0.1);
  background: rgba(255, 255, 252, 0.64);
  color: var(--hg-deep);
}

.admin-heading-actions .button-quiet:hover {
  background: rgba(148, 184, 171, 0.2);
}

.admin-refresh {
  min-height: 38px;
  padding: 0 15px;
  border: 1px solid rgba(27, 50, 46, 0.1);
  border-radius: 999px;
  background: rgba(255, 255, 252, 0.62);
  color: var(--hg-teal);
  font: inherit;
  font-size: 12px;
  font-weight: 650;
}

.admin-refresh:hover {
  background: rgba(148, 184, 171, 0.2);
}

.admin-refresh:disabled {
  cursor: wait;
  opacity: 0.48;
}

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

.admin-summary article {
  min-height: 92px;
  padding: 15px 17px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-content: space-between;
  gap: 3px 12px;
  border: 1px solid rgba(27, 50, 46, 0.09);
  border-radius: 23px;
  background: rgba(255, 255, 252, 0.68);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.88);
}

.admin-summary article.is-accent {
  background:
    radial-gradient(circle at 88% 12%, rgba(228, 209, 175, 0.4), transparent 44%),
    rgba(214, 225, 218, 0.72);
}

.admin-summary article.is-open {
  background:
    radial-gradient(circle at 86% 10%, rgba(73, 224, 183, 0.2), transparent 44%),
    rgba(223, 233, 226, 0.76);
}

.admin-summary article.is-open strong {
  color: var(--hg-teal);
  font-size: 24px;
  letter-spacing: 0.05em;
}

.admin-summary span {
  color: var(--hg-teal);
  font-family: "Manrope", sans-serif;
  font-size: 9px;
  font-weight: 700;
  letter-spacing: 0.13em;
}

.admin-summary strong {
  grid-row: span 2;
  align-self: center;
  color: var(--hg-deep);
  font-size: 31px;
  font-weight: 650;
}

.admin-summary small {
  color: var(--hg-copy);
  font-size: 11px;
}

.admin-grid {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(320px, 0.92fr);
  grid-template-rows: minmax(0, 1fr);
  gap: 12px;
}

.admin-panel {
  min-width: 0;
  min-height: 0;
  padding: 18px;
  border: 1px solid rgba(27, 50, 46, 0.1);
  border-radius: 25px;
  background: rgba(255, 255, 252, 0.58);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.82);
  overflow: hidden;
}

.admin-usage {
  display: grid;
  grid-template-rows: auto auto auto 132px minmax(0, 1fr);
  gap: 9px;
  background:
    radial-gradient(circle at 92% 4%, rgba(199, 163, 109, 0.2), transparent 38%),
    rgba(220, 229, 222, 0.72);
}

.admin-users {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 10px;
}

.admin-panel-heading h3 {
  margin: 2px 0 0;
  color: var(--hg-deep);
  font-size: 19px;
}

.admin-panel-heading > span,
.admin-panel-heading a,
.admin-recent-heading span {
  color: var(--hg-copy);
  font-size: 10px;
  text-decoration: none;
}

.admin-panel-heading a:hover {
  color: var(--hg-teal);
}

.admin-status {
  min-height: 17px;
  margin: 0;
  color: var(--hg-copy);
  font-size: 10px;
}

.admin-status[data-state="success"] {
  color: var(--hg-teal);
}

.admin-status[data-state="error"] {
  color: #9b5149;
}

.admin-user-list,
.admin-recent-usage {
  min-height: 0;
  overflow: auto;
  scrollbar-width: thin;
  scrollbar-color: rgba(47, 116, 101, 0.28) transparent;
}

.admin-user-row div,
.admin-recent-usage article div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.admin-user-row strong,
.admin-recent-usage article strong {
  overflow: hidden;
  color: var(--hg-ink);
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.admin-user-row span,
.admin-user-row small,
.admin-recent-usage article span,
.admin-recent-usage article small {
  color: var(--hg-copy);
  font-size: 9px;
  line-height: 1.45;
}

.admin-usage-legend {
  display: flex;
  align-items: center;
  gap: 14px;
  color: var(--hg-copy);
  font-size: 9px;
}

.admin-usage-legend span {
  display: flex;
  align-items: center;
  gap: 5px;
}

.admin-usage-legend i {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.admin-usage-legend .is-route,
.admin-usage-bars .is-route {
  background: var(--hg-teal);
}

.admin-usage-legend .is-search,
.admin-usage-bars .is-search {
  background: var(--hg-sand);
}

.admin-usage-legend .is-error,
.admin-usage-bars b {
  background: #b76f62;
}

.admin-usage-chart {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(14, minmax(10px, 1fr));
  align-items: end;
  gap: 5px;
  padding: 7px 5px 0;
  border-bottom: 1px solid rgba(27, 50, 46, 0.1);
}

.admin-usage-day {
  height: 100%;
  min-width: 0;
  display: grid;
  grid-template-rows: minmax(0, 1fr) 16px;
  gap: 3px;
}

.admin-usage-bars {
  min-height: 0;
  display: flex;
  align-items: end;
  justify-content: center;
  gap: 2px;
}

.admin-usage-bars i,
.admin-usage-bars b {
  width: clamp(3px, 28%, 8px);
  min-height: 0;
  border-radius: 4px 4px 1px 1px;
}

.admin-usage-day > span {
  overflow: hidden;
  color: rgba(27, 50, 46, 0.5);
  font-size: 7px;
  text-align: center;
  white-space: nowrap;
}

.admin-recent-heading {
  margin-bottom: 3px;
}

.admin-recent-heading strong {
  color: var(--hg-deep);
  font-size: 11px;
}

.admin-recent-usage article {
  min-height: 39px;
  display: grid;
  grid-template-columns: 7px minmax(0, 1fr) auto;
  align-items: center;
  gap: 8px;
  border-top: 1px solid rgba(27, 50, 46, 0.07);
}

.admin-recent-usage article > i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--hg-teal-bright);
}

.admin-recent-usage article > i.is-error {
  background: #b76f62;
}

.admin-user-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-content: start;
  gap: 4px 14px;
}

.admin-user-row {
  min-height: 54px;
  padding: 7px 8px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 9px;
  border-bottom: 1px solid rgba(27, 50, 46, 0.07);
}

.admin-user-avatar {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: rgba(148, 184, 171, 0.27);
  color: var(--hg-deep);
  font-size: 12px;
  font-weight: 700;
}

.admin-user-row small {
  text-align: right;
}

.admin-empty {
  margin: auto;
  color: var(--hg-copy);
  font-size: 11px;
  text-align: center;
}

.admin-recent-empty {
  padding-top: 10px;
}

/* Workspace dialogs — shared light editorial theme */

.job-dialog,
.friends-dialog {
  --surface: rgba(247, 246, 241, 0.92);
  --surface-solid: #fbfaf6;
  --surface-soft: rgba(226, 231, 226, 0.72);
  --text: var(--hg-ink);
  --muted: var(--hg-copy);
  --border: rgba(27, 50, 46, 0.13);
  --primary: var(--hg-teal);
  --primary-hover: #255f54;
  --primary-text: #fffdf6;
  --accent-soft: rgba(108, 168, 150, 0.18);
  --danger: #a84f5d;
  --event-assessment: #8d7fb1;
  --event-interview: #d39a56;
  --event-deadline: #559ca5;
  --event-offer: #62ad91;
  color-scheme: light;
  border: 1px solid rgba(255, 255, 255, 0.88);
  background:
    radial-gradient(circle at 92% 0%, rgba(141, 170, 176, 0.16), transparent 33%),
    radial-gradient(circle at 2% 100%, rgba(228, 209, 175, 0.18), transparent 31%),
    linear-gradient(145deg, rgba(255, 255, 252, 0.985), rgba(236, 238, 233, 0.985));
  color: var(--hg-ink);
  box-shadow: 0 34px 95px rgba(18, 42, 36, 0.22), inset 0 1px rgba(255, 255, 255, 0.96);
  scrollbar-color: rgba(47, 116, 101, 0.28) transparent;
  animation: workspace-dialog-enter 220ms var(--hg-ease) both;
}

.job-dialog::backdrop,
.friends-dialog::backdrop {
  background: rgba(24, 42, 37, 0.42);
  backdrop-filter: blur(8px) saturate(72%);
}

.job-dialog::-webkit-scrollbar,
.friends-shell::-webkit-scrollbar {
  width: 8px;
}

.job-dialog::-webkit-scrollbar-track,
.friends-shell::-webkit-scrollbar-track {
  background: transparent;
}

.job-dialog::-webkit-scrollbar-thumb,
.friends-shell::-webkit-scrollbar-thumb {
  border: 2px solid transparent;
  border-radius: 999px;
  background: rgba(47, 116, 101, 0.25);
  background-clip: padding-box;
}

@keyframes workspace-dialog-enter {
  from { opacity: 0; transform: translateY(10px) scale(0.985); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}

.job-dialog .eyebrow,
.friends-dialog .eyebrow {
  color: var(--hg-teal);
}

.job-dialog .dialog-heading,
.friends-dialog-heading {
  align-items: flex-start;
  padding-bottom: 17px;
  border-bottom: 1px solid rgba(27, 50, 46, 0.1);
}

.job-dialog .dialog-heading h2,
.friends-dialog-heading h2 {
  margin: 3px 0 5px;
  color: var(--hg-deep);
  font-size: clamp(25px, 2.6vw, 34px);
  font-weight: 600;
  letter-spacing: -0.04em;
  line-height: 1.05;
}

.job-dialog .dialog-heading p,
.job-dialog .picker-heading p,
.friends-dialog-heading > div > p:last-child {
  color: var(--hg-copy);
  font-size: 12px;
  line-height: 1.55;
}

.job-dialog .button,
.friends-dialog .button,
.friends-dialog .friend-refresh,
.friends-dialog .friend-share-code button,
.friends-dialog .friend-subscription button {
  min-height: 44px;
  border: 1px solid rgba(27, 50, 46, 0.12);
  background: rgba(255, 255, 252, 0.68);
  color: var(--hg-deep);
  box-shadow: none;
  transition: border-color 180ms ease, background-color 180ms ease, color 180ms ease, box-shadow 180ms ease;
}

.job-dialog .button:hover,
.friends-dialog .button:hover,
.friends-dialog .friend-refresh:hover,
.friends-dialog .friend-share-code button:hover,
.friends-dialog .friend-subscription button:hover {
  border-color: rgba(47, 116, 101, 0.24);
  background: rgba(204, 225, 216, 0.5);
  color: var(--hg-deep);
}

.job-dialog .button-primary,
.friends-dialog .button-primary {
  border-color: var(--hg-deep);
  background: var(--hg-deep);
  color: #fffdf6;
  box-shadow: 0 10px 24px rgba(23, 63, 55, 0.16);
}

.job-dialog .button-primary:hover,
.friends-dialog .button-primary:hover {
  border-color: var(--hg-teal);
  background: var(--hg-teal);
  color: #fffdf6;
}

.job-dialog .button-quiet,
.friends-dialog .button-quiet {
  background: rgba(255, 255, 252, 0.48);
}

.job-dialog input,
.job-dialog select,
.job-dialog textarea,
.friends-dialog input,
.friends-dialog select,
.friends-dialog textarea {
  min-height: 44px;
  border: 1px solid rgba(27, 50, 46, 0.13);
  border-radius: 13px;
  background: rgba(255, 255, 252, 0.78);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.88);
}

.job-dialog textarea,
.friends-dialog textarea {
  min-height: 82px;
}

.job-dialog input::placeholder,
.job-dialog textarea::placeholder,
.friends-dialog input::placeholder,
.friends-dialog textarea::placeholder {
  color: rgba(104, 119, 115, 0.68);
}

.job-dialog input:focus,
.job-dialog textarea:focus,
.friends-dialog input:focus,
.friends-dialog textarea:focus {
  border-color: rgba(47, 116, 101, 0.44);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.15), inset 0 1px rgba(255, 255, 255, 0.9);
}

.job-dialog .field,
.friends-dialog .field {
  color: var(--hg-deep);
  font-size: 12px;
  font-weight: 650;
}

.job-dialog .field-help {
  color: rgba(72, 96, 90, 0.68);
  font-size: 10px;
  font-weight: 560;
  line-height: 1.45;
}

.role-distribution-legend {
  max-height: 100%;
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  scrollbar-color: rgba(241, 237, 227, 0.26) transparent;
}

.role-distribution-item {
  max-width: 100%;
}

.research-view .filter-group {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.research-view .filter-group.has-friend-filter {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.friend-filter-field[hidden] {
  display: none !important;
}

.role-progress-list {
  grid-template-columns: none;
  grid-auto-flow: column;
  grid-auto-columns: minmax(58px, 1fr);
  overflow-x: auto;
  padding-bottom: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(18, 61, 53, 0.22) transparent;
}

.job-dialog .system-select-trigger,
.friends-dialog .system-select-trigger {
  min-height: 44px;
  border-color: rgba(27, 50, 46, 0.13);
  background: rgba(255, 255, 252, 0.78);
  color: var(--hg-ink);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.88);
}

.job-dialog .system-select-trigger:hover,
.friends-dialog .system-select-trigger:hover,
.job-dialog .system-select.is-open .system-select-trigger,
.friends-dialog .system-select.is-open .system-select-trigger {
  border-color: rgba(47, 116, 101, 0.34);
  background: rgba(240, 244, 238, 0.98);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.12);
}

.job-dialog .system-select-caret,
.friends-dialog .system-select-caret {
  background: rgba(108, 168, 150, 0.16);
  color: var(--hg-teal);
}

.job-dialog .system-select-menu,
.friends-dialog .system-select-menu {
  border-color: rgba(27, 50, 46, 0.14);
  background:
    linear-gradient(135deg, rgba(148, 184, 171, 0.12), transparent 42%),
    rgba(251, 250, 246, 0.98);
  box-shadow: 0 18px 45px rgba(18, 42, 36, 0.18), inset 0 1px rgba(255, 255, 255, 0.92);
  backdrop-filter: blur(22px) saturate(92%);
}

.job-dialog .system-select-menu::before,
.friends-dialog .system-select-menu::before {
  background: linear-gradient(90deg, transparent, rgba(199, 163, 109, 0.74), transparent);
}

.job-dialog .system-select-option,
.friends-dialog .system-select-option {
  min-height: 42px;
  color: var(--hg-copy);
}

.job-dialog .system-select-option:hover,
.job-dialog .system-select-option:focus-visible,
.friends-dialog .system-select-option:hover,
.friends-dialog .system-select-option:focus-visible {
  background: rgba(204, 225, 216, 0.42);
  color: var(--hg-deep);
}

.job-dialog .system-select-option[aria-selected="true"],
.friends-dialog .system-select-option[aria-selected="true"] {
  background: linear-gradient(90deg, rgba(228, 209, 175, 0.42), rgba(204, 225, 216, 0.22));
  color: var(--hg-deep);
}

.job-dialog .system-select-option-indicator,
.friends-dialog .system-select-option-indicator {
  border-color: rgba(47, 116, 101, 0.28);
}

.job-dialog .system-select-option[aria-selected="true"] .system-select-option-indicator,
.friends-dialog .system-select-option[aria-selected="true"] .system-select-option-indicator {
  border-color: var(--hg-teal);
  background: var(--hg-teal);
  box-shadow: 0 0 0 3px rgba(108, 168, 150, 0.18);
}

#job-form {
  gap: 20px;
  padding: 24px;
}

.job-dialog .job-import-card {
  display: grid;
  gap: 13px;
  padding: 18px;
  border: 1px solid rgba(27, 50, 46, 0.12);
  border-radius: 26px;
  background:
    linear-gradient(112deg, rgba(228, 209, 175, 0.22), transparent 43%),
    rgba(248, 247, 241, 0.78);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.84);
}

.job-dialog .job-import-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
}

.job-dialog .job-import-heading h3 {
  margin: 2px 0 4px;
  color: var(--hg-deep);
  font-size: 18px;
  font-weight: 680;
  letter-spacing: -0.025em;
}

.job-dialog .job-import-heading > div > p:last-child {
  margin: 0;
  color: var(--hg-copy);
  font-size: 12px;
  line-height: 1.5;
}

.job-dialog .job-import-state {
  flex: 0 0 auto;
  min-height: 30px;
  padding: 7px 11px;
  border: 1px solid rgba(47, 116, 101, 0.14);
  border-radius: 999px;
  background: rgba(204, 225, 216, 0.5);
  color: var(--hg-teal);
  font-size: 10px;
  font-weight: 720;
  letter-spacing: 0.08em;
}

.job-dialog .job-import-state[data-state="loading"] {
  border-color: rgba(199, 163, 109, 0.28);
  background: rgba(228, 209, 175, 0.42);
  color: #806139;
}

.job-dialog .job-import-state[data-state="success"] {
  background: rgba(108, 168, 150, 0.22);
  color: var(--hg-deep);
}

.job-dialog .job-import-state[data-state="error"] {
  border-color: rgba(168, 79, 93, 0.22);
  background: rgba(168, 79, 93, 0.09);
  color: #8e4350;
}

.job-dialog .job-import-url-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 10px;
}

.job-dialog .job-import-submit {
  min-width: 126px;
}

.job-dialog .job-import-submit[data-loading="true"] {
  cursor: wait;
  opacity: 0.72;
}

.job-dialog .job-import-paste {
  border-top: 1px solid rgba(27, 50, 46, 0.09);
}

.job-dialog .job-import-paste summary {
  width: fit-content;
  padding-top: 11px;
  color: var(--hg-teal);
  cursor: pointer;
  font-size: 11px;
  font-weight: 680;
  list-style-position: inside;
}

.job-dialog .job-import-paste[open] summary {
  margin-bottom: 10px;
}

.job-dialog #jd-source-text {
  width: 100%;
  min-height: 126px;
  resize: vertical;
}

.job-dialog .job-import-status {
  margin: 0;
  color: var(--hg-copy);
  font-size: 11px;
  line-height: 1.5;
}

.job-dialog .job-import-status[data-state="error"] {
  color: #994b58;
}

.job-dialog .job-import-review {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.job-dialog .job-import-review[hidden],
.job-dialog .job-import-duplicate[hidden] {
  display: none;
}

.job-dialog .job-import-field {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 32px;
  padding: 7px 10px;
  border: 1px solid rgba(27, 50, 46, 0.1);
  border-radius: 11px;
  background: rgba(255, 255, 252, 0.68);
  color: var(--hg-copy);
  font-size: 10px;
}

.job-dialog .job-import-field::before {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #a8b3af;
  content: "";
}

.job-dialog .job-import-field[data-confidence="high"]::before {
  background: #57a88d;
}

.job-dialog .job-import-field[data-confidence="medium"]::before {
  background: #d39a56;
}

.job-dialog .job-import-field strong {
  color: var(--hg-deep);
  font-size: 11px;
  font-weight: 690;
}

.job-dialog .job-import-duplicate {
  padding: 10px 12px;
  border: 1px solid rgba(199, 163, 109, 0.32);
  border-radius: 14px;
  background: rgba(228, 209, 175, 0.28);
  color: #6f593b;
  font-size: 11px;
  line-height: 1.5;
}

.job-dialog .location-picker {
  gap: 14px;
  padding: 18px;
  border: 1px solid rgba(27, 50, 46, 0.11);
  border-radius: 26px;
  background:
    radial-gradient(circle at 90% 5%, rgba(141, 170, 176, 0.15), transparent 37%),
    rgba(226, 231, 226, 0.64);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.72);
}

.job-dialog .picker-heading h3,
.job-dialog .job-schedule-heading h3 {
  color: var(--hg-deep);
  font-weight: 650;
}

.job-dialog .chip-color {
  border: 1px solid rgba(47, 116, 101, 0.12);
  background: rgba(204, 225, 216, 0.58);
  color: var(--hg-teal);
}

.job-dialog .place-results {
  max-height: 322px;
  overflow-y: auto;
}

.job-dialog .place-result {
  min-height: 52px;
  color: var(--hg-ink);
}

.job-dialog .place-result:hover {
  border-color: rgba(47, 116, 101, 0.14);
  background: rgba(255, 255, 252, 0.7);
}

.job-dialog .place-result[aria-selected="true"] {
  border-color: rgba(199, 163, 109, 0.5);
  background: linear-gradient(90deg, rgba(228, 209, 175, 0.38), rgba(204, 225, 216, 0.24));
}

.job-dialog .picker-map-wrap {
  border-color: rgba(27, 50, 46, 0.12);
  border-radius: 22px;
  background: var(--hg-paper);
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.7);
}

.job-dialog .picker-map .leaflet-tile-pane {
  filter: saturate(0.88) brightness(1.06) contrast(0.94);
}

.job-dialog .leaflet-bar a,
.job-dialog .leaflet-bar a:hover {
  border-color: rgba(27, 50, 46, 0.1);
  background: rgba(251, 250, 246, 0.92);
  color: var(--hg-deep);
}

.job-dialog .leaflet-control-attribution {
  color: var(--hg-copy);
  background: rgba(251, 250, 246, 0.82) !important;
}

.job-dialog .job-schedule-editor {
  padding: 17px;
  border-color: rgba(47, 116, 101, 0.13);
  border-radius: 24px;
  background:
    radial-gradient(circle at 96% 0%, rgba(199, 163, 109, 0.12), transparent 40%),
    rgba(240, 241, 236, 0.78);
}

.job-dialog .job-schedule-empty {
  border-color: rgba(47, 116, 101, 0.18);
  color: var(--hg-copy);
}

.job-dialog .job-schedule-item {
  border-color: color-mix(in srgb, var(--event-color) 32%, rgba(27, 50, 46, 0.1));
  background: rgba(255, 255, 252, 0.66);
}

.job-dialog .job-schedule-item-main p,
.job-dialog .job-schedule-heading p:last-child,
.job-dialog .job-schedule-item time,
.job-dialog .search-status,
.job-dialog .dialog-actions span {
  color: var(--hg-copy);
}

.job-dialog .job-schedule-item-actions button {
  min-height: 38px;
  border: 1px solid rgba(27, 50, 46, 0.09);
  background: rgba(239, 242, 236, 0.9);
  color: var(--hg-copy);
}

.job-dialog .job-schedule-item-actions button:hover {
  background: rgba(204, 225, 216, 0.56);
  color: var(--hg-deep);
}

.job-dialog .job-schedule-compose {
  border-top-color: rgba(47, 116, 101, 0.13);
}

.job-dialog .dialog-actions {
  padding-top: 4px;
}

.job-dialog.is-schedule-only {
  width: min(820px, calc(100% - 24px));
}

.job-dialog.is-schedule-only #job-form {
  gap: 16px;
}

.job-dialog.is-schedule-only .job-import-card,
.job-dialog.is-schedule-only .location-picker,
.job-dialog.is-schedule-only .form-grid > .field,
.job-dialog.is-schedule-only .form-grid > .location-managed-fields {
  display: none;
}

.job-dialog.is-schedule-only .form-grid {
  display: block;
}

.job-dialog.is-schedule-only .job-schedule-editor {
  min-height: 320px;
  padding: 20px;
  border-radius: 28px;
  background:
    radial-gradient(circle at 96% 0%, rgba(199, 163, 109, 0.16), transparent 42%),
    rgba(235, 239, 232, 0.9);
}

.job-dialog.is-schedule-only .dialog-actions {
  justify-content: flex-end;
}

.job-dialog.is-schedule-only .dialog-actions > span {
  display: none;
}

.friends-dialog {
  width: min(960px, calc(100% - 24px));
  border-radius: 34px;
}

.friends-shell {
  max-height: calc(100dvh - 24px);
  padding: 24px;
  color: var(--hg-ink);
  scrollbar-color: rgba(47, 116, 101, 0.28) transparent;
}

.friends-grid {
  margin-top: 18px;
  gap: 14px;
}

.friend-share-card,
.friend-follow-card {
  padding: 18px;
  border: 1px solid rgba(27, 50, 46, 0.11);
  border-radius: 26px;
  box-shadow: inset 0 1px rgba(255, 255, 255, 0.78);
}

.friend-share-card {
  background:
    radial-gradient(circle at 8% 100%, rgba(199, 163, 109, 0.12), transparent 34%),
    rgba(226, 231, 226, 0.62);
}

.friend-follow-card {
  background: rgba(255, 255, 252, 0.58);
}

.friend-section-heading h3 {
  color: var(--hg-deep);
  font-size: 17px;
  font-weight: 650;
}

.friend-privacy-chip {
  padding: 6px 10px;
  border: 1px solid rgba(47, 116, 101, 0.11);
  background: rgba(204, 225, 216, 0.62);
  color: var(--hg-teal);
  font-weight: 700;
}

.friend-share-actions {
  gap: 9px;
}

.friends-dialog .friend-revoke {
  border-color: rgba(168, 79, 93, 0.18);
  background: rgba(168, 79, 93, 0.06);
  color: #8d4651;
}

.friend-share-code {
  padding: 12px 13px;
  border-color: rgba(199, 163, 109, 0.28);
  background: rgba(228, 209, 175, 0.25);
}

.friend-share-code span,
.friend-status,
.friend-subscription small {
  color: var(--hg-copy);
}

.friend-share-code strong {
  color: var(--hg-deep);
}

.friend-add-grid {
  gap: 9px;
}

.friend-subscriptions {
  margin-top: 12px;
  gap: 7px;
}

.friend-subscription {
  min-height: 58px;
  padding: 10px 12px;
  border-color: rgba(27, 50, 46, 0.1);
  background: rgba(240, 242, 237, 0.75);
}

.friend-subscription strong {
  color: var(--hg-deep);
  font-size: 13px;
}

.friend-subscription > i {
  background: var(--friend-color, #bd756e);
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--friend-color, #bd756e) 18%, transparent);
}

.friends-footnote i {
  background: conic-gradient(#d59b57, #4f9eaa, #8c78bd, #4f9a78, #d59b57);
  box-shadow: 0 0 0 4px rgba(79, 158, 170, 0.12);
}

.friends-footnote {
  color: rgba(104, 119, 115, 0.82);
  font-size: 11px;
}

.friend-status.is-error {
  color: var(--danger);
}

/* Responsive */

@media (max-width: 1180px) {
  .entry-nav-links {
    display: none;
  }

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

  .overview-grid {
    min-height: 936px;
    grid-template-rows: 250px 270px 380px;
  }

  .pipeline-overview-card {
    grid-column: span 12;
  }

  .role-signals-card {
    grid-column: span 12;
  }

  .geography-card {
    grid-column: span 7;
  }

  .agenda-overview-card {
    grid-column: span 5;
  }
}

@media (max-width: 900px) {
  .admin-shell {
    height: calc(100vh - 28px);
    padding: 18px;
    overflow: auto;
  }

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

  .admin-grid {
    display: grid;
    grid-template-columns: 1fr;
    grid-template-rows: repeat(2, auto);
  }

  .admin-panel {
    min-height: 370px;
  }

  .admin-users {
    grid-column: auto;
    min-height: 300px;
  }

  .product-sidebar {
    width: 74px;
    padding-inline: 8px;
  }

  .sidebar-brand {
    width: 48px;
    height: 48px;
  }

  .overview-view,
  .applications-view {
    padding: 18px;
    padding-left: 92px;
  }

  .research-view .toolbar {
    left: 92px;
  }

  .research-view .mission-left {
    left: auto;
  }

  .overview-grid {
    min-height: 1320px;
    grid-template-rows: repeat(4, minmax(250px, auto));
  }

  .pipeline-overview-card,
  .role-signals-card,
  .geography-card,
  .agenda-overview-card {
    grid-column: 1 / -1;
    grid-row: auto;
  }

  .geography-card {
    min-height: 400px;
  }

  .applications-card-heading {
    display: none;
  }

  .applications-card {
    grid-template-rows: minmax(0, 1fr);
  }

  .application-row {
    grid-template-columns: 1fr auto;
    row-gap: 10px;
  }

  .application-base {
    display: none;
  }

  .application-schedule {
    grid-column: 1 / -1;
    display: block;
  }

  .application-actions {
    grid-column: 1 / -1;
    width: 100%;
    padding-top: 10px;
    border-top: 1px solid rgba(50, 91, 84, 0.12);
  }

  .application-stage-control {
    width: 148px;
  }

  .research-view .mission-right .insights {
    height: auto;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-rows: auto;
  }

  .research-view .insight-cities .city-chart {
    max-height: 320px;
  }
}

@media (max-width: 680px) {
  .entry-cta-group {
    width: min(100%, 360px);
    flex-wrap: wrap;
  }

  .entry-cta-group > .entry-button,
  .entry-account-button {
    width: 100%;
  }

  .admin-dialog {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
  }

  .admin-shell {
    height: calc(100vh - 16px);
    padding: 15px;
    border-radius: 25px;
  }

  .admin-dialog-heading {
    align-items: flex-start;
  }

  .admin-dialog-heading > div:first-child > p:last-child,
  .admin-refresh {
    display: none;
  }

  .admin-summary article {
    min-height: 80px;
    padding: 12px;
  }

  .admin-summary strong {
    font-size: 25px;
  }

  .admin-user-list {
    grid-template-columns: 1fr;
  }

  .admin-usage-chart {
    gap: 2px;
  }

  .entry-nav {
    top: 14px;
  }

  .entry-brand {
    font-size: 17px;
  }

  .entry-content {
    width: calc(100% - 28px);
    padding-bottom: 120px;
  }

  .entry-content h1 {
    font-size: clamp(42px, 13vw, 66px);
    line-height: 0.91;
  }

  .entry-copy {
    max-width: 480px;
    font-size: 13px;
  }

  .entry-capabilities {
    justify-content: space-between;
    gap: 10px;
    font-size: 8px;
  }

  .entry-capabilities span::before {
    display: none;
  }

  .product-shell {
    display: block;
  }

  .product-sidebar {
    z-index: 2300;
    inset: auto auto 10px 50%;
    width: min(300px, calc(100% - 20px));
    min-height: auto;
    padding: 0;
    display: block;
    transform: translateX(-50%);
    align-items: center;
  }

  .sidebar-brand,
  .sidebar-spacer,
  .sidebar-profile,
  .sidebar-utilities .sidebar-item {
    display: none;
  }

  .sidebar-nav {
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 10px;
  }

  .sidebar-nav .sidebar-item {
    width: 64px;
    min-height: 64px;
  }

  .product-main {
    width: 100%;
    height: 100%;
  }

  .overview-view,
  .applications-view {
    padding: 18px 18px 92px;
  }

  .workspace-page-header {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    align-items: flex-start;
    gap: 14px;
  }

  .workspace-header-actions {
    width: 100%;
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .workspace-primary-button,
  .workspace-icon-button {
    white-space: nowrap;
  }

  .applications-view .workspace-page-header > .workspace-primary-button {
    width: 100%;
  }

  .workspace-page-header > div > p:last-child {
    display: none;
  }

  .workspace-page-header h2 {
    font-size: 28px;
  }

  .role-signals-card .workspace-card-heading {
    flex-wrap: wrap;
  }

  .role-signals-card {
    min-height: 430px;
  }

  .role-signal-summary {
    width: 100%;
    justify-content: space-between;
  }

  .role-plan-trigger {
    width: min(230px, 62%);
  }

  .pipeline-overview-card {
    min-height: 270px;
  }

  .overview-pipeline {
    min-height: 160px;
  }

  .overview-funnel-track,
  .funnel-stage {
    min-height: 160px;
  }

  .funnel-stage-percent {
    min-width: 38px;
    padding-inline: 5px;
    font-size: 9px;
  }

  .funnel-stage-label {
    font-size: 9px;
  }

  .funnel-stage-value {
    font-size: 13px;
  }

  .overview-recent {
    display: none;
  }

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

  .applications-filter {
    border-top: 1px solid var(--hg-line);
    border-left: 0;
  }

  .research-view .toolbar {
    top: 10px;
    left: 10px;
    right: 10px;
  }

  .research-view .mission-left {
    left: auto;
  }

  .research-view .mission-right .insights {
    grid-template-columns: minmax(0, 1fr);
  }

  .research-view .mission-right .insight-pipeline {
    grid-column: auto;
  }

  .calendar-dialog {
    width: calc(100% - 16px);
    height: calc(100dvh - 16px);
    max-height: calc(100dvh - 16px);
    border-radius: 24px;
  }

  .calendar-shell {
    height: auto;
    min-height: 100%;
    overflow-y: auto;
    grid-template-rows: auto auto auto;
  }

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

  .calendar-month {
    min-height: 560px;
  }

  .calendar-agenda {
    max-height: 560px;
  }

  .job-dialog,
  .friends-dialog {
    width: calc(100% - 12px);
    max-height: calc(100dvh - 12px);
    border-radius: 24px;
  }

  #job-form,
  .friends-shell {
    max-height: calc(100dvh - 12px);
    padding: 16px;
  }

  .job-dialog .dialog-heading,
  .friends-dialog-heading {
    gap: 10px;
  }

  .job-dialog .dialog-heading h2,
  .friends-dialog-heading h2 {
    font-size: 25px;
  }

  .job-dialog .location-picker,
  .job-dialog .job-import-card,
  .friend-share-card,
  .friend-follow-card {
    padding: 14px;
    border-radius: 21px;
  }

  .job-dialog .job-import-url-row {
    grid-template-columns: 1fr;
  }

  .job-dialog .job-import-submit {
    width: 100%;
  }

  .job-dialog .picker-heading {
    align-items: flex-start;
  }

  .friends-grid {
    margin-top: 14px;
  }

  .friends-footnote span:last-child {
    display: none;
  }
}

@media (max-height: 800px) and (min-width: 901px) {
  .pipeline-overview-card {
    grid-template-rows: auto minmax(0, 1fr);
  }

  .pipeline-overview-card .overview-recent {
    display: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  .entry-video {
    display: none;
  }

  .entry-screen {
    background: #0a3138 url("./assets/hypergrad-desert-poster.jpg") center / cover no-repeat;
  }

  .workspace-primary-button,
  .sidebar-item,
  .sidebar-nav::before,
  .funnel-stage,
  .funnel-stage-layer {
    transition: none;
  }

  .app-view.is-view-entering-forward,
  .app-view.is-view-entering-backward {
    animation: none;
  }

  .funnel-stage-shape,
  .funnel-stage-value,
  .funnel-stage-percent,
  .funnel-stage-label {
    animation: none;
    opacity: 1;
  }

  .calendar-dialog.is-opening,
  .calendar-dialog.is-minimizing,
  .calendar-dialog.is-opening::backdrop,
  .calendar-dialog.is-minimizing::backdrop {
    animation: none;
  }
}
