/* Dashboard shell and presentation; no search, form or account contract changes. */
html.workspace-booting body.locus-shell:not(.workspace-interior-active) > :is(#app-nav, main) {
  display: none !important;
}
html.workspace-booting body.locus-shell:not(.workspace-interior-active)::before {
  content: "LOCUS";
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  background: #fff;
  color: #3b4448;
  font-family: "Locus Noto Sans SC Full", "Noto Sans SC", "Locus Helvetica", Helvetica, Arial, sans-serif;
  font-size: 14px;
  font-weight: 650;
  letter-spacing: .24em;
}
body.locus-shell:has(.workspace-shell) {
  --ws-ink: #292d30;
  --ws-muted: #777f84;
  --ws-line: #eff0f1;
  --ws-soft: #f8f9f9;
  min-height: 100vh;
  overflow-y: auto;
  background: #fff;
  color: var(--ws-ink);
}

body.locus-shell:has(.workspace-shell) #app-nav { display: none; }
/* The workbench has its own complete footer inside the main content. */
body.locus-shell:has(.workspace-shell) #locus-legal-footer { display: none; }

.workspace-shell {
  display: grid;
  grid-template-columns: 64px 236px minmax(0, 1fr);
  min-height: 100vh;
  background: #fff;
}

.workspace-shell.sidebar-collapsed { grid-template-columns: 64px 0 minmax(0, 1fr); }
.workspace-shell a { text-decoration: none; }

.workspace-rail {
  position: sticky;
  top: 0;
  height: 100vh;
  min-height: 560px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 13px;
  padding: 23px 0 18px;
  border-right: 1px solid #f1f2f2;
  background: #fafafa;
  z-index: 3;
}

