/* Shared scoped workspace for learner and admin career screens. */
.career {
  --cr-navy: #143a61;
  --cr-blue: #226ba0;
  --cr-green: #176c50;
  --cr-border: #e3eaf0;
  --cr-muted: #617185;
  color: #19334b;
  max-width: 1480px;
  margin: auto;
  font-family: inherit;
}
.career * {
  box-sizing: border-box;
}
.career a {
  color: var(--cr-blue);
}
.career button,
.career input,
.career select,
.career textarea {
  font: inherit;
}
.career button,
.career a.cr-btn {
  min-height: 44px;
}
.career .cr-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  border: 1px solid var(--cr-blue);
  border-radius: 12px;
  background: var(--cr-blue);
  color: #fff;
  padding: 10px 16px;
  text-decoration: none;
  font-weight: 700;
  cursor: pointer;
}
.career .cr-btn.secondary {
  background: #fff;
  color: var(--cr-blue);
  border-color: var(--cr-border);
}
.career .cr-btn.danger {
  color: #a63f43;
  background: #fff;
  border-color: #e4c3c5;
}
.career button:disabled {
  opacity: 0.55;
  cursor: wait;
}
.career :focus-visible {
  outline: 3px solid #69b8e6;
  outline-offset: 3px;
}
.career .cr-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 20px;
  margin: 0 0 24px;
}
.career .cr-eyebrow {
  font-size: 12px;
  letter-spacing: 0.12em;
  font-weight: 800;
  color: var(--cr-blue);
  margin: 0 0 8px;
}
.career h1 {
  font-size: clamp(26px, 3vw, 36px);
  line-height: 1.2;
  color: var(--cr-navy);
  margin: 0 0 10px;
}
.career h2 {
  font-size: 20px;
  color: var(--cr-navy);
  margin: 0 0 12px;
}
.career h3 {
  font-size: 17px;
  color: var(--cr-navy);
  margin: 0 0 8px;
}
.career p {
  line-height: 1.6;
}
.career .cr-muted {
  color: var(--cr-muted);
  font-size: 14px;
}
.career .cr-context {
  min-width: 230px;
  max-width: 340px;
}
.career .cr-shell {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 24px;
}
.career .cr-nav {
  display: flex;
  flex-direction: column;
  gap: 5px;
  align-self: start;
  position: sticky;
  top: 92px;
}
.career .cr-nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 11px 13px;
  border-radius: 12px;
  text-decoration: none;
  font-weight: 650;
  color: #52687a;
}
.career .cr-nav a[aria-current="page"] {
  background: #e7f2f8;
  color: var(--cr-blue);
}
.career .cr-nav a:hover {
  background: #eef4f8;
}
.career .cr-mobile-nav {
  display: none;
}
.career .cr-main {
  min-width: 0;
}
.career .cr-card {
  background: #fff;
  border: 1px solid var(--cr-border);
  border-radius: 18px;
  padding: 24px;
  margin-bottom: 18px;
}
.career .cr-welcome {
  background: var(--cr-navy);
  color: #fff;
  position: relative;
  overflow: hidden;
}
.career .cr-welcome h2,
.career .cr-welcome h3 {
  color: #fff;
}
.career .cr-welcome p {
  color: #d3e4ef;
}
.career .cr-welcome:after {
  content: "↗";
  font-size: 110px;
  position: absolute;
  right: 25px;
  top: 20px;
  color: #ffffff12;
  pointer-events: none;
}
.career .cr-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  margin-top: 16px;
}
.career .cr-row {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: center;
}
.career .cr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
}
.career .cr-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 22px;
}
.career .cr-kpi {
  padding: 18px;
  border: 1px solid var(--cr-border);
  background: #fff;
  border-radius: 16px;
  text-decoration: none;
  color: #19334b;
}
.career .cr-kpi strong {
  display: block;
  font-size: 30px;
  line-height: 1.3;
  color: var(--cr-navy);
}
.career .cr-kpi span {
  font-size: 13px;
  color: var(--cr-muted);
  line-height: 1.5;
  display: block;
}
.career .cr-kpi.warn {
  border-top: 4px solid #eaa233;
}
.career .cr-kpi.danger {
  border-top: 4px solid #a63f43;
}
.career .cr-filter {
  display: flex;
  gap: 10px;
  align-items: flex-end;
  flex-wrap: wrap;
  margin: 0 0 20px;
}
.career .cr-filter label {
  flex: 1;
  min-width: 140px;
  margin: 0;
}
.career input,
.career select,
.career textarea {
  width: 100%;
  border: 1px solid #cedae3;
  border-radius: 10px;
  background: #fff;
  color: #19334b;
  min-height: 45px;
  padding: 11px 12px;
}
.career textarea {
  min-height: 110px;
  resize: vertical;
  line-height: 1.55;
}
.career label {
  display: block;
  font-size: 14px;
  font-weight: 650;
  line-height: 1.5;
  margin: 0 0 16px;
}
.career label > span {
  display: block;
  margin-bottom: 6px;
}
.career .cr-check {
  display: flex;
  align-items: flex-start;
  gap: 10px;
}
.career input[type="checkbox"] {
  width: 20px;
  min-height: 20px;
  flex: 0 0 20px;
  margin-top: 1px;
}
.career .cr-note {
  padding: 14px 16px;
  border-radius: 12px;
  background: #edf5fa;
  color: #35576b;
  font-size: 14px;
  line-height: 1.6;
  margin: 15px 0;
}
.career .cr-note.warn {
  background: #fff7e7;
  color: #805b1d;
}
.career .cr-note.error {
  background: #fff0f0;
  color: #a63f43;
}
.career .cr-state {
  display: inline-flex;
  align-items: center;
  white-space: normal;
  font-size: 12px;
  font-weight: 750;
  border-radius: 20px;
  padding: 6px 10px;
  background: #eef2f5;
  color: #5d6e7d;
}
.career .cr-state.good {
  background: #e5f4eb;
  color: #176c50;
}
.career .cr-state.warn {
  background: #fff1d6;
  color: #8b5e14;
}
.career .cr-state.danger {
  background: #fbe8e9;
  color: #a63f43;
}
.career .cr-table-wrap {
  overflow: auto;
  border: 1px solid var(--cr-border);
  border-radius: 14px;
  background: #fff;
}
.career table {
  width: 100%;
  border-collapse: collapse;
  font-size: 14px;
}
.career th {
  background: #f5f8fb;
  color: #63758a;
  text-align: left;
  font-size: 12px;
  letter-spacing: 0.02em;
  padding: 14px 16px;
  white-space: nowrap;
}
.career td {
  padding: 16px;
  border-top: 1px solid var(--cr-border);
  vertical-align: middle;
}
.career td small {
  display: block;
  color: var(--cr-muted);
  margin-top: 5px;
}
.career .cr-person {
  display: flex;
  align-items: center;
  gap: 10px;
}
.career .cr-avatar {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 50%;
  background: #eaf2f7;
  color: var(--cr-blue);
  font-weight: 800;
  flex-shrink: 0;
  object-fit: cover;
}
.career .cr-link {
  border: 0;
  background: none;
  text-align: left;
  color: var(--cr-blue);
  font-weight: 700;
  padding: 0;
  cursor: pointer;
}
.career .cr-empty {
  text-align: center;
  padding: 40px 22px;
  border: 1px dashed #cedae3;
  border-radius: 18px;
  background: #fff;
}
.career .cr-empty .cr-empty-icon {
  display: block;
  color: #98acbd;
  font-size: 35px;
  margin-bottom: 12px;
}
.career .cr-pages {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 15px;
  margin-top: 18px;
}
.career .cr-timeline {
  margin: 16px 0;
  padding: 0;
  list-style: none;
}
.career .cr-timeline li {
  padding: 0 0 24px 25px;
  border-left: 2px solid #e1ebf2;
  position: relative;
  margin-left: 7px;
}
.career .cr-timeline li:before {
  content: "";
  width: 12px;
  height: 12px;
  position: absolute;
  left: -7px;
  top: 4px;
  background: #8fb3cd;
  border: 2px solid #fff;
  border-radius: 50%;
}
.career .cr-timeline time {
  font-size: 12px;
  color: var(--cr-muted);
}
.career .cr-timeline p {
  margin: 7px 0;
  white-space: pre-wrap;
}
.career .cr-dl {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 2fr;
  gap: 12px;
  margin: 16px 0;
}
.career .cr-dl dt {
  color: var(--cr-muted);
  font-size: 14px;
}
.career .cr-dl dd {
  margin: 0;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
  line-height: 1.5;
}
.career .cr-skeleton {
  height: 120px;
  background: linear-gradient(110deg, #eef3f7 20%, #f9fbfc 40%, #eef3f7 60%);
  border-radius: 18px;
  margin: 16px 0;
}
.career .cr-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0 18px;
}
.career .cr-form-grid .wide {
  grid-column: 1/-1;
}
.career .cr-step {
  display: flex;
  gap: 6px;
  margin: 15px 0 25px;
}
.career .cr-step span {
  flex: 1;
  height: 5px;
  background: #e5edf3;
  border-radius: 6px;
}
.career .cr-step span.active {
  background: var(--cr-blue);
}
.career .cr-lookup {
  position: relative;
}
.career .cr-lookup-results {
  position: relative;
  z-index: 5;
  max-height: 230px;
  overflow: auto;
  border: 1px solid #cedae3;
  border-radius: 10px;
  margin-top: 5px;
  box-shadow: 0 6px 18px #143a6112;
  background: #fff;
}
.career .cr-lookup-results:empty {
  display: none;
}
.career .cr-lookup-results button {
  display: block;
  width: 100%;
  padding: 10px 14px;
  text-align: left;
  border: 0;
  border-bottom: 1px solid #edf2f5;
  background: #fff;
  cursor: pointer;
}
.career .cr-lookup-results button:hover,
.career .cr-lookup-results button:focus {
  background: #eef6fb;
}
.career .cr-lookup-results small {
  display: block;
  color: var(--cr-muted);
}
.career .cr-progress {
  width: 100%;
  height: 9px;
  border: 0;
  border-radius: 8px;
  accent-color: var(--cr-green);
  margin: 10px 0;
}
.career .cr-cv {
  max-width: 760px;
  margin: auto;
  padding: 30px;
}
.career .cr-cv h2 {
  font-size: 27px;
  border-bottom: 2px solid var(--cr-blue);
  padding-bottom: 15px;
}
.career .cr-chip-list {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin: 10px 0;
}
.career .cr-chip {
  display: inline-flex;
  background: #eef4f8;
  border-radius: 20px;
  padding: 6px 11px;
  font-size: 13px;
}
.career .cr-section-title {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  align-items: center;
  margin: 24px 0 14px;
}
.career .cr-section-title h2 {
  margin: 0;
}
.career-dialog {
  width: min(760px, calc(100vw - 28px));
  max-height: 90dvh;
  border: 0;
  border-radius: 18px;
  padding: 24px;
  box-shadow: 0 20px 80px #16344d30;
}
.career-dialog::backdrop {
  background: #132c4966;
}
.career-dialog .cr-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 20px;
}
.career-dialog .cr-dialog-head h2 {
  margin: 0;
}
.career-dialog .cr-dialog-close {
  border: 0;
  border-radius: 10px;
  width: 44px;
  height: 44px;
  font-size: 24px;
  color: #19334b;
  background: #f0f4f7;
}
.career-dialog.cr-drawer {
  margin: 0 0 0 auto;
  width: min(780px, 95vw);
  height: 100dvh;
  max-height: 100dvh;
  border-radius: 18px 0 0 18px;
}
.career .cr-sticky-actions {
  position: sticky;
  bottom: 0;
  background: #fff;
  padding: 16px 0 2px;
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}
.career .cr-screen-message {
  min-height: 200px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
}
.career-entry {
  display: block;
  padding: 20px 24px;
  border: 1px solid #cddfe9;
  border-radius: 18px;
  background: #edf6fb;
  margin: 18px 0;
  color: #143a61;
  text-decoration: none;
}
.career-entry strong {
  display: block;
  font-size: 18px;
  margin-bottom: 5px;
}
.career-entry span {
  font-size: 14px;
}
.career .cr-flag {
  display: inline-block;
  font-size: 12px;
  font-weight: 700;
  color: #8b5e14;
  background: #fff1d6;
  padding: 5px 9px;
  border-radius: 8px;
}
.career .cr-raw-text {
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.career .cr-flow {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 15px 0;
}
.career .cr-flow span {
  padding: 8px 10px;
  background: #f2f6f9;
  border-radius: 10px;
  font-size: 13px;
}
.career .cr-flow span.current {
  color: var(--cr-green);
  background: #e5f4eb;
  font-weight: 750;
}
@media (max-width: 1100px) {
  .career .cr-shell {
    grid-template-columns: 175px minmax(0, 1fr);
    gap: 18px;
  }
  .career .cr-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .career .cr-grid {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 760px) {
  .career .cr-head {
    display: block;
  }
  .career .cr-context {
    max-width: none;
    margin-top: 15px;
  }
  .career .cr-shell {
    display: block;
  }
  .career .cr-nav {
    display: none;
  }
  .career .cr-mobile-nav {
    display: block;
    margin-bottom: 20px;
  }
  .career .cr-card {
    padding: 18px;
    border-radius: 16px;
  }
  .career .cr-form-grid {
    grid-template-columns: 1fr;
  }
  .career .cr-kpi {
    padding: 14px;
  }
  .career .cr-kpi strong {
    font-size: 26px;
  }
  .career .cr-filter label {
    min-width: 120px;
  }
  .career .cr-table-wrap {
    border: 0;
    background: transparent;
  }
  .career table,
  .career tbody,
  .career tr,
  .career td {
    display: block;
  }
  .career thead {
    display: none;
  }
  .career tr {
    background: #fff;
    border: 1px solid var(--cr-border);
    border-radius: 15px;
    margin-bottom: 12px;
    padding: 6px 14px;
  }
  .career td {
    border: 0;
    padding: 8px 0;
  }
  .career td[data-label]:before {
    content: attr(data-label);
    display: block;
    color: var(--cr-muted);
    font-size: 12px;
    margin-bottom: 5px;
  }
  .career .cr-pages {
    justify-content: center;
  }
  .career .cr-dl {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .career .cr-dl dd {
    margin-bottom: 10px;
  }
  .career-dialog {
    padding: 18px;
  }
  .career .cr-cv {
    padding: 20px;
  }
  .career .cr-sticky-actions .cr-btn {
    flex: 1;
  }
  .career .cr-actions .cr-btn {
    flex: 1;
    min-width: 140px;
  }
}
@media print {
  .career .cr-nav,
  .career .cr-mobile-nav,
  .career .cr-context,
  .career .cr-actions,
  .career .cr-filter,
  .career .cr-sticky-actions,
  .career-dialog .cr-dialog-head button {
    display: none !important;
  }
  .career .cr-shell {
    display: block;
  }
  .career .cr-cv {
    border: 0;
    padding: 0;
  }
  .career .cr-card {
    break-inside: avoid;
  }
  .career-dialog {
    position: static !important;
    max-height: none;
    height: auto;
    width: 100%;
    box-shadow: none;
  }
  .career table,
  .career tbody {
    display: table;
  }
  .career tr {
    display: table-row;
  }
  .career td {
    display: table-cell;
  }
  .career td:before {
    display: none !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  .career * {
    scroll-behavior: auto !important;
    animation: none !important;
  }
}
.career .cr-form-steps {
  display: flex;
  gap: 8px;
  overflow: auto;
  margin: 10px 0 22px;
  padding-bottom: 5px;
}
.career .cr-form-steps button {
  flex: 1;
  white-space: nowrap;
  border: 1px solid var(--cr-border);
  border-radius: 10px;
  background: #fff;
  color: #617185;
  padding: 10px 12px;
  cursor: pointer;
}
.career .cr-form-steps [aria-current="step"] {
  background: #e7f2f8;
  border-color: #b5d4e6;
  color: var(--cr-blue);
  font-weight: 750;
}
.career .cr-form-grid > label[hidden] {
  display: none;
}

.career .cr-credential-qr {
  width: 220px;
  max-width: 100%;
  padding: 12px;
  background: #fff;
  margin: 12px auto;
}
.career .cr-credential-qr svg {
  display: block;
  width: 100%;
  height: auto;
}

.career .cr-weekdays {
  border: 1px solid #dce7ed;
  border-radius: 14px;
  padding: 14px;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.career .cr-weekdays legend {
  font-weight: 700;
  padding: 0 6px;
}
.career .cr-weekdays .cr-check {
  padding: 6px 8px;
  background: #f4f8fb;
  border-radius: 8px;
}

.career .cr-criteria {
  margin-top: 20px;
}
.career .cr-criteria .cr-card {
  background: #f6fafc;
}
.career .cr-calendar {
  display: grid;
  grid-template-columns: repeat(7, minmax(150px, 1fr));
  gap: 10px;
  overflow-x: auto;
  padding-bottom: 16px;
  margin-top: 16px;
}
.career .cr-calendar.is-day {
  grid-template-columns: minmax(0, 1fr);
}
.career .cr-calendar-day {
  border: 1px solid var(--cr-border);
  border-radius: 14px;
  padding: 12px;
  background: #f8fbfd;
}
.career .cr-calendar-day h3 {
  font-size: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid var(--cr-border);
}
.career .cr-calendar-shift {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 14px 10px;
  margin-top: 10px;
  background: white;
  border: 1px solid #cce2ed;
  border-left: 4px solid #226ba0;
  border-radius: 10px;
  text-decoration: none;
}
.career .cr-calendar-shift strong {
  font-size: 14px;
  color: var(--cr-navy);
}
.career .cr-calendar-shift .cr-state {
  font-size: 11px;
  line-height: 1.4;
  white-space: normal;
}
.career .cr-view-options {
  margin: 15px 0;
}
.career .cr-avatar img {
  width: 100%;
  height: 100%;
  border-radius: inherit;
  object-fit: cover;
}
/* Structured CV rows retain the four-step drawer and a readable mobile layout. */
.cr-form-grid > [hidden] { display:none !important; }
.cr-repeat { border:1px solid #dce6ec; border-radius:16px; padding:16px; min-width:0; }
.cr-repeat legend { font-weight:750; color:#17394c; padding:0 6px; }
.cr-repeat-row { background:#f5f8fb; border-radius:12px; padding:16px; margin:12px 0; display:grid; gap:12px; }
.cr-repeat-row label { display:grid; gap:6px; }
.cr-cv dd { white-space:pre-wrap; }

/* Keep acknowledged-save feedback inside the action area, above its buttons. */
.career .cr-sticky-actions .cr-save-status { flex-basis:100%; font-size:14px; color:#315a69; line-height:1.5; }
.career .cr-save-status:empty { display:none; }

.cr-operational-grid { display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,300px),1fr));gap:16px;margin:20px 0; }
.cr-operational-tile { border:1px solid #dce6ec;border-radius:18px;padding:20px;background:#f8fbfc;min-width:0; }
.cr-operational-tile h3 { margin:8px 0 18px;overflow-wrap:anywhere; }
.cr-attendance-bar { display:flex;height:14px;overflow:hidden;border-radius:20px;background:#e6edf1;margin:14px 0 8px; }
.cr-attendance-bar span { height:100%;flex-shrink:0; }
.cr-segment-present { background:#218267; }.cr-segment-late { background:#b6740d; }.cr-segment-absent { background:#c94d60; }
.cr-segment-excused { background:#397ab9; }.cr-segment-disputed { background:#8d62ae; }.cr-segment-unknown { background:#9aabb7; }
.cr-chart-legend { display:flex;flex-wrap:wrap;gap:8px 16px;font-size:13px;color:#496071; }
.cr-chart-legend span { display:inline-flex;align-items:center;gap:6px; }.cr-chart-legend i { display:inline-block;width:10px;height:10px;border-radius:3px; }
.cr-chart-caption { font-size:13px;color:#496071;line-height:1.6; }
.cr-operational-group { padding:16px 0;border-bottom:1px solid #e1e9ee; }
.cr-operational-group summary,.cr-source-panel summary { cursor:pointer;font-weight:700;line-height:1.6;min-height:44px; }
.cr-source-row { padding:12px 0;border-bottom:1px solid #e1e9ee;overflow-wrap:anywhere; }.cr-source-row small { display:block;margin:6px 0;color:#496071; }
.cr-source-panel [data-source-more] { margin-top:16px; }
.cr-policy-preview { background:#f0f7f5;border:1px solid #c9e1da;border-radius:16px;padding:18px;margin:18px 0; }
.cr-policy-version { padding:14px 0;border-bottom:1px solid #dce6ec; }
.cr-policy-version summary { cursor:pointer;font-weight:700;min-height:44px;line-height:1.6; }

/* Career workspace density: inputs get priority over the secondary navigation. */
.career .cr-shell { grid-template-columns:184px minmax(0,1fr); gap:20px; }
.career .cr-card { padding:20px; margin-bottom:16px; }
.career .cr-filter { display:flex; flex-wrap:wrap; gap:14px 12px; align-items:flex-end; padding:16px; background:#f6f9fc; border:1px solid var(--cr-border); border-radius:14px; }
.career .cr-filter label { flex:1 1 180px; min-width:0; margin:0; }
.career .cr-filter > :is(button,.cr-btn) { flex:0 0 auto; align-self:flex-end; white-space:nowrap; }
.career .cr-filter :is(input,select) { min-width:0; }
.career .cr-filter small { display:block; line-height:1.45; font-weight:400; }
.career .cr-form-grid { gap:4px 20px; }
.career-dialog .cr-dialog-head { padding-bottom:16px; border-bottom:1px solid #e3eaf0; }
@media(max-width:1320px) {
 .career .cr-shell { display:block; }
 .career .cr-nav { display:none; }
 .career .cr-mobile-nav { display:flex; align-items:center; gap:12px; padding:10px 14px; margin-bottom:16px; background:#fff; border:1px solid var(--cr-border); border-radius:14px; }
 .career .cr-mobile-nav > span { margin:0; flex:0 0 auto; }
 .career .cr-mobile-nav select { flex:1; min-width:0; }
}
@media(max-width:760px) {
 .career .cr-card { padding:18px; }
 .career .cr-filter { grid-template-columns:repeat(2,minmax(0,1fr)); padding:12px; }
 .career .cr-filter label { min-width:0; }
 .career .cr-filter label:has(input[type="search"]),.career .cr-filter label:has([role="combobox"]) { grid-column:1/-1; }
 .career .cr-form-grid { grid-template-columns:1fr; }
}
@media(max-width:480px) {
 .career .cr-head { margin-bottom:16px; }
 .career .cr-mobile-nav { display:block; }
 .career .cr-mobile-nav > span { font-size:12px; margin-bottom:6px; }
 .career .cr-card { padding:16px; }
 .career .cr-filter { grid-template-columns:1fr; }
 .career-dialog { width:calc(100vw - 16px); padding:16px; max-height:94dvh; }
 .career-dialog .cr-dialog-head { gap:12px; margin-bottom:16px; }
 .career .cr-form-grid { gap:0; }
 .career .cr-sticky-actions { padding:12px 0 max(4px,env(safe-area-inset-bottom)); }
 .career .cr-sticky-actions .cr-btn { flex:1; }
}

/* Avoid double-card padding; lookup values remain visible in the search input. */
.career .cr-card > .cr-filter { background:transparent; border:0; padding:0; margin:0; }
.career .cr-filter .cr-lookup small[data-lookup-selected] { display:none; }
@media(max-width:760px) { .career .cr-filter label { flex-basis:160px; } }
@media(max-width:480px) {
 .career .cr-filter label { flex-basis:100%; }
 .career .cr-filter > :is(button,.cr-btn) { flex:1 1 auto; }
}

.career .cr-filter-panel { margin-bottom:16px; }
.career .cr-card > .cr-filter-panel { margin:0; }
.career .cr-filter-panel > summary { cursor:pointer; color:var(--cr-navy); font-weight:750; min-height:44px; padding:11px 0; }
.career .cr-filter-panel[open] > summary { margin-bottom:12px; }
.career .cr-filter-panel .cr-filter { margin-bottom:0; }
.career .cr-card > .cr-filter-panel .cr-filter { padding:0; border:0; background:transparent; }
@media(min-width:761px) { .career .cr-filter-panel[open] > summary { display:none; } }

.career .cr-filter [hidden] { display:none !important; }

.career .cr-form > .cr-sticky-actions { justify-content:flex-end; border-top:1px solid var(--cr-border); margin-top:8px; gap:8px; }
.career .cr-save-status { flex:1; }
.career .cr-save-status:empty { display:none; }

.career .cr-follow-plan { padding:12px 14px; border:1px solid var(--cr-border); border-radius:12px; margin-bottom:16px; }
.career .cr-follow-plan > summary { cursor:pointer; font-weight:700; min-height:44px; display:list-item; padding:10px 0; }
.career .cr-follow-plan[open] > summary { margin-bottom:12px; }
.career .cr-follow-plan > label:last-child { margin-bottom:0; }
.career-dialog .cr-form label { margin-bottom:12px; }
.career-dialog .cr-form:has(.cr-follow-plan) textarea[name="note"] { min-height:88px; }
.career .cr-follow-plan { padding:8px 12px; margin-bottom:12px; }

/* Compact, expandable source-backed learner stages. */
.cr-journey-stage{margin:0;padding:12px 0;border-bottom:1px solid #e1e8ee}.cr-journey-stage>summary{cursor:pointer;font-weight:700;line-height:1.5;min-height:24px}.cr-journey-stage[open]>summary{margin-bottom:14px}.cr-journey-stage .cr-card{padding:14px;margin:12px 0}.cr-journey-stage h4{margin:0 0 8px}

/* Assessment notes remain readable inside the dialog, outside .career workspace. */
.career-dialog .cr-assessment-table table { width:100%; table-layout:fixed; border-collapse:collapse; }
.career-dialog .cr-assessment-table th,
.career-dialog .cr-assessment-table td { white-space:normal; overflow-wrap:anywhere; vertical-align:top; padding:12px; }
.career-dialog .cr-assessment-table th:nth-child(1) { width:28%; }
.career-dialog .cr-assessment-table th:nth-child(2) { width:22%; }
.career-dialog .cr-assessment-table th:nth-child(3) { width:50%; }
.career-dialog .cr-assessment-table td:last-child { white-space:pre-wrap; line-height:1.6; }
@media(max-width:760px) {
 .career-dialog .cr-assessment-table table,
 .career-dialog .cr-assessment-table tbody,
 .career-dialog .cr-assessment-table tr,
 .career-dialog .cr-assessment-table td { display:block; width:100%; }
 .career-dialog .cr-assessment-table thead { display:none; }
 .career-dialog .cr-assessment-table tr { padding:10px; border:1px solid var(--cr-border,#dce5ed); border-radius:12px; margin-bottom:12px; }
 .career-dialog .cr-assessment-table td { border:0; padding:6px 0; }
 .career-dialog .cr-assessment-table td:before { content:attr(data-label); display:block; font-size:12px; font-weight:700; color:#63758a; margin-bottom:4px; }
}

/* Keep every profile section visible on narrow screens; no horizontal swipe required. */
@media (max-width: 600px) {
  .career .cr-form-steps {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: visible;
  }
  .career .cr-form-steps button {
    min-width: 0;
    min-height: 44px;
    white-space: normal;
    overflow-wrap: anywhere;
    text-align: left;
  }
}
