:root {
  --canvas: #ffffff;
  --ink: #111114;
  --muted: #6e6d80;
  --line: #e8e8f2;
  --soft: #f5f5ff;
  --violet: #6e40ff;
  --violet-deep: #4b22d6;
  --sky: #0797ff;
  --mint: #087d69;
  --sunshine: #ffe045;
  --red: #d33f55;
  --header-height: 72px;
  --gutter: clamp(20px, 3.4vw, 54px);
  font-family: "Noto Sans SC", "Microsoft YaHei", "PingFang SC", system-ui, sans-serif;
  color: var(--ink);
  background: var(--canvas);
  font-synthesis: none;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: var(--canvas); }
button, input { font: inherit; }
a, button { -webkit-tap-highlight-color: transparent; }
button { color: inherit; }
a:focus-visible, button:focus-visible {
  outline: 3px solid rgba(110, 64, 255, .28);
  outline-offset: 3px;
}

.app-shell { min-height: 100vh; display: flex; flex-direction: column; }

.site-header {
  min-height: var(--header-height);
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 24px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, .97);
  position: sticky;
  top: 0;
  z-index: 20;
}

.brand {
  color: var(--ink);
  text-decoration: none;
  font-size: 1.6rem;
  font-weight: 800;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.brand span { color: var(--violet); }

.site-nav { display: flex; justify-content: center; align-items: center; gap: 3px; }
.site-nav a {
  color: #44434f;
  text-decoration: none;
  font-size: .79rem;
  font-weight: 650;
  padding: 9px 10px;
  border-radius: 11px;
  white-space: nowrap;
  transition: color 180ms ease, background 180ms ease;
}
.site-nav a:hover { color: var(--ink); background: var(--soft); }
.site-nav a[aria-current="page"] { color: var(--violet-deep); background: #f0ecff; }

.account-button {
  min-width: 78px;
  min-height: 44px;
  border: 1px solid #cdccdc;
  border-radius: 13px;
  background: #fff;
  font-size: .8rem;
  font-weight: 700;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease;
}
.account-button:hover { border-color: var(--violet); transform: translateY(-1px); box-shadow: 0 12px 30px rgba(73, 56, 147, .12); }
.account-button .avatar { width: 23px; height: 23px; display: grid; place-items: center; border-radius: 8px; background: var(--violet); color: #fff; font-size: .7rem; }

.industry-strip {
  min-height: 55px;
  display: flex;
  align-items: stretch;
  gap: 4px;
  padding: 0 var(--gutter);
  border-bottom: 1px solid var(--line);
  overflow-x: auto;
  scrollbar-width: none;
}
.industry-strip::-webkit-scrollbar { display: none; }
.industry-button {
  flex: 0 0 auto;
  min-width: 110px;
  min-height: 54px;
  border: 0;
  border-bottom: 3px solid transparent;
  background: transparent;
  color: #555463;
  font-size: .78rem;
  font-weight: 650;
  padding: 0 14px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  cursor: pointer;
  transition: color 180ms ease, border-color 180ms ease, background 180ms ease;
}
.industry-button svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.industry-button:hover { color: var(--ink); background: #fafaff; }
.industry-button.is-active { color: var(--violet-deep); border-bottom-color: var(--violet); }

.career-layout {
  width: min(1510px, 100%);
  margin: 0 auto;
  padding: 26px var(--gutter) 30px;
  display: grid;
  grid-template-columns: 206px minmax(0, 1fr);
  gap: 30px;
  flex: 1;
}

.role-rail {
  min-width: 0;
  padding: 16px 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  align-self: start;
  position: sticky;
  top: calc(var(--header-height) + 78px);
}
.rail-heading { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 18px; }
.rail-heading span { color: var(--muted); font-size: .72rem; font-weight: 650; }
.rail-heading button { border: 0; background: transparent; color: var(--violet-deep); font-size: .7rem; font-weight: 700; padding: 4px; cursor: pointer; }
.role-rail .role-title { margin: 0 8px 8px; font-size: .78rem; color: #737184; font-weight: 650; }
.role-list { display: grid; gap: 5px; }
.role-button {
  width: 100%;
  min-height: 47px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: transparent;
  font-size: .82rem;
  font-weight: 650;
  padding: 0 11px;
  display: flex;
  align-items: center;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: background 180ms ease, color 180ms ease, border-color 180ms ease;
}
.role-button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.role-button:hover { background: #f7f6ff; border-color: #ece9ff; }
.role-button.is-active { color: var(--violet-deep); background: #eee9ff; border-color: #ded3ff; }
.rail-note { margin: 24px 6px 2px; padding-top: 16px; border-top: 1px solid var(--line); }
.rail-note strong { font-size: .72rem; }
.rail-note p { margin: 6px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }

.workspace { min-width: 0; }
.workspace-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; margin-bottom: 18px; }
.workspace-heading h1, .workspace-heading h2 { margin: 0; font-size: clamp(2rem, 3vw, 3rem); line-height: 1.05; letter-spacing: -.035em; font-weight: 800; text-wrap: balance; }
.workspace-heading p { margin: 10px 0 0; max-width: 690px; color: var(--muted); font-size: .9rem; line-height: 1.65; }
.tools-shortcut { flex: 0 0 auto; color: var(--violet-deep); font-size: .76rem; font-weight: 700; text-decoration: none; padding-bottom: 4px; border-bottom: 1px solid currentColor; }

.view-tabs { display: flex; align-items: center; gap: 20px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.view-tabs button { min-height: 43px; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #666577; font-size: .8rem; font-weight: 650; padding: 0 5px; cursor: pointer; }
.view-tabs button:hover { color: var(--ink); }
.view-tabs button.is-active { color: var(--violet-deep); border-bottom-color: var(--violet); }

.matrix-layout { display: grid; grid-template-columns: minmax(0, 1fr) 214px; gap: 20px; align-items: start; }
.matrix-scroll { min-width: 0; overflow-x: auto; border: 1px solid var(--line); border-radius: 17px; }
.matrix-table { min-width: 760px; }
.matrix-head, .matrix-row { display: grid; grid-template-columns: 150px 1.08fr 1fr 1.22fr .9fr; }
.matrix-head { min-height: 42px; align-items: center; background: #fbfbff; border-bottom: 1px solid var(--line); color: #686779; font-size: .69rem; font-weight: 700; }
.matrix-head > div { padding: 0 13px; }
.matrix-row { min-height: 106px; border-bottom: 1px solid var(--line); }
.matrix-row.is-route-focus { outline: 3px solid rgba(110, 64, 255, .28); outline-offset: -3px; background: #faf8ff; }
.matrix-row:last-child { border-bottom: 0; }
.task-cell {
  margin: 7px;
  border: 0;
  border-radius: 13px;
  background: var(--violet);
  padding: 14px 13px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  text-align: left;
  color: #fff;
  position: relative;
  overflow: hidden;
  cursor: pointer;
}
.matrix-row:nth-child(4n + 2) .task-cell { background: var(--violet); }
.matrix-row:nth-child(4n + 3) .task-cell { background: var(--sky); }
.matrix-row:nth-child(4n + 4) .task-cell { background: var(--mint); }
.matrix-row:nth-child(4n + 5) .task-cell { background: var(--sunshine); color: #1d1a08; }
.task-title { display: flex; align-items: center; gap: 7px; font-size: .91rem; font-weight: 750; }
.task-title svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.task-cell p { margin: 7px 0 0; color: inherit; opacity: .83; font-size: .67rem; line-height: 1.45; }
.resource-cell { min-width: 0; border-left: 1px solid var(--line); padding: 10px 12px; display: flex; flex-direction: column; justify-content: center; gap: 6px; }
.resource-button { width: 100%; border: 0; background: transparent; padding: 0; text-align: left; cursor: pointer; }
.resource-title { display: flex; align-items: center; gap: 7px; min-width: 0; color: var(--ink); font-size: .75rem; font-weight: 720; line-height: 1.35; }
.resource-title svg { flex: 0 0 auto; width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; color: var(--violet); }
.resource-title a { color: inherit; text-decoration: none; }
.resource-title a:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }
.resource-cell p { margin: 0; color: var(--muted); font-size: .66rem; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.resource-more { align-self: flex-start; min-height: 44px; border: 0; background: transparent; color: var(--violet-deep); font-size: .7rem; font-weight: 720; padding: 0; display:inline-flex;align-items:center;cursor: pointer; }
.resource-more:hover { text-decoration: underline; text-underline-offset: 3px; }
.tool-pair { display: grid; gap: 7px; }
.tool-line { display: flex; align-items: center; gap: 7px; font-size: .71rem; font-weight: 700; }
.tool-mark { width: 21px; height: 21px; border-radius: 7px; display: grid; place-items: center; color: #fff; background: var(--violet); font-size: .64rem; }
.tool-line:nth-child(2) .tool-mark { background: var(--mint); }
.tool-line a { color: inherit; text-decoration: none; }
.tool-line a:hover { color: var(--violet-deep); text-decoration: underline; text-underline-offset: 3px; }

.starter-rail { border: 1px solid var(--line); border-radius: 17px; padding: 16px 15px; }
.starter-rail h2 { margin: 0 0 16px; font-size: .92rem; }
.starter-step { position: relative; display: grid; grid-template-columns: 25px 1fr; gap: 9px; padding-bottom: 15px; }
.starter-step:last-of-type { padding-bottom: 4px; }
.starter-step:not(:last-of-type)::after { content: ""; position: absolute; left: 12px; top: 25px; bottom: 0; width: 1px; background: #cfc9ef; }
.starter-number { width: 25px; height: 25px; border-radius: 9px; display: grid; place-items: center; background: var(--violet); color: #fff; font-size: .66rem; font-weight: 800; z-index: 1; }
.starter-step:nth-of-type(3n) .starter-number { background: var(--sky); }
.starter-step:nth-of-type(4n) .starter-number { background: var(--mint); }
.starter-step strong { display: block; padding-top: 3px; font-size: .72rem; line-height: 1.35; }
.starter-step p { margin: 4px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.5; }
.starter-link { width: 100%; min-height: 44px; margin-top: 12px; border: 1px solid var(--violet); border-radius: 11px; background: #fff; color: var(--violet-deep); font-size: .72rem; font-weight: 750; cursor: pointer; }

.workday-view { display: grid; grid-template-columns: minmax(0, 1fr) 250px; gap: 22px; }
.day-canvas { min-width: 0; }
.day-path { display: grid; grid-template-columns: repeat(4, 1fr); gap: 12px; position: relative; padding-bottom: 25px; }
.day-path::after { content: ""; position: absolute; left: 9%; right: 9%; bottom: 9px; height: 3px; background: linear-gradient(90deg, var(--mint) 0 25%, var(--violet) 25% 50%, var(--sky) 50% 75%, #e8b900 75%); border-radius: 3px; }
.day-stage { min-height: 104px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 13px; text-align: left; cursor: pointer; position: relative; transition: border-color 180ms ease, transform 180ms ease, box-shadow 180ms ease; }
.day-stage:hover { transform: translateY(-2px); box-shadow: 0 14px 34px rgba(75, 62, 143, .1); }
.day-stage.is-active { border: 2px solid var(--violet); background: #faf8ff; }
.day-stage::after { content: ""; position: absolute; left: 50%; bottom: -24px; width: 14px; height: 14px; margin-left: -7px; border: 3px solid #fff; border-radius: 50%; background: var(--violet); box-shadow: 0 0 0 2px var(--violet); z-index: 2; }
.day-stage:nth-child(1)::after { background: var(--mint); box-shadow: 0 0 0 2px var(--mint); }
.day-stage:nth-child(3)::after { background: var(--sky); box-shadow: 0 0 0 2px var(--sky); }
.day-stage:nth-child(4)::after { background: #e8b900; box-shadow: 0 0 0 2px #e8b900; }
.day-stage time { color: var(--violet-deep); font-size: .65rem; font-weight: 800; }
.day-stage strong { display: block; margin-top: 8px; font-size: .8rem; }
.day-stage span { display: block; margin-top: 5px; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.day-detail { margin-top: 16px; border: 1px solid var(--violet); border-radius: 17px; overflow: hidden; }
.day-detail-heading { padding: 14px 17px; background: var(--violet); color: #fff; }
.day-detail-heading h2 { margin: 0; font-size: 1.05rem; }
.day-detail-heading p { margin: 4px 0 0; color: rgba(255, 255, 255, .8); font-size: .7rem; }
.day-resource-grid { display: grid; grid-template-columns: repeat(4, 1fr); }
.day-resource { min-height: 150px; padding: 16px; border-right: 1px solid var(--line); }
.day-resource:last-child { border-right: 0; }
.day-resource > span { color: var(--muted); font-size: .66rem; font-weight: 700; }
.day-resource .resource-title { margin-top: 14px; }
.day-resource p { color: var(--muted); font-size: .67rem; line-height: 1.55; }
.today-panel { border: 1px solid var(--line); border-radius: 17px; padding: 18px; align-self: start; }
.today-panel h2 { margin: 0; font-size: .95rem; }
.today-panel > p { margin: 6px 0 17px; color: var(--muted); font-size: .69rem; line-height: 1.5; }
.today-steps { display: grid; gap: 14px; }
.today-step { display: grid; grid-template-columns: 25px 1fr; gap: 9px; align-items: start; }
.today-step span { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--violet-deep); font-size: .66rem; font-weight: 800; }
.today-step strong { display: block; padding-top: 3px; font-size: .72rem; }
.today-step p { margin: 4px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.primary-action { width: 100%; min-height: 44px; margin-top: 18px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; font-size: .75rem; font-weight: 750; cursor: pointer; transition: background 180ms ease, transform 180ms ease; }
.primary-action:hover { background: var(--violet-deep); transform: translateY(-1px); }

.path-view { display: grid; grid-template-columns: minmax(0, 1fr) 272px; gap: 22px; }
.path-main { min-width: 0; }
.milestones { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; position: relative; margin-bottom: 18px; }
.milestones::after { content: ""; position: absolute; left: 10%; right: 10%; top: 50%; height: 2px; background: #dedbe9; z-index: -1; }
.milestone { min-height: 89px; border: 1px solid var(--line); border-radius: 14px; background: #fff; padding: 12px; text-align: left; cursor: pointer; }
.milestone span { display: block; color: var(--violet); font-size: .65rem; font-weight: 800; }
.milestone strong { display: block; margin-top: 6px; font-size: .75rem; line-height: 1.4; }
.milestone.is-active { background: var(--violet); border-color: var(--violet); color: #fff; }
.milestone.is-active span { color: rgba(255,255,255,.8); }
.path-detail { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.path-detail h2 { margin: 0; padding: 14px 18px; background: var(--violet); color: #fff; font-size: .95rem; }
.mission-list { padding: 5px 18px; }
.mission-row { display: grid; grid-template-columns: 132px 1fr; gap: 18px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.mission-row:last-child { border-bottom: 0; }
.mission-label { display: flex; align-items: center; gap: 8px; font-size: .72rem; font-weight: 750; }
.mission-label svg { width: 18px; height: 18px; fill: none; stroke: var(--violet); stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.mission-value strong { display: block; font-size: .76rem; }
.mission-value p { margin: 4px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.path-standard { border: 1px solid var(--line); border-radius: 17px; padding: 18px; align-self: start; }
.path-standard h2 { margin: 0 0 15px; font-size: .94rem; }
.standard-item { display: grid; grid-template-columns: 20px 1fr; gap: 9px; margin-bottom: 13px; }
.standard-item svg { width: 18px; height: 18px; fill: none; stroke: var(--violet); stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.standard-item strong { display: block; font-size: .71rem; }
.standard-item p { margin: 4px 0 0; color: var(--muted); font-size: .64rem; line-height: 1.45; }
.capability-map { margin-top: 22px; border: 1px solid var(--line); border-radius: 17px; padding: 17px 18px; }
.capability-map h2 { margin: 0 0 17px; font-size: .9rem; }
.capabilities { display: grid; grid-template-columns: repeat(5, 1fr); position: relative; }
.capabilities::before { content: ""; position: absolute; left: 8%; right: 8%; top: 18px; height: 2px; background: linear-gradient(90deg, var(--violet), var(--sky), var(--mint), var(--sunshine)); }
.capability { position: relative; z-index: 1; text-align: center; }
.capability span { width: 38px; height: 38px; margin: 0 auto 8px; display: grid; place-items: center; border-radius: 13px; background: #eee9ff; color: var(--violet-deep); }
.capability svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.capability:nth-child(2) span { background: #e3f4ff; color: #006ba9; }
.capability:nth-child(3) span { background: #dff8f2; color: #007d69; }
.capability:nth-child(4) span { background: #fff4b8; color: #6b5600; }
.capability:nth-child(5) span { background: #eee9ff; color: var(--violet-deep); }
.capability strong { font-size: .68rem; }

.site-footer { min-height: 54px; border-top: 1px solid var(--line); padding: 14px var(--gutter); display: flex; justify-content: space-between; align-items: center; gap: 16px; color: var(--muted); font-size: .69rem; }
.site-footer a { color: inherit; text-decoration: none; }
.site-footer a:hover { color: var(--violet-deep); }

.drawer-backdrop { position: fixed; inset: 0; z-index: 49; background: rgba(17, 17, 20, .26); }
.resource-drawer {
  width: min(430px, 100vw);
  position: fixed;
  inset: 0 0 0 auto;
  z-index: 50;
  background: #fff;
  border-left: 1px solid var(--line);
  box-shadow: -24px 0 70px rgba(32, 25, 72, .16);
  padding: 56px 30px 30px;
  overflow-y: auto;
  transform: translateX(104%);
  transition: transform 240ms cubic-bezier(.22, 1, .36, 1);
}
.resource-drawer.is-open { transform: translateX(0); }
body.has-career-drawer .sl-companion-root { display: none !important; }
.drawer-close { position: absolute; top: 17px; right: 19px; width: 44px; height: 44px; border: 1px solid var(--line); border-radius: 11px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.drawer-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; }
.drawer-kind { color: var(--violet-deep); font-size: .71rem; font-weight: 750; }
.drawer-title { margin: 8px 0 10px; font-size: 1.65rem; letter-spacing: -.03em; }
.drawer-summary { color: var(--muted); font-size: .83rem; line-height: 1.7; }
.drawer-section { margin-top: 26px; padding-top: 20px; border-top: 1px solid var(--line); }
.drawer-section h3 { margin: 0 0 10px; font-size: .83rem; }
.drawer-section p, .drawer-section li { color: var(--muted); font-size: .75rem; line-height: 1.65; }
.drawer-section ol { margin: 0; padding-left: 20px; }
.drawer-prompt { margin: 0; padding: 14px; border-radius: 13px; background: var(--soft); color: #343245; font-size: .73rem; line-height: 1.7; white-space: pre-wrap; }
.task-bundle-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.task-bundle-heading h3 { margin: 0; }
.task-bundle-heading span { flex: 0 0 auto; padding: 4px 9px; border-radius: 999px; background: #eee9ff; color: var(--violet-deep); font-size: .66rem; font-weight: 800; }
.task-resource-bundle > p { margin: 8px 0 14px; }
.task-bundle-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.task-bundle-grid button { min-width: 0; min-height: 92px; padding: 11px; border: 1px solid var(--line); border-radius: 13px; background: #fff; color: var(--ink); text-align: left; cursor: pointer; transition: border-color 160ms ease, background 160ms ease, transform 160ms ease; }
.task-bundle-grid button:hover { border-color: #b9a7ff; background: #faf8ff; transform: translateY(-1px); }
.task-bundle-grid button > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 8px; background: var(--soft); color: var(--violet-deep); }
.task-bundle-grid svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; }
.task-bundle-grid small { display: block; margin-top: 9px; color: var(--muted); font-size: .62rem; }
.task-bundle-grid strong { display: block; margin-top: 3px; overflow: hidden; color: var(--ink); font-size: .71rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.drawer-link { min-height: 44px; margin-top: 22px; border-radius: 12px; background: var(--violet); color: #fff; text-decoration: none; font-size: .76rem; font-weight: 750; display: inline-flex; align-items: center; gap: 8px; padding: 0 17px; }
.drawer-link:hover { background: var(--violet-deep); }
.drawer-link svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }

.auth-notice { position: fixed; left: 50%; bottom: 24px; z-index: 80; max-width: min(420px, calc(100vw - 32px)); padding: 12px 16px; border-radius: 13px; background: #24232d; color: #fff; font-size: .78rem; opacity: 0; transform: translate(-50%, 14px); pointer-events: none; transition: opacity 180ms ease, transform 180ms ease; }
.auth-notice.is-visible { opacity: 1; transform: translate(-50%, 0); }

@media (max-width: 1180px) {
  .site-header { gap: 14px; }
  .site-nav a { padding-inline: 7px; font-size: .74rem; }
  .career-layout { grid-template-columns: 188px minmax(0, 1fr); gap: 20px; }
  .matrix-layout, .workday-view, .path-view { grid-template-columns: minmax(0, 1fr); }
  .starter-rail { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; }
  .starter-rail h2, .starter-link { grid-column: 1 / -1; }
  .starter-step { padding-bottom: 0; }
  .starter-step::after { display: none; }
  .today-panel, .path-standard { display: none; }
}

@media (max-width: 860px) {
  :root { --header-height: 122px; }
  .site-header { grid-template-columns: 1fr auto; grid-template-rows: 67px 55px; padding-inline: 20px; position: relative; }
  .site-nav { grid-column: 1 / -1; grid-row: 2; justify-content: flex-start; overflow-x: auto; scrollbar-width: none; margin-inline: -20px; padding: 3px 20px; }
  .site-nav::-webkit-scrollbar { display: none; }
  .site-nav a { flex: 0 0 auto; min-height: 43px; display: inline-flex; align-items: center; }
  .industry-strip { padding-inline: 12px; }
  .career-layout { grid-template-columns: 1fr; padding: 22px 20px 30px; }
  .role-rail { position: static; padding: 12px; }
  .rail-heading, .role-rail .role-title, .rail-note { display: none; }
  .role-list { display: flex; gap: 7px; overflow-x: auto; scrollbar-width: none; }
  .role-list::-webkit-scrollbar { display: none; }
  .role-button { flex: 0 0 auto; width: auto; padding-inline: 14px; }
  .workspace-heading { align-items: flex-start; }
  .workspace-heading h1 { font-size: 2.2rem; }
  .day-resource-grid { grid-template-columns: repeat(2, 1fr); }
  .day-resource:nth-child(2) { border-right: 0; }
  .day-resource:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .milestones { grid-template-columns: repeat(2, 1fr); }
  .milestones::after { display: none; }
}

@media (max-width: 620px) {
  .brand { font-size: 1.35rem; }
  .account-button { min-width: 70px; padding-inline: 11px; }
  .industry-button { min-width: 98px; padding-inline: 10px; }
  .workspace-heading { display: block; }
  .workspace-heading h1 { font-size: 1.9rem; }
  .workspace-heading p { font-size: .82rem; }
  .tools-shortcut { display: inline-block; margin-top: 13px; }
  .view-tabs { gap: 12px; overflow-x: auto; }
  .view-tabs button { flex: 0 0 auto; }
  .starter-rail { grid-template-columns: 1fr 1fr; }
  .day-path { grid-template-columns: repeat(4, 180px); overflow-x: auto; padding: 0 3px 28px; }
  .day-path::after { left: 60px; right: auto; width: 600px; }
  .day-resource-grid { grid-template-columns: 1fr; }
  .day-resource { border-right: 0; border-bottom: 1px solid var(--line); }
  .day-resource:last-child { border-bottom: 0; }
  .mission-row { grid-template-columns: 1fr; gap: 7px; }
  .capability-map { overflow-x: auto; }
  .capabilities { min-width: 520px; }
  .site-footer { align-items: flex-start; flex-direction: column; }
  .resource-drawer { padding-inline: 22px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Final career-console contract: legacy views above cannot override the single-screen route. */
.module-page {
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #c7bfdf transparent;
}
.module-page::-webkit-scrollbar { width: 6px; }
.module-page::-webkit-scrollbar-thumb { border-radius: 999px; background: #c7bfdf; }
.module-prompt-page pre {
  min-height: 5.5rem;
  max-height: none;
  overflow: visible;
}
.industry-pages,
.role-pages { display: contents; }
.strip-step { display: none; }
.module-page-tabs button,
.module-stage-head > button,
.module-secondary-action,
.module-prompt-actions button,
.module-extend a,
.workspace-dock > button,
.workspace-dock > a { min-height: 44px; }

@media (min-width: 861px) and (min-height: 690px) {
  .career-layout.is-personal-workspace { height: auto; min-height: 0; }
}

@media (max-width: 860px) {
  .workspace-heading {
    min-height: 54px;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .workspace-heading h1,
  .workspace-heading h2 { font-size: 1.15rem; }
  .workspace-heading p,
  .career-search,
  .tools-shortcut { display: none; }
  .career-layout:not(.is-personal-workspace) .workspace { height: calc(100% - 56px); }
  .module-page { scrollbar-gutter: auto; }
  .workspace-dock,
  .site-footer { display: none; }
}

@media (max-width: 560px) {
  .workspace-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .workspace-tab {
    width: auto;
    min-width: 0;
    flex: none;
    padding-inline: 6px;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .workspace-tab > span:first-child { width: 28px; height: 28px; }
  .workspace-tab small { display: none; }
  .workspace-tab strong { font-size: .75rem; }
  .module-resource small,
  .module-resource strong,
  .module-principles strong,
  .module-principles em,
  .module-teaching strong,
  .module-system-flow span,
  .module-checklist strong,
  .module-pagination strong,
  .module-pagination > div span { font-size: .75rem; }
  .industry-strip {
    padding-inline: 5px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    overflow: hidden;
  }
  .industry-pages,
  .role-pages {
    min-width: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .industry-pages::-webkit-scrollbar,
  .role-pages::-webkit-scrollbar { display: none; }
  .industry-button,
  .role-button { scroll-snap-align: center; }
  .strip-step {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--violet-deep);
    display: grid;
    place-items: center;
  }
  .strip-step:first-child svg { transform: rotate(180deg); }
  .strip-step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .role-list {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    overflow: hidden;
  }
}


/* Final practical-tabs cascade. This block intentionally owns the active /careers route. */
html,
body { height: 100%; overflow: hidden; }
.app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
.career-main { flex: 1 1 auto; min-height: 0; overflow: hidden; background: #f6f7fb; }
.career-main .career-layout {
  width: min(1600px, 100%);
  height: 100%;
  min-height: 0;
  margin: 0 auto;
  padding: 12px var(--gutter);
  display: grid;
  grid-template-columns: 218px minmax(0, 1fr);
  gap: 12px;
  overflow: hidden;
}
.career-main .career-role-sidebar {
  min-width: 0;
  min-height: 0;
  padding: 16px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.career-main .career-sidebar-title h1 { font-size: 1.08rem; }
.career-main .career-role-sidebar .workspace-switcher { width: auto; min-height: 0; margin: 0; padding: 14px 0 0; border: 0; display: flex; flex: 1 1 auto; flex-direction: column; align-items: stretch; gap: 8px; overflow: hidden; }
.career-main .career-role-sidebar .workspace-tabs { display: grid; grid-template-columns: 1fr; align-content: start; gap: 6px; overflow: visible; }
.career-main .career-role-sidebar .workspace-tab { width: 100%; min-width: 0; min-height: 58px; flex: none; padding: 7px 9px; grid-template-columns: 34px minmax(0, 1fr); text-align: left; }
.career-main .career-role-sidebar .workspace-tab.is-active { border-color: #a997ed; background: #eeeaff; color: #3e2094; box-shadow: inset 3px 0 0 var(--violet); }
.career-main .career-role-sidebar .manage-careers-button,
.career-main .career-role-sidebar .all-careers-button { width: 100%; min-height: 44px; margin: 0; }
.career-main .career-role-sidebar .manage-careers-button { margin-top: auto; }
.career-main .career-role-sidebar .industry-strip,
.career-main .career-role-sidebar .role-rail { display: none !important; }
.career-main .workspace { min-width: 0; min-height: 0; display: grid; grid-template-rows: 70px minmax(0, 1fr); overflow: hidden; }
.career-main .workspace-heading { min-height: 0; margin: 0; padding: 5px 8px 9px; display: flex; align-items: center; justify-content: space-between; gap: 18px; }
.career-main .workspace-heading h1,
.career-main .workspace-heading h2 { margin: 2px 0 0; font-size: 1.35rem; line-height: 1.2; }
.career-main .workspace-heading p { margin: 3px 0 0; font-size: .74rem; line-height: 1.4; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.career-main #workspaceBody { min-height: 0; overflow: hidden; }
.career-main .career-console { height: 100%; min-height: 0; display: grid; grid-template-columns: 1fr; grid-template-rows: 82px minmax(0, 1fr); overflow: hidden; }
.career-main .module-map { min-width: 0; min-height: 0; padding: 7px; border: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 1fr; gap: 6px; }
.career-main .module-map header { display: none; }
.career-main .module-node { min-width: 0; min-height: 0; padding: 7px 8px; grid-template-columns: 24px minmax(0, 1fr); gap: 7px; text-align: left; }
.career-main .module-node > span:last-child { grid-template-columns: 23px minmax(0, 1fr); }
.career-main .module-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: 68px 47px minmax(0, 1fr) 46px; }
.career-main .module-stage-head { min-height: 0; padding: 9px 14px; }
.career-main .module-stage-actions { flex: 0 0 auto; display: flex; gap: 7px; }
.career-main .module-stage-actions button { min-height: 44px; }
.career-main .module-page-tabs { min-height: 0; grid-template-columns: repeat(7, minmax(0, 1fr)); grid-template-rows: 1fr; }
.career-main .module-page-tabs button { min-height: 44px; }
.career-main .module-page { min-height: 0; padding: 13px 15px; overflow-y: auto; scrollbar-gutter: stable; }
.career-main .module-concept > span { display: none; }
.career-main .module-concept h3 { max-width: 54ch; margin-top: 0; font-size: 1.02rem; }
.career-main .practical-brief { display: grid; grid-template-columns: 1.15fr 1fr .85fr; }
.career-main .module-steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.career-main .module-system-flow { flex-wrap: wrap; overflow: visible; }
.career-main .workspace-dock { display: none !important; }

@media (max-width: 980px) {
  .career-main .career-layout { grid-template-columns: 164px minmax(0, 1fr); padding-inline: 10px; }
  .career-main .module-node em { display: none; }
}

@media (max-width: 680px) {
  :root { --header-height: 60px; --gutter: 8px; }
  .site-header { min-height: 60px; height: 60px; grid-template-rows: 60px; }
  .career-main .career-layout { padding: 6px; grid-template-columns: 96px minmax(0, 1fr); gap: 6px; }
  .career-main .career-role-sidebar { padding: 10px 6px 7px; }
  .career-main .career-sidebar-title h1 { font-size: .9rem; }
  .career-main .career-sidebar-title p,
  .career-main .workspace-switcher-copy span,
  .career-main .career-role-sidebar > .career-search,
  .career-main .career-sidebar-note { display: none; }
  .career-main .career-role-sidebar .workspace-switcher { padding-top: 9px; gap: 5px; }
  .career-main .career-role-sidebar .workspace-tab { min-height: 58px; padding: 5px 4px; grid-template-columns: 1fr; gap: 3px; text-align: center; }
  .career-main .career-role-sidebar .workspace-tab > span:first-child { width: 27px; height: 27px; margin: 0 auto; }
  .career-main .career-role-sidebar .workspace-tab strong { font-size: .68rem; line-height: 1.3; }
  .career-main .career-role-sidebar .workspace-tab small { display: none; }
  .career-main .career-role-sidebar .manage-careers-button,
  .career-main .career-role-sidebar .all-careers-button { min-height: 44px; padding-inline: 3px; font-size: .66rem; }
  .career-main .workspace { grid-template-rows: 58px minmax(0, 1fr); }
  .career-main .workspace-heading { min-height: 0; padding: 2px 3px 6px; gap: 6px; grid-template-columns: minmax(0, 1fr) auto; }
  .career-main .workspace-heading h1,
  .career-main .workspace-heading h2 { font-size: .98rem; }
  .career-main .workspace-heading p { display: none; }
  .career-main .workspace-heading-actions button { min-height: 44px; padding-inline: 8px; font-size: .66rem; }
  .career-main .career-console { grid-template-rows: 100px minmax(0, 1fr); }
  .career-main .module-map { padding: 4px; grid-template-columns: 1fr 1fr; grid-template-rows: 1fr 1fr; gap: 3px; }
  .career-main .module-node { min-height: 44px; padding: 3px 5px; grid-template-columns: 1fr; text-align: center; }
  .career-main .module-node > span:first-child,
  .career-main .module-node > span:last-child > svg,
  .career-main .module-node em { display: none; }
  .career-main .module-node > span:last-child { display: block; }
  .career-main .module-node strong { display: block; font-size: .68rem; white-space: normal; }
  .career-main .module-stage { grid-template-rows: 58px 88px minmax(0, 1fr) 44px; }
  .career-main .module-stage-head { padding: 5px 7px; }
  .career-main .module-stage-head p { display: none; }
  .career-main .module-stage-actions button:first-child { display: none; }
  .career-main .module-page-tabs { min-height: 88px; padding: 0 2px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: 44px 44px; }
  .career-main .module-page-tabs button { min-height: 44px; padding: 0 2px; }
  .career-main .module-page-tabs button span { display: none; }
  .career-main .module-page-tabs button strong { font-size: .64rem; white-space: normal; }
  .career-main .module-page { padding: 8px; scrollbar-gutter: auto; }
  .career-main .practical-brief { grid-template-columns: 1fr; }
  .career-main .module-steps { grid-template-columns: 1fr 1fr; }
  .career-main .module-teaching,
  .career-main .module-resource-list,
  .career-main .module-resource-list.is-grid,
  .career-main .module-principles,
  .career-main .module-checklist { grid-template-columns: 1fr; }
  .career-main .module-system-flow { justify-content: flex-start; }
  .career-main .module-prompt-page pre { min-height: 6rem; max-height: none; overflow: visible; }
  .career-main .module-pagination { min-height: 44px; grid-template-columns: 68px 1fr 68px; }
  .site-footer { display: none; }
}





/* Single-screen career console */
.sr-only {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  padding: 0 !important;
  margin: -1px !important;
  overflow: hidden !important;
  clip: rect(0, 0, 0, 0) !important;
  white-space: nowrap !important;
  border: 0 !important;
}

@media (min-width: 861px) and (min-height: 690px) {
  html, body { height: 100%; overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .site-header { flex: 0 0 var(--header-height); position: relative; }
  main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .site-footer { flex: 0 0 34px; min-height: 34px; padding-block: 5px; }
}

.career-command {
  width: min(1510px, 100%);
  min-height: 86px;
  margin: 0 auto;
  padding: 13px var(--gutter);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(105deg, #fff 0 68%, #effaf7 100%);
}
.career-command > div:first-child { min-width: 0; }
.career-command span { color: var(--mint); font-size: .75rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
.career-command h1 { margin: 3px 0 0; font-size: clamp(1.4rem, 2.2vw, 2.35rem); line-height: 1.08; letter-spacing: -.035em; }
.career-command p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.career-command-actions { flex: 0 0 auto; display: flex; gap: 8px; }
.career-command-actions button {
  min-height: 44px;
  border: 1px solid #b8dcd4;
  border-radius: 12px;
  background: #fff;
  color: #086d5c;
  padding: 0 15px;
  font-size: .72rem;
  font-weight: 760;
  cursor: pointer;
}
.career-command-actions button:first-child { border-color: var(--mint); background: var(--mint); color: #fff; }

.workspace-switcher { min-height: 64px; padding-block: 7px; }
.workspace-tab { min-height: 48px; padding-block: 5px; }
.career-layout { min-height: 0; padding-block: 12px; gap: 16px; overflow: hidden; }
.career-layout.is-personal-workspace { flex: 1 1 auto; }
.workspace { min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.workspace-heading { min-height: 64px; margin-bottom: 9px; align-items: center; }
.workspace-heading h1, .workspace-heading h2 { font-size: clamp(1.3rem, 2vw, 2rem); }
.workspace-heading p { margin-top: 5px; font-size: .72rem; line-height: 1.45; }
.career-search { width: min(560px, 100%); min-height: 40px; margin-top: 8px; }
.tools-shortcut { align-self: center; }
#workspaceBody { min-height: 0; overflow: hidden; }

.career-console {
  height: 100%;
  min-height: 0;
  display: grid;
  grid-template-columns: 204px minmax(430px, 1fr) 222px;
  border: 1px solid var(--line);
  border-radius: 18px;
  overflow: hidden;
  background: #fff;
}
.module-map {
  min-height: 0;
  padding: 14px 12px;
  border-right: 1px solid var(--line);
  background: #fbfbfd;
  display: grid;
  grid-template-rows: auto repeat(4, minmax(0, 1fr));
  gap: 5px;
}
.module-map header { padding: 2px 5px 8px; }
.module-map header span, .module-map header strong { display: block; }
.module-map header span { color: var(--violet-deep); font-size: .75rem; font-weight: 780; letter-spacing: .06em; }
.module-map header strong { margin-top: 3px; font-size: .8125rem; }
.module-node {
  min-width: 0;
  min-height: 0;
  border: 1px solid transparent;
  border-radius: 13px;
  background: transparent;
  padding: 8px;
  display: grid;
  grid-template-columns: 25px minmax(0, 1fr);
  align-items: center;
  gap: 7px;
  text-align: left;
  cursor: pointer;
}
.module-node:hover { border-color: #ded9f3; background: #fff; }
.module-node.is-active { border-color: #b9a9f5; background: #f1edff; color: #4322a2; }
.module-node > span:first-child { color: #9a97a8; font-size: .75rem; font-weight: 800; }
.module-node > span:last-child { min-width: 0; display: grid; grid-template-columns: 25px minmax(0, 1fr); gap: 2px 7px; align-items: center; }
.module-node > span:last-child > svg { grid-row: 1 / 3; width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.module-node strong, .module-node em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-node strong { font-size: .8125rem; }
.module-node em { color: var(--muted); font-size: .75rem; font-style: normal; }

.module-stage { min-width: 0; min-height: 0; display: grid; grid-template-rows: auto auto minmax(0, 1fr) auto; }
.module-stage-head {
  min-height: 72px;
  padding: 12px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}
.module-stage-head > div { min-width: 0; }
.module-stage-head span { color: var(--mint); font-size: .75rem; font-weight: 780; }
.module-stage-head h2 { margin: 2px 0 0; font-size: 1.25rem; line-height: 1.2; }
.module-stage-head p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-stage-head > button, .module-secondary-action {
  flex: 0 0 auto;
  min-height: 40px;
  border: 1px solid #cec7e7;
  border-radius: 11px;
  background: #fff;
  color: var(--violet-deep);
  padding: 0 13px;
  font-size: .75rem;
  font-weight: 740;
  cursor: pointer;
}
.module-page-tabs { min-height: 47px; padding: 0 10px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.module-page-tabs button { min-width: 0; border: 0; border-bottom: 2px solid transparent; background: transparent; color: #6e6a79; display: flex; align-items: center; justify-content: center; gap: 5px; font-size: .75rem; cursor: pointer; }
.module-page-tabs button span { color: #a39fad; font-size: .56rem; }
.module-page-tabs button strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-page-tabs button.is-active { border-bottom-color: var(--violet); color: var(--violet-deep); }
.module-page { min-height: 0; overflow: hidden; padding: 14px 16px; }
.module-lesson { height: 100%; min-height: 0; display: grid; align-content: start; gap: 11px; }
.module-concept { padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.module-concept > span { color: var(--violet-deep); font-size: .75rem; font-weight: 790; letter-spacing: .05em; }
.module-concept h3 { max-width: 42ch; margin: 5px 0 0; font-size: clamp(.98rem, 1.5vw, 1.35rem); line-height: 1.4; letter-spacing: -.02em; text-wrap: balance; }
.module-concept p { margin: 5px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.5; }
.module-responsibility { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.module-responsibility div { min-width: 0; padding: 9px 11px; }
.module-responsibility div + div { border-left: 1px solid var(--line); background: #f2fbf8; }
.module-responsibility small, .module-responsibility strong { display: block; }
.module-responsibility small { color: var(--muted); font-size: .75rem; }
.module-responsibility strong { margin-top: 3px; font-size: .75rem; line-height: 1.42; }
.module-steps { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: repeat(3, 1fr); border-top: 1px solid var(--line); }
.module-steps li { min-width: 0; min-height: 56px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 7px; }
.module-steps li:last-child { border-right: 0; }
.module-steps span { color: var(--mint); font-size: .75rem; font-weight: 800; }
.module-steps strong { font-size: .75rem; line-height: 1.4; }
.module-inline-resource { max-width: 100%; }
.module-resource-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.module-resource-list.is-grid { grid-template-columns: 1fr 1fr; }
.module-resource {
  width: 100%;
  min-width: 0;
  min-height: 66px;
  padding: 8px 9px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr) 14px;
  align-items: center;
  gap: 8px;
  text-align: left;
  cursor: pointer;
}
.module-resource:hover { background: #faf8ff; }
.module-resource > span:first-child { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #eee9ff; color: var(--violet-deep); }
.module-resource svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.module-resource small, .module-resource strong, .module-resource em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.module-resource small { color: var(--muted); font-size: .75rem; }
.module-resource strong { margin-top: 2px; font-size: .75rem; }
.module-resource em { margin-top: 2px; color: var(--muted); font-size: .75rem; font-style: normal; }
.module-inline-resource .module-resource { border: 1px solid var(--line); border-radius: 11px; }
.module-principles { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.module-principles a { min-width: 0; min-height: 78px; padding: 9px 10px; border-right: 1px solid var(--line); color: var(--ink); text-decoration: none; }
.module-principles a:last-child { border-right: 0; }
.module-principles span, .module-principles strong, .module-principles em { display: block; }
.module-principles span { color: var(--mint); font-size: .75rem; font-weight: 800; }
.module-principles strong { margin-top: 4px; font-size: .75rem; }
.module-principles em { margin-top: 3px; color: var(--muted); font-size: .75rem; font-style: normal; line-height: 1.45; }
.module-teaching { margin: 0; padding: 0; list-style: none; display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.module-teaching li { min-width: 0; min-height: 66px; padding: 9px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 25px 1fr; gap: 8px; align-items: start; }
.module-teaching li:nth-child(2n) { border-right: 0; }
.module-teaching > li > span { width: 25px; height: 25px; border-radius: 8px; background: #e7f8f4; color: var(--mint); display: grid; place-items: center; font-size: .61rem; font-weight: 800; }
.module-teaching strong { font-size: .75rem; }
.module-teaching p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.module-system-flow { display: flex; align-items: center; justify-content: center; gap: 6px; padding: 7px 9px; border-radius: 11px; background: #f5f2ff; overflow: hidden; }
.module-system-flow span { flex: 0 0 auto; font-size: .75rem; font-weight: 730; }
.module-system-flow svg { flex: 0 0 auto; width: 13px; height: 13px; fill: none; stroke: #918aa5; stroke-width: 1.8; }
.module-prompt-page pre { min-height: 0; max-height: 150px; margin: 0; padding: 12px 14px; overflow: hidden; border: 1px solid var(--line); border-radius: 12px; background: #fbfbff; font: inherit; font-size: .75rem; line-height: 1.62; white-space: pre-wrap; }
.module-prompt-actions { display: flex; gap: 8px; }
.module-prompt-actions button { min-height: 42px; border: 1px solid #cfc8e8; border-radius: 11px; background: #fff; color: var(--violet-deep); padding: 0 13px; font-size: .75rem; font-weight: 740; cursor: pointer; }
.module-prompt-actions button:first-child { border-color: var(--violet); background: var(--violet); color: #fff; }
.module-checklist { display: grid; grid-template-columns: repeat(3, 1fr); border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.module-checklist > div { min-width: 0; padding: 9px; border-right: 1px solid var(--line); }
.module-checklist > div:last-child { border-right: 0; }
.module-checklist span { width: 24px; height: 24px; display: grid; place-items: center; border-radius: 8px; background: #e5f8f3; color: var(--mint); }
.module-checklist svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 2; }
.module-checklist strong { display: block; margin-top: 6px; font-size: .75rem; }
.module-checklist p { margin: 3px 0 0; color: var(--muted); font-size: .75rem; line-height: 1.45; }
.module-extend { display: flex; gap: 8px; }
.module-extend a { min-height: 38px; padding: 0 11px; border: 1px solid #d7d1eb; border-radius: 10px; display: inline-flex; align-items: center; color: var(--violet-deep); font-size: .75rem; font-weight: 720; text-decoration: none; }
.module-pagination { min-height: 46px; border-top: 1px solid var(--line); display: grid; grid-template-columns: 100px 1fr 100px; align-items: stretch; }
.module-pagination > button { border: 0; background: #fff; color: var(--violet-deep); display: flex; align-items: center; justify-content: center; gap: 6px; font-size: .75rem; font-weight: 740; cursor: pointer; }
.module-pagination > button:disabled { color: #bbb7c5; cursor: default; }
.module-pagination > button:first-child svg { transform: rotate(180deg); }
.module-pagination svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.module-pagination > div { border-inline: 1px solid var(--line); display: flex; align-items: center; justify-content: center; gap: 8px; }
.module-pagination strong { font-size: .75rem; }
.module-pagination > div span { color: var(--muted); font-size: .75rem; }

.workspace-dock { min-width: 0; padding: 16px 14px; border-left: 1px solid var(--line); background: #071c3f; color: #fff; display: flex; flex-direction: column; }
.workspace-dock > span { color: #79e2ce; font-size: .75rem; font-weight: 800; letter-spacing: .07em; }
.workspace-dock h2 { margin: 6px 0 0; font-size: 1rem; line-height: 1.35; }
.workspace-dock > p { margin: 7px 0 0; color: rgba(255,255,255,.7); font-size: .75rem; line-height: 1.55; }
.workspace-dock > button, .workspace-dock > a { min-height: 42px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: .75rem; font-weight: 760; text-decoration: none; }
.workspace-dock > button { margin-top: 13px; border: 0; background: #75dfcb; color: #062b24; cursor: pointer; }
.workspace-dock > a { margin-top: 7px; border: 1px solid rgba(255,255,255,.34); color: #fff; }
.workspace-dock > button svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.workspace-dock ol { margin: auto 0 0; padding: 12px 0 0; list-style: none; border-top: 1px solid rgba(255,255,255,.16); }
.workspace-dock li { padding: 6px 0; }
.workspace-dock li strong, .workspace-dock li span { display: block; }
.workspace-dock li strong { color: #fff; font-size: .75rem; }
.workspace-dock li span { margin-top: 2px; color: rgba(255,255,255,.58); font-size: .75rem; line-height: 1.4; }
.workspace-dock > small { margin-top: 8px; color: rgba(255,255,255,.48); font-size: .75rem; line-height: 1.45; }

.career-search-results { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
.career-search-results .subview-heading { margin: 0; padding: 12px 0; }
.search-compact-list { min-height: 0; display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.search-compact-list > button, .search-compact-list > a { min-width: 0; min-height: 0; padding: 10px 12px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; color: var(--ink); display: grid; grid-template-columns: 28px minmax(0, 1fr) 15px; align-items: center; gap: 8px; text-align: left; text-decoration: none; cursor: pointer; }
.search-compact-list > :nth-child(2n) { border-right: 0; }
.search-compact-list > :nth-last-child(-n+2) { border-bottom: 0; }
.search-compact-list > :hover { background: #faf8ff; }
.search-compact-list svg { width: 16px; height: 16px; fill: none; stroke: var(--violet-deep); stroke-width: 1.8; }
.search-compact-list small, .search-compact-list strong, .search-compact-list em { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.search-compact-list small { color: var(--muted); font-size: .75rem; }
.search-compact-list strong { margin-top: 2px; font-size: .8125rem; }
.search-compact-list em { margin-top: 2px; color: var(--muted); font-size: .75rem; font-style: normal; }

@media (max-width: 1180px) {
  .career-console { grid-template-columns: 184px minmax(410px, 1fr) 196px; }
  .workspace-dock { padding-inline: 11px; }
  .module-page { padding-inline: 13px; }
}

@media (max-width: 980px) {
  .career-console { grid-template-columns: 174px minmax(0, 1fr); }
  .workspace-dock { display: none; }
}

@media (max-width: 860px) {
  html, body { height: 100%; overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .site-header { min-height: 60px; height: 60px; grid-template-rows: 60px; position: relative; }
  .site-nav { display: none; }
  main { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
  .career-command { min-height: 68px; padding: 9px 14px; }
  .career-command h1 { font-size: 1.2rem; }
  .career-command p { max-width: 48ch; font-size: .75rem; }
  .career-command-actions button { min-height: 44px; padding-inline: 11px; }
  .workspace-switcher { min-height: 64px; grid-template-columns: minmax(0, 1fr) auto auto; padding: 7px 10px; }
  .workspace-tabs { grid-column: 1; grid-row: 1; }
  .workspace-tab { flex-basis: 142px; min-height: 48px; }
  .all-careers-button, .manage-careers-button { grid-row: 1; }
  .all-careers-button { grid-column: 2; }
  .manage-careers-button { grid-column: 3; }
  .industry-strip { flex: 0 0 52px; min-height: 52px; }
  .industry-button { min-height: 51px; }
  .career-layout { flex: 1 1 auto; min-height: 0; padding: 8px 10px; display: block; overflow: hidden; }
  .role-rail { height: 50px; margin-bottom: 6px; padding: 3px; overflow: hidden; }
  .role-button { min-height: 44px; }
  .workspace { height: 100%; min-height: 0; display: grid; grid-template-rows: auto minmax(0, 1fr); }
  .career-layout:not(.is-personal-workspace) .workspace { height: calc(100% - 56px); }
  .workspace-heading { min-height: 54px; margin-bottom: 6px; display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; }
  .workspace-heading h2 { font-size: 1.15rem; }
  .workspace-heading p, .career-search, .tools-shortcut { display: none; }
  #workspaceBody { min-height: 0; }
  .career-console { height: 100%; grid-template-columns: 1fr; grid-template-rows: 58px minmax(0, 1fr); border-radius: 15px; }
  .module-map { padding: 5px; border-right: 0; border-bottom: 1px solid var(--line); grid-template-columns: repeat(4, 1fr); grid-template-rows: 1fr; gap: 3px; }
  .module-map header { display: none; }
  .module-node { min-height: 46px; padding: 4px 5px; grid-template-columns: 1fr; text-align: center; }
  .module-node > span:first-child, .module-node em, .module-node > span:last-child > svg { display: none; }
  .module-node > span:last-child { display: block; }
  .module-node strong { display: block; font-size: .75rem; }
  .module-stage { grid-template-rows: auto auto minmax(0, 1fr) auto; }
  .module-stage-head { min-height: 58px; padding: 8px 11px; }
  .module-stage-head h2 { font-size: 1.05rem; }
  .module-stage-head p { max-width: 45vw; }
  .module-stage-head > button { min-height: 44px; }
  .module-page-tabs { min-height: 45px; padding-inline: 3px; }
  .module-page-tabs button { min-height: 44px; }
  .module-page-tabs button span { display: none; }
  .module-page { padding: 9px 11px; }
  .module-concept h3 { font-size: .95rem; }
  .module-pagination { min-height: 48px; }
  .workspace-dock, .site-footer { display: none; }
}

@media (max-width: 560px) {
  .brand { font-size: 1.2rem; }
  .career-command { min-height: 64px; }
  .career-command > div:first-child > span, .career-command p { display: none; }
  .career-command h1 { font-size: 1.05rem; }
  .career-command-actions button { padding-inline: 9px; font-size: .75rem; }
  .workspace-switcher { min-height: 58px; }
  .workspace-tab { flex-basis: 118px; grid-template-columns: 28px minmax(0, 1fr); }
  .workspace-tab > span:first-child { width: 28px; height: 28px; }
  .all-careers-button, .manage-careers-button { padding-inline: 8px; }
  .career-layout { padding: 6px; }
  .workspace-heading { min-height: 44px; }
  .workspace-heading h2 { font-size: 1rem; }
  .career-console { grid-template-rows: 54px minmax(0, 1fr); }
  .module-map { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .module-node strong { font-size: .75rem; }
  .module-stage-head { min-height: 54px; }
  .module-stage-head span { font-size: .75rem; }
  .module-stage-head h2 { font-size: .94rem; }
  .module-stage-head p { display: none; }
  .module-page-tabs { min-height: 88px; grid-template-columns: repeat(4, minmax(0, 1fr)); grid-template-rows: repeat(2, 44px); }
  .module-page-tabs button strong { font-size: .72rem; }
  .module-page { padding: 7px 9px; }
  .module-lesson { gap: 7px; }
  .module-concept { padding-bottom: 7px; }
  .module-concept h3 { margin-top: 3px; font-size: .84rem; line-height: 1.36; }
  .module-concept p { display: none; }
  .module-responsibility strong { font-size: .72rem; }
  .module-steps li { min-height: 48px; padding: 6px; }
  .module-steps strong { font-size: .72rem; }
  .module-resource-list { grid-template-columns: 1fr; }
  .module-resource-list.is-grid { grid-template-columns: 1fr 1fr; }
  .module-resource { min-height: 53px; padding-block: 5px; }
  .module-resource em { display: none; }
  .module-principles { grid-template-columns: 1fr; }
  .module-principles a { min-height: 48px; border-right: 0; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 24px 1fr; align-items: center; gap: 4px 7px; }
  .module-principles a:last-child { border-bottom: 0; }
  .module-principles span { grid-row: 1 / 3; }
  .module-principles em { margin: 0; }
  .module-teaching li { min-height: 54px; padding: 6px; }
  .module-teaching p { display: none; }
  .module-system-flow { justify-content: flex-start; overflow-x: auto; }
  .module-prompt-page pre { max-height: 116px; font-size: .72rem; }
  .module-checklist > div { padding: 6px; }
  .module-checklist p { display: none; }
  .module-pagination { grid-template-columns: 82px 1fr 82px; }
  .search-compact-list { grid-template-columns: 1fr; }
  .search-compact-list > button, .search-compact-list > a { border-right: 0; min-height: 54px; }
  .search-compact-list > :nth-last-child(-n+2) { border-bottom: 1px solid var(--line); }
  .search-compact-list > :last-child { border-bottom: 0; }
}

@media (max-height: 689px) {
  html, body { height: auto; overflow-y: auto; }
  .app-shell { height: auto; min-height: 100dvh; overflow: visible; }
  main { overflow: visible; }
  .career-layout, .workspace, #workspaceBody, .career-console { height: auto; min-height: 520px; overflow: visible; }
  .module-page { overflow-y: auto; }
}

/* Personal career workspaces */
.workspace-switcher {
  width: min(1510px, 100%);
  min-height: 78px;
  margin: 0 auto;
  padding: 11px var(--gutter);
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto auto;
  align-items: center;
  gap: 14px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}
.workspace-switcher-copy { min-width: 164px; }
.workspace-switcher-copy strong, .workspace-switcher-copy span { display: block; }
.workspace-switcher-copy strong { font-size: .8rem; }
.workspace-switcher-copy span { margin-top: 3px; color: var(--muted); font-size: .62rem; }
.workspace-tabs { min-width: 0; display: flex; gap: 8px; overflow-x: auto; scrollbar-width: none; }
.workspace-tabs::-webkit-scrollbar { display: none; }
.workspace-tab {
  flex: 0 0 min(210px, 29vw);
  min-height: 54px;
  border: 1px solid #dedce9;
  border-radius: 14px;
  background: #fff;
  padding: 7px 11px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  align-items: center;
  gap: 9px;
  text-align: left;
  cursor: pointer;
  transition: border-color 180ms ease, background 180ms ease, transform 180ms ease;
}
.workspace-tab:hover { border-color: #b9addf; transform: translateY(-1px); }
.workspace-tab.is-active { border-color: var(--violet); background: #f4f0ff; color: var(--violet-deep); }
.workspace-tab > span:first-child { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #e5f8f3; color: #087965; }
.workspace-tab:nth-child(2) > span:first-child { background: #e8f4ff; color: #09669c; }
.workspace-tab:nth-child(3) > span:first-child { background: #fff3c9; color: #765b00; }
.workspace-tab svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.workspace-tab strong, .workspace-tab small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.workspace-tab strong { font-size: .75rem; }
.workspace-tab small { margin-top: 3px; color: #757183; font-size: .58rem; }
.all-careers-button, .manage-careers-button {
  min-height: 44px;
  border: 1px solid #d7d4e4;
  border-radius: 12px;
  background: #fff;
  padding: 0 13px;
  font-size: .7rem;
  font-weight: 720;
  white-space: nowrap;
  cursor: pointer;
}
.all-careers-button:hover, .manage-careers-button:hover { border-color: var(--violet); color: var(--violet-deep); }
.all-careers-button.is-active { background: #15131d; border-color: #15131d; color: #fff; }
.manage-careers-button { border-color: #bcb0e9; color: var(--violet-deep); }
.career-layout.is-personal-workspace { grid-template-columns: minmax(0, 1fr); max-width: 1510px; }
.career-layout.is-personal-workspace .workspace { width: 100%; }
.industry-strip[hidden], .role-rail[hidden] { display: none !important; }

.career-picker-backdrop {
  position: fixed;
  inset: 0;
  z-index: 90;
  background: rgba(17, 14, 29, .56);
}
.career-picker {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 91;
  width: min(1040px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 30px 90px rgba(20, 14, 52, .28);
  transform: translate(-50%, -48%);
  clip-path: inset(0 0 8% 0 round 22px);
  opacity: .94;
  display: grid;
  grid-template-rows: auto auto auto minmax(0, 1fr) auto;
  overflow: hidden;
  transition: transform 260ms cubic-bezier(.2,.8,.2,1), clip-path 260ms cubic-bezier(.2,.8,.2,1), opacity 180ms ease;
}
.career-picker.is-open { transform: translate(-50%, -50%); clip-path: inset(0 round 22px); opacity: 1; }
.career-picker[hidden], .career-picker-backdrop[hidden] { display: none !important; }
body.has-career-picker { overflow: hidden; }
body.has-career-picker .ai-community-invite { display: none !important; }
.career-picker-heading { padding: 24px 26px 16px; display: flex; align-items: flex-start; justify-content: space-between; gap: 22px; }
.career-picker-heading h2 { margin: 0; font-size: clamp(1.55rem, 3vw, 2.15rem); line-height: 1.15; letter-spacing: -.03em; }
.career-picker-heading p { max-width: 70ch; margin: 8px 0 0; color: var(--muted); font-size: .77rem; line-height: 1.65; }
.career-picker-close { flex: 0 0 auto; width: 44px; height: 44px; border: 1px solid #ddd9e9; border-radius: 12px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.career-picker-close[hidden] { display: none !important; }
.career-picker-close svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.career-picker-search { min-height: 48px; margin: 0 26px; padding: 0 14px; border: 1px solid #d8d4e6; border-radius: 13px; display: flex; align-items: center; gap: 10px; }
.career-picker-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110, 64, 255, .12); }
.career-picker-search svg { width: 18px; height: 18px; fill: none; stroke: #777286; stroke-width: 1.8; }
.career-picker-search input { flex: 1; min-width: 0; border: 0; outline: 0; background: transparent; font-size: .78rem; }
.career-picker-status { min-height: 48px; padding: 9px 26px; display: flex; align-items: center; gap: 12px; border-bottom: 1px solid var(--line); }
.career-picker-status > span { color: var(--violet-deep); font-size: .69rem; font-weight: 760; }
#careerPickerSelected { min-width: 0; display: flex; gap: 6px; overflow-x: auto; }
#careerPickerSelected span { flex: 0 0 auto; padding: 5px 9px; border-radius: 9px; background: #eee9ff; color: #4e2aaf; font-size: .62rem; font-weight: 700; }
.career-picker-groups { min-height: 0; padding: 8px 26px 22px; overflow-y: auto; }
.career-picker-group { padding: 17px 0; border-bottom: 1px solid var(--line); }
.career-picker-group:last-child { border-bottom: 0; }
.career-picker-group > header { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.career-picker-group > header span { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #f0ecff; color: var(--violet-deep); }
.career-picker-group > header svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.career-picker-group h3 { margin: 0; font-size: .78rem; }
.career-picker-group > div { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.career-choice { min-width: 0; min-height: 58px; border: 1px solid #e1dfeb; border-radius: 13px; background: #fff; padding: 8px 10px; display: grid; grid-template-columns: 30px minmax(0,1fr); align-items: center; gap: 9px; text-align: left; cursor: pointer; }
.career-choice:hover { border-color: #aa9bdd; background: #fbfaff; }
.career-choice.is-selected { border-color: var(--violet); background: #f2edff; color: #4822aa; }
.career-choice.is-limited { opacity: .48; cursor: not-allowed; }
.choice-check { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: #f4f3f8; color: #7b7787; }
.career-choice.is-selected .choice-check { background: var(--violet); color: #fff; }
.career-choice svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.career-choice strong, .career-choice small { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.career-choice strong { font-size: .69rem; }
.career-choice small { margin-top: 3px; color: #777485; font-size: .56rem; }
.career-picker-empty { min-height: 220px; display: grid; place-items: center; align-content: center; gap: 6px; color: var(--muted); font-size: .72rem; }
.career-picker-actions { min-height: 72px; padding: 12px 26px; border-top: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 12px; background: #fbfbfe; }
.career-picker-actions button { min-height: 44px; border-radius: 12px; padding: 0 18px; font-size: .72rem; font-weight: 740; cursor: pointer; }
.career-picker-skip { border: 1px solid #d8d5e4; background: #fff; color: #514e5c; }
.career-picker-save { border: 0; background: var(--violet); color: #fff; }
.career-picker-save:disabled { background: #d9d6e3; color: #817e8a; cursor: not-allowed; }

.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.drawer-actions .drawer-link, .drawer-workspace-action { min-height: 44px; margin: 0; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; font-size: .7rem; font-weight: 740; }
.drawer-workspace-action { border: 1px solid #cfc9e5; background: #fff; color: var(--violet-deep); cursor: pointer; }
.drawer-workspace-action.is-saved { border-color: #8dd7c8; background: #e9f9f5; color: #08715f; }
.drawer-workspace-action:disabled { opacity: .55; cursor: wait; }
.drawer-workspace-action svg, .drawer-actions .drawer-link svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }

.personal-workspace { display: grid; gap: 24px; }
.personal-workspace-heading { padding: 4px 0 18px; border-bottom: 1px solid var(--line); display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; }
.personal-workspace-heading h2 { margin: 0; font-size: 1.35rem; }
.personal-workspace-heading p { max-width: 68ch; margin: 7px 0 0; color: var(--muted); font-size: .73rem; line-height: 1.6; }
.personal-workspace-heading > button { min-height: 42px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; padding: 0 15px; display: inline-flex; align-items: center; gap: 8px; font-size: .7rem; font-weight: 740; cursor: pointer; }
.personal-workspace-heading svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.personal-resource-section, .personal-prompt-section { border-top: 1px solid #d9d7e4; padding-top: 18px; }
.personal-resource-section > header, .personal-prompt-section > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 18px; margin-bottom: 13px; }
.personal-resource-section h3, .personal-prompt-section h3 { margin: 0; font-size: .92rem; }
.personal-resource-section header p, .personal-prompt-section header p { margin: 5px 0 0; color: var(--muted); font-size: .66rem; }
.personal-resource-section > header > span, .personal-prompt-section > header > span { color: var(--violet-deep); font-size: .67rem; font-weight: 760; }
.personal-resource-list { display: grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.personal-resource-list article { min-width: 0; min-height: 76px; padding: 12px 13px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 36px minmax(0,1fr) auto 34px; align-items: center; gap: 10px; }
.personal-resource-list article:nth-child(odd) { border-right: 1px solid var(--line); }
.personal-resource-list article:nth-last-child(-n+2) { border-bottom: 0; }
.personal-resource-list article > span { width: 36px; height: 36px; border-radius: 11px; background: #e8f4ff; color: #096496; display: grid; place-items: center; }
.personal-resource-list svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.personal-resource-list small { color: var(--muted); font-size: .58rem; }
.personal-resource-list h4 { margin: 3px 0 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: .72rem; }
.personal-resource-list a { color: var(--violet-deep); font-size: .64rem; font-weight: 720; text-decoration: none; }
.personal-resource-list article > button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: transparent; color: #8d8998; display: grid; place-items: center; cursor: pointer; }
.personal-resource-list article > button:hover { background: #fff0f2; color: #b72d45; }
.private-prompt-form { padding: 20px; border-radius: 16px; background: #f5f1ff; display: grid; grid-template-columns: minmax(180px, .45fr) 1fr; gap: 14px; }
.private-prompt-form > header { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: flex-start; gap: 18px; }
.private-prompt-form h3 { margin: 0; font-size: .92rem; }
.private-prompt-form header p { margin: 5px 0 0; color: #686174; font-size: .65rem; }
.private-prompt-form header button { width: 34px; height: 34px; border: 0; border-radius: 10px; background: #fff; display: grid; place-items: center; cursor: pointer; }
.private-prompt-form header svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.private-prompt-form label { color: #4e4958; font-size: .65rem; font-weight: 720; }
.private-prompt-form input, .private-prompt-form textarea { width: 100%; margin-top: 7px; border: 1px solid #d7d1e8; border-radius: 11px; background: #fff; padding: 11px 12px; color: var(--ink); font: inherit; font-size: .72rem; outline: 0; resize: vertical; }
.private-prompt-form input:focus, .private-prompt-form textarea:focus { border-color: var(--violet); box-shadow: 0 0 0 3px rgba(110,64,255,.1); }
.private-prompt-form > div { grid-column: 1 / -1; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.private-prompt-form > div span { color: #777182; font-size: .61rem; }
.private-prompt-form > div button { min-height: 40px; border: 0; border-radius: 11px; background: var(--violet); color: #fff; padding: 0 15px; font-size: .68rem; font-weight: 740; cursor: pointer; }
.private-prompt-list { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.private-prompt-list article { min-width: 0; border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.private-prompt-list article > header { padding: 13px 15px; display: flex; justify-content: space-between; gap: 10px; background: #fffaf0; }
.private-prompt-list h4 { margin: 0; font-size: .75rem; }
.private-prompt-list header small { color: #827b6e; font-size: .57rem; }
.private-prompt-list pre { min-height: 108px; max-height: 220px; margin: 0; padding: 14px 15px; overflow: auto; white-space: pre-wrap; font-family: inherit; font-size: .69rem; line-height: 1.65; }
.private-prompt-list footer { padding: 10px 15px; border-top: 1px solid var(--line); display: flex; gap: 8px; }
.private-prompt-list footer button { min-height: 35px; border: 1px solid #d9d5e5; border-radius: 10px; background: #fff; padding: 0 11px; display: inline-flex; align-items: center; gap: 6px; font-size: .62rem; font-weight: 720; cursor: pointer; }
.private-prompt-list footer button:first-child { background: var(--violet); border-color: var(--violet); color: #fff; }
.private-prompt-list footer svg { width: 14px; height: 14px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.personal-section-empty { min-height: 135px; border: 1px dashed #cfcbda; border-radius: 15px; display: grid; place-items: center; align-content: center; gap: 6px; text-align: center; }
.personal-section-empty strong { font-size: .76rem; }
.personal-section-empty span { max-width: 58ch; color: var(--muted); font-size: .65rem; line-height: 1.55; }
.personal-section-empty button { margin-top: 5px; border: 0; background: transparent; color: var(--violet-deep); font-size: .66rem; font-weight: 740; cursor: pointer; }
.personal-workspace-empty, .personal-workspace-loading { min-height: 420px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; border: 1px dashed #d2cede; border-radius: 18px; }
.personal-workspace-empty > span { width: 52px; height: 52px; border-radius: 16px; background: #eee9ff; color: var(--violet-deep); display: grid; place-items: center; }
.personal-workspace-empty svg { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.personal-workspace-empty h2 { margin: 4px 0 0; font-size: 1.05rem; }
.personal-workspace-empty p { max-width: 52ch; margin: 0; color: var(--muted); font-size: .72rem; line-height: 1.6; }
.personal-workspace-empty button { min-height: 40px; margin-top: 5px; border: 0; border-radius: 11px; background: var(--violet); color: #fff; padding: 0 15px; font-size: .68rem; font-weight: 740; cursor: pointer; }
.personal-workspace-loading > span { width: 34px; height: 34px; border: 3px solid #dfd9f2; border-top-color: var(--violet); border-radius: 50%; animation: career-workspace-spin 720ms linear infinite; }
.personal-workspace-loading strong { font-size: .78rem; }
.personal-workspace-loading small { color: var(--muted); font-size: .64rem; }
@keyframes career-workspace-spin { to { transform: rotate(360deg); } }

@media (max-width: 1180px) {
  .workspace-switcher { grid-template-columns: minmax(0, 1fr) auto auto; }
  .workspace-switcher-copy { display: none; }
  .career-picker-group > div { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}

@media (max-width: 760px) {
  .workspace-switcher { min-height: 70px; padding-inline: 14px; grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .workspace-tabs { grid-column: 1 / -1; grid-row: 1; }
  .workspace-tab { flex-basis: 170px; }
  .all-careers-button, .manage-careers-button { grid-row: 2; min-height: 44px; }
  .all-careers-button { grid-column: 1; justify-self: start; }
  .manage-careers-button { grid-column: 2; }
  .career-picker { width: 100%; max-height: calc(100vh - 16px); top: auto; bottom: 0; border-radius: 20px 20px 0 0; transform: translate(-50%, 5%); clip-path: inset(0 0 10% 0 round 20px 20px 0 0); }
  .career-picker.is-open { transform: translate(-50%, 0); clip-path: inset(0 round 20px 20px 0 0); }
  .career-picker-heading { padding: 19px 18px 13px; }
  .career-picker-heading h2 { font-size: 1.45rem; }
  .career-picker-search { margin: 0 18px; }
  .career-picker-status { padding-inline: 18px; }
  .career-picker-groups { padding: 4px 18px 18px; }
  .career-picker-group > div { grid-template-columns: 1fr 1fr; }
  .career-picker-actions { padding: 10px 18px; }
  .personal-workspace-heading { align-items: flex-start; }
  .personal-resource-list, .private-prompt-list { grid-template-columns: 1fr; }
  .personal-resource-list article, .personal-resource-list article:nth-child(odd) { border-right: 0; border-bottom: 1px solid var(--line); }
  .personal-resource-list article:last-child { border-bottom: 0; }
  .private-prompt-form { grid-template-columns: 1fr; }
  .private-prompt-form > header, .private-prompt-form > div { grid-column: 1; }
}

@media (max-width: 470px) {
  .workspace-tab { flex-basis: 156px; }
  .workspace-tab small { display: none; }
  .career-picker-heading p { font-size: .69rem; }
  .career-picker-group > div { grid-template-columns: 1fr; }
  .career-choice { min-height: 52px; }
  .career-picker-actions { align-items: stretch; }
  .career-picker-actions button { flex: 1; padding-inline: 10px; }
  .personal-workspace-heading { display: grid; }
  .personal-workspace-heading > button { justify-self: start; }
  .drawer-actions { grid-template-columns: 1fr; }
}

/* Career AI studio */
.workspace-heading { align-items: flex-start; }
.workspace-heading > div { flex: 1 1 auto; min-width: 0; }
.workspace-heading h1 { color: #12162a; }
.workspace-heading h1::first-letter { color: #008f76; }
.career-search {
  width: min(720px, 100%);
  min-height: 46px;
  margin-top: 18px;
  display: grid;
  grid-template-columns: 20px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 0 14px;
  border: 1px solid #d9d8e7;
  border-radius: 14px;
  background: #fff;
  transition: border-color 160ms ease, box-shadow 160ms ease;
}
.career-search:focus-within { border-color: var(--violet); box-shadow: 0 0 0 4px rgba(110, 64, 255, .1); }
.career-search svg { width: 19px; height: 19px; fill: none; stroke: #737184; stroke-width: 1.9; stroke-linecap: round; }
.career-search input { min-width: 0; border: 0; outline: 0; background: transparent; color: var(--ink); font-size: .84rem; }
.career-search input::placeholder { color: #777688; }
.career-search button { border: 0; background: transparent; color: var(--violet-deep); font-size: .72rem; font-weight: 700; cursor: pointer; }

.studio-directory {
  min-height: 58px;
  display: grid;
  grid-template-columns: repeat(7, minmax(108px, 1fr));
  gap: 0;
  margin-bottom: 24px;
  border: 1px solid var(--line);
  border-radius: 14px;
  overflow-x: auto;
  background: #fff;
  box-shadow: 0 12px 38px rgba(65, 58, 113, .06);
}
.studio-directory button { min-height: 58px; border: 0; border-bottom: 3px solid transparent; padding: 0 10px; white-space: nowrap; }
.studio-directory button + button { position: relative; }
.studio-directory button + button::before { content: ""; position: absolute; left: 0; top: 18px; bottom: 18px; width: 1px; background: var(--line); }
.studio-directory button:hover { background: #fbfaff; }
.studio-directory button.is-active { color: var(--violet-deep); border-bottom-color: var(--violet); background: #faf8ff; }

.studio-home { display: grid; grid-template-columns: minmax(0, 1fr) 255px; gap: 22px; align-items: start; }
.studio-main { width: 100%; min-width: 0; max-width: 100%; display: grid; grid-template-columns: minmax(0, 1fr); gap: 20px; }
.studio-main > section { min-width: 0; max-width: 100%; }
.section-heading, .subview-heading { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.section-heading h2, .subview-heading h2 { margin: 0; font-size: 1.15rem; line-height: 1.3; letter-spacing: -.02em; }
.section-heading p, .subview-heading p { margin: 5px 0 0; max-width: 68ch; color: var(--muted); font-size: .79rem; line-height: 1.65; }
.section-heading button, .subview-heading button, .subview-heading a {
  flex: 0 0 auto;
  min-height: 38px;
  border: 1px solid #d7d2eb;
  border-radius: 11px;
  background: #fff;
  color: var(--violet-deep);
  padding: 0 13px;
  display: inline-flex;
  align-items: center;
  text-decoration: none;
  font-size: .72rem;
  font-weight: 720;
  cursor: pointer;
}
.section-heading button:hover, .subview-heading button:hover, .subview-heading a:hover { border-color: var(--violet); background: #faf8ff; }

.studio-depth { padding: 20px; border: 1px solid var(--line); border-radius: 18px; background: #fff; }
.depth-journey { margin-top: 18px; display: grid; grid-template-columns: repeat(4, 1fr); border-top: 1px solid var(--line); background: #fbfffd; box-shadow: inset 0 -4px #d6b38b; }
.depth-stage {
  min-width: 0;
  min-height: 250px;
  border: 0;
  border-right: 1px solid var(--line);
  background: transparent;
  padding: 24px 18px 20px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
  cursor: pointer;
  position: relative;
  transition: background 180ms ease, transform 180ms cubic-bezier(.22, 1, .36, 1);
}
.depth-stage:last-child { border-right: 0; }
.depth-stage:hover { z-index: 1; background: #fff; transform: translateY(-3px); }
.depth-stage > svg { width: 17px; height: 17px; position: absolute; right: 16px; top: 26px; fill: none; stroke: #8a8899; stroke-width: 1.8; }
.depth-marker { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: #ddf8f1; color: #007d69; }
.depth-marker svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.depth-stage[data-tone="sky"] .depth-marker { background: #e0f2ff; color: #006eae; }
.depth-stage[data-tone="violet"] .depth-marker { background: #eee8ff; color: var(--violet-deep); }
.depth-stage[data-tone="gold"] .depth-marker { background: #fff1bd; color: #806000; }
.depth-copy { display: block; margin-top: 18px; }
.depth-copy > small { display: block; color: #777587; font-size: .68rem; font-weight: 700; }
.depth-copy > strong { display: block; margin-top: 4px; font-size: 1.05rem; }
.depth-copy > em { min-height: 42px; display: block; margin-top: 7px; color: var(--muted); font-size: .74rem; font-style: normal; line-height: 1.55; }
.depth-points { display: grid; gap: 6px; margin-top: 13px; }
.depth-points i { color: #4f4d5e; font-size: .7rem; font-style: normal; line-height: 1.45; }
.depth-points i::before { content: ""; width: 5px; height: 5px; margin-right: 7px; display: inline-block; border-radius: 50%; background: currentColor; vertical-align: 2px; opacity: .55; }

.continue-work { min-height: 108px; display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px; border-radius: 17px; background: #f2efff; color: #282044; }
.continue-work > div { display: flex; align-items: center; gap: 14px; min-width: 0; }
.continue-work > div > span { flex: 0 0 auto; width: 44px; height: 44px; display: grid; place-items: center; border-radius: 13px; background: var(--violet); color: #fff; }
.continue-work svg { width: 21px; height: 21px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.continue-work small { color: #655d7d; font-size: .68rem; font-weight: 720; }
.continue-work h2 { margin: 3px 0 0; font-size: 1rem; }
.continue-work p { margin: 4px 0 0; overflow: hidden; color: #635d73; font-size: .73rem; line-height: 1.45; text-overflow: ellipsis; white-space: nowrap; }
.continue-work > button { flex: 0 0 auto; min-height: 42px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; padding: 0 17px; font-size: .74rem; font-weight: 750; cursor: pointer; }
.continue-work > button:hover { background: var(--violet-deep); }

.studio-shelf { padding: 20px; border: 1px solid var(--line); border-radius: 18px; }
.shelf-row { margin-top: 17px; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); box-shadow: inset 0 -4px #d6b38b; }
.shelf-item {
  min-width: 0;
  min-height: 138px;
  border: 0;
  border-right: 1px solid var(--line);
  background: #fff;
  padding: 14px;
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr);
  align-content: start;
  gap: 10px;
  text-align: left;
  position: relative;
  cursor: pointer;
}
.shelf-item:last-child { border-right: 0; }
.shelf-item:hover { background: #fbfaff; }
.shelf-icon { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 10px; background: #f0ecff; color: var(--violet-deep); }
.shelf-item svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.shelf-item > svg { position: absolute; right: 11px; top: 14px; color: #9896a5; }
.shelf-item small { display: block; padding-right: 18px; color: #777587; font-size: .64rem; }
.shelf-item strong { display: block; margin-top: 4px; overflow: hidden; font-size: .75rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.shelf-item em { margin-top: 7px; display: -webkit-box; overflow: hidden; color: var(--muted); font-size: .66rem; font-style: normal; line-height: 1.5; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }

.studio-aside { display: grid; gap: 14px; }
.studio-aside > section { padding: 18px; border-radius: 17px; background: #f7f8ff; }
.role-card { display: grid; grid-template-columns: 38px 1fr; gap: 11px; }
.role-card-icon { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #dcf8f1; color: #007d69; }
.role-card svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.role-card small { color: #777587; font-size: .66rem; }
.role-card h2 { margin: 3px 0 0; font-size: 1rem; }
.role-card p { grid-column: 1 / -1; margin: 4px 0 0; color: var(--muted); font-size: .7rem; line-height: 1.6; }
.role-card button { grid-column: 1 / -1; min-height: 38px; border: 1px solid #ccdcd7; border-radius: 11px; background: #fff; color: #006b5a; font-size: .71rem; font-weight: 720; cursor: pointer; }
.next-step { background: #f3efff !important; }
.next-step h2, .studio-index h2 { margin: 0; font-size: .88rem; }
.next-step p { margin: 7px 0 14px; color: #625c75; font-size: .7rem; line-height: 1.6; }
.next-step button { width: 100%; min-height: 42px; border: 0; border-radius: 12px; background: var(--violet); color: #fff; font-size: .71rem; font-weight: 740; cursor: pointer; }
.studio-index { background: #fffaf0 !important; }
.studio-index dl { display: grid; margin: 12px 0 0; }
.studio-index dl div { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; padding: 9px 0; border-bottom: 1px solid #efe6d6; }
.studio-index dt { font-size: 1rem; font-weight: 800; }
.studio-index dd { margin: 0; color: #6c655b; font-size: .68rem; }
.studio-index p { margin: 10px 0 0; color: #8a8174; font-size: .62rem; line-height: 1.5; }

.subview-heading { margin-bottom: 20px; padding-bottom: 18px; border-bottom: 1px solid var(--line); }
.subview-heading > span { color: #676477; font-size: .72rem; font-weight: 700; }
.knowledge-layout { display: grid; grid-template-columns: 190px minmax(0, 1fr) 230px; gap: 18px; align-items: start; }
.knowledge-levels { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.knowledge-level { min-height: 94px; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 14px; display: grid; grid-template-columns: 28px 1fr; gap: 4px 9px; text-align: left; cursor: pointer; }
.knowledge-level:last-child { border-bottom: 0; }
.knowledge-level:hover { background: #fbfaff; }
.knowledge-level > span { grid-row: 1 / 3; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: #e5f8f3; color: #00745f; font-size: .7rem; font-weight: 800; }
.knowledge-level strong { font-size: .75rem; }
.knowledge-level em { color: var(--muted); font-size: .64rem; font-style: normal; line-height: 1.45; }
.knowledge-level.is-active { background: #f4f0ff; }
.knowledge-level.is-active > span { background: var(--violet); color: #fff; }
.knowledge-detail { min-width: 0; min-height: 455px; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.knowledge-detail-head { min-height: 88px; padding: 18px 20px; display: flex; align-items: center; gap: 13px; background: #f0fbf8; box-shadow: inset 0 -4px #d6b38b; }
.knowledge-detail-head > span { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 14px; background: var(--mint); color: #fff; font-weight: 800; }
.knowledge-detail-head small { color: #57716b; font-size: .65rem; }
.knowledge-detail-head h2 { margin: 2px 0 0; font-size: 1.1rem; }
.knowledge-reading { padding: 24px; }
.knowledge-reading h3 { margin: 0; font-size: 1.05rem; }
.knowledge-reading > p { margin: 8px 0 20px; max-width: 65ch; color: var(--muted); font-size: .79rem; line-height: 1.7; }
.concept-links { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.concept-links a { min-height: 64px; display: flex; align-items: center; padding: 0 14px; border-bottom: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: .76rem; font-weight: 700; }
.concept-links a:nth-child(odd) { border-right: 1px solid var(--line); }
.concept-links a:hover { color: var(--violet-deep); background: #faf8ff; }
.knowledge-task { width: 100%; min-height: 88px; border: 1px solid #d8d5e7; border-radius: 14px; background: #fff; padding: 15px; display: grid; grid-template-columns: 36px minmax(0,1fr) 18px; align-items: center; gap: 11px; text-align: left; cursor: pointer; }
.knowledge-task:hover { border-color: var(--violet); background: #faf8ff; }
.knowledge-task > span:first-child { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #e4f8f3; color: #007a65; }
.knowledge-task svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.knowledge-task strong, .knowledge-task em { display: block; }
.knowledge-task strong { font-size: .8rem; }
.knowledge-task em { margin-top: 4px; color: var(--muted); font-size: .69rem; font-style: normal; }
.knowledge-bundle { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.knowledge-bundle .shelf-item { min-height: 104px; border: 1px solid var(--line); border-radius: 12px; }
.system-chain, .system-map-flow { display: flex; align-items: center; gap: 8px; overflow-x: auto; padding: 12px 0; }
.system-chain span, .system-map-flow span { flex: 0 0 auto; min-height: 38px; padding: 0 13px; border-radius: 11px; background: #f0ecff; color: var(--violet-deep); display: inline-flex; align-items: center; font-size: .72rem; font-weight: 720; }
.system-chain svg, .system-map-flow svg { flex: 0 0 auto; width: 16px; height: 16px; fill: none; stroke: #9996a8; stroke-width: 1.8; }
.knowledge-tasks { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.knowledge-tasks > h2 { margin: 0; padding: 15px; background: #fbfbff; border-bottom: 1px solid var(--line); font-size: .79rem; }
.knowledge-tasks button { width: 100%; min-height: 78px; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 12px; display: grid; grid-template-columns: 30px 1fr; gap: 9px; text-align: left; cursor: pointer; }
.knowledge-tasks button:last-child { border-bottom: 0; }
.knowledge-tasks button:hover, .knowledge-tasks button.is-current { background: #faf8ff; }
.knowledge-tasks button > span:first-child { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 9px; background: #f0ecff; color: var(--violet-deep); }
.knowledge-tasks svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.knowledge-tasks strong, .knowledge-tasks em { display: block; }
.knowledge-tasks strong { font-size: .7rem; }
.knowledge-tasks em { margin-top: 4px; color: var(--muted); font-size: .62rem; font-style: normal; line-height: 1.45; }

.solution-list { display: grid; border: 1px solid var(--line); border-radius: 18px; overflow: hidden; }
.solution-row { min-height: 156px; display: grid; grid-template-columns: 210px minmax(0, 1fr); border-bottom: 1px solid var(--line); }
.solution-row:last-child { border-bottom: 0; }
.solution-row .task-cell { margin: 0; border-radius: 0; background: #e7f8f4; color: #113c35; padding: 20px; }
.solution-row:nth-child(2) .task-cell { background: #e8f4ff; color: #123e5b; }
.solution-row:nth-child(3) .task-cell { background: #f0ebff; color: #33245e; }
.solution-row:nth-child(4) .task-cell { background: #fff3c9; color: #4c3d0e; }
.solution-row .task-cell p { font-size: .72rem; line-height: 1.55; }
.solution-open { margin-top: 18px; display: inline-flex; align-items: center; gap: 6px; color: currentColor; font-size: .68rem; font-weight: 760; }
.solution-open svg { width: 15px; height: 15px; fill: none; stroke: currentColor; stroke-width: 1.9; }
.solution-resources { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); align-content: stretch; }
.solution-resources button { min-width: 0; min-height: 77px; border: 0; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #fff; padding: 14px; text-align: left; cursor: pointer; }
.solution-resources button:nth-child(4n) { border-right: 0; }
.solution-resources button:nth-last-child(-n+3) { border-bottom: 0; }
.solution-resources button:hover { background: #faf8ff; }
.solution-resources small, .solution-resources strong { display: block; }
.solution-resources small { color: var(--muted); font-size: .62rem; }
.solution-resources strong { margin-top: 5px; overflow: hidden; font-size: .7rem; line-height: 1.35; text-overflow: ellipsis; white-space: nowrap; }
.solution-resources .bundle-more { background: #faf8ff; color: var(--violet-deep); }

.tool-cabinets { display: grid; gap: 18px; }
.tool-cabinet { display: grid; grid-template-columns: 230px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.tool-cabinet > header { padding: 20px; background: #fff7d8; display: grid; grid-template-columns: 38px 1fr auto; align-content: start; gap: 10px; }
.tool-cabinet[data-tone="mint"] > header { background: #e5f8f3; }
.tool-cabinet[data-tone="violet"] > header { background: #f0ebff; }
.tool-cabinet > header > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: rgba(255,255,255,.78); }
.tool-cabinet > header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.tool-cabinet > header h2 { margin: 0; font-size: .92rem; }
.tool-cabinet > header p { margin: 6px 0 0; color: #665f4b; font-size: .68rem; line-height: 1.55; }
.tool-cabinet > header em { color: #6e6652; font-size: .65rem; font-style: normal; white-space: nowrap; }
.tool-cabinet > div { display: grid; grid-template-columns: repeat(3, 1fr); }
.tool-cabinet .shelf-item { min-height: 128px; border-bottom: 1px solid var(--line); }
.tool-cabinet .shelf-item:nth-child(3n) { border-right: 0; }

.system-map { margin-bottom: 18px; padding: 14px 18px; border-radius: 15px; background: #f5f2ff; }
.system-map-flow { justify-content: center; }
.system-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.system-columns > section { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.system-columns > section > header { min-height: 92px; padding: 17px; display: grid; grid-template-columns: 36px 1fr; gap: 10px; background: #fbfbff; border-bottom: 1px solid var(--line); }
.system-columns > section > header > span { width: 36px; height: 36px; display: grid; place-items: center; border-radius: 11px; background: #eee9ff; color: var(--violet-deep); }
.system-columns > section > header svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.system-columns > section > header h2 { margin: 0; font-size: .88rem; }
.system-columns > section > header p { margin: 5px 0 0; color: var(--muted); font-size: .67rem; line-height: 1.5; }
.system-columns > section > div { display: grid; grid-template-columns: 1fr 1fr; }
.system-columns .shelf-item { min-height: 116px; border-bottom: 1px solid var(--line); }
.system-columns .shelf-item:nth-child(2n) { border-right: 0; }

.prompt-ledger { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.prompt-ledger article { border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.prompt-ledger article > header { min-height: 86px; padding: 17px; display: grid; grid-template-columns: 38px 1fr; gap: 11px; background: #fffaf0; }
.prompt-ledger article > header > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #ffeaa1; color: #5f4b00; }
.prompt-ledger article > header svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.prompt-ledger small { color: #796f5a; font-size: .64rem; }
.prompt-ledger h2 { margin: 4px 0 0; font-size: .83rem; line-height: 1.4; }
.prompt-ledger pre { min-height: 128px; margin: 0; padding: 17px; background: #fff; color: #464452; font-family: inherit; font-size: .72rem; line-height: 1.65; white-space: pre-wrap; }
.prompt-ledger article > div { display: flex; gap: 8px; padding: 13px 17px; border-top: 1px solid var(--line); }
.prompt-ledger article > div button { min-height: 38px; border: 1px solid #d8d4e8; border-radius: 11px; background: #fff; color: var(--violet-deep); padding: 0 13px; font-size: .69rem; font-weight: 720; cursor: pointer; }
.prompt-ledger article > div button:first-child { background: var(--violet); border-color: var(--violet); color: #fff; }

.learning-view { display: grid; gap: 18px; }
.learning-view > .subview-heading { margin-bottom: 0; }
.learning-shelf { display: grid; grid-template-columns: 220px minmax(0, 1fr); border: 1px solid var(--line); border-radius: 17px; overflow: hidden; }
.learning-shelf-label { padding: 20px; display: grid; grid-template-columns: 38px 1fr; align-content: start; gap: 10px; background: #f2efff; }
.learning-shelf-label > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #fff; color: var(--violet-deep); }
.learning-shelf-label svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.learning-shelf-label h2 { margin: 0; font-size: .88rem; }
.learning-shelf-label p { grid-column: 1 / -1; margin: 4px 0 0; color: #655f73; font-size: .68rem; line-height: 1.55; }
.career-course-shelf .learning-shelf-label { background: #e5f8f3; }
.creator-shelf .learning-shelf-label { background: #e8f4ff; }
.learning-book-row { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); align-items: stretch; background: #fff; box-shadow: inset 0 -4px #d6b38b; }
.learning-book-row > a, .learning-book-row > button { min-width: 0; min-height: 150px; border: 0; border-right: 1px solid var(--line); background: #fff; padding: 18px 15px; display: flex; flex-direction: column; text-align: left; text-decoration: none; cursor: pointer; }
.learning-book-row > :last-child { border-right: 0; }
.learning-book-row > a:hover, .learning-book-row > button:hover { background: #faf8ff; }
.learning-book-row span { color: var(--ink); font-size: .78rem; font-weight: 760; line-height: 1.4; }
.learning-book-row small { margin-top: 8px; color: var(--muted); font-size: .67rem; line-height: 1.55; }
.learning-book-row em { margin-top: auto; padding-top: 12px; color: var(--violet-deep); font-size: .62rem; font-style: normal; font-weight: 700; }
.creator-list { display: grid; grid-template-columns: 1fr 1fr; }
.creator-list a { min-width: 0; min-height: 118px; padding: 15px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 38px minmax(0, 1fr) auto 16px; gap: 10px; align-items: start; color: var(--ink); text-decoration: none; }
.creator-list a:nth-child(2n) { border-right: 0; }
.creator-list a:hover { background: #faf8ff; }
.creator-avatar { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 12px; background: #e7f4ff; color: #075f9b; font-weight: 800; }
.creator-list strong, .creator-list em, .creator-list small { display: block; }
.creator-list strong { font-size: .75rem; }
.creator-list em { margin-top: 3px; color: var(--violet-deep); font-size: .62rem; font-style: normal; }
.creator-list small { margin-top: 7px; color: var(--muted); font-size: .65rem; line-height: 1.5; }
.creator-list i { color: #797686; font-size: .61rem; font-style: normal; white-space: nowrap; }
.creator-list > a > svg { width: 15px; height: 15px; fill: none; stroke: #92909e; stroke-width: 1.8; }
.learning-source-note { margin: 0; color: #7d7a89; font-size: .65rem; text-align: right; }

.search-result-groups { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.search-result-groups section { border: 1px solid var(--line); border-radius: 16px; overflow: hidden; }
.search-result-groups section > h3 { margin: 0; padding: 14px 16px; background: #fbfbff; border-bottom: 1px solid var(--line); font-size: .79rem; }
.search-result-groups section > button, .search-result-groups section > a { width: 100%; min-height: 76px; border: 0; border-bottom: 1px solid var(--line); background: #fff; padding: 13px 15px; display: grid; grid-template-columns: 32px minmax(0, 1fr) 16px; gap: 10px; align-items: center; color: var(--ink); text-align: left; text-decoration: none; cursor: pointer; }
.search-result-groups section > :last-child { border-bottom: 0; }
.search-result-groups section > button:hover, .search-result-groups section > a:hover { background: #faf8ff; }
.search-result-groups svg { width: 17px; height: 17px; fill: none; stroke: var(--violet-deep); stroke-width: 1.8; }
.search-result-groups strong, .search-result-groups em { display: block; }
.search-result-groups strong { font-size: .75rem; }
.search-result-groups em { margin-top: 4px; color: var(--muted); font-size: .67rem; font-style: normal; line-height: 1.45; }
.search-result-groups .shelf-item { min-height: 100px; border-bottom: 1px solid var(--line); }
.search-empty { min-height: 360px; display: grid; place-items: center; align-content: center; gap: 9px; text-align: center; border: 1px dashed #d8d5e5; border-radius: 17px; }
.search-empty > span { width: 48px; height: 48px; display: grid; place-items: center; border-radius: 14px; background: #f0ecff; color: var(--violet-deep); }
.search-empty svg { width: 23px; height: 23px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.search-empty h2 { margin: 5px 0 0; font-size: 1rem; }
.search-empty p { margin: 0; color: var(--muted); font-size: .74rem; }
.search-empty a { margin-top: 8px; color: var(--violet-deep); font-size: .73rem; font-weight: 720; }

@media (max-width: 1260px) {
  .studio-home { grid-template-columns: minmax(0, 1fr); }
  .studio-aside { grid-template-columns: repeat(3, 1fr); }
  .studio-index dl div { display: grid; }
  .knowledge-layout { grid-template-columns: 170px minmax(0, 1fr); }
  .knowledge-tasks { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(4, 1fr); }
  .knowledge-tasks > h2 { grid-column: 1 / -1; }
  .knowledge-tasks button { border-right: 1px solid var(--line); border-bottom: 0; }
  .knowledge-tasks button:last-child { border-right: 0; }
}

@media (max-width: 980px) {
  .depth-journey { grid-template-columns: 1fr 1fr; }
  .depth-stage:nth-child(2) { border-right: 0; }
  .depth-stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .shelf-row { grid-template-columns: repeat(3, minmax(170px, 1fr)); overflow-x: auto; }
  .solution-row { grid-template-columns: 180px minmax(0, 1fr); }
  .solution-resources { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .solution-resources button:nth-child(4n) { border-right: 1px solid var(--line); }
  .solution-resources button:nth-child(3n) { border-right: 0; }
  .tool-cabinet, .learning-shelf { grid-template-columns: 1fr; }
  .tool-cabinet > header { grid-template-columns: 38px 1fr auto; }
  .learning-shelf-label { grid-template-columns: 38px 1fr; }
  .prompt-ledger { grid-template-columns: 1fr; }
}

@media (max-width: 860px) {
  .workspace-heading { display: block; }
  .tools-shortcut { display: inline-block; margin-top: 14px; }
  .studio-directory { display: flex; overflow-x: auto; }
  .studio-directory button { flex: 0 0 auto; min-width: 122px; }
  .studio-aside { grid-template-columns: 1fr; }
  .knowledge-layout { grid-template-columns: 1fr; }
  .knowledge-levels { display: flex; overflow-x: auto; }
  .knowledge-level { flex: 0 0 190px; border-right: 1px solid var(--line); border-bottom: 0; }
  .knowledge-tasks { grid-column: auto; grid-template-columns: 1fr 1fr; }
  .knowledge-tasks button { border-bottom: 1px solid var(--line); }
  .system-columns { grid-template-columns: 1fr; }
  .search-result-groups { grid-template-columns: 1fr; }
}

@media (max-width: 620px) {
  .career-layout { padding-inline: 14px; }
  .workspace-heading h1, .workspace-heading h2 { font-size: 1.75rem; }
  .career-search { min-height: 48px; }
  .studio-directory { margin-inline: -2px; }
  .studio-depth, .studio-shelf { padding: 16px; }
  .section-heading, .subview-heading { display: block; }
  .section-heading button, .subview-heading button, .subview-heading a { margin-top: 12px; }
  .depth-journey { grid-template-columns: 1fr; }
  .depth-stage { min-height: 190px; border-right: 0; border-bottom: 1px solid var(--line); }
  .depth-stage:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
  .depth-copy > em { min-height: 0; }
  .continue-work { display: grid; padding: 17px; }
  .continue-work > button { width: 100%; }
  .shelf-row { grid-template-columns: repeat(5, 210px); }
  .knowledge-levels { margin-inline: -1px; }
  .knowledge-detail { min-height: 0; }
  .knowledge-reading { padding: 18px; }
  .concept-links, .knowledge-bundle { grid-template-columns: 1fr; }
  .concept-links a:nth-child(odd) { border-right: 0; }
  .knowledge-tasks { grid-template-columns: 1fr; }
  .knowledge-tasks button { border-right: 0; }
  .solution-row { grid-template-columns: 1fr; }
  .solution-row .task-cell { min-height: 150px; }
  .solution-resources { grid-template-columns: 1fr 1fr; }
  .solution-resources button:nth-child(3n) { border-right: 1px solid var(--line); }
  .solution-resources button:nth-child(2n) { border-right: 0; }
  .tool-cabinet > div { grid-template-columns: 1fr 1fr; }
  .tool-cabinet .shelf-item:nth-child(3n) { border-right: 1px solid var(--line); }
  .tool-cabinet .shelf-item:nth-child(2n) { border-right: 0; }
  .system-map-flow { justify-content: flex-start; }
  .system-columns > section > div { grid-template-columns: 1fr; }
  .system-columns .shelf-item, .system-columns .shelf-item:nth-child(2n) { border-right: 0; }
  .prompt-ledger article > div { display: grid; }
  .learning-book-row { grid-template-columns: repeat(5, 220px); overflow-x: auto; }
  .creator-list { grid-template-columns: 1fr; }
  .creator-list a, .creator-list a:nth-child(2n) { border-right: 0; }
  .learning-source-note { text-align: left; }
}

/* Public career evolution map */
.career-hero {
  width: min(1510px, 100%);
  margin: 0 auto;
  padding: clamp(42px, 7vw, 88px) var(--gutter) clamp(34px, 5vw, 64px);
  border-bottom: 1px solid var(--line);
  background:
    radial-gradient(circle at 88% 18%, rgba(0, 185, 154, .13), transparent 27%),
    linear-gradient(112deg, #fff 0 58%, #f1fbf8 100%);
}
.career-hero > div { max-width: 980px; }
.career-hero h1 {
  max-width: 18ch;
  margin: 0;
  font-size: clamp(2.55rem, 5.2vw, 5.3rem);
  line-height: 1.02;
  letter-spacing: -.04em;
  text-wrap: balance;
}
.career-hero > div > p {
  max-width: 68ch;
  margin: 22px 0 0;
  color: #555563;
  font-size: clamp(.95rem, 1.35vw, 1.14rem);
  line-height: 1.8;
}
.career-hero-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 28px; }
.career-hero-actions button {
  min-height: 48px;
  border-radius: 13px;
  padding: 0 20px;
  border: 1px solid #a5dcd1;
  background: #fff;
  color: #086d5c;
  font-weight: 760;
  cursor: pointer;
}
.career-hero-actions button:first-child { border-color: #087d69; background: #087d69; color: #fff; }
.career-hero-actions button:hover { transform: translateY(-1px); box-shadow: 0 12px 28px rgba(6, 102, 86, .14); }
.career-hero-proof { max-width: 76ch; margin: 26px 0 0; color: #686876; font-size: .78rem; line-height: 1.65; }

.evolution-map { width: 100%; }
.evolution-intro {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 26px;
  padding: 18px 0 30px;
}
.evolution-intro h2, .evolution-section h2, .evolution-boundary h2 { margin: 0; font-size: clamp(1.2rem, 2vw, 1.75rem); line-height: 1.28; letter-spacing: -.025em; text-wrap: balance; }
.evolution-intro p, .evolution-section header p, .evolution-boundary p { max-width: 72ch; margin: 9px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.72; }
.evolution-intro > button, .evolution-more {
  flex: 0 0 auto;
  min-height: 44px;
  border: 0;
  border-radius: 12px;
  background: var(--violet);
  color: #fff;
  padding: 0 16px;
  font-size: .72rem;
  font-weight: 750;
  cursor: pointer;
}
.evolution-section { padding: 30px 0; border-top: 1px solid var(--line); }
.evolution-section > header { display: flex; align-items: start; justify-content: space-between; gap: 28px; margin-bottom: 18px; }
.evolution-section > header p { margin-top: 0; }
.evolution-lines { border-top: 1px solid #dcdce8; }
.evolution-lines button {
  width: 100%;
  min-height: 72px;
  display: grid;
  grid-template-columns: minmax(150px, .32fr) minmax(0, 1fr) 22px;
  align-items: center;
  gap: 18px;
  border: 0;
  border-bottom: 1px solid #e4e4ed;
  background: #fff;
  padding: 14px 4px;
  text-align: left;
  cursor: pointer;
}
.evolution-lines button:hover { background: #fafaff; }
.evolution-lines strong { font-size: .82rem; }
.evolution-lines span { color: var(--muted); font-size: .72rem; line-height: 1.55; }
.evolution-lines svg { width: 18px; height: 18px; fill: none; stroke: var(--violet-deep); stroke-width: 1.8; }
.evolution-split { display: grid; grid-template-columns: minmax(260px, .68fr) minmax(0, 1.32fr); gap: 44px; align-items: start; }
.evolution-split > header { display: block; margin: 0; }
.evolution-split > div { display: grid; grid-template-columns: 1fr 1fr; border-top: 1px solid var(--line); }
.evolution-split a, .evolution-split button {
  min-height: 58px;
  display: flex;
  align-items: center;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  color: var(--ink);
  padding: 10px 14px;
  font-size: .72rem;
  font-weight: 720;
  text-decoration: none;
  text-align: left;
  cursor: pointer;
}
.evolution-split > div > :nth-child(2n) { border-right: 0; }
.evolution-split button { color: var(--violet-deep); }
.evolution-task-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); border-top: 1px solid var(--line); }
.evolution-task-list button {
  min-width: 0;
  min-height: 84px;
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  grid-template-rows: auto auto;
  align-content: center;
  column-gap: 11px;
  border: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #fff;
  padding: 12px 14px;
  text-align: left;
  cursor: pointer;
}
.evolution-task-list button:nth-child(2n) { border-right: 0; }
.evolution-task-list button:hover { background: #f8f7ff; }
.evolution-task-list button > span { grid-row: 1 / 3; width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: #eee9ff; color: var(--violet-deep); }
.evolution-task-list svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.evolution-task-list strong { font-size: .75rem; }
.evolution-task-list em { margin-top: 4px; color: var(--muted); font-size: .66rem; font-style: normal; line-height: 1.45; }
.evolution-more { margin-top: 16px; }
.evolution-inline-actions { display: flex; flex-wrap: wrap; gap: 9px; margin-top: 15px; }
.evolution-inline-actions button { min-height: 44px; border: 1px solid #d4cee8; border-radius: 12px; background: #fff; color: var(--violet-deep); padding: 0 14px; font-size: .7rem; font-weight: 730; cursor: pointer; }
.evolution-projects ol { margin: 0; padding: 0; list-style: none; counter-reset: project; border-top: 1px solid var(--line); }
.evolution-projects li { counter-increment: project; border-bottom: 1px solid var(--line); }
.evolution-projects li button { width: 100%; min-height: 72px; display: grid; grid-template-columns: 2rem minmax(0, 1fr); align-items: center; column-gap: 12px; border: 0; background: #fff; text-align: left; cursor: pointer; }
.evolution-projects li button::before { content: counter(project); grid-row: 1 / 3; color: var(--mint); font-size: 1.3rem; font-weight: 820; }
.evolution-projects strong, .evolution-projects span { display: block; }
.evolution-projects strong { font-size: .76rem; }
.evolution-projects span { margin-top: 4px; color: var(--muted); font-size: .66rem; line-height: 1.5; }
.evolution-learning > div { border: 1px solid var(--line); border-radius: 15px; overflow: hidden; }
.evolution-community > div { display: flex; flex-wrap: wrap; gap: 10px; }
.evolution-community a, .evolution-boundary a { min-height: 44px; display: inline-flex; align-items: center; border: 1px solid #d4cee8; border-radius: 12px; color: var(--violet-deep); padding: 0 14px; font-size: .7rem; font-weight: 730; text-decoration: none; }
.evolution-boundary { margin: 8px 0 14px; padding: 26px; display: flex; align-items: center; justify-content: space-between; gap: 28px; border-radius: 16px; background: #071c3f; color: #fff; }
.evolution-boundary p { color: rgba(255, 255, 255, .76); }
.evolution-boundary a { flex: 0 0 auto; border-color: rgba(255,255,255,.4); color: #fff; }
.drawer-task-reference { width: 100%; margin-top: 18px; }

.career-sync-backdrop { position: fixed; inset: 0; z-index: 94; background: rgba(7, 12, 31, .62); }
.career-sync-dialog {
  position: fixed;
  left: 50%;
  top: 50%;
  z-index: 95;
  width: min(680px, calc(100vw - 32px));
  transform: translate(-50%, -50%);
  border-radius: 16px;
  background: #fff;
  padding: clamp(22px, 4vw, 34px);
  box-shadow: 0 30px 90px rgba(6, 11, 30, .32);
}
.career-sync-dialog[hidden], .career-sync-backdrop[hidden] { display: none !important; }
body.has-career-sync { overflow: hidden; }
.career-sync-dialog h2 { margin: 0; font-size: clamp(1.45rem, 3vw, 2rem); line-height: 1.2; letter-spacing: -.025em; text-wrap: balance; }
.career-sync-dialog > p { margin: 10px 0 0; color: var(--muted); font-size: .78rem; line-height: 1.7; }
.career-sync-options { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-top: 22px; }
.career-sync-options button { min-height: 132px; display: flex; flex-direction: column; align-items: flex-start; border: 1px solid #d8d5e5; border-radius: 14px; background: #fff; padding: 17px; text-align: left; cursor: pointer; }
.career-sync-options button:hover { border-color: var(--violet); background: #faf8ff; }
.career-sync-options button:disabled { opacity: .58; cursor: wait; }
.career-sync-options span { color: var(--violet-deep); font-size: .65rem; font-weight: 760; }
.career-sync-options strong { margin-top: 11px; font-size: .92rem; line-height: 1.45; }
.career-sync-options small { margin-top: auto; padding-top: 12px; color: var(--muted); font-size: .65rem; line-height: 1.45; }
.career-sync-status { min-height: 1.5em; color: #9c263c !important; }

@media (max-width: 760px) {
  .career-hero { padding: 38px 18px 32px; background: linear-gradient(145deg, #fff 0 66%, #f0faf7 100%); }
  .career-hero h1 { max-width: 19ch; font-size: clamp(2.25rem, 12vw, 3.55rem); }
  .career-hero > div > p { font-size: .9rem; }
  .evolution-intro, .evolution-section > header, .evolution-boundary { display: block; }
  .evolution-intro > button, .evolution-boundary a { width: 100%; margin-top: 16px; justify-content: center; }
  .evolution-split { grid-template-columns: 1fr; gap: 18px; }
  .evolution-task-list { grid-template-columns: 1fr; }
  .evolution-task-list button, .evolution-task-list button:nth-child(2n) { border-right: 0; }
  .evolution-boundary { padding: 22px 18px; }
  .career-sync-options { grid-template-columns: 1fr; }
  .career-sync-options button { min-height: 110px; }
}

@media (max-width: 470px) {
  .career-hero-actions { display: grid; }
  .career-hero-actions button { width: 100%; }
  .evolution-lines button { grid-template-columns: 1fr 20px; gap: 7px 12px; }
  .evolution-lines button span { grid-column: 1; }
  .evolution-lines button svg { grid-column: 2; grid-row: 1 / 3; }
  .evolution-split > div { grid-template-columns: 1fr; }
  .evolution-split a, .evolution-split button, .evolution-split > div > :nth-child(2n) { border-right: 0; }
  .evolution-inline-actions { display: grid; }
  .career-sync-dialog { width: calc(100vw - 20px); max-height: calc(100vh - 20px); overflow-y: auto; padding: 21px 17px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .01ms !important; transition-duration: .01ms !important; }
}

/* Career console wins the legacy cascade. Keep this final. */
.module-page {
  overflow-y: auto;
  scrollbar-gutter: stable;
  scrollbar-color: #c7bfdf transparent;
}
.module-prompt-page pre {
  min-height: 5.5rem;
  max-height: none;
  overflow: visible;
}
.module-page::-webkit-scrollbar { width: 6px; }
.module-page::-webkit-scrollbar-thumb { border-radius: 999px; background: #c7bfdf; }
.industry-pages,
.role-pages { display: contents; }
.strip-step { display: none; }
.module-page-tabs button,
.module-stage-head > button,
.module-secondary-action,
.module-prompt-actions button,
.module-extend a,
.workspace-dock > button,
.workspace-dock > a { min-height: 44px; }

@media (min-width: 861px) and (min-height: 690px) {
  .career-layout.is-personal-workspace { height: auto; min-height: 0; }
}

@media (max-width: 860px) {
  .workspace-heading {
    min-height: 54px;
    margin-bottom: 6px;
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }
  .workspace-heading h1,
  .workspace-heading h2 { font-size: 1.15rem; }
  .workspace-heading p,
  .career-search,
  .tools-shortcut { display: none; }
  .career-layout:not(.is-personal-workspace) .workspace { height: calc(100% - 56px); }
  .module-page { scrollbar-gutter: auto; }
  .workspace-dock,
  .site-footer { display: none; }
}

@media (max-width: 560px) {
  .workspace-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
  }
  .workspace-tab {
    width: auto;
    min-width: 0;
    flex: none;
    padding-inline: 6px;
    grid-template-columns: 28px minmax(0, 1fr);
  }
  .workspace-tab > span:first-child { width: 28px; height: 28px; }
  .workspace-tab small { display: none; }
  .workspace-tab strong { font-size: .75rem; }
  .module-resource small,
  .module-resource strong,
  .module-principles strong,
  .module-principles em,
  .module-teaching strong,
  .module-system-flow span,
  .module-checklist strong,
  .module-pagination strong,
  .module-pagination > div span { font-size: .75rem; }
  .industry-strip {
    padding-inline: 5px;
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    gap: 4px;
    overflow: hidden;
  }
  .industry-pages,
  .role-pages {
    min-width: 0;
    display: flex;
    overflow-x: auto;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
  }
  .industry-pages::-webkit-scrollbar,
  .role-pages::-webkit-scrollbar { display: none; }
  .industry-button,
  .role-button { scroll-snap-align: center; }
  .strip-step {
    min-width: 44px;
    min-height: 44px;
    border: 1px solid var(--line);
    border-radius: 11px;
    background: #fff;
    color: var(--violet-deep);
    display: grid;
    place-items: center;
  }
  .strip-step:first-child svg { transform: rotate(180deg); }
  .strip-step svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 2; }
  .role-list {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr) 44px;
    align-items: center;
    gap: 4px;
    overflow: hidden;
  }
}


/* Practical tabs final cascade: the document stays fixed; only the lesson stage may scroll. */
.career-main .career-layout .workspace,
.career-main #workspaceBody,
.career-main .career-console { height: 100%; min-height: 0; overflow: hidden; }
.career-main .module-stage-actions { display: flex; align-items: center; gap: 7px; }
.career-main .module-stage-actions button {
  width: auto;
  height: 44px;
  min-height: 44px;
  border: 1px solid #cec7e7;
  border-radius: 10px;
  background: #fff;
  color: var(--violet-deep);
  padding: 0 11px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  font-size: .72rem;
  font-weight: 740;
  line-height: 1;
  white-space: nowrap;
  cursor: pointer;
}
.career-main .module-stage-actions button:last-child { border-color: var(--violet); background: var(--violet); color: #fff; }
.career-main .module-stage-actions svg { width: 14px; height: 14px; flex: 0 0 14px; fill: none; stroke: currentColor; stroke-width: 1.9; }

@media (max-width: 860px) {
  .career-main .career-layout .workspace { height: 100%; }
}

@media (max-width: 680px) {
  .career-main .career-layout {
    display: grid;
    grid-template-columns: 96px minmax(0, 1fr);
  }
  .career-main .workspace { grid-template-rows: minmax(0, 1fr); }
  .career-main .workspace-heading { display: none; }
  .career-main .module-stage-actions { gap: 4px; }
  .career-main .module-stage-actions button { height: 44px; padding-inline: 7px; font-size: .65rem; }
  .career-main .module-stage-actions button:first-child { display: none; }
}

@media (max-height: 689px), (max-width: 359px) {
  html,
  body { height: 100%; overflow: hidden; }
  .app-shell { height: 100dvh; min-height: 0; overflow: hidden; }
  .career-main,
  .career-main .career-layout,
  .career-main .career-layout .workspace,
  .career-main #workspaceBody,
  .career-main .career-console { height: 100%; min-height: 0; overflow: hidden; }
  .career-main .module-page { min-height: 0; overflow-y: auto; }
}