.workspace-mark {
  display: grid;
  place-items: center;
  width: 36px;
  height: 36px;
  margin-bottom: 19px;
  border-radius: 12px;
  background: #303438;
  color: #fff;
  font-family: var(--font-latin), sans-serif;
  font-size: 19px;
  font-weight: 700;
}
.workspace-mark:hover { color: #fff; background: #1e2225; }

.workspace-rail-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 12px;
  background: transparent;
  color: #898f93;
  cursor: pointer;
  transition: background .18s ease, color .18s ease;
}
.workspace-rail-button:hover,
.workspace-rail-button.is-current { background: #edeeef; color: #383e42; }
.workspace-rail-button svg,
.workspace-recent-search svg {
  width: 19px;
  height: 19px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.workspace-rail-account { margin-top: auto; }

.workspace-sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
  height: 100vh;
  min-height: 560px;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 30px 15px 20px;
  border-right: 1px solid #f1f2f2;
  background: #fcfcfc;
  transition: padding .2s ease, opacity .2s ease;
}
.sidebar-collapsed .workspace-sidebar { visibility: hidden; opacity: 0; padding-inline: 0; }
.workspace-sidebar-heading {
  margin: 0 12px 15px;
  color: #363b3e;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.workspace-sidebar-links,
.workspace-sidebar-utility { display: grid; gap: 3px; }
.workspace-sidebar-links a,
.workspace-sidebar-utility a,
.workspace-sidebar-utility button,
.workspace-recent-list a {
  display: block;
  padding: 10px 12px;
  border-radius: 11px;
  color: #62696d;
  font-size: 13px;
  line-height: 1.4;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  transition: background .18s ease, color .18s ease;
}
.workspace-sidebar-utility button {
  width: 100%;
  border: 0;
  background: transparent;
  text-align: left;
  font-family: inherit;
  cursor: pointer;
}
.workspace-sidebar-links a:hover,
.workspace-sidebar-links a.is-current,
.workspace-sidebar-utility a:hover,
.workspace-sidebar-utility button:hover,
.workspace-recent-list a:hover { background: #f0f1f2; color: #2e3337; }
.workspace-sidebar-recent {
  margin: 18px 6px 0;
  padding-top: 20px;
  border-top: 1px solid var(--ws-line);
}
.workspace-sidebar-recent > p {
  margin: 0 6px 12px;
  color: #979da0;
  font-size: 11px;
  letter-spacing: .08em;
  white-space: nowrap;
}
.workspace-recent-search { position: relative; display: block; }
.workspace-recent-search .sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip-path: inset(50%);
  white-space: nowrap;
}
.workspace-recent-search svg {
  position: absolute;
  left: 14px;
  top: 11px;
  width: 15px;
  height: 15px;
  color: #a1a6a9;
  pointer-events: none;
}
.workspace-recent-search input {
  display: block;
  width: 100%;
  height: 38px;
  padding: 0 12px 0 37px;
  border: 1px solid #eceeef;
  border-radius: 999px;
  outline: none;
  background: #fff;
  color: var(--ws-ink);
  box-shadow: 0 2px 10px rgba(32, 37, 40, .035);
  font-size: 12px;
}
body.locus-shell .workspace-recent-search input:focus,
body.locus-shell .workspace-recent-search input:focus-visible {
  border-color: #bfc4c7;
  outline: 3px solid #eff1f2;
}
.workspace-recent-list { margin-top: 9px; }
.workspace-recent-list a { padding-inline: 8px; font-size: 12px; }
.workspace-recent-list a[hidden] { display: none; }
.workspace-recent-empty { padding: 11px 8px; color: #a0a6a9; font-size: 12px; }
.workspace-sidebar-utility {
  margin-top: auto;
  padding-top: 17px;
  border-top: 1px solid var(--ws-line);
}

.workspace-content { min-width: 0; }
.workspace-topline {
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 70px;
  padding: 0 clamp(28px, 4vw, 58px);
  border-bottom: 1px solid #f4f5f5;
  color: #92999d;
  font-size: 12px;
}
.workspace-topline span span { padding: 0 10px; color: #c2c6c8; }
.workspace-topline a { color: #555d61; font-size: 12px; }
.workspace-topline a:hover { text-decoration: underline; }

body.locus-shell:has(.workspace-shell) main.workspace-page {
  display: block;
  width: min(100% - 90px, 1060px);
  max-width: none;
  height: auto;
  min-height: 0;
  margin: 0 auto;
  padding: 52px 0 70px;
  overflow: visible;
  color: var(--ws-ink);
}
.workspace-page .wb-kicker {
  color: #93999c;
  letter-spacing: .14em;
  font-weight: 600;
}
.workspace-page .wb-hero {
  min-height: 0;
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  align-items: flex-start;
  gap: 30px;
}
.workspace-page .wb-hero h1 {
  margin: 0;
  color: #282c2f;
  font-size: clamp(35px, 3.2vw, 48px);
  font-weight: 600;
  line-height: 1.22;
  letter-spacing: -.04em;
}
.workspace-page .wb-brand-line {
  margin-top: 14px;
  color: #838a8e;
  font-size: 15px;
  line-height: 1.7;
}
.workspace-page .wb-continuation {
  width: min(430px, 46%);
  min-height: 170px;
  margin: 0;
  padding: 24px 27px;
  border: 0;
  border-radius: 18px;
  background: var(--ws-soft);
  box-shadow: none;
}
.workspace-page .wb-continuation > span { color: #888f93; }
.workspace-page .wb-continuation strong { color: #31363a; font-size: 19px; }
.workspace-page .wb-continuation small { color: #858c90; }
.workspace-page .wb-continuation :where(a, button) {
  width: fit-content;
  min-height: 38px;
  padding: 9px 16px;
  border: 0;
  border-radius: 999px;
  background: #34393d;
  color: #fff;
  box-shadow: 0 3px 10px rgba(32, 37, 40, .07);
}
.workspace-page .wb-continuation :where(a, button):hover { background: #202427; color: #fff; }
.workspace-page .wb-journey { padding: 58px 0 48px; }
.workspace-page .wb-section-heading h2,
.workspace-page .wb-explore-heading h2 { color: #303438; font-size: 23px; font-weight: 600; }
.workspace-page .wb-section-heading > p:last-child,
.workspace-page .wb-explore-heading > p:last-child { color: var(--ws-muted); }
.workspace-page .wb-steps { gap: 18px; margin-top: 22px; }
.workspace-page .wb-step {
  min-height: 110px;
  padding: 20px;
  border-radius: 15px;
  background: #fafafa;
}
.workspace-page .wb-step:not(:last-child)::after { display: none; }
.workspace-page .wb-step-number,
.workspace-page .wb-step.is-complete .wb-step-number {
  flex-basis: 38px;
  width: 38px;
  height: 38px;
  border: 0;
  background: #ededee;
  color: #565e63;
  font-size: 15px;
}
.workspace-page .wb-step strong { color: #40464a; font-size: 14px; }
.workspace-page .wb-step small { color: #8c9397; }
.workspace-page .wb-step.is-upcoming { opacity: .65; }
.workspace-page .wb-cards { gap: 18px; align-items: stretch; }
.workspace-page .wb-card,
.workspace-page .wb-profile-card:not(.is-complete),
.workspace-page .wb-card:hover {
  min-height: 330px;
  padding: 24px;
  border: 0;
  border-radius: 17px;
  background: #fafafa;
  box-shadow: none;
  transform: none;
}
.workspace-page .wb-card-icon,
.workspace-page .wb-profile-card:not(.is-complete) .wb-card-icon { background: #f0f1f1; color: #626a6e; }
.workspace-page .wb-card h3 { color: #3b4145; }
.workspace-page .wb-card > p,
.workspace-page .wb-card .wb-card-fact { color: #777f83; }
.workspace-page .wb-card .wb-card-fact { border-top-color: #ebedee; }
.workspace-page .wb-status,
.workspace-page .wb-profile-card .wb-status {
  border: 0;
  background: #f0f1f2;
  color: #777e82;
}
.workspace-page .wb-profile-details > div { border-color: #ebedee; }
.workspace-page .wb-profile-details strong,
.workspace-page .wb-direction-row strong,
.workspace-page .wb-result-row strong { color: #454c50; }
.workspace-page .wb-direction-list,
.workspace-page .wb-direction-row,
.workspace-page .wb-result-list,
.workspace-page .wb-result-row { border-color: #eceeef; }
.workspace-page .wb-direction-row,
.workspace-page .wb-result-row { color: #454c50; }
.workspace-page .wb-direction-row:hover,
.workspace-page .wb-result-row:hover { background: #f2f3f3; }
.workspace-page .wb-btn,
.workspace-page .wb-btn-primary,
.workspace-page .wb-btn-success {
  min-height: 40px;
  border: 0;
  border-radius: 999px;
  background: #e9ebec;
  color: #41484c;
}
.workspace-page .wb-btn:hover,
.workspace-page .wb-btn-primary:hover,
.workspace-page .wb-btn-success:hover { background: #dfe2e3; color: #303438; }
.workspace-page .wb-explore {
  grid-template-columns: 1fr;
  gap: 22px;
  margin-top: 54px;
  padding: 33px 0;
  border-color: var(--ws-line);
}
.workspace-page .wb-resource-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 28px; }
.workspace-page .wb-resource-strip a { padding: 15px 0; color: #454c50; }
.workspace-page .wb-resource-strip a + a { border-left: 0; }
.workspace-page .wb-resource-strip small { color: #92989c; }
.workspace-page .wb-footer { color: #a1a7aa; }
.workspace-page :where(a, button):focus-visible,
.workspace-shell :where(a, button):focus-visible {
  outline: 2px solid #767f84;
  outline-offset: 3px;
}

@media (max-width: 1180px) {
  .workspace-shell { grid-template-columns: 58px 212px minmax(0, 1fr); }
  .workspace-shell.sidebar-collapsed { grid-template-columns: 58px 0 minmax(0, 1fr); }
  body.locus-shell:has(.workspace-shell) main.workspace-page { width: min(100% - 52px, 930px); }
  .workspace-page .wb-cards { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .workspace-shell,
  .workspace-shell.sidebar-collapsed { grid-template-columns: 54px minmax(0, 1fr); }
  .workspace-rail { grid-column: 1; }
  .workspace-sidebar {
    position: fixed;
    left: 54px;
    top: 0;
    bottom: 0;
    z-index: 5;
    width: min(260px, calc(100vw - 54px));
    height: 100dvh;
    min-height: 0;
    box-shadow: 10px 0 25px rgba(30, 35, 40, .06);
    transform: translateX(-115%);
    transition: transform .2s ease;
    visibility: hidden;
  }
  .workspace-shell.sidebar-open .workspace-sidebar { transform: translateX(0); visibility: visible; }
  .workspace-content { grid-column: 2; }
  .workspace-topline { min-height: 62px; padding-inline: 23px; }
  body.locus-shell:has(.workspace-shell) main.workspace-page { width: calc(100% - 42px); padding: 36px 0 50px; }
  .workspace-page .wb-hero { flex-direction: column; gap: 28px; }
  .workspace-page .wb-continuation { width: 100%; }
  .workspace-page .wb-steps,
  .workspace-page .wb-cards { grid-template-columns: 1fr; }
  .workspace-page .wb-journey { padding: 42px 0 35px; }
  .workspace-page .wb-card { min-height: 0; }
  .workspace-page .wb-resource-strip { grid-template-columns: 1fr; }
}

@media (prefers-reduced-motion: reduce) {
  .workspace-shell :where(a, button), .workspace-sidebar { transition: none; }
}

/* New dashboard content uses ws-* names to avoid legacy wb-* presentation rules. */
.workspace-page .ws-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 340px);
  gap: clamp(28px, 5vw, 70px);
  align-items: center;
}
.workspace-page .ws-kicker {
  margin: 0 0 16px;
  color: #92999d;
  font-size: 11px;
  font-weight: 600;
  letter-spacing: .14em;
}
.workspace-page .ws-hero h1 {
  max-width: 640px;
  margin: 0 0 16px;
  color: #282c2f;
  font-size: clamp(34px, 3.3vw, 48px);
  font-weight: 600;
  line-height: 1.25;
  letter-spacing: -.035em;
}
.workspace-page .ws-hero-copy > p:last-child {
  max-width: 560px;
  margin: 0;
  color: #81888c;
  font-size: 14px;
  line-height: 1.8;
}
.workspace-page .ws-next {
  min-height: 190px;
  padding: 27px 30px;
  border-radius: 18px;
  background: #f8f9f9;
}
.workspace-page .ws-next > span {
  color: #8d9498;
  font-size: 11px;
  font-weight: 600;
}
.workspace-page .ws-next h2 {
  margin: 8px 0;
  color: #33383c;
  font-size: 19px;
  font-weight: 600;
  line-height: 1.4;
}
.workspace-page .ws-next p {
  margin: 0 0 15px;
  color: #858d91;
  font-size: 12px;
  line-height: 1.65;
}
.workspace-page .ws-action {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  min-height: 38px;
  padding: 8px 16px;
  border: 0;
  border-radius: 999px;
  background: #34393d;
  color: #fff;
  box-shadow: 0 3px 10px rgba(32, 37, 40, .07);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.workspace-page .ws-action:hover { background: #202427; color: #fff; }
.workspace-page .ws-notice {
  margin-top: 28px;
  padding: 14px 18px;
  border-radius: 12px;
  background: #fff7ec;
  color: #744b1b;
  font-size: 13px;
}
.workspace-page .ws-journey { margin-top: 65px; }
.workspace-page .ws-section-heading {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 14px;
  margin-bottom: 18px;
}
.workspace-page .ws-section-heading h2 {
  margin: 0;
  color: #34393d;
  font-size: 19px;
  font-weight: 600;
}
.workspace-page .ws-section-heading > span,
.workspace-page .ws-section-heading > a {
  color: #92999d;
  font-size: 12px;
}
.workspace-page .ws-section-heading > a:hover { color: #34393d; text-decoration: underline; }
.workspace-page .ws-steps {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 17px;
}
.workspace-page .ws-step {
  display: flex;
  flex-direction: column;
  min-height: 182px;
  padding: 22px 24px;
  border-radius: 17px;
  background: #fafafa;
}
.workspace-page .ws-step > span {
  color: #a0a6a9;
  font-size: 11px;
  letter-spacing: .09em;
}
.workspace-page .ws-step h3 {
  margin: 25px 0 8px;
  color: #3e4549;
  font-size: 15px;
  font-weight: 600;
}
.workspace-page .ws-step p {
  margin: 0 0 16px;
  color: #8a9195;
  font-size: 12px;
  line-height: 1.6;
}
.workspace-page .ws-step :is(a, button) {
  align-self: flex-start;
  margin-top: auto;
  padding: 0;
  border: 0;
  background: transparent;
  color: #484f53;
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
}
.workspace-page .ws-step :is(a, button):hover { text-decoration: underline; }
.workspace-page .ws-step button:disabled,
.workspace-page .ws-inline-action:disabled { color: #a7adaf; cursor: not-allowed; text-decoration: none; }
.workspace-page .ws-overview {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 52px;
  margin-top: 64px;
}
.workspace-page .ws-list { border-top: 1px solid #eceeef; }
.workspace-page .ws-list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  min-height: 76px;
  padding: 12px 0;
  border-bottom: 1px solid #eceeef;
  color: #4a5155;
}
.workspace-page .ws-list-row:hover { color: #24292c; }
.workspace-page .ws-list-row > span { min-width: 0; }
.workspace-page .ws-list-row strong {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  font-weight: 600;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-page .ws-list-row small {
  display: block;
  overflow: hidden;
  margin-top: 6px;
  color: #9aa1a4;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.workspace-page .ws-list-row b { color: #9ca3a6; font-size: 15px; font-weight: 400; }
.workspace-page .ws-empty { padding: 20px 0; color: #9aa1a4; font-size: 12px; }
.workspace-page .ws-inline-action {
  margin-top: 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #4c5357;
  font-size: 12px;
  cursor: pointer;
}
.workspace-page .ws-inline-action:hover { text-decoration: underline; }
.workspace-page .ws-explore {
  margin-top: 66px;
  padding-top: 30px;
  border-top: 1px solid #eceeef;
}
.workspace-page .ws-explore nav {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 44px;
}
.workspace-page .ws-explore nav a {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 16px 0;
  border-bottom: 1px solid #f0f1f2;
  color: #555c60;
  font-size: 13px;
}
.workspace-page .ws-explore nav a:hover { color: #24292c; }
.workspace-page .ws-footer {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  gap: 16px;
  margin-top: 60px;
  padding-top: 18px;
  border-top: 1px solid #eceeef;
  color: #a1a8ab;
  font-size: 11px;
}
.workspace-page .ws-footer nav { display: flex; flex-wrap: wrap; gap: 15px; }
.workspace-page .ws-footer a { color: #858c90; }
.workspace-page .ws-footer a:hover { color: #34393d; text-decoration: underline; }
.workspace-page .ws-processing {
  position: fixed;
  right: 24px;
  bottom: 24px;
  padding: 10px 16px;
  border-radius: 999px;
  background: #34393d;
  color: #fff;
  box-shadow: 0 6px 18px rgba(32, 37, 40, .12);
  font-size: 12px;
}

@media (max-width: 1050px) {
  .workspace-page .ws-hero { grid-template-columns: 1fr; }
  .workspace-page .ws-next { max-width: 520px; }
}
@media (max-width: 760px) {
  .workspace-page .ws-journey,
  .workspace-page .ws-overview,
  .workspace-page .ws-explore { margin-top: 43px; }
  .workspace-page .ws-steps,
  .workspace-page .ws-overview,
  .workspace-page .ws-explore nav { grid-template-columns: 1fr; }
  .workspace-page .ws-step { min-height: 160px; }
  .workspace-page .ws-section-heading { flex-wrap: wrap; }
}

/* Shared navigation for existing internal forms and result pages. Their DOM and scripts stay intact. */
body.locus-shell.workspace-interior-active {
  --ink-blue: #3f474b;
  --ink-blue-hover: #292f32;
  --ink-blue-pale: #f0f2f2;
  --paper: #fff;
  --paper-light: #fafafa;
  --surface: #fff;
  --carbon: #30363a;
  --carbon-muted: #798185;
  --carbon-faint: #9aa1a4;
  --border-brand: #bfc5c8;
  --color-brand-700: #3f474b;
  --color-brand-600: #292f32;
  --color-brand-100: #f0f2f2;
  --color-brand-050: #f5f6f6;
  --color-canvas: #fff;
  --color-surface: #fff;
  --color-surface-muted: #fafafa;
  min-height: 100vh;
  background: #fff;
  overflow-x: hidden;
}
body.locus-shell.workspace-interior-active :is(#app-nav, #locus-global-nav, #locus-legal-footer) {
  display: none;
}
.workspace-interior-shell .workspace-content { min-width: 0; }
.workspace-interior-shell .workspace-topline a { color: #747c80; }
.workspace-interior-main {
  min-width: 0;
  padding: 24px clamp(22px, 3.4vw, 48px) 70px;
}
.workspace-interior-main > main {
  max-width: 1400px;
  margin-inline: auto;
}
body.locus-shell.workspace-interior-active .workspace-interior-main :where(input[type="text"], input[type="search"], input[type="email"], input[type="url"], input[type="number"], select) {
  background-color: #fff;
  border-color: #e2e5e6;
  border-radius: 999px;
  box-shadow: 0 2px 10px rgba(32, 37, 40, .025);
}
body.locus-shell.workspace-interior-active .workspace-interior-main :where(textarea) {
  background-color: #fff;
  border-color: #e2e5e6;
  border-radius: 16px;
  box-shadow: 0 2px 10px rgba(32, 37, 40, .025);
}
body.locus-shell.workspace-interior-active .workspace-interior-main :where(input, select, textarea):focus-visible {
  outline: 2px solid #9da6aa;
  outline-offset: 2px;
}
body.locus-shell.workspace-interior-active .workspace-interior-main :where(.btn, button[type="submit"]) {
  border-radius: 999px;
  transition: background-color .18s ease, color .18s ease, box-shadow .18s ease;
}
body.locus-shell.workspace-interior-active .profile-main .cv-prefill-band {
  border: 1px dashed #d9dedf;
  border-radius: 18px;
  background: #f8f9f9;
}
body.locus-shell.workspace-interior-active .profile-main .profile-form-surface {
  border: 1px solid #eceeef;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 4px 20px rgba(32, 37, 40, .025);
}
body.locus-shell.workspace-interior-active .profile-main .profile-aside .locus-section-title::before {
  background: #b7bec1;
}
body.locus-shell.workspace-interior-active .profile-main :where(.locus-lede.is-link, .cv-prefill-band p, .cv-prefill-band a, .profile-form-surface a) {
  color: #4b5357;
}
body.locus-shell.workspace-interior-active .direction-editor-main {
  --ink-blue: #3f474b;
  --ink-blue-hover: #292f32;
  --paper-light: #fafafa;
  --surface: #fff;
}
body.locus-shell.workspace-interior-active .direction-editor-main .direction-editor-step:hover {
  background: #f1f2f2;
}
body.locus-shell.workspace-interior-active .direction-editor-main .direction-editor-step.is-active {
  background: #eef0f0;
  color: #343b3f;
}
body.locus-shell.workspace-interior-active .direction-editor-main .direction-editor-step.is-active .direction-editor-step-index {
  color: #596166;
}
body.locus-shell.workspace-interior-active .direction-editor-main .direction-field-primary {
  border: 1px solid #e7eaeb;
  border-radius: 17px;
  background: #f7f8f8;
  box-shadow: none;
}
body.locus-shell.workspace-interior-active .direction-editor-main :where(.direction-advisor, .direction-advisor-quote) {
  border-color: #e3e7e8;
  background: #f8f9f9;
  color: #42494d;
}
body.locus-shell.workspace-interior-active .direction-editor-main :where(.direction-advisor-badge, .phd-keyword-tag) {
  background: #eef0f0;
  color: #465054;
}
body.locus-shell.workspace-interior-active .direction-editor-main .direction-advisor-actions :is(.direction-advisor-toggle, .direction-advisor-trigger) {
  border-color: var(--ws-accent-line, #dfe3e4);
  border-radius: 8px;
}
body.locus-shell.workspace-interior-active .phd-search-page {
  --ink-blue: #3f474b;
  --ink-blue-hover: #292f32;
  --ink-blue-pale: #f0f2f2;
  --paper: #fff;
  --paper-light: #fafafa;
  --surface: #fff;
}
body.locus-shell.workspace-interior-active .opportunity-hero {
  border: 0;
  border-radius: 22px;
  background: #f8f9f9;
}
body.locus-shell.workspace-interior-active .opportunity-hero h1 {
  color: #30363a;
  letter-spacing: -.035em;
}
body.locus-shell.workspace-interior-active .opportunity-hero-copy > p:not(.opportunity-kicker) {
  color: #777f83;
}
body.locus-shell.workspace-interior-active .opportunity-hero-direction {
  border-left-color: #c7ccce;
}
body.locus-shell.workspace-interior-active .opportunity-hero-direction strong {
  color: #3d4549;
}
body.locus-shell.workspace-interior-active .opportunity-search-settings {
  border: 1px solid #eceeef;
  border-radius: 18px;
  background: #fff;
}
body.locus-shell.workspace-interior-active .school-catalog-page {
  color: #434b4f;
}
body.locus-shell.workspace-interior-active .school-catalog-hero {
  border: 0;
  border-radius: 22px;
  background: #f8f9f9;
}
body.locus-shell.workspace-interior-active .school-catalog-hero h1,
body.locus-shell.workspace-interior-active .school-catalog-hero-meta strong,
body.locus-shell.workspace-interior-active .school-catalog-summary strong,
body.locus-shell.workspace-interior-active .school-table td strong {
  color: #30363a;
}
body.locus-shell.workspace-interior-active .school-catalog-hero-copy > p:not(.school-catalog-kicker),
body.locus-shell.workspace-interior-active .school-table td,
body.locus-shell.workspace-interior-active .school-table th {
  color: #788185;
}
body.locus-shell.workspace-interior-active .school-catalog-hero-meta {
  border-left-color: #c7ccce;
}
body.locus-shell.workspace-interior-active .school-catalog-panel {
  border-color: #e9ecec;
  border-radius: 18px;
  background: #fff;
}
body.locus-shell.workspace-interior-active .school-region-tabs button[aria-selected="true"] {
  border-color: #343b3f;
  background: #343b3f;
  box-shadow: none;
}
body.locus-shell.workspace-interior-active .school-region-tabs button,
body.locus-shell.workspace-interior-active .school-catalog-pagination button,
body.locus-shell.workspace-interior-active .school-table a,
body.locus-shell.workspace-interior-active .school-page-jump b {
  color: #485155;
}
body.locus-shell.workspace-interior-active .school-region-tabs button[aria-selected="true"] {
  color: #fff;
}
body.locus-shell.workspace-interior-active .school-rank {
  background: #f0f2f2;
  color: #4a5357;
}
body.locus-shell.workspace-interior-active .guide-page {
  --guide-blue: #4c5559;
  --guide-ink: #30363a;
  --guide-muted: #7f878b;
  --guide-surface: #fff;
}
body.locus-shell.workspace-interior-active .guide-page .guide-stage {
  border-color: #e9ecec;
  border-radius: 22px;
  background: #f7f8f8;
  color: #30363a;
}
body.locus-shell.workspace-interior-active .guide-page .guide-stage h2,
body.locus-shell.workspace-interior-active .guide-page .guide-stage-copy > p strong {
  color: #30363a;
}
body.locus-shell.workspace-interior-active .guide-page .guide-stage-copy > p,
body.locus-shell.workspace-interior-active .guide-page .guide-priority-item p,
body.locus-shell.workspace-interior-active .guide-page .guide-priority-foot {
  color: #777f83;
}
body.locus-shell.workspace-interior-active .guide-page :where(.guide-compare-row, .guide-priority-list, .guide-priority-item) {
  border-color: #e5e8e9;
}
body.locus-shell.workspace-interior-active .guide-page .guide-compare-row[data-fill="full"] {
  background: #eef0f0;
}
body.locus-shell.workspace-interior-active .guide-page .guide-compare-bar {
  background: #e2e5e6;
}
body.locus-shell.workspace-interior-active .guide-page .guide-compare-bar i {
  background: #7d878c;
}
body.locus-shell.workspace-interior-active .explore-page {
  --explore-blue: #485155;
  --explore-ink: #30363a;
  --explore-muted: #7f878b;
  --explore-paper: #fff;
  --explore-surface: #fff;
  --explore-line: #e9ecec;
}
body.locus-shell.workspace-interior-active .explore-page .explore-hero {
  border: 0;
  border-radius: 22px;
  background: #f8f9f9;
}
body.locus-shell.workspace-interior-active .explore-page .explore-dots {
  background-image: none;
}
body.locus-shell.workspace-interior-active .explore-page .explore-hero h1,
body.locus-shell.workspace-interior-active .explore-page .explore-status strong {
  color: #30363a;
}
body.locus-shell.workspace-interior-active .explore-page .explore-lede {
  color: #777f83;
}
body.locus-shell.workspace-interior-active .explore-page .explore-status {
  border-left-color: #c7ccce;
  background: transparent;
}
body.locus-shell.workspace-interior-active .explore-page :where(.explore-card, .explore-workflow, .idea-stage) {
  border-color: #e9ecec;
  background: #fff;
}
body.locus-shell.workspace-interior-active .explore-page .idea-stage h2 {
  color: #30363a;
}
body.locus-shell.workspace-interior-active .explore-page .idea-stage-copy > p:last-child {
  color: #777f83;
}
body.locus-shell.workspace-interior-active .explore-page :where(.explore-chip, .idea-keywords span) {
  border-color: #e4e8e9;
  background: #f1f3f3;
  color: #525c60;
}
body.locus-shell.workspace-interior-active .explore-page :where(.explore-primary, .explore-secondary) {
  border-color: #343b3f;
  border-radius: 999px;
}
body.locus-shell.workspace-interior-active .explore-page .explore-primary {
  background: #343b3f;
  color: #fff;
}
.workspace-interior-shell :is(a, button):focus-visible {
  outline: 2px solid #767f84;
  outline-offset: 3px;
}
@media (max-width: 760px) {
  .workspace-interior-main { padding: 16px 14px 55px; }
}

/* Three restrained accents. White remains the canvas; color only guides attention. */
body.locus-shell:has(.workspace-shell) {
  --ws-tint: #fcf9f1;
  --ws-tint-strong: #f5ebd6;
  --ws-accent: #765b30;
  --ws-accent-dark: #57421f;
  --ws-accent-line: #e8dcc2;
  --ws-soft: var(--ws-tint);
}
body.locus-shell[data-workspace-theme="sage"]:has(.workspace-shell) {
  --ws-tint: #f2f8f3;
  --ws-tint-strong: #e1efe5;
  --ws-accent: #416e54;
  --ws-accent-dark: #2f5740;
  --ws-accent-line: #d4e5d9;
}
body.locus-shell[data-workspace-theme="sky"]:has(.workspace-shell) {
  --ws-tint: #f1f7fc;
  --ws-tint-strong: #dfecf8;
  --ws-accent: #416d8d;
  --ws-accent-dark: #305875;
  --ws-accent-line: #d5e4f0;
}
.workspace-sidebar-links a.is-current,
.workspace-sidebar-utility a.is-current,
.workspace-rail-button.is-current { background: var(--ws-tint-strong); color: var(--ws-accent-dark); }
.workspace-sidebar-links a:hover,
.workspace-sidebar-utility a:hover,
.workspace-recent-list a:hover { background: var(--ws-tint); }
.workspace-theme-picker { margin: 16px 6px 0; padding-top: 17px; border-top: 1px solid var(--ws-line); }
.workspace-theme-picker p { margin: 0 6px 10px; color: #92999d; font-size: 11px; letter-spacing: .06em; }
.workspace-theme-options { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 5px; }
.workspace-theme-options button {
  display: grid;
  justify-items: center;
  gap: 4px;
  min-width: 0;
  min-height: 55px;
  padding: 7px 2px 5px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  color: #7a8286;
  font: inherit;
  font-size: 11px;
  cursor: pointer;
}
.workspace-theme-options button:hover { background: #f5f6f6; }
.workspace-theme-options button[aria-pressed="true"] { border-color: var(--ws-accent-line); background: var(--ws-tint); color: var(--ws-accent-dark); font-weight: 650; }
.workspace-theme-options i { width: 18px; height: 18px; border: 1px solid #e4e1d8; border-radius: 50%; background: #f3e8c8; }
.workspace-theme-options [data-workspace-theme-choice="sage"] i { border-color: #d7e5da; background: #dcecdf; }
.workspace-theme-options [data-workspace-theme-choice="sky"] i { border-color: #d6e3ee; background: #dceaf6; }

.workspace-page .ws-next,
.workspace-page .ws-step { background: var(--ws-tint); }
.workspace-page .ws-next { box-shadow: inset 0 0 0 1px var(--ws-accent-line); }
.workspace-page .ws-step > span,
.workspace-page .ws-kicker,
.workspace-page .ws-section-heading > a { color: var(--ws-accent); }
.workspace-page .ws-action { background: var(--ws-accent-dark); }
.workspace-page .ws-action:hover { background: #30363a; }
.workspace-page .ws-notice { background: var(--ws-tint); color: var(--ws-accent-dark); }

body.locus-shell.workspace-interior-active .workspace-interior-main > main { width: min(100%, 1400px); }
body.locus-shell.workspace-interior-active :where(.opportunity-hero, .school-catalog-hero, .explore-page .explore-hero) {
  background: var(--ws-tint);
}
body.locus-shell.workspace-interior-active .opportunity-search-settings { border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active .profile-main .cv-prefill-band {
  border-color: var(--ws-accent-line);
  background: var(--ws-tint);
}
body.locus-shell.workspace-interior-active .profile-main .profile-form-surface { border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active .profile-main .profile-layout {
  grid-template-columns: minmax(156px, 184px) minmax(0, 1fr) minmax(165px, 210px);
  column-gap: clamp(16px, 2vw, 28px);
}
body.locus-shell.workspace-interior-active .profile-main .profile-nav :is(a, button).is-active,
body.locus-shell.workspace-interior-active .profile-main .profile-nav :is(a, button).is-active:hover {
  background: var(--ws-tint-strong);
  color: var(--ws-accent-dark);
}
body.locus-shell.workspace-interior-active .profile-main .profile-nav :is(a, button).is-active .profile-nav-state { color: var(--ws-accent); }
body.locus-shell.workspace-interior-active .profile-main .profile-nav :is(a, button):hover { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .profile-main .profile-aside .locus-section-title::before { background: var(--ws-accent); }
body.locus-shell.workspace-interior-active .direction-editor-main .direction-editor-step.is-active,
body.locus-shell.workspace-interior-active .direction-editor-main .direction-field-primary { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .direction-editor-main .direction-field-primary { border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active .direction-editor-main .direction-editor-step.is-active { color: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active .guide-page .guide-stage,
body.locus-shell.workspace-interior-active .explore-page .idea-stage { background: var(--ws-tint); border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active .guide-page .guide-compare-row[data-fill="full"] { background: var(--ws-tint-strong); }
body.locus-shell.workspace-interior-active .guide-page .guide-compare-bar i { background: var(--ws-accent); }
body.locus-shell.workspace-interior-active .school-region-tabs button[aria-selected="true"] { border-color: var(--ws-accent-dark); background: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active .school-rank { background: var(--ws-tint-strong); color: var(--ws-accent-dark); }

/* Direction cards fill unused tracks; metadata wraps instead of making a narrow column grow vertically. */
body.locus-shell.workspace-interior-active #phd-list-mode .phd-doc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 400px), 1fr));
  gap: 16px;
}
body.locus-shell.workspace-interior-active #phd-list-mode .phd-doc-card {
  border-color: var(--ws-accent-line);
  background: #fff;
}
body.locus-shell.workspace-interior-active #phd-list-mode .phd-doc-card:hover { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active #phd-list-mode .phd-run-pill { border-color: var(--ws-accent-line); background: var(--ws-tint); color: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active #phd-list-mode :where(.phd-doc-card-title, .phd-doc-card-open) { color: #3b4448; }
body.locus-shell.workspace-interior-active .favorites-page .phd-empty-state {
  padding: clamp(28px, 5vw, 56px);
  border: 1px solid var(--ws-accent-line);
  border-radius: 20px;
  background: var(--ws-tint);
}
body.locus-shell.workspace-interior-active .favorites-page .phd-empty-state .btn-save { background: var(--ws-accent-dark); border-color: var(--ws-accent-dark); color: #fff; }
body.locus-shell.workspace-interior-active.account-page .account-page-head { border-bottom-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active.account-page .account-side-nav a.is-active { border-color: var(--ws-accent); background: var(--ws-tint); color: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active.account-page .account-panel { border-color: var(--ws-accent-line); border-radius: 18px; background: #fff; }

@media (max-width: 1320px) {
  body.locus-shell.workspace-interior-active .profile-main .profile-layout { grid-template-columns: minmax(150px, 184px) minmax(0, 1fr); }
  body.locus-shell.workspace-interior-active .profile-main .profile-aside { grid-column: 2; position: static; padding: 18px 22px; border-radius: 16px; background: var(--ws-tint); }
}
@media (max-width: 900px) {
  body.locus-shell.workspace-interior-active .profile-main .profile-layout { grid-template-columns: 1fr; }
  body.locus-shell.workspace-interior-active .profile-main .profile-aside { grid-column: 1; }
}
@media (max-width: 760px) {
  body.locus-shell.workspace-interior-active .workspace-interior-main > main,
  body.locus-shell.workspace-interior-active.phd-search-page #phd-app,
  body.locus-shell.workspace-interior-active #phd-list-mode,
  body.locus-shell.workspace-interior-active .school-catalog-page { width: 100%; max-width: 100%; }
  body.locus-shell.workspace-interior-active .profile-main .profile-toolbar { flex-direction: column; gap: 8px; margin-bottom: 26px; }
  body.locus-shell.workspace-interior-active .profile-main .profile-toolbar > div { width: 100%; min-width: 0; }
  body.locus-shell.workspace-interior-active .profile-main .profile-toolbar .locus-title { font-size: clamp(28px, 8vw, 36px); white-space: normal; }
  body.locus-shell.workspace-interior-active .profile-main .profile-form-surface { width: 100%; padding: 20px 18px; }
  body.locus-shell.workspace-interior-active .profile-main .profile-nav { min-width: 0; scroll-snap-type: x proximity; scrollbar-width: thin; }
  body.locus-shell.workspace-interior-active .profile-main .profile-nav :is(a, button) { scroll-snap-align: start; }
  body.locus-shell.workspace-interior-active.account-page .account-page-head { display: block; padding: 0 0 18px; box-shadow: none; }
  body.locus-shell.workspace-interior-active.account-page .account-layout { grid-template-columns: 1fr; gap: 18px; }
  body.locus-shell.workspace-interior-active.account-page .account-side-nav { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); overflow: visible; gap: 6px; }
  body.locus-shell.workspace-interior-active.account-page .account-side-nav a { min-width: 0; padding: 10px; border: 1px solid transparent; border-radius: 12px; }
  body.locus-shell.workspace-interior-active.account-page .account-side-nav a.is-active { border-color: var(--ws-accent-line); }
  body.locus-shell.workspace-interior-active.account-page .account-panel { padding: 22px 18px; }
  body.locus-shell.workspace-interior-active .favorites-page .favorites-toolbar { align-items: flex-start; }
  body.locus-shell.workspace-interior-active .favorites-page .favorites-toolbar-end { margin-left: 0; width: 100%; justify-content: flex-start; }
  body.locus-shell.workspace-interior-active .guide-page .guide-stage { padding: 24px 20px; }
}

/* Extend the selected accent throughout workspace content, not only its navigation. */
body.locus-shell.workspace-interior-active:is(.phd-search-page, .vacancies-page, .account-page, .profile-page) {
  --ink-blue: var(--ws-accent-dark);
  --ink-blue-hover: var(--ws-accent);
  --ink-blue-pale: var(--ws-tint);
}
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-hero, .vacancies-heading) {
  padding: clamp(26px, 4vw, 52px);
  border: 0;
  border-radius: 22px;
  background: var(--ws-tint);
}
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-kicker, .vacancies-choice-count, .vacancies-choice-arrow, .vacancies-breadcrumb a) { color: var(--ws-accent); }
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-choice-card, .vacancies-result, .vacancies-filters) { border-color: var(--ws-accent-line); background: #fff; }
body.locus-shell.workspace-interior-active .vacancies-main .vacancies-choice-card:not(.vacancies-choice-card--disabled):hover { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-job-badges span, .vacancies-research-summary, .vacancies-deadline) { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-filter-submit, .vacancies-link--primary) { border-color: var(--ws-accent-dark); background: var(--ws-accent-dark); color: #fff; }
body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-filter-submit, .vacancies-link--primary):hover { background: #30363a; }

body.locus-shell.workspace-interior-active.phd-search-page .opportunity-hero,
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-status-banner { background: var(--ws-tint); border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active.phd-search-page :is(.opportunity-kicker, .opportunity-text-button, .opportunity-card-rank, .opportunity-card-identity a) { color: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-hero-direction { border-left-color: var(--ws-accent); }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-status-icon { background: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings { border-color: var(--ws-accent-line); background: var(--ws-tint); }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.search-summary-row, .search-region-row, .search-launch-row, .rank-school-settings) { border-color: var(--ws-accent-line); background: #fff; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.search-region-row, .search-launch-row, .rank-school-settings) {
  margin-top: 12px;
  padding: clamp(18px, 2.5vw, 28px);
  border: 1px solid var(--ws-accent-line);
  border-radius: 18px;
}
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn, .phd-prec-btn, .rank-school-chip) { border-radius: 14px; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn.active, .phd-prec-btn.active, .rank-school-chip.active) { border-color: var(--ws-accent); background: var(--ws-tint-strong); color: var(--ws-accent-dark); box-shadow: none; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.btn-save, #phd-search-cta) { border-color: var(--ws-accent-dark); background: var(--ws-accent-dark); color: #fff; border-radius: 999px; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(input, select, textarea) { border-radius: 14px; }
body.locus-shell.workspace-interior-active.phd-search-page .direction-settings-panel { border: 1px solid var(--ws-accent-line); border-radius: 20px; background: var(--ws-tint); }
body.locus-shell.workspace-interior-active.phd-search-page .direction-settings-panel .direction-form-section { border-color: var(--ws-accent-line); background: #fff; border-radius: 16px; }
body.locus-shell.workspace-interior-active.phd-search-page .direction-settings-panel :is(.direction-settings-step, .direction-form-index) { color: var(--ws-accent); }
body.locus-shell.workspace-interior-active.phd-search-page #section-results .opportunity-result-card { border-color: var(--ws-accent-line); border-radius: 16px; background: #fff; }
body.locus-shell.workspace-interior-active.phd-search-page #section-results .opportunity-result-card:hover,
body.locus-shell.workspace-interior-active.phd-search-page #section-results .opportunity-result-card.is-selected { border-color: var(--ws-accent); background: var(--ws-tint); box-shadow: inset 3px 0 0 var(--ws-accent); }
body.locus-shell.workspace-interior-active.phd-search-page #section-results :is(.opportunity-match-badge, .opportunity-university-avatar, .opportunity-detail-panel) { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active.phd-search-page #section-results :is(.opportunity-match-badge, .opportunity-card-select input) { color: var(--ws-accent-dark); accent-color: var(--ws-accent); }
body.locus-shell.workspace-interior-active.phd-search-page #section-results :is(.opportunity-compare-button:not(:disabled), .opportunity-panel-compare.is-selected) { border-color: var(--ws-accent-dark); background: var(--ws-accent-dark); color: #fff; }
body.locus-shell.workspace-interior-active.phd-search-page #section-results :is(.opportunity-detail-footer, .opportunity-filter-chip.is-active) { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .opportunity-compare-dialog { border-color: var(--ws-accent-line); border-radius: 22px; background: #fff; }
body.locus-shell.workspace-interior-active .opportunity-compare-head { background: var(--ws-tint); border-color: var(--ws-accent-line); }
body.locus-shell.workspace-interior-active .opportunity-compare-head h2,
body.locus-shell.workspace-interior-active .opportunity-compare-table :is(.opportunity-compare-label, .opportunity-compare-school) { color: var(--ws-accent-dark) !important; }
body.locus-shell.workspace-interior-active .opportunity-compare-table :is(.opportunity-compare-corner, .opportunity-compare-label) { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active .opportunity-compare-table > div,
body.locus-shell.workspace-interior-active .opportunity-compare-cards article { border-color: var(--ws-accent-line); }

body.locus-shell.workspace-interior-active.account-page .account-shell { background: #fff; }
body.locus-shell.workspace-interior-active.account-page .account-page-head { background: var(--ws-tint); border-radius: 20px; padding: clamp(22px, 3vw, 36px); }
body.locus-shell.workspace-interior-active.account-page .account-kicker,
body.locus-shell.workspace-interior-active.account-page .account-section-number { color: var(--ws-accent); }
body.locus-shell.workspace-interior-active.account-page .account-panel { box-shadow: none; }
body.locus-shell.workspace-interior-active.account-page .account-password-wrap { border-color: var(--ws-accent-line); border-radius: 15px; background: #fff; }
body.locus-shell.workspace-interior-active.account-page .account-password-wrap:focus-within { border-color: var(--ws-accent); box-shadow: 0 0 0 3px var(--ws-tint-strong); }
body.locus-shell.workspace-interior-active.account-page .account-actions .btn-save { border-color: var(--ws-accent-dark); border-radius: 999px; background: var(--ws-accent-dark); color: #fff; }
body.locus-shell.workspace-interior-active .profile-main .profile-actions :is(.btn-draft, .btn-primary-final) { min-height: 44px; padding-inline: 20px; border-radius: 999px; }
body.locus-shell.workspace-interior-active .profile-main .profile-actions .btn-draft { border-color: var(--ws-accent-line); background: var(--ws-tint); color: var(--ws-accent-dark); }
body.locus-shell.workspace-interior-active .profile-main .profile-actions .btn-primary-final { border-color: var(--ws-accent-dark); background: var(--ws-accent-dark); color: #fff; }
@media (max-width: 760px) {
  body.locus-shell.workspace-interior-active .vacancies-main :is(.vacancies-hero, .vacancies-heading) { padding: 24px 20px; }
  body.locus-shell.workspace-interior-active .profile-main .profile-actions { flex-wrap: wrap; }
  body.locus-shell.workspace-interior-active .profile-main .profile-actions .btn-primary-final { flex: 1 1 210px; }
}

/* The same native-backed Select layer is used by profile, direction and vacancy filters. */
body.locus-shell:has(.workspace-shell) {
  --lp-brand: var(--ws-accent-dark);
  --lp-select-border: var(--ws-accent-line);
  --lp-select-hover: var(--ws-tint);
  --lp-select-selected: var(--ws-tint-strong);
  --lp-select-selected-text: var(--ws-accent-dark);
  --lp-select-ring: color-mix(in srgb, var(--ws-accent) 16%, transparent);
}
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) select.lp-select-native { display: none !important; }
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select { display: block; width: 100%; min-width: 0; }
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select[hidden] { display: none !important; }
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select-trigger {
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  width: 100%; min-height: 45px; padding: 10px 13px;
  border: 1px solid var(--lp-select-border); border-radius: 10px;
  background: #fff; color: #303934; box-shadow: none;
  font: inherit; font-size: 14px; font-weight: 400; line-height: 1.45;
  text-align: left; cursor: pointer;
  transition: border-color .16s ease, box-shadow .16s ease;
}
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select-trigger:hover:not(:disabled) { border-color: var(--lp-brand); }
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select-trigger:focus-visible,
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select-trigger[aria-expanded="true"] { outline: none; border-color: var(--lp-brand); box-shadow: 0 0 0 3px var(--lp-select-ring); }
body.locus-shell.workspace-interior-active :is(.profile-main, .direction-editor-main, .vacancies-main) .lp-select-trigger:disabled { border-color: #e3e6e4; background: #f5f6f5; color: #939b96; cursor: not-allowed; }
.lp-select-value { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lp-select-chevron { flex: 0 0 8px; width: 8px; height: 8px; margin-right: 3px; border-right: 1.5px solid #7e8983; border-bottom: 1.5px solid #7e8983; transform: translateY(-2px) rotate(45deg); transition: transform .16s ease; }
.lp-select-trigger[aria-expanded="true"] .lp-select-chevron { transform: translateY(2px) rotate(225deg); }
.workspace-shell .lp-select-menu {
  position: fixed; z-index: 3000; box-sizing: border-box; max-height: min(280px, calc(100vh - 16px));
  padding: 5px; overflow-y: auto; overscroll-behavior: contain;
  border: 1px solid var(--lp-select-border); border-radius: 11px;
  background: #fff; box-shadow: 0 12px 32px rgba(29, 43, 35, .12), 0 2px 8px rgba(29, 43, 35, .04);
}
.workspace-shell .lp-select-option { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; padding: 8px 10px; border-radius: 7px; color: #303934; font-size: 14px; line-height: 1.4; cursor: pointer; }
.workspace-shell .lp-select-option.is-highlighted:not([aria-selected="true"]),
.workspace-shell .lp-select-option:hover:not([aria-selected="true"]):not([aria-disabled="true"]) { background: var(--lp-select-hover); }
.workspace-shell .lp-select-option[aria-selected="true"] { background: var(--lp-select-selected); color: var(--lp-select-selected-text); font-weight: 600; }
.workspace-shell .lp-select-option[aria-disabled="true"] { background: transparent; color: #a2aaa5; cursor: not-allowed; }
.workspace-shell .lp-select-check { color: var(--lp-brand); font-size: 15px; line-height: 1; }

/* Search setup: allow three methods to share the available width without escaping the panel. */
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .search-launch-row { grid-template-columns: minmax(0, 1fr); gap: 16px; }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .search-method-control { display: grid; grid-template-columns: minmax(0, 1fr); min-width: 0; gap: 12px; }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .direction-method-row { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); width: 100%; min-width: 0; box-sizing: border-box; }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .direction-method-row:has(> .phd-prec-btn.hidden) { grid-template-columns: repeat(2, minmax(0, 1fr)); }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .direction-method-row .phd-prec-btn { width: 100%; min-width: 0; min-height: 66px; padding: 10px 12px; white-space: normal; }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app .direction-method-row .phd-prec-btn small { white-space: normal; overflow-wrap: anywhere; }
body.locus-shell.workspace-interior-active.phd-search-page #phd-app #phd-search-cta { justify-self: end; min-width: 148px; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn, .rank-school-chip, .phd-prec-btn):focus { outline: none; box-shadow: none; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn, .rank-school-chip, .phd-prec-btn):focus-visible { outline: 2px solid var(--ws-accent); outline-offset: 2px; }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn, .rank-school-chip):not(.active) { border-color: var(--ws-accent-line); background: #fff; color: var(--ws-ink); }
body.locus-shell.workspace-interior-active.phd-search-page .opportunity-search-settings :is(.phd-region-btn, .rank-school-chip):hover:not(.active) { background: var(--ws-tint); }
body.locus-shell.workspace-interior-active.phd-search-page :is(.search-monitor, .search-monitor-elapsed) { width: 100%; max-width: none; margin-inline: 0; box-sizing: border-box; }
body.locus-shell.workspace-interior-active.phd-search-page .search-monitor { border-color: var(--ws-accent-line); }
@media (max-width: 860px) {
  body.locus-shell.workspace-interior-active.phd-search-page #phd-app .direction-method-row { grid-template-columns: 1fr; }
  body.locus-shell.workspace-interior-active.phd-search-page #phd-app #phd-search-cta { justify-self: stretch; width: 100%; }
}

/* Dashboard direction creation remains available before the profile is complete. */
body.locus-shell:has(.workspace-shell) .workspace-page .ws-inline-action {
  min-height: 38px; padding: 0 13px; border: 1px solid var(--ws-accent-line);
  border-radius: 9px; background: var(--ws-tint); color: var(--ws-accent-dark);
  font-weight: 650; text-decoration: none;
}
body.locus-shell:has(.workspace-shell) .workspace-page .ws-inline-action:hover:not(:disabled) {
  border-color: var(--ws-accent); background: var(--ws-tint-strong); text-decoration: none;
}

/* Shared navigation v1: one semantic route set drives both rail and text menu. */
body.locus-shell:has(.workspace-shell) {
  --sidebar-accent: #846234;
  --sidebar-accent-strong: #6c4d23;
  --sidebar-hover: #fcf8ef;
  --sidebar-selected: #f5ead4;
  --sidebar-outline: #ead9b9;
  --sidebar-focus-ring: rgba(132,98,52,.15);
  --sidebar-divider: #ebeff1;
  --sidebar-text: #253139;
  --sidebar-subtle: #667786;
  --sidebar-muted: #8d9aa5;
}
body.locus-shell[data-workspace-theme="sage"]:has(.workspace-shell) {
  --sidebar-accent: #2d6047;
  --sidebar-accent-strong: #245038;
  --sidebar-hover: #f1f8f3;
  --sidebar-selected: #e3f0e7;
  --sidebar-outline: #cee1d3;
  --sidebar-focus-ring: rgba(45,96,71,.14);
}
body.locus-shell[data-workspace-theme="sky"]:has(.workspace-shell) {
  --sidebar-accent: #3b6788;
  --sidebar-accent-strong: #2c5779;
  --sidebar-hover: #f0f6fb;
  --sidebar-selected: #e3eff8;
  --sidebar-outline: #cfe2ef;
  --sidebar-focus-ring: rgba(59,103,136,.15);
}
body.locus-shell:has(.workspace-shell) .workspace-shell { grid-template-columns: 66px 286px minmax(0, 1fr); }
body.locus-shell:has(.workspace-shell) .workspace-shell.sidebar-collapsed { grid-template-columns: 66px 0 minmax(0, 1fr); }
/* Interior pages share the same restrained canvas as the opportunity workbench. */
body.locus-shell.workspace-interior-active { --ws-page-canvas: #fcfbf8; }
body.locus-shell.workspace-interior-active[data-workspace-theme="sage"] { --ws-page-canvas: #f8faf8; }
body.locus-shell.workspace-interior-active[data-workspace-theme="sky"] { --ws-page-canvas: #f8fafb; }
body.locus-shell.workspace-interior-active .workspace-content { background: var(--ws-page-canvas); }
.workspace-rail { z-index: 8; gap: 7px; padding: 17px 0 14px; border-color: var(--sidebar-divider); background: #fbfcfc; }
.workspace-mark { position: relative; width: 30px; height: 30px; flex: 0 0 30px; margin-top: 6px; margin-bottom: 19px; border-radius: 10px; background: #293137; font-size: 16px; font-weight: 500; }
.workspace-rail-button { position: relative; width: 44px; height: 44px; flex: 0 0 44px; border-radius: 12px; color: #84919a; transition: background 160ms ease, color 160ms ease; }
.workspace-rail-button svg { width: 20px; height: 20px; stroke-width: 1.8; }
.workspace-rail-button:hover { background: #eef2f3; color: var(--sidebar-text); }
.workspace-rail-button.is-current,
.workspace-rail-button.is-current:hover { background: var(--sidebar-selected); color: var(--sidebar-accent-strong); }
.workspace-rail-tooltip { position: absolute; top: 50%; left: calc(100% + 11px); z-index: 50; padding: 8px 11px; border-radius: 8px; background: #29333b; color: #fff; font-size: 12px; font-weight: 550; line-height: 1.1; white-space: nowrap; box-shadow: 0 8px 22px rgba(23,37,42,.15); opacity: 0; visibility: hidden; pointer-events: none; transform: translate(-4px,-50%); transition: opacity 140ms ease, transform 140ms ease, visibility 140ms ease; transition-delay: 0ms; }
.workspace-rail :is(.workspace-rail-button, .workspace-mark):hover .workspace-rail-tooltip { opacity: 1; visibility: visible; transform: translate(0,-50%); transition-delay: 160ms; }
.workspace-rail :is(.workspace-rail-button, .workspace-mark):focus-visible .workspace-rail-tooltip { opacity: 1; visibility: visible; transform: translate(0,-50%); transition-delay: 0ms; }
.workspace-sidebar { gap: 0; padding: 29px 19px 23px 18px; border-color: var(--sidebar-divider); background: #fff; overscroll-behavior: contain; scrollbar-gutter: stable; }
.workspace-sidebar::-webkit-scrollbar { width: 8px; }
.workspace-sidebar::-webkit-scrollbar-track { background: transparent; }
.workspace-sidebar::-webkit-scrollbar-thumb { border: 2px solid transparent; border-radius: 999px; background: rgba(55,68,76,.17); background-clip: padding-box; }
.workspace-sidebar:hover::-webkit-scrollbar-thumb { border-width: 1.5px; background: rgba(55,68,76,.31); background-clip: padding-box; }
.workspace-sidebar::-webkit-scrollbar-thumb:active { border-width: 1px; background: rgba(55,68,76,.47); background-clip: padding-box; }
@supports (-moz-appearance:none) {
  .workspace-sidebar { scrollbar-width: thin; scrollbar-color: rgba(55,68,76,.17) transparent; }
  .workspace-sidebar:hover { scrollbar-color: rgba(55,68,76,.31) transparent; }
}
.workspace-sidebar-heading { margin: 0 0 25px 12px; color: var(--sidebar-text); font-size: 15px; line-height: 22px; font-weight: 600; }
.workspace-sidebar-links { gap: 4px; }
.workspace-sidebar-links a { min-height: 44px; padding: 0 13px; display: flex; align-items: center; border-radius: 11px; color: #536471; font-size: 14px; font-weight: 450; }
.workspace-sidebar-links a:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.workspace-sidebar-links a.is-current,
.workspace-sidebar-links a.is-current:hover { background: var(--sidebar-selected); color: var(--sidebar-accent-strong); font-weight: 600; }
.workspace-sidebar-recent { margin: 23px 7px 0; padding-top: 23px; border-color: var(--sidebar-divider); }
.workspace-sidebar-recent > p { margin: 0 5px 12px; color: var(--sidebar-muted); font-size: 12px; letter-spacing: .02em; }
.workspace-recent-search input { height: 40px; border-color: #e3e9eb; box-shadow: none; font-size: 13px; }
.workspace-recent-search:hover input { border-color: #cbd6da; }
body.locus-shell .workspace-recent-search input:focus,
body.locus-shell .workspace-recent-search input:focus-visible { border-color: var(--sidebar-accent); outline: 0; box-shadow: 0 0 0 3px var(--sidebar-focus-ring); }
.workspace-recent-list a { min-height: 39px; padding: 0 12px; display: flex; align-items: center; border-radius: 9px; color: #526673; font-size: 13px; }
.workspace-recent-list a:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.workspace-recent-list a[data-selected="true"] { background: var(--sidebar-hover); color: var(--sidebar-accent-strong); }
.workspace-theme-picker { margin: 23px 7px 0; padding-top: 23px; border-color: var(--sidebar-divider); }
.workspace-theme-picker p { margin: 0 5px 12px; color: var(--sidebar-muted); font-size: 12px; }
.workspace-theme-options button { min-height: 67px; border-radius: 12px; color: #7e8b95; font-size: 12px; transition: background 160ms ease, border-color 160ms ease; }
.workspace-theme-options button:hover { background: var(--sidebar-hover); }
.workspace-theme-options button[aria-pressed="true"] { border-color: var(--sidebar-outline); background: var(--sidebar-hover); color: var(--sidebar-accent-strong); }
.workspace-theme-options i { width: 21px; height: 21px; }
.workspace-sidebar-utility { margin-top: 23px; padding-top: 23px; border-color: var(--sidebar-divider); }
.workspace-utility-heading { margin: 0 12px 8px; color: var(--sidebar-muted); font-size: 12px; line-height: 17px; }
.workspace-utility-heading-account { margin-top: 16px; }
.workspace-sidebar-utility :is(a, button) { min-height: 39px; padding: 0 12px; display: flex; align-items: center; border-radius: 9px; color: #62727e; font-size: 13px; }
.workspace-sidebar-utility :is(a, button):hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.workspace-sidebar-utility [data-workspace-logout]:hover { background: #fdf1f1; color: #a14a49; }
.workspace-rail-account-menu { position: absolute; left: 57px; bottom: 15px; z-index: 60; width: 205px; padding: 7px; border: 1px solid var(--sidebar-divider); border-radius: 12px; background: #fff; box-shadow: 0 16px 35px rgba(30,50,55,.13); }
.workspace-rail-account-menu[hidden], .workspace-sidebar-backdrop[hidden] { display: none !important; }
.workspace-rail-account-menu :is(a, button) { width: 100%; min-height: 38px; padding: 0 11px; display: flex; align-items: center; border: 0; border-radius: 8px; background: transparent; color: var(--sidebar-text); font: inherit; font-size: 13px; text-align: left; text-decoration: none; cursor: pointer; }
.workspace-rail-account-menu :is(a, button):hover { background: var(--sidebar-hover); }
.workspace-rail-account-menu [data-workspace-logout]:hover { background: #fdf1f1; color: #a14a49; }
.workspace-shell :is(.workspace-rail-button, .workspace-mark, .workspace-sidebar-links a, .workspace-sidebar-utility a, .workspace-sidebar-utility button, .workspace-theme-options button, .workspace-rail-account-menu a, .workspace-rail-account-menu button):focus-visible { outline: 2px solid var(--sidebar-accent); outline-offset: 2px; box-shadow: 0 0 0 4px var(--sidebar-focus-ring); }
.workspace-sidebar-backdrop { display: none; }
@media (max-width: 860px) {
  body.locus-shell:has(.workspace-shell) :is(.workspace-shell, .workspace-shell.sidebar-collapsed) { grid-template-columns: 58px minmax(0, 1fr); }
  .workspace-rail { grid-column: 1; }
  .workspace-rail-button { width: 43px; }
  .workspace-sidebar,
  .workspace-shell.sidebar-collapsed .workspace-sidebar { position: fixed; top: 0; bottom: 0; left: 58px; z-index: 11; width: min(286px, calc(100vw - 58px)); height: 100dvh; min-height: 0; padding: 29px 19px 23px 18px; box-shadow: 10px 0 24px rgba(15,35,45,.12); transform: translateX(-115%); transition: transform 190ms ease; visibility: hidden; opacity: 1; }
  .workspace-shell.sidebar-open .workspace-sidebar,
  .workspace-shell.sidebar-collapsed.sidebar-open .workspace-sidebar { transform: translateX(0); visibility: visible; }
  .workspace-content { grid-column: 2; }
  .workspace-sidebar-backdrop:not([hidden]) { position: fixed; inset: 0; z-index: 7; display: block; width: 100%; border: 0; background: rgba(26,39,45,.2); }
  .workspace-rail-account-menu { left: 51px; }
}
@media (prefers-reduced-motion: reduce) {
  .workspace-rail-button, .workspace-rail-tooltip, .workspace-sidebar, .workspace-theme-options button { transition: none !important; }
}

/* Compact navigation and a single home for account, help and appearance. */
@media (min-width: 861px) {
  body.locus-shell:has(.workspace-shell) .workspace-shell { grid-template-columns: 62px 248px minmax(0, 1fr); }
  body.locus-shell:has(.workspace-shell) .workspace-shell.sidebar-collapsed { grid-template-columns: 62px 0 minmax(0, 1fr); }
}
.workspace-sidebar { padding-inline: 14px 13px; }
.workspace-sidebar-links a, .workspace-recent-list a { text-overflow: ellipsis; }
.workspace-settings { margin: auto 7px 0; border-top: 1px solid var(--sidebar-divider); }
.workspace-settings > summary { display: flex; justify-content: space-between; align-items: center; min-height: 44px; padding: 0 12px; border-radius: 9px; color: var(--sidebar-subtle); font-size: 13px; font-weight: 600; cursor: pointer; list-style: none; }
.workspace-settings > summary::-webkit-details-marker { display: none; }
.workspace-settings > summary:hover { background: var(--sidebar-hover); color: var(--sidebar-text); }
.workspace-settings > summary span { transition: transform 160ms ease; }
.workspace-settings[open] > summary span { transform: rotate(180deg); }
.workspace-settings .workspace-theme-picker { margin-top: 0; padding-top: 13px; border-top: 0; }
.workspace-settings .workspace-sidebar-utility { margin-top: 13px; padding-top: 13px; }
.workspace-settings > summary:focus-visible { outline: 2px solid var(--sidebar-accent); outline-offset: 2px; }
.workspace-topline-start { display: flex; align-items: center; gap: 13px; min-width: 0; }
.workspace-topline-toggle { flex: 0 0 auto; width: 32px; height: 32px; border: 1px solid var(--sidebar-divider); border-radius: 8px; color: var(--sidebar-subtle); }
.workspace-topline-toggle .workspace-rail-tooltip { display: none; }
@media (max-width: 860px) {
  .workspace-settings { margin-top: auto; }
  .workspace-topline-start { gap: 8px; }
  .workspace-topline { padding-inline: 15px; }
}

/* Codex-like chrome: the top bar and its navigation switch never move. */
.workspace-shell .workspace-topline {
  position: fixed;
  inset: 0 0 auto;
  z-index: 20;
  width: 100%;
  height: 58px;
  min-height: 58px;
  padding: 0 28px 0 76px;
  border-bottom: 1px solid var(--sidebar-divider);
  background: #fff;
}
.workspace-shell .workspace-content { padding-top: 58px; }
.workspace-shell .workspace-rail,
.workspace-shell .workspace-sidebar {
  top: 58px;
  height: calc(100dvh - 58px);
  min-height: 0;
}
.workspace-topline-toggle { width: 34px; height: 34px; flex-basis: 34px; }
.workspace-topline-toggle:hover { border-color: var(--sidebar-outline); background: var(--sidebar-hover); }
@media (max-width: 860px) {
  .workspace-shell .workspace-topline { padding: 0 13px 0 68px; }
  .workspace-shell .workspace-sidebar,
  .workspace-shell.sidebar-collapsed .workspace-sidebar {
    top: 58px;
    bottom: 0;
    height: calc(100dvh - 58px);
  }
  .workspace-sidebar-backdrop:not([hidden]) { inset: 58px 0 0; }
}
