:root {
  --color-bg: #f7f8fc;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcff;
  --color-border: #dde3f4;
  --color-line: #edf1f8;
  --color-primary-50: #f6f8ff;
  --color-primary-100: #edf1ff;
  --color-primary-200: #dce4ff;
  --color-primary-300: #c5d0ff;
  --color-primary-400: #9aa7ff;
  --color-primary-500: #6269df;
  --color-primary-600: #555dce;
  --color-primary-700: #414aa8;
  --text-main: #232032;
  --text-muted: #687287;
  --text-soft: #98a0b4;
  --text-inverse: #ffffff;
  --success-bg: #eefaf3;
  --success-text: #24764a;
  --warning-bg: #fff7e6;
  --warning-text: #9a6400;
  --danger-bg: #fff0f0;
  --danger-text: #b23b3b;
  --info-bg: #eef5ff;
  --info-text: #3d64a6;
  --neutral-bg: #f1f3f8;
  --neutral-text: #60687b;
  --radius-sm: 8px;
  --radius-md: 12px;
  --radius-lg: 18px;
  --radius-xl: 24px;
  --shadow-card: 0 14px 40px rgba(38, 42, 92, 0.08);
  --shadow-soft: 0 8px 24px rgba(38, 42, 92, 0.06);
}

/* Photo rendering fix: one rule for dashboard, profile card and settings. */
.hero-photo,
body:has(.employee-sidebar) .personal-photo,
body:has(.employee-sidebar) .settings-avatar {
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
}

.hero-photo img,
body:has(.employee-sidebar) .personal-photo img,
body:has(.employee-sidebar) .settings-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

.hero-photo-image {
  background-image: none !important;
}

body:has(.employee-sidebar) .personal-photo.is-empty {
  display: grid;
  place-items: center;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 14% 0%, rgba(98, 105, 223, 0.12), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--color-bg) 260px);
  color: var(--text-main);
  font-family: "Segoe UI Variable Text", "Segoe UI", Inter, system-ui, sans-serif;
  font-size: 14px;
  font-weight: 400;
  line-height: 1.5;
}

a {
  color: var(--color-primary-700);
  text-decoration: none;
}

a:hover {
  text-decoration: underline;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  min-height: 72px;
  padding: 14px 32px;
  border-bottom: 1px solid rgba(226, 229, 246, 0.78);
  background: rgba(255, 255, 255, 0.84);
  backdrop-filter: blur(16px);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
}

.brand-mark {
  display: inline-grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border-radius: 16px;
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  color: var(--text-inverse);
  font-weight: 700;
  box-shadow: var(--shadow-soft);
}

.brand-title {
  font-size: 16px;
  font-weight: 600;
}

.brand-subtitle {
  color: var(--text-muted);
  font-size: 12px;
}

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

.user-chip,
.nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--text-main);
  font-size: 13px;
}

.nav-link {
  color: var(--color-primary-700);
  font-weight: 500;
}

.app-main {
  width: min(1480px, calc(100% - 48px));
  margin: 0 auto;
  padding: 30px 0 44px;
}

.page-heading {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  margin: 0 0 22px;
}

h1 {
  margin: 0;
  font-size: 32px;
  line-height: 1.15;
  font-weight: 600;
  letter-spacing: 0;
}

h2 {
  margin: 30px 0 14px;
  font-size: 20px;
  line-height: 1.25;
  font-weight: 600;
  letter-spacing: 0;
}

h3 {
  margin: 22px 0 10px;
  font-size: 16px;
  font-weight: 600;
}

p {
  margin: 10px 0;
}

.box,
.card,
form:not(td form) {
  background: var(--color-surface);
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-card);
  padding: 24px;
  margin: 16px 0;
}

td form {
  margin: 0;
}

.muted {
  color: var(--text-muted);
}

.ok,
.success {
  display: block;
  color: var(--success-text);
  background: var(--success-bg);
  border: 1px solid rgba(36, 118, 74, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

.error,
.danger {
  display: block;
  color: var(--danger-text);
  background: var(--danger-bg);
  border: 1px solid rgba(178, 59, 59, 0.16);
  border-radius: var(--radius-md);
  padding: 12px 14px;
}

label {
  display: block;
  margin: 12px 0;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 500;
}

input,
select,
textarea {
  width: min(100%, 560px);
  margin-top: 6px;
  padding: 10px 12px;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-md);
  background: var(--color-surface);
  color: var(--text-main);
  font: inherit;
  outline: none;
}

textarea {
  min-height: 86px;
  resize: vertical;
}

input:focus,
select:focus,
textarea:focus {
  border-color: var(--color-primary-400, #9aa0ff);
  box-shadow: 0 0 0 4px rgba(127, 125, 255, 0.12);
}

button,
.button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 42px;
  margin: 4px 6px 4px 0;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: var(--color-primary-500);
  color: var(--text-inverse);
  font: inherit;
  font-weight: 500;
  cursor: pointer;
}

button:hover,
.button:hover {
  background: var(--color-primary-600);
  text-decoration: none;
}

button[value*="reject"],
button[value*="delete"],
button[value*="archive"] {
  background: var(--danger-bg);
  color: var(--danger-text);
  border-color: rgba(178, 59, 59, 0.18);
}

button[value*="reject"]:hover,
button[value*="delete"]:hover,
button[value*="archive"]:hover {
  background: #ffe2e2;
}

table {
  width: 100%;
  margin: 16px 0 24px;
  border-collapse: separate;
  border-spacing: 0;
  overflow: hidden;
  border: 1px solid var(--color-border);
  border-radius: var(--radius-lg);
  background: var(--color-surface);
  box-shadow: var(--shadow-soft);
}

th,
td {
  padding: 12px 14px;
  border-bottom: 1px solid var(--color-line);
  text-align: left;
  vertical-align: top;
}

th {
  background: var(--color-surface-2);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

tr:last-child td {
  border-bottom: 0;
}

.roles label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-right: 16px;
}

.roles input,
input[type="checkbox"],
input[type="radio"] {
  width: auto;
}

.badge {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--neutral-bg);
  color: var(--neutral-text);
  font-size: 12px;
  font-weight: 500;
}

.employee-tabs {
  position: sticky;
  top: 72px;
  z-index: 15;
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin: -8px 0 18px;
  padding: 10px;
  border: 1px solid rgba(226, 229, 246, 0.82);
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.86);
  backdrop-filter: blur(14px);
  box-shadow: var(--shadow-soft);
}

.employee-tab {
  display: inline-flex;
  align-items: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  color: var(--text-muted);
  font-weight: 600;
}

.employee-tab:hover,
.employee-tab.is-active {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  text-decoration: none;
}

.employee-servicebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  margin: 0 0 18px;
}

.employee-search {
  display: flex;
  align-items: center;
  gap: 10px;
  width: min(440px, 100%);
  margin: 0 auto 0 0;
  padding: 0 12px;
  border: 1px solid var(--color-border);
  border-radius: 16px;
  background: var(--color-surface);
  color: var(--text-soft);
}

.employee-search input {
  width: 100%;
  margin: 0;
  border: 0;
  box-shadow: none;
  background: transparent;
}

.service-pill,
.button.secondary {
  border-color: var(--color-border);
  background: var(--color-surface);
  color: var(--color-primary-700);
}

.service-pill {
  display: inline-flex;
  align-items: center;
  min-height: 40px;
  padding: 0 13px;
  border: 1px solid var(--color-border);
  border-radius: 14px;
  font-weight: 600;
}

.service-pill:hover,
.button.secondary:hover {
  background: var(--color-primary-50);
  text-decoration: none;
}

.employee-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(280px, 0.75fr);
  gap: 22px;
  overflow: hidden;
  min-height: 280px;
  margin: 0 0 18px;
  padding: 30px;
  border: 1px solid rgba(218, 225, 255, 0.9);
  border-radius: var(--radius-xl);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 255, 0.92)),
    linear-gradient(120deg, #ffffff, #eef2ff);
  box-shadow: var(--shadow-card);
}

.eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  margin-bottom: 12px;
  padding: 0 10px;
  border-radius: 999px;
  background: var(--color-primary-100);
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 700;
}

.employee-hero h2 {
  max-width: 760px;
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.12;
}

.hero-role {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
}

.hero-meta,
.hero-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.hero-meta span {
  display: inline-flex;
  align-items: center;
  min-height: 34px;
  padding: 0 12px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--text-muted);
  font-weight: 600;
}

.hero-visual {
  position: relative;
  min-height: 220px;
}

.orbit {
  position: absolute;
  border: 1px solid rgba(127, 125, 255, 0.34);
  border-radius: 50%;
  inset: 20px;
}

.orbit-a {
  transform: rotate(-18deg);
}

.orbit-b {
  inset: 48px;
  border-color: rgba(36, 118, 74, 0.22);
  transform: rotate(28deg);
}

.matrix-chip {
  position: absolute;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid rgba(226, 229, 246, 0.9);
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: var(--shadow-soft);
  color: var(--color-primary-700);
  font-weight: 700;
}

.chip-a { top: 18px; left: 22px; }
.chip-b { right: 20px; top: 78px; }
.chip-c { left: 94px; bottom: 28px; }

.hero-competency-card {
  position: relative;
  display: grid;
  align-content: center;
  min-height: 220px;
  padding: 18px 18px 14px;
  border: 1px solid rgba(226, 229, 246, 0.86);
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.74);
  box-shadow: 0 20px 48px rgba(38, 42, 92, 0.08);
  backdrop-filter: blur(14px);
}

.hero-competency-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 4px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.hero-competency-title b {
  color: var(--color-primary-700);
  font-size: 18px;
}

.hero-radar {
  width: min(100%, 270px);
  aspect-ratio: 1;
  justify-self: center;
  overflow: visible;
}

.hero-radar-ring {
  fill: none;
  stroke: rgba(127, 125, 255, 0.14);
  stroke-width: 1;
}

.hero-radar-axis {
  stroke: rgba(127, 125, 255, 0.16);
  stroke-width: 1;
}

.hero-radar-area {
  fill: rgba(98, 105, 223, 0.20);
  stroke: none;
}

.hero-radar-line {
  fill: none;
  stroke: var(--color-primary-500);
  stroke-width: 2.6;
  stroke-linejoin: round;
}

.hero-radar-dot {
  fill: var(--color-primary-600);
  stroke: #fff;
  stroke-width: 1.4;
}

.hero-radar-label {
  fill: #736d85;
  font-size: 9px;
  font-weight: 650;
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 18px;
}

.kpi-card,
.panel {
  border: 1px solid var(--color-border);
  border-radius: var(--radius-xl);
  background: var(--color-surface);
  box-shadow: var(--shadow-card);
}

.kpi-card {
  display: flex;
  flex-direction: column;
  min-height: 150px;
  padding: 18px;
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.kpi-card:hover,
.action-card:hover,
.role-cards article:hover,
.request-cards article:hover {
  transform: translateY(-2px);
  box-shadow: 0 18px 44px rgba(38, 42, 92, 0.12);
  text-decoration: none;
}

.kpi-card span,
.kpi-card em,
.action-card span,
.role-cards span,
.request-cards span,
.competency-mini em {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 600;
}

.kpi-card strong {
  margin: 10px 0 4px;
  color: var(--text-main);
  font-size: 30px;
  line-height: 1;
}

.kpi-card i,
.readiness-row i,
.ole-components i,
.competency-mini i {
  display: block;
  height: 7px;
  margin-top: auto;
  overflow: hidden;
  border-radius: 999px;
  background: var(--neutral-bg);
}

.kpi-card i::before,
.readiness-row i::before,
.ole-components i::before,
.competency-mini i::before {
  content: "";
  display: block;
  width: var(--progress);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-500), #62b98f);
  animation: progressIn 820ms ease both;
}

.employee-dashboard-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.85fr);
  gap: 18px;
  margin-bottom: 18px;
}

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

.panel {
  padding: 22px;
}

.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

.panel-heading h2 {
  margin: 0;
}

.action-panel {
  display: grid;
  gap: 12px;
}

.action-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  align-items: center;
  gap: 14px;
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  transition: transform 160ms ease, box-shadow 160ms ease;
}

.action-card h3,
.role-cards h3,
.request-cards h3 {
  margin: 2px 0 4px;
}

.action-card p,
.role-cards p,
.request-cards p,
.career-notes p {
  margin: 0;
  color: var(--text-muted);
}

.action-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--warning-bg);
  color: var(--warning-text);
  font-weight: 800;
}

.button.small {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
}

.ole-panel {
  display: flex;
  flex-direction: column;
}

.ole-ring {
  display: grid;
  place-items: center;
  align-self: center;
  width: 184px;
  aspect-ratio: 1;
  margin: 4px 0 18px;
  border-radius: 50%;
  background:
    radial-gradient(circle, var(--color-surface) 58%, transparent 59%),
    conic-gradient(var(--color-primary-500) var(--score), var(--neutral-bg) 0);
}

.ole-ring strong {
  margin-top: 20px;
  font-size: 34px;
}

.ole-ring span {
  margin-top: -52px;
  color: var(--text-muted);
}

.ole-components,
.readiness-list,
.competency-mini,
.role-cards,
.request-cards {
  display: grid;
  gap: 12px;
}

.ole-components div {
  display: grid;
  gap: 7px;
}

.readiness-row {
  display: grid;
  grid-template-columns: 128px minmax(0, 1fr) 48px;
  align-items: center;
  gap: 12px;
}

.readiness-row.ready b { color: var(--success-text); }
.readiness-row.work b { color: var(--info-text); }
.readiness-row.action b { color: var(--warning-text); }

.status-matrix {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 18px;
}

.status-matrix div {
  min-height: 116px;
  padding: 14px;
  border-radius: var(--radius-lg);
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 700;
}

.status-matrix b {
  display: block;
  margin-top: 10px;
  color: var(--text-main);
  font-size: 14px;
}

.status-matrix .ready { background: var(--success-bg); }
.status-matrix .work { background: var(--info-bg); }
.status-matrix .action { background: var(--warning-bg); }

.period-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  gap: 8px;
  padding-top: 24px;
}

.period-timeline::before {
  content: "";
  position: absolute;
  top: 36px;
  right: 8%;
  left: 8%;
  height: 2px;
  background: var(--color-primary-100);
}

.period-timeline div {
  position: relative;
  display: grid;
  gap: 12px;
  justify-items: center;
  color: var(--text-muted);
  text-align: center;
}

.period-timeline b {
  z-index: 1;
  display: grid;
  place-items: center;
  width: 52px;
  height: 28px;
  border-radius: 999px;
  background: var(--color-surface);
  color: var(--text-main);
  box-shadow: 0 0 0 6px var(--color-surface);
}

.period-timeline .done b {
  background: var(--success-bg);
  color: var(--success-text);
}

.period-timeline .current b {
  background: var(--color-primary-500);
  color: var(--text-inverse);
}

.period-timeline .risk b {
  background: var(--warning-bg);
  color: var(--warning-text);
}

.career-panel {
  margin-bottom: 18px;
}

.career-road {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}

.career-road div {
  position: relative;
  min-height: 92px;
  padding: 16px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
  color: var(--text-muted);
  font-weight: 700;
}

.career-road .is-current {
  background: var(--color-primary-100);
  color: var(--color-primary-700);
}

.career-road b {
  display: block;
  margin-top: 8px;
  color: var(--text-main);
  font-weight: 600;
}

.career-notes {
  display: grid;
  grid-template-columns: 0.5fr 0.5fr 1fr;
  gap: 12px;
  margin-top: 14px;
}

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

.role-cards article,
.request-cards article,
.competency-mini div,
.empty-state {
  padding: 14px;
  border: 1px solid var(--color-line);
  border-radius: var(--radius-lg);
  background: var(--color-surface-2);
}

.competency-mini div {
  display: grid;
  gap: 7px;
}

.competency-mini b {
  font-size: 14px;
}

.empty-state {
  color: var(--text-muted);
}

.brand-logo {
  width: 44px;
  height: 44px;
  flex: 0 0 44px;
  object-fit: contain;
  border-radius: 14px;
}

body:has(.employee-sidebar) {
  background: #f7f8fc;
}

body:has(.employee-sidebar) .app-topbar,
body:has(.employee-sidebar) .page-heading {
  display: none;
}

body:has(.employee-sidebar) .app-main {
  width: 100%;
  max-width: none;
  margin: 0;
  padding: 18px 28px 36px 284px;
}

.employee-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 50;
  display: flex;
  flex-direction: column;
  width: 252px;
  padding: 24px 18px;
  border-right: 1px solid rgba(221, 227, 244, 0.9);
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 10px 0 34px rgba(38, 42, 92, 0.05);
}

.employee-sidebar-head {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 18px;
  height: 52px;
  margin-bottom: 24px;
}

.employee-sidebar-wordmark {
  color: #172036;
  font-size: 26px;
  font-weight: 560;
  letter-spacing: 0;
  line-height: 1;
}

.employee-sidebar-logo {
  display: block;
  width: 48px;
  height: 48px;
  flex: 0 0 48px;
  object-fit: contain;
  border-radius: 16px;
}

.employee-menu-button {
  width: 18px;
  height: 18px;
  background: #65708a;
  mask: url("/assets/icons/solar-broken/menu.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/solar-broken/menu.svg") center / contain no-repeat;
}

.employee-tabs {
  position: static;
  display: grid;
  gap: 20px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.employee-tab {
  display: grid;
  grid-template-columns: 22px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 50px;
  padding: 0 14px;
  border-radius: 10px;
  color: #60687b;
  font-size: 13px;
  font-weight: 560;
  white-space: nowrap;
}

.employee-menu-group {
  display: grid;
  gap: 6px;
}

.employee-menu-label {
  padding: 0 14px;
  color: #98a0b4;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.employee-tab span {
  width: 20px;
  height: 20px;
  background: currentColor;
  mask: var(--tab-icon) center / contain no-repeat;
  -webkit-mask: var(--tab-icon) center / contain no-repeat;
}

.employee-tab:hover,
.employee-tab.is-active {
  background: #f4f6ff;
  color: var(--color-primary-700);
  text-decoration: none;
}

.employee-tab-home { --tab-icon: url("/assets/icons/solar-broken/home.svg"); }
.employee-tab-profile { --tab-icon: url("/assets/icons/solar-broken/shield-user.svg"); }
.employee-tab-position { --tab-icon: url("/assets/icons/solar-broken/shield-user.svg"); }
.employee-tab-self { --tab-icon: url("/assets/icons/solar-broken/case.svg"); }
.employee-tab-competencies { --tab-icon: url("/assets/icons/solar-broken/chart.svg"); }
.employee-tab-education { --tab-icon: url("/assets/icons/solar-broken/calendar.svg"); }
.employee-tab-notifications { --tab-icon: url("/assets/icons/solar-broken/bell.svg"); }
.employee-tab-help { --tab-icon: url("/assets/icons/solar-broken/question.svg"); }
.employee-tab-settings { --tab-icon: url("/assets/icons/solar-broken/settings.svg"); }

.employee-workbar {
  position: sticky;
  top: 0;
  z-index: 30;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  width: 100%;
  max-width: 100%;
  margin: 0 0 18px;
  padding: 10px 14px;
  border: 1px solid rgba(221, 227, 244, 0.95);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.92);
  box-shadow: var(--shadow-soft);
  backdrop-filter: blur(14px);
}

.workspace-tabs {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  width: auto;
  min-width: 0;
  max-width: 100%;
  margin: 0;
  padding: 0;
  overflow-x: auto;
  scrollbar-width: none;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  backdrop-filter: none;
}

.workspace-tabs::-webkit-scrollbar {
  display: none;
}

.workspace-label {
  display: none;
}

.workspace-tab {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: #60687b;
  font-size: 13px;
  font-weight: 560;
  flex: 0 0 auto;
}

.workspace-tab + .workspace-tab {
  box-shadow: -9px 0 0 -8px var(--color-line);
}

.workspace-tab.is-active {
  border-color: rgba(221, 227, 244, 0.95);
  background: #f4f6ff;
  color: var(--color-primary-700);
  box-shadow: inset 0 -2px 0 rgba(98, 105, 223, 0.28);
}

body:has(.employee-sidebar) .employee-servicebar {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 12px;
  margin: 0;
  min-height: 44px;
  width: auto;
  flex: 0 0 auto;
}

body:has(.employee-sidebar) .employee-search {
  width: 44px;
  height: 44px;
  margin: 0;
  padding: 0;
  justify-content: center;
  border: 0;
  background: transparent;
}

body:has(.employee-sidebar) .employee-search span {
  width: 22px;
  height: 22px;
  overflow: hidden;
  text-indent: -999px;
  background: #22283a;
  mask: url("/assets/icons/solar-broken/search.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/solar-broken/search.svg") center / contain no-repeat;
}

body:has(.employee-sidebar) .employee-search input,
body:has(.employee-sidebar) .service-pill {
  display: none;
}

.employee-notification-button {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 44px;
  height: 44px;
  color: #22283a;
}

.employee-notification-button::before {
  content: "";
  width: 22px;
  height: 22px;
  background: currentColor;
  mask: url("/assets/icons/solar-broken/bell.svg") center / contain no-repeat;
  -webkit-mask: url("/assets/icons/solar-broken/bell.svg") center / contain no-repeat;
}

.employee-notification-button b {
  position: absolute;
  right: 6px;
  top: 6px;
  display: grid;
  place-items: center;
  min-width: 17px;
  height: 17px;
  padding: 0 4px;
  border: 2px solid #fff;
  border-radius: 999px;
  background: var(--color-primary-500);
  color: #fff;
  font-size: 10px;
  line-height: 1;
}

.employee-notifications-popover {
  position: relative;
  display: inline-block;
}

.employee-notifications-popover summary {
  list-style: none;
  cursor: pointer;
}

.employee-notifications-popover summary::-webkit-details-marker {
  display: none;
}

.employee-notification-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 70;
  display: grid;
  gap: 6px;
  width: 330px;
  padding: 12px;
  border: 1px solid var(--color-border);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: var(--shadow-card);
}

.employee-notification-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 4px 4px 8px;
}

.employee-notification-head strong {
  color: #172036;
  font-size: 14px;
  font-weight: 650;
}

.employee-notification-head a {
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 600;
  text-decoration: none;
}

.employee-notification-item {
  display: grid;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid transparent;
  border-radius: 14px;
  color: #172036;
  text-decoration: none;
}

.employee-notification-item:hover,
.employee-notification-item.is-unread {
  border-color: rgba(221, 227, 244, 0.9);
  background: #f4f6ff;
  text-decoration: none;
}

.employee-notification-item span {
  overflow: hidden;
  font-size: 13px;
  font-weight: 650;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.employee-notification-item small,
.employee-notification-empty {
  color: #7b829b;
  font-size: 12px;
  line-height: 1.35;
}

.employee-notification-empty {
  padding: 12px;
}

.employee-user-chip {
  display: grid;
  gap: 2px;
  min-height: 44px;
  padding: 5px 14px;
  border-left: 1px solid var(--color-line);
  color: #172036;
  text-decoration: none;
}

.employee-user-chip:hover {
  text-decoration: none;
}

.employee-user-chip span {
  font-size: 13px;
  font-weight: 650;
}

.employee-user-chip small {
  color: #7b829b;
  font-size: 11px;
  font-weight: 500;
}

body:has(.employee-sidebar) .employee-hero {
  grid-template-columns: 168px minmax(330px, 1fr) minmax(210px, 0.5fr) minmax(250px, 0.52fr);
  align-items: center;
  gap: 24px;
  min-height: 270px;
  padding: 28px 30px;
  border-radius: 22px;
  background:
    radial-gradient(circle at 58% 45%, rgba(255, 255, 255, 0.98), transparent 0 24%, rgba(255, 255, 255, 0) 25%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.96), rgba(246, 248, 255, 0.72));
}

.hero-photo-wrap {
  display: grid;
  place-items: center;
}

.hero-photo {
  width: 150px;
  height: 150px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  object-fit: cover;
  background: linear-gradient(135deg, #f4f6ff, #ffffff);
  color: var(--color-primary-700);
  font-size: 40px;
  font-weight: 650;
  box-shadow: 0 18px 38px rgba(38, 42, 92, 0.12);
}

.hero-photo-image {
  background-position: center;
  background-size: cover;
  background-repeat: no-repeat;
}

.hero-copy h2 {
  max-width: 620px;
  margin: 0 0 8px;
  font-size: 27px;
  line-height: 1.18;
}

.hero-copy .muted {
  margin-top: 6px;
}

.hero-orbit {
  position: relative;
  min-height: 164px;
}

.hero-orbit::before,
.hero-orbit::after {
  content: "";
  position: absolute;
  border: 1px dashed rgba(127, 125, 255, 0.22);
  border-radius: 50%;
}

.hero-orbit::before {
  inset: 34px 48px 28px 20px;
}

.hero-orbit::after {
  inset: 10px 20px 50px 74px;
  border-style: solid;
  opacity: 0.45;
}

.hero-orbit-icon {
  position: absolute;
  display: grid;
  place-items: center;
  width: 52px;
  height: 52px;
  border: 1px solid rgba(255, 255, 255, 0.9);
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: var(--shadow-soft);
}

.hero-orbit-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  background: var(--color-primary-500);
  mask: var(--orbit-icon) center / contain no-repeat;
  -webkit-mask: var(--orbit-icon) center / contain no-repeat;
}

.hero-orbit-icon.icon-profile { --orbit-icon: url("/assets/icons/solar-broken/shield-user.svg"); top: 20px; left: 70px; }
.hero-orbit-icon.icon-chart { --orbit-icon: url("/assets/icons/solar-broken/chart.svg"); top: 42px; right: 24px; }
.hero-orbit-icon.icon-check { --orbit-icon: url("/assets/icons/solar-broken/case.svg"); bottom: 12px; left: 118px; }

body:has(.employee-sidebar) .hero-visual {
  min-height: 214px;
}

body:has(.employee-sidebar) .hero-competency-card {
  min-height: 214px;
  padding: 14px;
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% 48%, rgba(255, 255, 255, 0.96), rgba(246, 248, 255, 0.76) 58%, rgba(255, 255, 255, 0.54));
  box-shadow: 0 18px 42px rgba(38, 42, 92, 0.06);
}

body:has(.employee-sidebar) .hero-radar {
  width: min(100%, 190px);
}

.hero-radar-empty {
  display: grid;
  place-items: center;
  min-height: 150px;
  color: #7b829b;
  font-size: 13px;
  line-height: 1.35;
  text-align: center;
}

body:has(.employee-sidebar) .hero-meta,
body:has(.employee-sidebar) .hero-actions {
  margin-top: 12px;
}

body:has(.employee-sidebar) .hero-meta span {
  min-height: 30px;
  padding: 0 10px;
  font-size: 12px;
}

body:has(.employee-sidebar) .hero-actions .button {
  min-height: 38px;
  margin-top: 0;
  margin-bottom: 0;
  padding: 0 14px;
  border-radius: 12px;
}

.kpi-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  margin-bottom: 10px;
  border-radius: 14px;
  background: #f4f6ff;
}

.kpi-icon::before {
  content: "";
  width: 24px;
  height: 24px;
  background: var(--color-primary-600);
  mask: var(--kpi-icon) center / contain no-repeat;
  -webkit-mask: var(--kpi-icon) center / contain no-repeat;
}

.icon-case { --kpi-icon: url("/assets/icons/solar-broken/case.svg"); }
.icon-education { --kpi-icon: url("/assets/icons/solar-broken/chart.svg"); }
.icon-check { --kpi-icon: url("/assets/icons/solar-broken/shield-user.svg"); }
.icon-target { --kpi-icon: url("/assets/icons/solar-broken/settings.svg"); }
.icon-requests { --kpi-icon: url("/assets/icons/solar-broken/letter.svg"); }

body:has(.employee-sidebar) .kpi-card {
  min-height: 132px;
  padding: 14px;
  border-radius: 18px;
}

body:has(.employee-sidebar) .kpi-card strong {
  margin: 6px 0 2px;
  font-size: 26px;
}

body:has(.employee-sidebar) .kpi-icon {
  width: 38px;
  height: 38px;
  margin-bottom: 6px;
  border-radius: 12px;
}

body:has(.employee-sidebar) .kpi-icon::before {
  width: 21px;
  height: 21px;
}

body:has(.employee-sidebar) .kpi-card span,
body:has(.employee-sidebar) .kpi-card em {
  font-size: 12px;
  line-height: 1.25;
}

.auth-page {
  min-height: 100vh;
  overflow-x: hidden;
  background:
    radial-gradient(circle at 12% 18%, rgba(188, 178, 238, .18), transparent 28%),
    radial-gradient(circle at 86% 10%, rgba(100, 192, 236, .16), transparent 30%),
    linear-gradient(135deg, #f8fafc 0%, #eef3f7 48%, #f7f9fc 100%);
}

.auth-page::before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(rgba(255, 255, 255, .72), rgba(255, 255, 255, .72)),
    url("/assets/kontur_icon_system.png") center / min(42vw, 520px) no-repeat;
  opacity: .18;
}

.auth-icon-cloud {
  position: fixed;
  inset: -8vh -8vw;
  overflow: hidden;
  pointer-events: none;
  opacity: 1;
}

.auth-icon-cloud span {
  position: absolute;
  width: var(--size, 46px);
  height: var(--size, 46px);
  left: var(--x, 50%);
  top: var(--y, 50%);
  opacity: var(--alpha, .16);
  color: var(--tone, #6f79f2);
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
  filter: drop-shadow(0 18px 28px rgba(86, 100, 170, .16));
  transform: translate3d(0, 0, 0) rotate(var(--rot, 0deg));
  animation: auth-icon-drift var(--dur, 18s) ease-in-out var(--delay, 0s) infinite alternate;
}

@keyframes auth-icon-drift {
  0% {
    transform: translate3d(0, 0, 0) scale(.92) rotate(var(--rot, 0deg));
  }
  50% {
    transform: translate3d(var(--dx, 22px), var(--dy, -18px), 0) scale(1.12) rotate(calc(var(--rot, 0deg) + 7deg));
  }
  100% {
    transform: translate3d(calc(var(--dx, 22px) * -0.7), calc(var(--dy, -18px) * .8), 0) scale(1.02) rotate(calc(var(--rot, 0deg) - 5deg));
  }
}

.auth-icon-cloud span:nth-child(12n+1) { --icon: url("/assets/icons/solar-broken/shield-user.svg"); --tone: #9c90df; }
.auth-icon-cloud span:nth-child(12n+2) { --icon: url("/assets/icons/solar-broken/chart.svg"); --tone: #57b8e9; }
.auth-icon-cloud span:nth-child(12n+3) { --icon: url("/assets/icons/solar-broken/calendar.svg"); --tone: #8b98c6; }
.auth-icon-cloud span:nth-child(12n+4) { --icon: url("/assets/icons/solar-broken/case.svg"); --tone: #7c74df; }
.auth-icon-cloud span:nth-child(12n+5) { --icon: url("/assets/icons/solar-broken/bell.svg"); --tone: #54b6e7; }
.auth-icon-cloud span:nth-child(12n+6) { --icon: url("/assets/icons/solar-broken/settings.svg"); --tone: #a09bdc; }
.auth-icon-cloud span:nth-child(12n+7) { --icon: url("/assets/icons/solar-broken/home.svg"); --tone: #70bfe5; }
.auth-icon-cloud span:nth-child(12n+8) { --icon: url("/assets/icons/solar-broken/letter.svg"); --tone: #9187df; }
.auth-icon-cloud span:nth-child(12n+9) { --icon: url("/assets/icons/solar-broken/search.svg"); --tone: #6aa8d8; }
.auth-icon-cloud span:nth-child(12n+10) { --icon: url("/assets/icons/solar-broken/question.svg"); --tone: #9f96da; }
.auth-icon-cloud span:nth-child(12n+11) { --icon: url("/assets/icons/solar-broken/lock.svg"); --tone: #5dbce9; }
.auth-icon-cloud span:nth-child(12n) { --icon: url("/assets/icons/solar-broken/menu.svg"); --tone: #8f8ae0; }

.auth-icon-cloud span:nth-child(1) { --x: 4%; --y: 9%; --size: 62px; --alpha: .20; --dx: 24px; --dy: 30px; --dur: 17s; --delay: -3s; --rot: -8deg; }
.auth-icon-cloud span:nth-child(2) { --x: 16%; --y: 15%; --size: 38px; --alpha: .18; --dx: -28px; --dy: 22px; --dur: 21s; --delay: -8s; --rot: 12deg; }
.auth-icon-cloud span:nth-child(3) { --x: 31%; --y: 8%; --size: 54px; --alpha: .16; --dx: 18px; --dy: -24px; --dur: 19s; --delay: -2s; --rot: 5deg; }
.auth-icon-cloud span:nth-child(4) { --x: 46%; --y: 13%; --size: 42px; --alpha: .17; --dx: -20px; --dy: 26px; --dur: 24s; --delay: -11s; --rot: -16deg; }
.auth-icon-cloud span:nth-child(5) { --x: 60%; --y: 7%; --size: 66px; --alpha: .15; --dx: 32px; --dy: 18px; --dur: 22s; --delay: -5s; --rot: 18deg; }
.auth-icon-cloud span:nth-child(6) { --x: 75%; --y: 16%; --size: 44px; --alpha: .19; --dx: -26px; --dy: -22px; --dur: 18s; --delay: -7s; --rot: 9deg; }
.auth-icon-cloud span:nth-child(7) { --x: 90%; --y: 9%; --size: 58px; --alpha: .17; --dx: 18px; --dy: 36px; --dur: 25s; --delay: -13s; --rot: -11deg; }
.auth-icon-cloud span:nth-child(8) { --x: 7%; --y: 31%; --size: 46px; --alpha: .21; --dx: 30px; --dy: -16px; --dur: 20s; --delay: -4s; --rot: 2deg; }
.auth-icon-cloud span:nth-child(9) { --x: 22%; --y: 36%; --size: 72px; --alpha: .12; --dx: -18px; --dy: 24px; --dur: 23s; --delay: -10s; --rot: -20deg; }
.auth-icon-cloud span:nth-child(10) { --x: 38%; --y: 29%; --size: 36px; --alpha: .18; --dx: 28px; --dy: -28px; --dur: 16s; --delay: -1s; --rot: 13deg; }
.auth-icon-cloud span:nth-child(11) { --x: 55%; --y: 34%; --size: 50px; --alpha: .17; --dx: -32px; --dy: 20px; --dur: 26s; --delay: -14s; --rot: -7deg; }
.auth-icon-cloud span:nth-child(12) { --x: 70%; --y: 28%; --size: 40px; --alpha: .20; --dx: 20px; --dy: 28px; --dur: 18s; --delay: -6s; --rot: 16deg; }
.auth-icon-cloud span:nth-child(13) { --x: 86%; --y: 35%; --size: 68px; --alpha: .13; --dx: -22px; --dy: -18px; --dur: 22s; --delay: -9s; --rot: -14deg; }
.auth-icon-cloud span:nth-child(14) { --x: 13%; --y: 55%; --size: 52px; --alpha: .18; --dx: 16px; --dy: 32px; --dur: 24s; --delay: -12s; --rot: 11deg; }
.auth-icon-cloud span:nth-child(15) { --x: 29%; --y: 60%; --size: 42px; --alpha: .19; --dx: -30px; --dy: -20px; --dur: 19s; --delay: -7s; --rot: -4deg; }
.auth-icon-cloud span:nth-child(16) { --x: 44%; --y: 52%; --size: 78px; --alpha: .10; --dx: 26px; --dy: 26px; --dur: 27s; --delay: -15s; --rot: 22deg; }
.auth-icon-cloud span:nth-child(17) { --x: 62%; --y: 58%; --size: 48px; --alpha: .18; --dx: -24px; --dy: 18px; --dur: 17s; --delay: -3s; --rot: -13deg; }
.auth-icon-cloud span:nth-child(18) { --x: 79%; --y: 53%; --size: 56px; --alpha: .16; --dx: 30px; --dy: -26px; --dur: 21s; --delay: -8s; --rot: 6deg; }
.auth-icon-cloud span:nth-child(19) { --x: 94%; --y: 62%; --size: 44px; --alpha: .20; --dx: -18px; --dy: 24px; --dur: 20s; --delay: -5s; --rot: -9deg; }
.auth-icon-cloud span:nth-child(20) { --x: 3%; --y: 75%; --size: 70px; --alpha: .12; --dx: 28px; --dy: -22px; --dur: 25s; --delay: -11s; --rot: 18deg; }
.auth-icon-cloud span:nth-child(21) { --x: 19%; --y: 82%; --size: 40px; --alpha: .19; --dx: -22px; --dy: -30px; --dur: 18s; --delay: -2s; --rot: 8deg; }
.auth-icon-cloud span:nth-child(22) { --x: 35%; --y: 76%; --size: 58px; --alpha: .16; --dx: 22px; --dy: 18px; --dur: 23s; --delay: -9s; --rot: -18deg; }
.auth-icon-cloud span:nth-child(23) { --x: 51%; --y: 84%; --size: 46px; --alpha: .18; --dx: -28px; --dy: -18px; --dur: 19s; --delay: -4s; --rot: 3deg; }
.auth-icon-cloud span:nth-child(24) { --x: 66%; --y: 78%; --size: 74px; --alpha: .11; --dx: 18px; --dy: 30px; --dur: 26s; --delay: -13s; --rot: 15deg; }
.auth-icon-cloud span:nth-child(25) { --x: 82%; --y: 83%; --size: 42px; --alpha: .18; --dx: -34px; --dy: -20px; --dur: 20s; --delay: -6s; --rot: -5deg; }
.auth-icon-cloud span:nth-child(26) { --x: 96%; --y: 77%; --size: 60px; --alpha: .15; --dx: 20px; --dy: 20px; --dur: 22s; --delay: -10s; --rot: 20deg; }
.auth-icon-cloud span:nth-child(27) { --x: 10%; --y: 96%; --size: 48px; --alpha: .16; --dx: 24px; --dy: -34px; --dur: 24s; --delay: -12s; --rot: -12deg; }
.auth-icon-cloud span:nth-child(28) { --x: 27%; --y: 93%; --size: 34px; --alpha: .20; --dx: -18px; --dy: -24px; --dur: 17s; --delay: -3s; --rot: 10deg; }
.auth-icon-cloud span:nth-child(29) { --x: 43%; --y: 99%; --size: 62px; --alpha: .12; --dx: 30px; --dy: -28px; --dur: 25s; --delay: -9s; --rot: -16deg; }
.auth-icon-cloud span:nth-child(30) { --x: 58%; --y: 94%; --size: 44px; --alpha: .18; --dx: -24px; --dy: -30px; --dur: 19s; --delay: -5s; --rot: 7deg; }
.auth-icon-cloud span:nth-child(31) { --x: 73%; --y: 98%; --size: 54px; --alpha: .15; --dx: 22px; --dy: -22px; --dur: 21s; --delay: -7s; --rot: -8deg; }
.auth-icon-cloud span:nth-child(32) { --x: 88%; --y: 94%; --size: 38px; --alpha: .20; --dx: -26px; --dy: -26px; --dur: 18s; --delay: -1s; --rot: 14deg; }
.auth-icon-cloud span:nth-child(33) { --x: 49%; --y: 4%; --size: 30px; --alpha: .16; --dx: 18px; --dy: 26px; --dur: 16s; --delay: -6s; --rot: -7deg; }
.auth-icon-cloud span:nth-child(34) { --x: 2%; --y: 44%; --size: 34px; --alpha: .20; --dx: 30px; --dy: 12px; --dur: 20s; --delay: -8s; --rot: 21deg; }
.auth-icon-cloud span:nth-child(35) { --x: 98%; --y: 47%; --size: 36px; --alpha: .18; --dx: -28px; --dy: 20px; --dur: 23s; --delay: -11s; --rot: -17deg; }
.auth-icon-cloud span:nth-child(36) { --x: 53%; --y: 68%; --size: 32px; --alpha: .17; --dx: 20px; --dy: -20px; --dur: 18s; --delay: -4s; --rot: 4deg; }

.auth-icon-cloud span:nth-child(n+37) {
  --size: 34px;
  --alpha: .13;
}

.auth-icon-cloud span:nth-child(37) { --x: 6%; --y: 21%; --dx: 16px; --dy: -12px; --dur: 18s; --delay: -2s; --rot: 9deg; }
.auth-icon-cloud span:nth-child(38) { --x: 14%; --y: 25%; --dx: -18px; --dy: 14px; --dur: 22s; --delay: -9s; --rot: -13deg; }
.auth-icon-cloud span:nth-child(39) { --x: 24%; --y: 20%; --dx: 12px; --dy: 18px; --dur: 20s; --delay: -6s; --rot: 18deg; }
.auth-icon-cloud span:nth-child(40) { --x: 34%; --y: 23%; --dx: -14px; --dy: -16px; --dur: 24s; --delay: -11s; --rot: -6deg; }
.auth-icon-cloud span:nth-child(41) { --x: 44%; --y: 21%; --dx: 18px; --dy: 12px; --dur: 19s; --delay: -4s; --rot: 15deg; }
.auth-icon-cloud span:nth-child(42) { --x: 54%; --y: 24%; --dx: -16px; --dy: -14px; --dur: 23s; --delay: -8s; --rot: -10deg; }
.auth-icon-cloud span:nth-child(43) { --x: 64%; --y: 20%; --dx: 14px; --dy: 18px; --dur: 21s; --delay: -3s; --rot: 5deg; }
.auth-icon-cloud span:nth-child(44) { --x: 74%; --y: 24%; --dx: -20px; --dy: 12px; --dur: 25s; --delay: -12s; --rot: -18deg; }
.auth-icon-cloud span:nth-child(45) { --x: 84%; --y: 22%; --dx: 16px; --dy: -16px; --dur: 19s; --delay: -7s; --rot: 12deg; }
.auth-icon-cloud span:nth-child(46) { --x: 94%; --y: 25%; --dx: -14px; --dy: 18px; --dur: 22s; --delay: -5s; --rot: -4deg; }
.auth-icon-cloud span:nth-child(47) { --x: 11%; --y: 43%; --dx: 14px; --dy: 16px; --dur: 20s; --delay: -10s; --rot: 6deg; }
.auth-icon-cloud span:nth-child(48) { --x: 20%; --y: 47%; --dx: -16px; --dy: -12px; --dur: 24s; --delay: -1s; --rot: -15deg; }
.auth-icon-cloud span:nth-child(49) { --x: 30%; --y: 44%; --dx: 18px; --dy: 16px; --dur: 18s; --delay: -8s; --rot: 10deg; }
.auth-icon-cloud span:nth-child(50) { --x: 40%; --y: 48%; --dx: -14px; --dy: 14px; --dur: 23s; --delay: -6s; --rot: -9deg; }
.auth-icon-cloud span:nth-child(51) { --x: 50%; --y: 43%; --dx: 16px; --dy: -18px; --dur: 21s; --delay: -13s; --rot: 17deg; }
.auth-icon-cloud span:nth-child(52) { --x: 60%; --y: 47%; --dx: -18px; --dy: 12px; --dur: 25s; --delay: -4s; --rot: -3deg; }
.auth-icon-cloud span:nth-child(53) { --x: 70%; --y: 44%; --dx: 12px; --dy: 16px; --dur: 19s; --delay: -9s; --rot: 14deg; }
.auth-icon-cloud span:nth-child(54) { --x: 80%; --y: 48%; --dx: -16px; --dy: -14px; --dur: 22s; --delay: -2s; --rot: -11deg; }
.auth-icon-cloud span:nth-child(55) { --x: 90%; --y: 44%; --dx: 18px; --dy: 14px; --dur: 20s; --delay: -7s; --rot: 8deg; }
.auth-icon-cloud span:nth-child(56) { --x: 5%; --y: 66%; --dx: 16px; --dy: -16px; --dur: 24s; --delay: -11s; --rot: -7deg; }
.auth-icon-cloud span:nth-child(57) { --x: 15%; --y: 70%; --dx: -14px; --dy: 14px; --dur: 18s; --delay: -5s; --rot: 13deg; }
.auth-icon-cloud span:nth-child(58) { --x: 25%; --y: 66%; --dx: 18px; --dy: 12px; --dur: 22s; --delay: -3s; --rot: -16deg; }
.auth-icon-cloud span:nth-child(59) { --x: 35%; --y: 70%; --dx: -16px; --dy: -18px; --dur: 20s; --delay: -8s; --rot: 4deg; }
.auth-icon-cloud span:nth-child(60) { --x: 45%; --y: 66%; --dx: 14px; --dy: 16px; --dur: 25s; --delay: -13s; --rot: 19deg; }
.auth-icon-cloud span:nth-child(61) { --x: 55%; --y: 70%; --dx: -18px; --dy: 12px; --dur: 19s; --delay: -4s; --rot: -12deg; }
.auth-icon-cloud span:nth-child(62) { --x: 65%; --y: 66%; --dx: 16px; --dy: -14px; --dur: 23s; --delay: -10s; --rot: 7deg; }
.auth-icon-cloud span:nth-child(63) { --x: 75%; --y: 70%; --dx: -14px; --dy: 18px; --dur: 21s; --delay: -6s; --rot: -5deg; }
.auth-icon-cloud span:nth-child(64) { --x: 85%; --y: 66%; --dx: 18px; --dy: -12px; --dur: 24s; --delay: -12s; --rot: 16deg; }
.auth-icon-cloud span:nth-child(65) { --x: 95%; --y: 70%; --dx: -16px; --dy: 16px; --dur: 18s; --delay: -1s; --rot: -14deg; }
.auth-icon-cloud span:nth-child(66) { --x: 9%; --y: 88%; --dx: 14px; --dy: -18px; --dur: 22s; --delay: -7s; --rot: 11deg; }
.auth-icon-cloud span:nth-child(67) { --x: 18%; --y: 91%; --dx: -18px; --dy: -12px; --dur: 20s; --delay: -3s; --rot: -8deg; }
.auth-icon-cloud span:nth-child(68) { --x: 28%; --y: 87%; --dx: 16px; --dy: 14px; --dur: 25s; --delay: -11s; --rot: 20deg; }
.auth-icon-cloud span:nth-child(69) { --x: 38%; --y: 91%; --dx: -14px; --dy: -16px; --dur: 19s; --delay: -5s; --rot: -2deg; }
.auth-icon-cloud span:nth-child(70) { --x: 48%; --y: 88%; --dx: 18px; --dy: 12px; --dur: 23s; --delay: -9s; --rot: 14deg; }
.auth-icon-cloud span:nth-child(71) { --x: 58%; --y: 91%; --dx: -16px; --dy: -18px; --dur: 21s; --delay: -2s; --rot: -17deg; }
.auth-icon-cloud span:nth-child(72) { --x: 68%; --y: 87%; --dx: 14px; --dy: 16px; --dur: 24s; --delay: -8s; --rot: 6deg; }
.auth-icon-cloud span:nth-child(73) { --x: 78%; --y: 91%; --dx: -18px; --dy: -14px; --dur: 20s; --delay: -6s; --rot: -10deg; }
.auth-icon-cloud span:nth-child(74) { --x: 88%; --y: 88%; --dx: 16px; --dy: 18px; --dur: 22s; --delay: -13s; --rot: 12deg; }
.auth-icon-cloud span:nth-child(75) { --x: 97%; --y: 91%; --dx: -14px; --dy: -16px; --dur: 19s; --delay: -4s; --rot: -6deg; }
.auth-icon-cloud span:nth-child(76) { --x: 18%; --y: 5%; --dx: 20px; --dy: 14px; --dur: 26s; --delay: -15s; --rot: 23deg; }
.auth-icon-cloud span:nth-child(77) { --x: 82%; --y: 5%; --dx: -20px; --dy: 14px; --dur: 26s; --delay: -16s; --rot: -22deg; }
.auth-icon-cloud span:nth-child(78) { --x: 2%; --y: 58%; --dx: 24px; --dy: 0; --dur: 21s; --delay: -9s; --rot: 2deg; }
.auth-icon-cloud span:nth-child(79) { --x: 98%; --y: 58%; --dx: -24px; --dy: 0; --dur: 21s; --delay: -10s; --rot: -2deg; }
.auth-icon-cloud span:nth-child(80) { --x: 50%; --y: 50%; --size: 86px; --alpha: .055; --dx: 12px; --dy: -12px; --dur: 28s; --delay: -14s; --rot: 0deg; }

/* Final auth centering: keep login/register cards in the viewport center. */
.auth-page .auth-shell {
  position: fixed;
  inset: 0;
  width: 100vw;
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 28px;
  box-sizing: border-box;
  overflow: auto;
}

.auth-page .auth-card {
  margin: auto;
}
}

.auth-shell {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  align-items: center;
  min-height: 100vh;
  padding: 34px 20px;
}

.auth-card {
  width: min(100%, 500px);
  padding: 26px;
  border: 1px solid rgba(218, 225, 255, 0.8);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 24px 64px rgba(38, 42, 92, 0.1);
  backdrop-filter: blur(18px);
}

.auth-card-register {
  width: min(100%, 520px);
}

.auth-brand {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.auth-brand img {
  width: 58px;
  height: 58px;
  object-fit: contain;
  border-radius: 18px;
  box-shadow: 0 12px 30px rgba(98, 105, 223, 0.12);
}

.auth-brand span {
  color: #71809a;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.auth-brand h1 {
  margin-top: 4px;
  color: #10182b;
  font-size: 34px;
  font-weight: 520;
}

.auth-lead {
  max-width: 500px;
  margin: 0 0 18px;
  color: #7b829b;
  font-size: 16px;
  font-weight: 400;
  line-height: 1.46;
}

.auth-form {
  display: grid;
  gap: 12px;
  margin: 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

.auth-field {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  align-items: center;
  min-height: 58px;
  margin: 0;
  padding: 0 14px;
  border: 1px solid #dfe7f3;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.88);
  color: #7a859d;
  transition: border-color 140ms ease, box-shadow 140ms ease;
}

.auth-field:focus-within {
  border-color: #aeb6ff;
  box-shadow: 0 0 0 5px rgba(127, 125, 255, 0.14);
}

.field-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  color: #7b879c;
}

.field-icon::before {
  content: "";
  width: 25px;
  height: 25px;
  background: currentColor;
  mask: var(--icon) center / contain no-repeat;
  -webkit-mask: var(--icon) center / contain no-repeat;
}

.icon-mail { --icon: url("/assets/icons/solar-broken/letter.svg"); }
.icon-lock { --icon: url("/assets/icons/solar-broken/lock.svg"); }
.icon-department { --icon: url("/assets/icons/solar-broken/shield-user.svg"); }

.auth-field:focus-within .field-icon {
  color: #5960d1;
}

.auth-field input,
.auth-field select,
.auth-field textarea {
  width: 100%;
  min-height: 46px;
  margin: 0;
  padding: 12px 14px;
  border: 0;
  border-radius: 16px;
  background: #f4f6ff;
  color: #10182b;
  font-family: inherit;
  font-size: 17px;
  font-weight: 500;
  line-height: 22px;
  box-shadow: none;
  outline: none;
  appearance: none;
  -webkit-appearance: none;
  transform: none;
  transition: background-color 140ms ease, color 140ms ease;
}

.auth-field input::placeholder,
.auth-field textarea::placeholder {
  color: #78839b;
  opacity: 1;
}

.auth-field select {
  color: #65708a;
}

.auth-field select option:checked {
  background: #e8ecff;
  color: #4d57c4;
}

.auth-field input:focus,
.auth-field select:focus,
.auth-field textarea:focus {
  font-size: 17px;
  line-height: 22px;
  transform: none;
}

.auth-field input:-webkit-autofill,
.auth-field input:-webkit-autofill:hover,
.auth-field input:-webkit-autofill:focus {
  -webkit-text-fill-color: #10182b;
  box-shadow: 0 0 0 1000px #f4f6ff inset;
  font-size: 17px;
  transition: background-color 9999s ease-out;
}

::selection {
  background: rgba(127, 125, 255, 0.24);
  color: #172036;
}

.auth-primary,
.auth-secondary {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  border-radius: 16px;
  font-size: 18px;
  font-weight: 600;
  text-decoration: none;
}

.auth-primary {
  border: 0;
  background: #6269df;
  color: #fff;
  box-shadow: 0 18px 34px rgba(98, 105, 223, 0.2);
}

.auth-primary:hover {
  background: #5960d1;
  text-decoration: none;
}

.auth-secondary {
  border: 1px solid #dfe7f3;
  background: rgba(255, 255, 255, 0.82);
  color: #172036;
}

.auth-secondary:hover {
  background: #f4f6ff;
  text-decoration: none;
}

.auth-note {
  margin: -2px 0 0;
  color: #7b829b;
  font-size: 13px;
}

.auth-manager-preview {
  min-height: 48px;
  padding: 13px 16px;
  border: 1px solid #dfe7f3;
  border-radius: 16px;
  background: rgba(248, 249, 255, 0.86);
  color: #7b829b;
  font-size: 14px;
  font-weight: 600;
}

.auth-manager-preview.is-selected {
  border-color: rgba(98, 105, 223, 0.26);
  background: rgba(246, 248, 255, 0.96);
  color: #4d57c4;
}

.auth-error,
.auth-success {
  border-radius: 18px;
  padding: 14px 16px;
}

.auth-error {
  margin: 0 0 16px;
  border: 1px solid rgba(178, 59, 59, 0.16);
  background: var(--danger-bg);
  color: var(--danger-text);
}

.auth-success {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(36, 118, 74, 0.16);
  background: var(--success-bg);
  color: var(--success-text);
}

.auth-success h2 {
  margin: 0;
  color: var(--success-text);
}

.auth-success p {
  margin: 0;
}

.auth-link-button {
  width: 100%;
}

@keyframes floatLayer {
  from { transform: translateY(0) translateX(0); }
  to { transform: translateY(-8px) translateX(6px); }
}

@keyframes progressIn {
  from { width: 0; }
}

/* Employee dashboard final layout */
body:has(.employee-sidebar) {
  caret-color: transparent;
}

body:has(.employee-sidebar) input,
body:has(.employee-sidebar) textarea,
body:has(.employee-sidebar) select,
body:has(.employee-sidebar) [contenteditable="true"] {
  caret-color: auto;
}

body:has(.employee-sidebar) .kpi-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  grid-template-rows: auto auto auto 8px;
  column-gap: 14px;
  align-items: start;
  min-height: 126px;
  padding: 16px;
  border-radius: 18px;
}

body:has(.employee-sidebar) .kpi-icon {
  grid-row: 1 / 4;
  width: 46px;
  height: 70px;
  margin: 0;
  border-radius: 14px;
}

body:has(.employee-sidebar) .kpi-icon::before {
  width: 24px;
  height: 24px;
}

body:has(.employee-sidebar) .kpi-card > span:not(.kpi-icon) {
  align-self: center;
  min-height: 22px;
  color: #60687b;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  line-height: 1.15;
  text-transform: uppercase;
}

body:has(.employee-sidebar) .kpi-card strong {
  grid-column: 2;
  margin: 2px 0 0;
  font-size: 28px;
  line-height: 1;
}

body:has(.employee-sidebar) .kpi-card em {
  grid-column: 2;
  min-height: 18px;
  color: #7b829b;
  font-size: 11px;
  line-height: 1.2;
}

body:has(.employee-sidebar) .kpi-card i {
  grid-column: 1 / -1;
  width: 100%;
  height: 7px;
  margin-top: 10px;
}

.employee-dashboard-grid-main {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ole-panel {
  display: grid;
}

.ole-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 154px;
  align-items: center;
  gap: 18px;
}

.ole-layout .ole-components {
  gap: 10px;
}

.ole-ring {
  width: 154px;
  margin: 0;
}

.ole-ring strong {
  margin-top: 16px;
  font-size: 30px;
}

.ole-ring span {
  margin-top: -42px;
}

.period-timeline {
  gap: 6px;
  padding-top: 16px;
}

.period-timeline::before {
  top: 28px;
}

.period-timeline div {
  gap: 8px;
  font-size: 12px;
}

.period-timeline b {
  width: 48px;
  height: 26px;
  font-size: 12px;
}

.career-panel {
  margin-bottom: 0;
}

.career-road div {
  min-height: 72px;
  padding: 12px;
  font-size: 12px;
}

.career-road b {
  margin-top: 6px;
  font-size: 13px;
}

.career-notes {
  grid-template-columns: 0.6fr 0.6fr 1fr;
  gap: 10px;
  margin-top: 10px;
  font-size: 12px;
}

/* Top workspace switcher: clean icons + underline */
body:has(.employee-sidebar) .workspace-tabs {
  gap: 34px;
}

body:has(.employee-sidebar) .workspace-tab {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  min-height: 54px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60687b;
  font-size: 14px;
  font-weight: 650;
  text-decoration: none;
}

body:has(.employee-sidebar) .workspace-tab::after {
  content: "";
  position: absolute;
  right: 0;
  bottom: -10px;
  left: 0;
  height: 2px;
  border-radius: 999px;
  background: transparent;
}

body:has(.employee-sidebar) .workspace-tab span {
  width: 26px;
  height: 26px;
  flex: 0 0 26px;
  background: currentColor;
  mask: var(--workspace-icon) center / contain no-repeat;
  -webkit-mask: var(--workspace-icon) center / contain no-repeat;
}

body:has(.employee-sidebar) .workspace-tab:hover {
  color: var(--color-primary-700);
  background: transparent;
  text-decoration: none;
}

body:has(.employee-sidebar) .workspace-tab.is-active {
  border: 0;
  background: transparent;
  color: var(--color-primary-600);
  box-shadow: none;
}

body:has(.employee-sidebar) .workspace-tab.is-active::after {
  background: var(--color-primary-500);
}

.workspace-tab-contour { --workspace-icon: url("/assets/icons/solar-broken/shield-user.svg"); }
.workspace-tab-department { --workspace-icon: url("/assets/icons/solar-broken/home.svg"); }
.workspace-tab-block { --workspace-icon: url("/assets/icons/solar-broken/chart.svg"); }
.workspace-tab-inspection { --workspace-icon: url("/assets/icons/solar-broken/case.svg"); }
.workspace-tab-admin { --workspace-icon: url("/assets/icons/solar-broken/settings.svg"); }

/* KPI icons: no framed icon background, larger broken glyph */
body:has(.employee-sidebar) .kpi-icon {
  width: 46px;
  height: 70px;
  margin: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
}

body:has(.employee-sidebar) .kpi-icon::before {
  width: 34px;
  height: 34px;
  background: var(--color-primary-600);
}

@media (max-width: 780px) {
  .app-topbar {
    align-items: flex-start;
    flex-direction: column;
    padding: 14px 18px;
  }

  .app-main {
    width: min(100% - 28px, 1480px);
    padding-top: 20px;
  }

  h1 {
    font-size: 24px;
  }

  table {
    display: block;
    overflow-x: auto;
  }

  .employee-tabs {
    position: static;
  }

  .employee-servicebar,
  .hero-actions,
  .hero-meta {
    align-items: stretch;
    flex-direction: column;
  }

  .employee-hero,
  .employee-dashboard-grid,
  .employee-dashboard-grid.lower,
  .kpi-grid,
  .career-road,
  .career-notes,
  .role-cards,
  .request-cards {
    grid-template-columns: 1fr;
  }

  .hero-visual {
    min-height: 180px;
  }

  .employee-hero h2 {
    font-size: 26px;
  }

  .action-card {
    grid-template-columns: 42px minmax(0, 1fr);
  }

  .action-card .button {
    grid-column: 1 / -1;
  }

  .status-matrix,
  .period-timeline {
    grid-template-columns: 1fr;
  }

  .period-timeline::before {
    display: none;
  }

  .auth-shell {
    align-items: center;
    padding: 22px 14px;
  }

  .auth-card,
  .auth-card-register {
    padding: 28px 20px;
    border-radius: 26px;
  }

  .auth-brand {
    gap: 14px;
  }

  .auth-brand img {
    width: 64px;
    height: 64px;
  }

  .auth-brand h1 {
    font-size: 34px;
  }

  .auth-lead {
    font-size: 18px;
  }

  .auth-field {
    grid-template-columns: 42px minmax(0, 1fr);
    min-height: 64px;
    padding: 0 12px;
  }

  .auth-field input,
  .auth-field select,
  .auth-field textarea {
    font-size: 17px;
  }

  .auth-primary,
  .auth-secondary {
    min-height: 54px;
    font-size: 18px;
  }
}


/* ------------------------------------------------------------------
   Tone pass: холодная сиренево-синяя палитра без розовой заливки
   ------------------------------------------------------------------ */

:root {
  --color-bg: #f7f8fc;
  --color-surface: #ffffff;
  --color-surface-2: #fbfcff;
  --color-border: #dde3f4;
  --color-line: #edf1f8;

  --color-primary-50: #f6f8ff;
  --color-primary-100: #edf1ff;
  --color-primary-200: #dce4ff;
  --color-primary-300: #c5d0ff;
  --color-primary-400: #9aa7ff;
  --color-primary-500: #6269df;
  --color-primary-600: #555dce;
  --color-primary-700: #414aa8;

  --text-main: #172036;
  --text-muted: #687287;
  --text-soft: #98a0b4;

  --neutral-bg: #f1f3f8;
  --neutral-text: #60687b;

  --shadow-card: 0 14px 40px rgba(38, 42, 92, 0.07);
  --shadow-soft: 0 8px 24px rgba(38, 42, 92, 0.05);
}

/* общий фон — без розового свечения */
body {
  background:
    radial-gradient(circle at 14% 0%, rgba(98, 105, 223, 0.07), transparent 30%),
    linear-gradient(180deg, #fbfcff 0%, var(--color-bg) 260px);
}

body:has(.employee-sidebar) {
  background: #f7f8fc;
}

/* карточки и hero — холоднее и легче */
body:has(.employee-sidebar) .employee-hero {
  border-color: rgba(218, 225, 255, 0.9);
  background:
    radial-gradient(circle at 58% 45%, rgba(255, 255, 255, 0.98), transparent 0 24%, rgba(255, 255, 255, 0) 25%),
    linear-gradient(110deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.78));
}

.employee-hero {
  border-color: rgba(218, 225, 255, 0.9);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.92)),
    linear-gradient(120deg, #ffffff, #eef2ff);
}

/* активные пункты меню — не жирная плашка, а мягкий холодный акцент */
.employee-tab:hover {
  background: #f7f8fc;
  color: var(--color-primary-700);
}

.employee-tab.is-active {
  background: #f4f6ff;
  color: var(--color-primary-700);
  box-shadow: inset 3px 0 0 rgba(98, 105, 223, 0.45);
}

.workspace-tab.is-active {
  background: #f4f6ff;
  color: var(--color-primary-700);
  box-shadow: inset 0 -2px 0 rgba(98, 105, 223, 0.36);
}

.employee-tab:hover,
.employee-tab.is-active,
.workspace-tab.is-active,
.employee-tab.is-active span {
  text-decoration: none;
}

/* иконки KPI — убрать густую сиреневую подложку */
.kpi-icon {
  background: #f6f8ff;
  border: 1px solid rgba(218, 225, 255, 0.95);
  box-shadow: none;
}

.kpi-icon::before {
  background: var(--color-primary-600);
}

/* верхние декоративные иконки — без розового стекла */
.hero-orbit::before,
.hero-orbit::after {
  border-color: rgba(98, 105, 223, 0.16);
}

.hero-orbit-icon {
  background: rgba(255, 255, 255, 0.78);
  border-color: rgba(218, 225, 255, 0.88);
  box-shadow: 0 10px 28px rgba(38, 42, 92, 0.06);
}

.hero-orbit-icon::before {
  background: var(--color-primary-500);
}

/* радар и прогресс — сине-сиреневый без розовой заливки */
.hero-radar-ring {
  stroke: rgba(98, 105, 223, 0.14);
}

.hero-radar-axis {
  stroke: rgba(98, 105, 223, 0.14);
}

.hero-radar-area {
  fill: rgba(98, 105, 223, 0.12);
}

.hero-radar-line {
  stroke: var(--color-primary-500);
}

.hero-radar-dot {
  fill: var(--color-primary-600);
}

.kpi-card i,
.readiness-row i,
.ole-components i,
.competency-mini i {
  background: #eef1f7;
}

.kpi-card i::before,
.readiness-row i::before,
.ole-components i::before,
.competency-mini i::before {
  background: linear-gradient(90deg, var(--color-primary-500), #7c9bff);
}

/* кнопки: оставить читаемыми, но без фиолетовой тяжести */
button,
.button,
.auth-primary {
  background: var(--color-primary-500);
  box-shadow: 0 14px 28px rgba(98, 105, 223, 0.18);
}

button:hover,
.button:hover,
.auth-primary:hover {
  background: var(--color-primary-600);
}

.service-pill:hover,
.button.secondary:hover,
.auth-secondary:hover {
  background: #f6f8ff;
}

/* фото и логотипы — нейтральная холодная подложка */
.hero-photo {
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  color: var(--color-primary-700);
  box-shadow: 0 16px 34px rgba(38, 42, 92, 0.10);
}

.brand-mark {
  background: linear-gradient(135deg, var(--color-primary-500), var(--color-primary-700));
  box-shadow: 0 10px 24px rgba(98, 105, 223, 0.16);
}

/* формы и фокус — как авторизация: холодный голубо-сиреневый */
input:focus,
select:focus,
textarea:focus,
.auth-field:focus-within {
  border-color: #aeb6ff;
  box-shadow: 0 0 0 4px rgba(98, 105, 223, 0.12);
}

::selection {
  background: rgba(98, 105, 223, 0.22);
  color: #172036;
}

/* Final: light workspace switcher */
body:has(.employee-sidebar) .workspace-tabs {
  gap: 34px;
}

body:has(.employee-sidebar) .workspace-tab,
body:has(.employee-sidebar) .workspace-tab.is-active {
  min-height: 48px;
  padding: 0 2px;
  border: 0;
  border-radius: 0;
  background: transparent;
  box-shadow: none;
  color: #60687b;
  font-size: 14px;
  font-weight: 560;
  line-height: 1;
}

body:has(.employee-sidebar) .workspace-tab span {
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
}

body:has(.employee-sidebar) .workspace-tab:hover {
  background: transparent;
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .workspace-tab.is-active {
  color: var(--color-primary-600);
}

body:has(.employee-sidebar) .workspace-tab.is-active::after {
  bottom: -10px;
  height: 2px;
  background: var(--color-primary-500);
}

.competency-status-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.competency-status-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--color-line);
  border-radius: 14px;
  background: var(--color-surface-2);
}

.competency-status-card h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 13px;
  font-weight: 620;
  line-height: 1.25;
}

.competency-status-card strong {
  color: var(--color-primary-700);
  font-size: 18px;
  font-weight: 650;
  white-space: nowrap;
}

.competency-status-card p {
  grid-column: 1 / -1;
  margin: 0;
  color: #7b829b;
  font-size: 12px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
}

.status-pill.is-approved {
  background: rgba(36, 118, 74, 0.10);
  color: var(--success-text);
}

.status-pill.is-pending {
  background: rgba(98, 105, 223, 0.10);
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .competency-page {
  display: grid;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
}

body:has(.employee-sidebar) .competency-page-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

body:has(.employee-sidebar) .competency-page-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 26px;
  font-weight: 620;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .competency-page-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

body:has(.employee-sidebar) .competency-help-link {
  color: var(--color-primary-700);
  font-size: 14px;
  font-weight: 560;
}

body:has(.employee-sidebar) .competency-overview {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:has(.employee-sidebar) .competency-metric {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 14px;
  min-height: 112px;
  padding: 20px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 40px rgba(45, 52, 89, 0.06);
}

body:has(.employee-sidebar) .competency-metric .profile-icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(98, 105, 223, 0.10);
}

body:has(.employee-sidebar) .competency-metric small,
body:has(.employee-sidebar) .competency-metric em,
body:has(.employee-sidebar) .competency-metric b {
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 520;
}

body:has(.employee-sidebar) .competency-metric strong {
  color: var(--text-main);
  font-size: 32px;
  font-weight: 620;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .competency-metric b {
  grid-column: 2;
  margin-top: -6px;
}

body:has(.employee-sidebar) .competency-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 20px;
  align-items: start;
}

body:has(.employee-sidebar) .competency-board,
body:has(.employee-sidebar) .competency-side-card {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 44px rgba(45, 52, 89, 0.06);
}

body:has(.employee-sidebar) .competency-board {
  overflow: hidden;
}

body:has(.employee-sidebar) .competency-toolbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 18px 20px;
  border-bottom: 1px solid #e7ecf7;
}

body:has(.employee-sidebar) .competency-filter-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:has(.employee-sidebar) .competency-filter-tabs button {
  min-height: 40px;
  padding: 0 18px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
}

body:has(.employee-sidebar) .competency-filter-tabs button:hover,
body:has(.employee-sidebar) .competency-filter-tabs button.is-active {
  border-color: #cdd6fb;
  background: #f3f5ff;
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .competency-sort {
  display: flex;
  align-items: center;
  gap: 10px;
}

body:has(.employee-sidebar) .competency-sort select {
  min-width: 230px;
  min-height: 42px;
  padding: 0 42px 0 14px;
  border: 1px solid #dfe5f2;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
}

body:has(.employee-sidebar) .competency-sort button {
  width: 42px;
  height: 42px;
  border: 1px solid #dfe5f2;
  border-radius: 14px;
  background: #fff;
  cursor: pointer;
  position: relative;
}

body:has(.employee-sidebar) .competency-sort button::before {
  content: "";
  position: absolute;
  inset: 11px;
  background: var(--color-primary-600);
  mask: linear-gradient(#000 0 0) center 3px / 20px 2px no-repeat,
        linear-gradient(#000 0 0) center 10px / 14px 2px no-repeat,
        linear-gradient(#000 0 0) center 17px / 20px 2px no-repeat;
}

body:has(.employee-sidebar) .competency-card-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(230px, 1fr));
  gap: 14px;
  padding: 18px;
}

body:has(.employee-sidebar) .competency-map-card {
  display: grid;
  gap: 10px;
  min-height: 168px;
  padding: 18px;
  border: 1px solid #dfe5f2;
  border-radius: 20px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(45, 52, 89, 0.035);
}

body:has(.employee-sidebar) .competency-map-card[hidden] {
  display: none;
}

body:has(.employee-sidebar) .competency-map-card.is-ready,
body:has(.employee-sidebar) .competency-map-card.is-confirmed {
  border-color: #bde8ce;
  background: linear-gradient(180deg, #ffffff 0%, #fbfffc 100%);
}

body:has(.employee-sidebar) .competency-map-card.is-attention {
  border-color: #f3d8ae;
}

body:has(.employee-sidebar) .competency-map-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:has(.employee-sidebar) .competency-map-card .profile-icon-tile {
  width: 48px;
  height: 48px;
  border-radius: 14px;
  background: rgba(98, 105, 223, 0.10);
}

body:has(.employee-sidebar) .competency-map-top strong {
  color: var(--color-primary-800);
  font-size: 20px;
  font-weight: 620;
}

body:has(.employee-sidebar) .competency-map-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 620;
  line-height: 1.25;
}

body:has(.employee-sidebar) .competency-state-pill {
  width: max-content;
  max-width: 100%;
  min-height: 24px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(67, 144, 96, 0.12);
  color: var(--success-text);
  font-size: 12px;
  font-weight: 560;
}

body:has(.employee-sidebar) .competency-map-card.is-process .competency-state-pill {
  background: rgba(45, 119, 215, 0.12);
  color: #2f65b6;
}

body:has(.employee-sidebar) .competency-map-card.is-attention .competency-state-pill {
  background: rgba(243, 151, 44, 0.13);
  color: #b66b1d;
}

body:has(.employee-sidebar) .competency-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e8edf7;
}

body:has(.employee-sidebar) .competency-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-600), #7c90ff);
}

body:has(.employee-sidebar) .is-ready .competency-progress i,
body:has(.employee-sidebar) .is-confirmed .competency-progress i {
  background: linear-gradient(90deg, #24a265, #58c987);
}

body:has(.employee-sidebar) .is-attention .competency-progress i {
  background: linear-gradient(90deg, #f39b36, #f7c66b);
}

body:has(.employee-sidebar) .competency-map-card p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
}

body:has(.employee-sidebar) .competency-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body:has(.employee-sidebar) .competency-tags span {
  padding: 4px 9px;
  border-radius: 999px;
  background: #f2f0ff;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 540;
}

body:has(.employee-sidebar) .competency-side {
  display: grid;
  gap: 14px;
}

body:has(.employee-sidebar) .competency-side-card {
  padding: 20px;
}

body:has(.employee-sidebar) .competency-side-card h3 {
  margin: 0 0 16px;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 620;
}

body:has(.employee-sidebar) .competency-steps,
body:has(.employee-sidebar) .competency-activity {
  display: grid;
  gap: 16px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.employee-sidebar) .competency-steps li,
body:has(.employee-sidebar) .competency-activity div {
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
}

body:has(.employee-sidebar) .competency-steps b,
body:has(.employee-sidebar) .competency-activity i {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: #f0edff;
  color: var(--color-primary-700);
  font-size: 13px;
  font-style: normal;
}

body:has(.employee-sidebar) .competency-activity i::before {
  content: "";
  width: 9px;
  height: 9px;
  border-radius: 999px;
  background: var(--color-primary-600);
}

body:has(.employee-sidebar) .competency-steps strong,
body:has(.employee-sidebar) .competency-activity span {
  display: block;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.3;
}

body:has(.employee-sidebar) .competency-steps small,
body:has(.employee-sidebar) .competency-activity small {
  display: block;
  margin-top: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1.35;
}

body:has(.employee-sidebar) .competency-side-card a {
  display: inline-flex;
  margin-top: 18px;
  color: var(--color-primary-700);
  font-weight: 560;
}

body:has(.employee-sidebar) .competency-main-action,
body:has(.employee-sidebar) .competency-plan-action {
  justify-content: center;
  min-height: 48px;
  width: 100%;
}

.competency-request-modal {
  width: min(920px, calc(100vw - 40px));
  max-height: min(820px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.20);
  overflow: hidden;
}

.competency-request-modal::backdrop {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

.competency-modal-layout {
  padding: 30px;
  max-height: inherit;
  overflow: auto;
}

.competency-modal-layout h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 620;
}

.competency-modal-layout p {
  margin: 8px 0 22px;
  max-width: 680px;
  color: var(--text-muted);
}

.competency-modal-close {
  position: absolute;
  top: 16px;
  right: 16px;
  z-index: 2;
}

.competency-modal-close button {
  width: 42px;
  height: 42px;
  border: 1px solid #dde4f2;
  border-radius: 50%;
  background: #fff;
  color: var(--color-primary-700);
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.competency-request-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.competency-request-form label {
  display: grid;
  gap: 8px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

.competency-request-form input,
.competency-request-form select,
.competency-request-form textarea {
  width: 100%;
  min-height: 46px;
  padding: 11px 13px;
  border: 1px solid #dfe5f2;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  font-size: 15px;
  outline: none;
}

.competency-request-form textarea {
  min-height: 96px;
  resize: vertical;
}

.competency-request-form input:focus,
.competency-request-form select:focus,
.competency-request-form textarea:focus {
  border-color: var(--color-primary-500);
  box-shadow: 0 0 0 4px rgba(98, 105, 223, 0.12);
}

.competency-wide-field,
.competency-request-form button {
  grid-column: 1 / -1;
}

.competency-request-form button {
  justify-self: start;
  min-width: 240px;
}

@media (max-width: 1280px) {
  body:has(.employee-sidebar) .competency-overview,
  body:has(.employee-sidebar) .competency-card-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.employee-sidebar) .competency-workspace {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .competency-overview,
  body:has(.employee-sidebar) .competency-card-grid,
  .competency-request-form {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .competency-toolbar,
  body:has(.employee-sidebar) .competency-page-head {
    align-items: stretch;
    flex-direction: column;
  }
}

body:has(.employee-sidebar) .competency-mini {
  gap: 8px;
}

body:has(.employee-sidebar) .competency-mini div {
  padding: 10px 12px;
  border-radius: 14px;
}

body:has(.employee-sidebar) .competency-mini b {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  line-height: 1.25;
}

body:has(.employee-sidebar) .competency-mini b span {
  flex: 0 0 auto;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 650;
}

body:has(.employee-sidebar) .competency-mini em {
  font-size: 11px;
}

/* Final employee PDS and competencies cards */
body:has(.employee-sidebar) .employee-profile-cards {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  align-items: stretch;
}

body:has(.employee-sidebar) .profile-roles-card,
body:has(.employee-sidebar) .profile-competencies-card,
body:has(.employee-sidebar) .competency-matrix-panel {
  padding: 20px;
  border-color: #dfe5f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 18px 44px rgba(45, 52, 89, 0.07);
}

body:has(.employee-sidebar) .profile-card-heading {
  margin-bottom: 18px;
}

body:has(.employee-sidebar) .profile-card-heading h2,
body:has(.employee-sidebar) .matrix-heading h2 {
  color: var(--text-main);
  font-size: 20px;
  font-weight: 650;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .profile-card-heading a {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--color-primary-600);
  font-size: 15px;
  font-weight: 600;
}

body:has(.employee-sidebar) .profile-role-head,
body:has(.employee-sidebar) .profile-role-row {
  display: grid;
  grid-template-columns: 64px minmax(180px, 1fr) 110px 124px 104px;
  align-items: center;
  gap: 14px;
}

body:has(.employee-sidebar) .profile-role-head {
  grid-template-columns: minmax(244px, 1fr) 110px 124px 104px;
  padding: 0 0 12px 0;
  border-bottom: 1px solid #e5eaf6;
  color: #66708a;
  font-size: 13px;
  font-weight: 520;
}

body:has(.employee-sidebar) .profile-role-head span:first-child {
  padding-left: 78px;
}

body:has(.employee-sidebar) .profile-role-list {
  display: grid;
}

body:has(.employee-sidebar) .profile-role-row {
  min-height: 78px;
  border-bottom: 1px solid #e7ecf7;
}

body:has(.employee-sidebar) .profile-role-row:last-child {
  border-bottom: 0;
}

body:has(.employee-sidebar) .profile-role-row h3,
body:has(.employee-sidebar) .profile-competency-row h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 620;
  line-height: 1.28;
}

body:has(.employee-sidebar) .profile-role-row strong {
  color: var(--text-main);
  font-size: 18px;
  font-weight: 650;
}

body:has(.employee-sidebar) .profile-icon-tile {
  --icon: url('/assets/icons/solar-broken/case.svg');
  display: inline-flex;
  width: 46px;
  height: 46px;
  border-radius: 12px;
  background: #f0f2ff;
  color: var(--color-primary-600);
  flex: 0 0 46px;
  align-items: center;
  justify-content: center;
}

body:has(.employee-sidebar) .profile-icon-tile::before {
  content: "";
  width: 26px;
  height: 26px;
  background: currentColor;
  -webkit-mask: var(--icon) center / contain no-repeat;
  mask: var(--icon) center / contain no-repeat;
}

body:has(.employee-sidebar) .profile-icon-home { --icon: url('/assets/icons/solar-broken/home.svg'); }
body:has(.employee-sidebar) .profile-icon-chart { --icon: url('/assets/icons/solar-broken/chart.svg'); }
body:has(.employee-sidebar) .profile-icon-case { --icon: url('/assets/icons/solar-broken/case.svg'); }
body:has(.employee-sidebar) .profile-icon-shield-user { --icon: url('/assets/icons/solar-broken/shield-user.svg'); }
body:has(.employee-sidebar) .profile-icon-letter { --icon: url('/assets/icons/solar-broken/letter.svg'); }
body:has(.employee-sidebar) .profile-icon-briefcase { --icon: url('/assets/icons/solar-broken/case.svg'); }
body:has(.employee-sidebar) .profile-icon-profile,
body:has(.employee-sidebar) .profile-icon-self,
body:has(.employee-sidebar) .profile-icon-position { --icon: url('/assets/icons/solar-broken/shield-user.svg'); }
body:has(.employee-sidebar) .profile-icon-competencies,
body:has(.employee-sidebar) .profile-icon-favorite { --icon: url('/assets/icons/solar-broken/chart.svg'); }
body:has(.employee-sidebar) .profile-icon-settings { --icon: url('/assets/icons/solar-broken/settings.svg'); }
body:has(.employee-sidebar) .profile-icon-notifications { --icon: url('/assets/icons/solar-broken/letter.svg'); }
body:has(.employee-sidebar) .profile-icon-help { --icon: url('/assets/icons/solar-broken/question.svg'); }
body:has(.employee-sidebar) .profile-icon-search { --icon: url('/assets/icons/solar-broken/search.svg'); }
body:has(.employee-sidebar) .profile-icon-education { --icon: url('/assets/icons/solar-broken/calendar.svg'); }
body:has(.employee-sidebar) .profile-icon-calendar { --icon: url('/assets/icons/solar-broken/calendar.svg'); }
body:has(.employee-sidebar) .profile-icon-time { --icon: url('/assets/icons/solar-broken/chart.svg'); }

body:has(.employee-sidebar) .education-page {
  display: grid;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
}

body:has(.employee-sidebar) .education-page-head h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 26px;
  font-weight: 620;
}

body:has(.employee-sidebar) .education-page-head p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

body:has(.employee-sidebar) .education-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:has(.employee-sidebar) .education-kpi {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  align-items: center;
  gap: 14px;
  min-height: 100px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 40px rgba(45, 52, 89, 0.055);
}

body:has(.employee-sidebar) .education-kpi .profile-icon-tile {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(98, 105, 223, 0.10);
}

body:has(.employee-sidebar) .education-kpi small,
body:has(.employee-sidebar) .education-kpi em {
  display: block;
  color: var(--text-muted);
  font-size: 12px;
  font-style: normal;
  font-weight: 520;
}

body:has(.employee-sidebar) .education-kpi strong {
  margin-right: 6px;
  color: var(--text-main);
  font-size: 32px;
  font-weight: 620;
}

body:has(.employee-sidebar) .education-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 20px;
  align-items: start;
}

body:has(.employee-sidebar) .education-main,
body:has(.employee-sidebar) .education-side {
  display: grid;
  gap: 16px;
}

body:has(.employee-sidebar) .education-card {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 44px rgba(45, 52, 89, 0.06);
}

body:has(.employee-sidebar) .education-tabs-card {
  overflow: hidden;
}

body:has(.employee-sidebar) .education-tabs {
  display: flex;
  gap: 24px;
  padding: 0 20px;
  border-bottom: 1px solid #e6ebf6;
}

body:has(.employee-sidebar) .education-tabs button {
  position: relative;
  min-height: 58px;
  border: 0;
  background: transparent;
  color: var(--text-muted);
  font-size: 15px;
  font-weight: 560;
  cursor: pointer;
}

body:has(.employee-sidebar) .education-tabs button::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 2px;
  border-radius: 99px;
  background: transparent;
}

body:has(.employee-sidebar) .education-tabs button:hover,
body:has(.employee-sidebar) .education-tabs button.is-active {
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .education-tabs button.is-active::after {
  background: var(--color-primary-600);
}

body:has(.employee-sidebar) .education-tab-panel {
  padding: 16px 20px 20px;
}

body:has(.employee-sidebar) .education-tab-panel[hidden] {
  display: none;
}

body:has(.employee-sidebar) .education-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .education-card-head h3,
body:has(.employee-sidebar) .education-card h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 620;
}

body:has(.employee-sidebar) .education-card-head a,
body:has(.employee-sidebar) .education-card-head button {
  border: 0;
  background: transparent;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

body:has(.employee-sidebar) .course-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .course-row {
  display: grid;
  grid-template-columns: 116px minmax(180px, 1fr) 150px minmax(120px, 190px) 54px 110px 116px;
  align-items: center;
  gap: 14px;
  min-height: 86px;
  padding: 10px;
  border: 1px solid #e1e7f3;
  border-radius: 16px;
  background: #fff;
}

body:has(.employee-sidebar) .course-list.compact .course-row {
  grid-template-columns: 72px minmax(180px, 1fr) 110px minmax(120px, 190px) 64px 90px 112px;
}

body:has(.employee-sidebar) .course-cover {
  display: block;
  height: 66px;
  border-radius: 12px;
  background: linear-gradient(135deg, #efeaff, #dfe6ff);
  position: relative;
  overflow: hidden;
}

body:has(.employee-sidebar) .course-cover::after {
  content: "";
  position: absolute;
  inset: 18px;
  border: 3px solid rgba(98, 105, 223, 0.45);
  border-radius: 10px;
  transform: rotate(-8deg);
}

body:has(.employee-sidebar) .course-cover.tone-2 {
  background: linear-gradient(135deg, #eaf8ef, #e7edff);
}

body:has(.employee-sidebar) .course-cover.tone-3 {
  background: linear-gradient(135deg, #e7f1ff, #f0edff);
}

body:has(.employee-sidebar) .course-row h4 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 620;
}

body:has(.employee-sidebar) .course-row p {
  margin: 0;
  color: var(--text-muted);
  font-size: 12px;
}

body:has(.employee-sidebar) .course-chip {
  width: max-content;
  max-width: 100%;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f0ff;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 560;
}

body:has(.employee-sidebar) .course-progress {
  height: 7px;
  overflow: hidden;
  border-radius: 999px;
  background: #e7ecf6;
}

body:has(.employee-sidebar) .course-progress i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-600), #7f91ff);
}

body:has(.employee-sidebar) .course-row b {
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 620;
}

body:has(.employee-sidebar) .course-row em {
  color: #a36d22;
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

body:has(.employee-sidebar) .course-row button,
body:has(.employee-sidebar) .course-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 0 14px;
  border: 1px solid #dfe5f2;
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 560;
  text-decoration: none;
}

body:has(.employee-sidebar) .education-material-table {
  display: grid;
  max-height: 520px;
  overflow: auto;
}

body:has(.employee-sidebar) .education-card:not(.education-tabs-card) {
  padding: 20px;
}

body:has(.employee-sidebar) .education-material-head,
body:has(.employee-sidebar) .education-material-table article {
  display: grid;
  grid-template-columns: 110px minmax(180px, 1fr) minmax(200px, 1.1fr) 120px 90px;
  gap: 12px;
  align-items: center;
  min-height: 44px;
  border-bottom: 1px solid #e8edf6;
}

body:has(.employee-sidebar) .education-material-head {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 620;
}

body:has(.employee-sidebar) .education-material-table article {
  color: var(--text-main);
  font-size: 13px;
}

body:has(.employee-sidebar) .education-material-table article:last-child {
  border-bottom: 0;
}

body:has(.employee-sidebar) .education-material-table a {
  overflow: hidden;
  color: var(--color-primary-700);
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .education-material-table em {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: rgba(36, 118, 74, 0.10);
  color: var(--success-text);
  font-size: 12px;
  font-style: normal;
  font-weight: 560;
}

body:has(.employee-sidebar) .nearest-test h4 {
  margin: 0;
  color: var(--text-main);
  font-size: 17px;
  font-weight: 620;
}

body:has(.employee-sidebar) .nearest-test p,
body:has(.employee-sidebar) .confirm-card p {
  margin: 6px 0 14px;
  color: var(--text-muted);
  font-size: 13px;
}

body:has(.employee-sidebar) .nearest-test-meta {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
}

body:has(.employee-sidebar) .nearest-test-meta i {
  width: 82px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--color-primary-600) 55%, #e7ecf6 55%);
}

body:has(.employee-sidebar) .nearest-test ul {
  display: grid;
  gap: 8px;
  margin: 16px 0;
  padding: 0;
  list-style: none;
}

body:has(.employee-sidebar) .nearest-test li {
  color: var(--text-main);
  font-size: 13px;
}

body:has(.employee-sidebar) .nearest-test li::before {
  content: "✓";
  margin-right: 8px;
  color: var(--success-text);
}

body:has(.employee-sidebar) .confirm-card form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:has(.employee-sidebar) .confirm-card label {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

body:has(.employee-sidebar) .confirm-card input,
body:has(.employee-sidebar) .confirm-card select {
  width: 100%;
  min-height: 42px;
  padding: 0 12px;
  border: 1px solid #dfe5f2;
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font-size: 13px;
}

body:has(.employee-sidebar) .confirm-card button {
  grid-column: 1 / -1;
  justify-content: center;
  min-height: 44px;
}

body:has(.employee-sidebar) .education-process h3 {
  margin: 0 0 14px;
}

body:has(.employee-sidebar) .education-process div {
  display: grid;
  grid-template-columns: minmax(120px, 1fr) 28px minmax(120px, 1fr) 28px minmax(120px, 1fr) 28px minmax(120px, 1fr);
  gap: 14px;
  align-items: center;
}

body:has(.employee-sidebar) .education-process span {
  display: grid;
  gap: 4px;
  padding: 12px 14px;
  border-radius: 16px;
  background: #f7f8ff;
}

body:has(.employee-sidebar) .education-process b {
  color: var(--text-main);
  font-size: 14px;
}

body:has(.employee-sidebar) .education-process small {
  color: var(--text-muted);
  font-size: 12px;
}

body:has(.employee-sidebar) .education-process i {
  height: 1px;
  background: #cbd4ee;
}

body:has(.employee-sidebar) .education-empty {
  min-height: 120px;
  display: grid;
  place-items: center;
  border: 1px dashed #dfe5f2;
  border-radius: 16px;
  color: var(--text-muted);
}

body:has(.employee-sidebar) .education-empty.slim {
  min-height: 70px;
}

.evidence-modal {
  width: min(760px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 0;
  border: 0;
  border-radius: 26px;
  background: #fff;
  box-shadow: 0 28px 80px rgba(31, 41, 55, 0.20);
  overflow: hidden;
}

.evidence-modal::backdrop {
  background: rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(8px);
}

body:has(.employee-sidebar) .service-page {
  display: grid;
  gap: 20px;
  max-width: 1760px;
  margin: 0 auto;
}

body:has(.employee-sidebar) .service-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 20px;
}

body:has(.employee-sidebar) .service-heading h2 {
  margin: 0;
  color: var(--text-main);
  font-size: 26px;
  font-weight: 620;
}

body:has(.employee-sidebar) .service-heading p {
  margin: 6px 0 0;
  color: var(--text-muted);
  font-size: 15px;
}

body:has(.employee-sidebar) .service-card,
body:has(.employee-sidebar) .notification-card {
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: linear-gradient(180deg, #fff 0%, #fbfcff 100%);
  box-shadow: 0 18px 44px rgba(45, 52, 89, 0.06);
}

body:has(.employee-sidebar) .service-summary-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}

body:has(.employee-sidebar) .service-summary-grid article {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 96px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 16px 34px rgba(45, 52, 89, 0.05);
}

body:has(.employee-sidebar) .service-summary-grid small {
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 560;
}

body:has(.employee-sidebar) .service-summary-grid strong {
  color: var(--text-main);
  font-size: 30px;
  font-weight: 620;
}

body:has(.employee-sidebar) .service-filter-tabs,
body:has(.employee-sidebar) .settings-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  padding: 8px;
  border: 1px solid var(--color-line);
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 12px 30px rgba(45, 52, 89, 0.045);
}

body:has(.employee-sidebar) .service-filter-tabs button,
body:has(.employee-sidebar) .settings-tabs button {
  min-height: 40px;
  padding: 0 16px;
  border: 1px solid transparent;
  border-radius: 14px;
  background: transparent;
  color: var(--text-muted);
  font-size: 14px;
  font-weight: 560;
  cursor: pointer;
}

body:has(.employee-sidebar) .service-filter-tabs button:hover,
body:has(.employee-sidebar) .service-filter-tabs button.is-active,
body:has(.employee-sidebar) .settings-tabs button:hover,
body:has(.employee-sidebar) .settings-tabs button.is-active {
  border-color: #cdd6fb;
  background: #f3f5ff;
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .notification-groups,
body:has(.employee-sidebar) .notification-day {
  display: grid;
  gap: 14px;
}

body:has(.employee-sidebar) .notification-day h3 {
  margin: 4px 0 0;
  color: #929bb0;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
}

body:has(.employee-sidebar) .notification-card {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) auto;
  gap: 16px;
  align-items: center;
  padding: 16px;
}

body:has(.employee-sidebar) .notification-card[hidden] {
  display: none;
}

body:has(.employee-sidebar) .notification-card.is-new {
  border-color: #cdd6fb;
  background: linear-gradient(180deg, #fff 0%, #f8f9ff 100%);
}

body:has(.employee-sidebar) .notification-card.is-action {
  border-color: #d7d8ff;
}

body:has(.employee-sidebar) .notification-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:has(.employee-sidebar) .notification-title-row h4 {
  margin: 0;
  color: var(--text-main);
  font-size: 16px;
  font-weight: 620;
}

body:has(.employee-sidebar) .notification-title-row span,
body:has(.employee-sidebar) .settings-pill,
body:has(.employee-sidebar) .support-status {
  width: max-content;
  padding: 5px 10px;
  border-radius: 999px;
  background: #f1f0ff;
  color: var(--color-primary-700);
  font-size: 12px;
  font-weight: 600;
}

body:has(.employee-sidebar) .notification-card p {
  margin: 6px 0;
  color: var(--text-muted);
  font-size: 14px;
}

body:has(.employee-sidebar) .notification-card small {
  color: #929bb0;
  font-size: 12px;
}

body:has(.employee-sidebar) .notification-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}

body:has(.employee-sidebar) .notification-actions .button,
body:has(.employee-sidebar) .notification-actions button {
  min-height: 36px;
  padding: 0 12px;
  border-radius: 12px;
  font-size: 13px;
  white-space: nowrap;
}

body:has(.employee-sidebar) .notification-actions button {
  border: 1px solid #dfe5f2;
  background: #fff;
  color: var(--color-primary-700);
  cursor: pointer;
}

body:has(.employee-sidebar) .help-search {
  display: grid;
  grid-template-columns: 52px minmax(0, 1fr);
  align-items: center;
  min-height: 72px;
  padding: 10px 18px;
  border: 1px solid var(--color-line);
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 16px 38px rgba(45, 52, 89, 0.055);
}

body:has(.employee-sidebar) .help-search input {
  border: 0;
  outline: none;
  color: var(--text-main);
  font-size: 18px;
  background: transparent;
}

body:has(.employee-sidebar) .help-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 430px;
  gap: 20px;
  align-items: start;
}

body:has(.employee-sidebar) .help-main,
body:has(.employee-sidebar) .help-side {
  display: grid;
  gap: 16px;
}

body:has(.employee-sidebar) .service-card {
  padding: 20px;
}

body:has(.employee-sidebar) .service-card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 16px;
}

body:has(.employee-sidebar) .service-card h3,
body:has(.employee-sidebar) .service-card-head h3 {
  margin: 0;
  color: var(--text-main);
  font-size: 18px;
  font-weight: 620;
}

body:has(.employee-sidebar) .service-card-head span,
body:has(.employee-sidebar) .service-card-head a {
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 600;
}

body:has(.employee-sidebar) .faq-grid,
body:has(.employee-sidebar) .directory-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:has(.employee-sidebar) .faq-grid button,
body:has(.employee-sidebar) .directory-grid a {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 54px;
  padding: 12px 14px;
  border: 1px solid #e1e7f3;
  border-radius: 16px;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  font-weight: 560;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

body:has(.employee-sidebar) .guide-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .guide-list article {
  padding: 14px;
  border: 1px solid #e1e7f3;
  border-radius: 16px;
  background: #fff;
}

body:has(.employee-sidebar) .guide-list h4,
body:has(.employee-sidebar) .support-request-list h4 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 15px;
  font-weight: 620;
}

body:has(.employee-sidebar) .guide-list p,
body:has(.employee-sidebar) .support-form-card p,
body:has(.employee-sidebar) .support-request-list p,
body:has(.employee-sidebar) .settings-card-grid p {
  margin: 0;
  color: var(--text-muted);
  font-size: 13px;
  line-height: 1.45;
}

body:has(.employee-sidebar) .quick-hints {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

body:has(.employee-sidebar) .quick-hints span {
  padding: 6px 10px;
  border-radius: 999px;
  background: #f1f0ff;
  color: var(--color-primary-700);
  font-size: 12px;
}

body:has(.employee-sidebar) .support-form-card form,
body:has(.employee-sidebar) .support-thread form {
  display: grid;
  gap: 12px;
}

body:has(.employee-sidebar) .support-form-card label,
body:has(.employee-sidebar) .settings-toggle {
  display: grid;
  gap: 7px;
  color: var(--text-muted);
  font-size: 13px;
  font-weight: 600;
}

body:has(.employee-sidebar) .support-form-card input,
body:has(.employee-sidebar) .support-form-card select,
body:has(.employee-sidebar) .support-form-card textarea,
body:has(.employee-sidebar) .support-thread textarea,
body:has(.employee-sidebar) .settings-card-grid select {
  width: 100%;
  min-height: 44px;
  padding: 11px 13px;
  border: 1px solid #dfe5f2;
  border-radius: 14px;
  background: #fff;
  color: var(--text-main);
  font-size: 14px;
  outline: none;
}

body:has(.employee-sidebar) .support-inbox {
  overflow: hidden;
}

body:has(.employee-sidebar) .support-request-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .support-request-list article {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) 120px 130px 96px;
  gap: 14px;
  align-items: center;
  padding: 12px 0;
  border-bottom: 1px solid #e8edf6;
}

body:has(.employee-sidebar) .support-request-list article:last-child {
  border-bottom: 0;
}

body:has(.employee-sidebar) .support-request-list article > span {
  color: var(--color-primary-700);
  font-weight: 650;
}

body:has(.employee-sidebar) .support-request-list small {
  color: var(--text-muted);
  font-size: 12px;
}

body:has(.employee-sidebar) .support-request-list summary {
  color: var(--color-primary-700);
  cursor: pointer;
  font-weight: 600;
}

body:has(.employee-sidebar) .support-thread {
  grid-column: 1 / -1;
  display: grid;
  gap: 10px;
  margin-top: 12px;
  padding: 14px;
  border-radius: 16px;
  background: #f8f9ff;
}

body:has(.employee-sidebar) .settings-panels {
  display: grid;
}

body:has(.employee-sidebar) .settings-panel {
  display: none;
}

body:has(.employee-sidebar) .settings-panel.is-active {
  display: grid;
  gap: 16px;
}

body:has(.employee-sidebar) .settings-profile-card {
  display: grid;
  grid-template-columns: 96px minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
}

body:has(.employee-sidebar) .settings-avatar {
  width: 96px;
  height: 96px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef1ff;
}

body:has(.employee-sidebar) .settings-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.employee-sidebar) .settings-profile-card h3 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 24px;
  font-weight: 620;
}

body:has(.employee-sidebar) .settings-profile-card p,
body:has(.employee-sidebar) .settings-profile-card span {
  display: block;
  margin: 0 0 4px;
  color: var(--text-muted);
}

body:has(.employee-sidebar) .settings-info-grid,
body:has(.employee-sidebar) .settings-card-grid,
body:has(.employee-sidebar) .notification-settings-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}

body:has(.employee-sidebar) .settings-info-grid article {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px solid var(--color-line);
  border-radius: 20px;
  background: #fff;
}

body:has(.employee-sidebar) .settings-info-grid small {
  color: var(--text-muted);
  font-size: 12px;
  font-weight: 600;
}

body:has(.employee-sidebar) .settings-info-grid b {
  color: var(--text-main);
  font-size: 16px;
}

body:has(.employee-sidebar) .segmented {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 6px;
  padding: 6px;
  border-radius: 16px;
  background: #f4f6ff;
}

body:has(.employee-sidebar) .segmented button,
body:has(.employee-sidebar) .settings-card-grid button,
body:has(.employee-sidebar) .support-thread button {
  min-height: 36px;
  padding: 0 12px;
  border: 1px solid transparent;
  border-radius: 12px;
  background: #fff;
  color: var(--color-primary-700);
  font-weight: 600;
  cursor: pointer;
}

body:has(.employee-sidebar) .segmented button.is-active {
  background: var(--color-primary-600);
  color: #fff;
}

body:has(.employee-sidebar) .settings-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
}

body:has(.employee-sidebar) .settings-toggle input {
  width: 18px;
  height: 18px;
  accent-color: var(--color-primary-600);
}

body:has(.employee-sidebar) .settings-access-layout {
  display: grid;
  grid-template-columns: 360px minmax(0, 1fr);
  gap: 16px;
}

body:has(.employee-sidebar) .contour-access-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .contour-access-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 16px;
  background: #f8f9ff;
}

body:has(.employee-sidebar) .contour-access-list .is-available {
  border: 1px solid #bde8ce;
  background: #f8fffb;
}

body:has(.employee-sidebar) .contour-access-list .is-locked {
  border: 1px solid #e8edf6;
  opacity: .78;
}

body:has(.employee-sidebar) .service-empty {
  min-height: 150px;
  display: grid;
  place-items: center;
  gap: 8px;
  padding: 20px;
  border: 1px dashed #dfe5f2;
  border-radius: 20px;
  color: var(--text-muted);
  text-align: center;
}

body:has(.employee-sidebar) .service-empty.compact {
  min-height: 110px;
}

body:has(.employee-sidebar) .service-empty b {
  color: var(--text-main);
}

@media (max-width: 1280px) {
  body:has(.employee-sidebar) .service-summary-grid,
  body:has(.employee-sidebar) .settings-info-grid,
  body:has(.employee-sidebar) .settings-card-grid,
  body:has(.employee-sidebar) .notification-settings-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.employee-sidebar) .help-layout,
  body:has(.employee-sidebar) .settings-access-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 820px) {
  body:has(.employee-sidebar) .service-summary-grid,
  body:has(.employee-sidebar) .faq-grid,
  body:has(.employee-sidebar) .directory-grid,
  body:has(.employee-sidebar) .settings-info-grid,
  body:has(.employee-sidebar) .settings-card-grid,
  body:has(.employee-sidebar) .notification-settings-list,
  body:has(.employee-sidebar) .notification-card,
  body:has(.employee-sidebar) .settings-profile-card,
  body:has(.employee-sidebar) .support-request-list article {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .notification-actions,
  body:has(.employee-sidebar) .service-heading {
    align-items: stretch;
    flex-direction: column;
  }
}

@media (max-width: 1380px) {
  body:has(.employee-sidebar) .education-kpi-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.employee-sidebar) .education-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 900px) {
  body:has(.employee-sidebar) .course-row,
  body:has(.employee-sidebar) .course-list.compact .course-row,
  body:has(.employee-sidebar) .education-material-head,
  body:has(.employee-sidebar) .education-material-table article,
  body:has(.employee-sidebar) .education-process div,
  body:has(.employee-sidebar) .confirm-card form {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .education-process i,
  body:has(.employee-sidebar) .education-material-head {
    display: none;
  }
}

body:has(.employee-sidebar) .role-complexity {
  display: inline-flex;
  align-items: center;
  gap: 10px;
}

body:has(.employee-sidebar) .role-complexity b {
  display: inline-flex;
  min-width: 24px;
  height: 24px;
  padding: 0 7px;
  align-items: center;
  justify-content: center;
  border: 1px solid #d9def8;
  border-radius: 8px;
  background: #f1f3ff;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 650;
}

body:has(.employee-sidebar) .role-complexity span {
  display: inline-flex;
  gap: 6px;
}

body:has(.employee-sidebar) .role-complexity i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #dfe4f2;
}

body:has(.employee-sidebar) .role-complexity i.is-on {
  background: var(--color-primary-500);
}

body:has(.employee-sidebar) .role-status {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--success-text);
  font-size: 14px;
  font-weight: 540;
}

body:has(.employee-sidebar) .role-status i,
body:has(.employee-sidebar) .matrix-footer i {
  width: 8px;
  height: 8px;
  border-radius: 999px;
  background: #2aa865;
  box-shadow: 0 0 0 4px rgba(42, 168, 101, 0.10);
}

body:has(.employee-sidebar) .roles-summary,
body:has(.employee-sidebar) .competency-total {
  display: flex;
  align-items: center;
  gap: 16px;
  margin-top: 12px;
  padding: 10px 12px;
  border: 1px solid #e0e6f5;
  border-radius: 14px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .roles-summary b {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 560;
}

body:has(.employee-sidebar) .summary-ring {
  display: inline-flex;
  width: 50px;
  height: 50px;
  margin-left: auto;
  border-radius: 999px;
  background: conic-gradient(var(--color-primary-500) var(--value), #e7ebf6 0);
  align-items: center;
  justify-content: center;
}

body:has(.employee-sidebar) .summary-ring em {
  display: inline-flex;
  width: 38px;
  height: 38px;
  border-radius: 999px;
  background: #fff;
  color: var(--color-primary-700);
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-style: normal;
  font-weight: 650;
}

body:has(.employee-sidebar) .competency-tabs {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

body:has(.employee-sidebar) .competency-tabs button {
  min-height: 30px;
  padding: 6px 12px;
  border: 1px solid #dfe5f5;
  border-radius: 10px;
  color: #66708a;
  background: #fff;
  box-shadow: none;
  font-size: 13px;
  font-weight: 560;
  cursor: pointer;
}

body:has(.employee-sidebar) .competency-tabs button:hover {
  color: var(--color-primary-700);
  background: #f7f8ff;
}

body:has(.employee-sidebar) .competency-tabs button.is-active {
  color: var(--color-primary-700);
  background: #f2f4ff;
  box-shadow: inset 0 -2px 0 rgba(98, 105, 223, 0.24);
}

body:has(.employee-sidebar) .profile-competency-list {
  display: grid;
  gap: 8px;
  max-height: 356px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 105, 223, 0.35) transparent;
}

body:has(.employee-sidebar) .profile-competency-row {
  display: grid;
  grid-template-columns: 44px minmax(0, 1fr) 66px 86px 22px;
  align-items: center;
  gap: 12px;
  min-height: 58px;
  padding: 8px 10px;
  border: 1px solid #e0e6f5;
  border-radius: 14px;
  background: #fff;
}

body:has(.employee-sidebar) .profile-competency-row .profile-icon-tile {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  flex-basis: 38px;
}

body:has(.employee-sidebar) .profile-competency-row .profile-icon-tile::before {
  width: 22px;
  height: 22px;
}

body:has(.employee-sidebar) .profile-competency-row[hidden] {
  display: none;
}

body:has(.employee-sidebar) .profile-competency-row i,
body:has(.employee-sidebar) .matrix-bars i {
  position: relative;
  display: block;
  height: 6px;
  margin: 6px 0 4px;
  overflow: hidden;
  border-radius: 999px;
  background: #e9edf6;
}

body:has(.employee-sidebar) .profile-competency-row i::before,
body:has(.employee-sidebar) .matrix-bars i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--color-primary-500), #7c9bff);
}

body:has(.employee-sidebar) .profile-competency-row p {
  margin: 0;
  color: #6f7890;
  font-size: 12px;
  line-height: 1.25;
}

body:has(.employee-sidebar) .profile-competency-row strong {
  justify-self: center;
  padding: 6px 10px;
  border-radius: 9px;
  background: #f1f3ff;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 650;
}

body:has(.employee-sidebar) .profile-competency-row em {
  justify-self: end;
  color: var(--color-primary-600);
  font-size: 13px;
  font-style: normal;
  font-weight: 560;
  white-space: nowrap;
}

body:has(.employee-sidebar) .competency-check {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: #2aa865;
  position: relative;
}

body:has(.employee-sidebar) .competency-check::after {
  content: "";
  position: absolute;
  left: 5px;
  top: 4px;
  width: 7px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

body:has(.employee-sidebar) .competency-total b {
  color: var(--text-main);
  font-size: 13px;
  font-weight: 520;
  line-height: 1.25;
}

body:has(.employee-sidebar) .competency-total strong {
  color: var(--color-primary-700);
  font-size: 16px;
  font-weight: 650;
}

body:has(.employee-sidebar) .competency-total a {
  margin-left: auto;
  padding: 10px 14px;
  border: 1px solid #dfe5f5;
  border-radius: 10px;
  color: var(--color-primary-700);
  background: #f8f9ff;
  font-size: 14px;
  font-weight: 600;
}

body:has(.employee-sidebar) .competency-matrix-panel {
  margin-top: 18px;
}

body:has(.employee-sidebar) .matrix-heading {
  display: flex;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 10px;
}

body:has(.employee-sidebar) .matrix-heading h2 {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 0;
}

body:has(.employee-sidebar) .matrix-heading h2 span {
  display: inline-flex;
  width: 17px;
  height: 17px;
  border-radius: 999px;
  background: #eef2fb;
  color: #8a94ac;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 650;
}

body:has(.employee-sidebar) .matrix-heading div {
  display: grid;
  justify-items: end;
  gap: 2px;
}

body:has(.employee-sidebar) .matrix-heading b {
  color: var(--color-primary-700);
  font-size: 26px;
  font-weight: 680;
  line-height: 1;
}

body:has(.employee-sidebar) .matrix-heading small {
  color: #7a8298;
  font-size: 12px;
  font-weight: 560;
}

body:has(.employee-sidebar) .matrix-layout {
  display: grid;
  grid-template-columns: minmax(260px, 0.92fr) minmax(320px, 1fr);
  align-items: center;
  gap: 28px;
}

body:has(.employee-sidebar) .matrix-radar {
  width: 100%;
  max-width: 360px;
  min-height: 250px;
  justify-self: center;
  overflow: visible;
}

body:has(.employee-sidebar) .matrix-radar text {
  fill: #68718a;
  font-size: 8px;
  font-weight: 560;
}

body:has(.employee-sidebar) .matrix-radar-ring,
body:has(.employee-sidebar) .matrix-radar-axis {
  fill: none;
  stroke: rgba(98, 105, 223, 0.15);
}

body:has(.employee-sidebar) .matrix-radar-area {
  fill: rgba(98, 105, 223, 0.15);
}

body:has(.employee-sidebar) .matrix-radar-line {
  fill: none;
  stroke: var(--color-primary-500);
  stroke-width: 2.5;
}

body:has(.employee-sidebar) .matrix-radar-dot {
  fill: var(--color-primary-600);
  stroke: #fff;
  stroke-width: 2;
}

body:has(.employee-sidebar) .matrix-bars {
  display: grid;
  gap: 12px;
}

body:has(.employee-sidebar) .matrix-bars div {
  display: grid;
  grid-template-columns: minmax(0, 190px) minmax(110px, 1fr) 42px;
  align-items: center;
  gap: 12px;
}

body:has(.employee-sidebar) .matrix-bars span {
  color: #66708a;
  font-size: 13px;
  font-weight: 560;
  line-height: 1.2;
}

body:has(.employee-sidebar) .matrix-bars i {
  margin: 0;
}

body:has(.employee-sidebar) .matrix-bars b {
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 650;
  text-align: right;
}

body:has(.employee-sidebar) .matrix-footer {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid #e6ebf6;
  color: #737c94;
  font-size: 13px;
  font-weight: 520;
}

body:has(.employee-sidebar) .matrix-footer span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .employee-profile-cards,
  body:has(.employee-sidebar) .matrix-layout {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .profile-role-head {
    display: none;
  }

  body:has(.employee-sidebar) .profile-role-row,
  body:has(.employee-sidebar) .profile-competency-row,
  body:has(.employee-sidebar) .matrix-bars div {
    grid-template-columns: 46px minmax(0, 1fr);
  }

  body:has(.employee-sidebar) .profile-role-row strong,
  body:has(.employee-sidebar) .role-complexity,
  body:has(.employee-sidebar) .role-status,
  body:has(.employee-sidebar) .profile-competency-row strong,
  body:has(.employee-sidebar) .profile-competency-row em,
  body:has(.employee-sidebar) .competency-check,
  body:has(.employee-sidebar) .matrix-bars b {
    grid-column: 2;
    justify-self: start;
  }
}

/* Final employee hero without matrix card */
body:has(.employee-sidebar) .employee-hero {
  grid-template-columns: 168px minmax(420px, 1fr) minmax(260px, 0.6fr);
}

body:has(.employee-sidebar) .hero-orbit {
  grid-column: 3;
  justify-self: center;
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .employee-hero {
    grid-template-columns: 150px minmax(0, 1fr);
  }

  body:has(.employee-sidebar) .hero-orbit {
    display: none;
  }
}

/* Employee personal profile */
body:has(.employee-sidebar) .profile-page-head {
  margin: 0 0 18px;
}

body:has(.employee-sidebar) .profile-page-head h2 {
  margin: 0 0 6px;
  color: var(--text-main);
  font-size: 26px;
  font-weight: 650;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .profile-page-head p {
  margin: 0;
  color: #737c94;
  font-size: 15px;
}

body:has(.employee-sidebar) .personal-card-hero,
body:has(.employee-sidebar) .personal-section-card {
  border: 1px solid #dfe5f6;
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfcff 100%);
  box-shadow: 0 18px 44px rgba(45, 52, 89, 0.07);
}

body:has(.employee-sidebar) .personal-card-hero {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr) minmax(260px, 0.42fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 24px;
}

body:has(.employee-sidebar) .personal-photo-panel {
  display: grid;
  gap: 14px;
  justify-items: center;
}

body:has(.employee-sidebar) .personal-photo {
  width: 136px;
  height: 136px;
  overflow: hidden;
  border: 1px solid #dfe5f6;
  border-radius: 999px;
  background: linear-gradient(135deg, #f3f5ff, #ebeefe);
  box-shadow: 0 14px 32px rgba(45, 52, 89, 0.10);
}

body:has(.employee-sidebar) .personal-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.employee-sidebar) .personal-photo.is-empty::before {
  content: "";
  display: block;
  width: 100%;
  height: 100%;
  background: radial-gradient(circle at 50% 38%, rgba(98,105,223,.45) 0 16%, transparent 17%),
    radial-gradient(circle at 50% 75%, rgba(98,105,223,.35) 0 26%, transparent 27%);
}

body:has(.employee-sidebar) .personal-photo-form {
  display: grid;
  gap: 8px;
  width: 100%;
}

body:has(.employee-sidebar) .personal-photo-form .button {
  min-height: 38px;
  padding: 8px 12px;
  font-size: 13px;
}

body:has(.employee-sidebar) .personal-photo-form p,
body:has(.employee-sidebar) .form-hint {
  margin: 0;
  color: #7a8298;
  font-size: 12px;
  line-height: 1.35;
}

body:has(.employee-sidebar) .file-action {
  display: inline-flex;
  min-height: 38px;
  padding: 8px 12px;
  border: 1px solid #dfe5f5;
  border-radius: 10px;
  color: var(--color-primary-700);
  background: #f8f9ff;
  align-items: center;
  justify-content: center;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body:has(.employee-sidebar) .file-action input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

body:has(.employee-sidebar) .file-action-wide {
  width: fit-content;
  justify-content: flex-start;
}

body:has(.employee-sidebar) .personal-identity h3 {
  margin: 0 0 8px;
  color: var(--text-main);
  font-size: 28px;
  font-weight: 650;
  line-height: 1.15;
}

body:has(.employee-sidebar) .personal-identity p {
  margin: 0 0 8px;
  color: #66708a;
  font-size: 15px;
}

body:has(.employee-sidebar) .personal-identity .personal-position {
  color: var(--text-main);
  font-size: 17px;
  font-weight: 600;
}

body:has(.employee-sidebar) .personal-identity > span {
  display: inline-flex;
  margin-top: 4px;
  padding: 7px 10px;
  border-radius: 9px;
  background: #f6f8ff;
  color: #66708a;
  font-size: 13px;
  font-weight: 560;
}

body:has(.employee-sidebar) .personal-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

body:has(.employee-sidebar) .personal-actions .button {
  min-height: 40px;
  padding: 9px 16px;
}

body:has(.employee-sidebar) .personal-summary {
  display: grid;
  gap: 10px;
  padding: 16px;
  border: 1px solid #e4e9f7;
  border-radius: 16px;
  background: rgba(248, 249, 255, 0.78);
}

body:has(.employee-sidebar) .personal-summary div {
  display: grid;
  gap: 4px;
}

body:has(.employee-sidebar) .personal-summary span,
body:has(.employee-sidebar) .personal-data-grid span,
body:has(.employee-sidebar) .personal-service-grid span {
  color: #7a8298;
  font-size: 12px;
  font-weight: 560;
}

body:has(.employee-sidebar) .personal-summary b,
body:has(.employee-sidebar) .personal-data-grid b,
body:has(.employee-sidebar) .personal-service-grid b {
  color: var(--text-main);
  font-size: 14px;
  font-weight: 620;
  line-height: 1.25;
}

body:has(.employee-sidebar) .personal-card-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 18px;
  margin-bottom: 18px;
}

body:has(.employee-sidebar) .personal-section-card {
  padding: 20px;
  margin-bottom: 18px;
}

body:has(.employee-sidebar) .personal-section-card h3,
body:has(.employee-sidebar) .personal-section-heading h3 {
  margin: 0 0 14px;
  color: var(--text-main);
  font-size: 20px;
  font-weight: 650;
}

body:has(.employee-sidebar) .personal-section-card > p {
  max-width: 760px;
  margin: -4px 0 16px;
  color: #737c94;
  font-size: 14px;
  line-height: 1.45;
}

body:has(.employee-sidebar) .personal-data-grid,
body:has(.employee-sidebar) .personal-service-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

body:has(.employee-sidebar) .personal-data-grid div,
body:has(.employee-sidebar) .personal-service-grid div {
  display: grid;
  gap: 7px;
  min-height: 82px;
  padding: 13px;
  border: 1px solid #e3e8f6;
  border-radius: 14px;
  background: #fff;
}

body:has(.employee-sidebar) .personal-data-grid .is-muted b {
  color: #7a8298;
}

body:has(.employee-sidebar) .personal-data-grid em {
  color: #7a8298;
  font-size: 12px;
  font-style: normal;
  line-height: 1.35;
}

body:has(.employee-sidebar) .personal-service-card {
  background: #fbfcff;
}

body:has(.employee-sidebar) .personal-service-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:has(.employee-sidebar) .personal-request-card {
  max-width: 880px;
}

body:has(.employee-sidebar) .personal-request-form {
  display: grid;
  gap: 14px;
  max-width: 760px;
}

body:has(.employee-sidebar) .personal-request-form label {
  display: grid;
  gap: 7px;
  color: #66708a;
  font-size: 13px;
  font-weight: 600;
}

body:has(.employee-sidebar) .personal-request-form select,
body:has(.employee-sidebar) .personal-request-form textarea {
  width: 100%;
  border: 1px solid #dfe5f5;
  border-radius: 12px;
  background: #fff;
  color: var(--text-main);
  font: inherit;
}

body:has(.employee-sidebar) .personal-request-form select {
  min-height: 46px;
  padding: 0 14px;
}

body:has(.employee-sidebar) .personal-request-form textarea {
  min-height: 124px;
  padding: 13px 14px;
  resize: vertical;
}

body:has(.employee-sidebar) .personal-request-form button[type="submit"] {
  width: fit-content;
  min-height: 42px;
  padding: 10px 18px;
}

body:has(.employee-sidebar) .personal-section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

body:has(.employee-sidebar) .personal-section-heading a {
  color: var(--color-primary-700);
  font-size: 14px;
  font-weight: 600;
}

body:has(.employee-sidebar) .personal-request-list,
body:has(.employee-sidebar) .personal-history-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .personal-request-item,
body:has(.employee-sidebar) .personal-history-list article {
  display: grid;
  gap: 9px;
  padding: 14px;
  border: 1px solid #e3e8f6;
  border-radius: 14px;
  background: #fff;
}

body:has(.employee-sidebar) .personal-request-item div,
body:has(.employee-sidebar) .personal-request-item footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

body:has(.employee-sidebar) .personal-request-item b,
body:has(.employee-sidebar) .personal-history-list b {
  color: var(--text-main);
  font-size: 15px;
  font-weight: 620;
}

body:has(.employee-sidebar) .personal-request-item span,
body:has(.employee-sidebar) .personal-request-item em,
body:has(.employee-sidebar) .personal-history-list span {
  color: #7a8298;
  font-size: 12px;
  font-style: normal;
}

body:has(.employee-sidebar) .personal-request-item p,
body:has(.employee-sidebar) .personal-history-list p {
  margin: 0;
  color: #66708a;
  font-size: 14px;
  line-height: 1.35;
}

body:has(.employee-sidebar) .personal-request-item a {
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 600;
}

body:has(.employee-sidebar) .request-status {
  display: inline-flex;
  min-height: 24px;
  padding: 4px 9px;
  border-radius: 999px;
  background: #eef2ff;
  color: var(--color-primary-700);
  align-items: center;
  font-size: 12px;
  font-weight: 650;
}

body:has(.employee-sidebar) .request-status-in_review,
body:has(.employee-sidebar) .request-status-submitted {
  background: rgba(98, 105, 223, 0.10);
  color: var(--color-primary-700);
}

body:has(.employee-sidebar) .request-status-approved,
body:has(.employee-sidebar) .request-status-applied {
  background: rgba(36, 118, 74, 0.10);
  color: var(--success-text);
}

body:has(.employee-sidebar) .request-status-rejected {
  background: rgba(204, 67, 67, 0.10);
  color: #b44141;
}

body:has(.employee-sidebar) .request-status-needs_clarification {
  background: rgba(180, 126, 37, 0.12);
  color: #8d641d;
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .personal-card-hero,
  body:has(.employee-sidebar) .personal-card-grid,
  body:has(.employee-sidebar) .personal-service-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .personal-data-grid,
  body:has(.employee-sidebar) .personal-service-grid {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .personal-request-item div,
  body:has(.employee-sidebar) .personal-request-item footer,
  body:has(.employee-sidebar) .personal-section-heading {
    align-items: flex-start;
    flex-direction: column;
  }
}

/* Final compact personal card layout */
body:has(.employee-sidebar) .profile-page-head {
  margin: 0 0 14px;
}

body:has(.employee-sidebar) .profile-page-head h2 {
  font-size: 24px;
  font-weight: 650;
}

body:has(.employee-sidebar) .personal-card-hero,
body:has(.employee-sidebar) .personal-section-card {
  border-color: #dfe5f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 14px 38px rgba(38, 42, 92, 0.06);
}

body:has(.employee-sidebar) .personal-card-hero {
  grid-template-columns: 132px minmax(420px, 1fr) minmax(260px, 0.38fr);
  gap: 22px;
  min-height: 224px;
  margin-bottom: 14px;
  padding: 22px 24px;
}

body:has(.employee-sidebar) .personal-photo-panel {
  align-self: center;
}

body:has(.employee-sidebar) .personal-photo {
  width: 124px;
  height: 124px;
}

body:has(.employee-sidebar) .personal-photo-form {
  display: none;
}

body:has(.employee-sidebar) .personal-identity h3 {
  max-width: 760px;
  margin-bottom: 6px;
  font-size: 26px;
}

body:has(.employee-sidebar) .personal-identity p {
  margin-bottom: 6px;
}

body:has(.employee-sidebar) .personal-identity > span {
  margin-top: 2px;
  padding: 6px 10px;
  background: #f4f6ff;
}

body:has(.employee-sidebar) .personal-actions {
  flex-wrap: wrap;
  align-items: center;
  margin-top: 14px;
}

body:has(.employee-sidebar) .personal-actions .button,
body:has(.employee-sidebar) .personal-actions .file-action {
  min-height: 36px;
  padding: 8px 13px;
  font-size: 13px;
}

body:has(.employee-sidebar) .personal-inline-upload {
  background: #f8f9ff;
}

body:has(.employee-sidebar) .personal-photo-hint {
  margin: 8px 0 0;
  color: #737b91;
  font-size: 12px;
}

body:has(.employee-sidebar) .personal-summary {
  align-self: center;
  gap: 8px;
  padding: 14px;
  background: #f8f9ff;
}

body:has(.employee-sidebar) .personal-summary div {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
}

body:has(.employee-sidebar) .personal-summary span {
  font-size: 11px;
}

body:has(.employee-sidebar) .personal-summary b {
  font-size: 12px;
  text-align: right;
}

body:has(.employee-sidebar) .personal-card-grid {
  gap: 14px;
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .personal-section-card {
  margin-bottom: 14px;
  padding: 18px;
}

body:has(.employee-sidebar) .personal-section-card h3,
body:has(.employee-sidebar) .personal-section-heading h3 {
  margin-bottom: 12px;
  font-size: 18px;
}

body:has(.employee-sidebar) .personal-data-grid {
  grid-template-columns: 1fr;
  gap: 0;
}

body:has(.employee-sidebar) .personal-data-grid div {
  min-height: 0;
  padding: 12px 0;
  border: 0;
  border-bottom: 1px solid #e5e9f5;
  border-radius: 0;
  background: transparent;
}

body:has(.employee-sidebar) .personal-data-grid div:last-child {
  border-bottom: 0;
}

body:has(.employee-sidebar) .personal-data-grid span {
  font-size: 12px;
}

body:has(.employee-sidebar) .personal-data-grid b {
  color: #11182c;
  font-size: 15px;
  font-weight: 600;
}

body:has(.employee-sidebar) .personal-data-grid em {
  max-width: 420px;
}

body:has(.employee-sidebar) .personal-request-card {
  max-width: none;
}

body:has(.employee-sidebar) .personal-request-layout {
  display: grid;
  grid-template-columns: minmax(560px, 820px) minmax(240px, 0.45fr);
  gap: 24px;
  align-items: start;
}

body:has(.employee-sidebar) .personal-request-card h3 {
  margin-bottom: 8px;
}

body:has(.employee-sidebar) .personal-request-card p {
  max-width: 720px;
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .personal-request-form {
  gap: 12px;
  max-width: 820px;
}

body:has(.employee-sidebar) .personal-request-form select {
  min-height: 42px;
}

body:has(.employee-sidebar) .personal-request-form textarea {
  min-height: 104px;
}

body:has(.employee-sidebar) .personal-request-form button[type="submit"] {
  min-height: 40px;
}

body:has(.employee-sidebar) .personal-help-card {
  padding: 16px;
  border: 1px solid #e5e9f5;
  border-radius: 18px;
  background: #f8f9ff;
}

body:has(.employee-sidebar) .personal-help-card h4 {
  margin: 0 0 8px;
  color: #11182c;
  font-size: 16px;
  font-weight: 650;
}

body:has(.employee-sidebar) .personal-help-card p {
  margin: 0 0 14px;
  color: #737b91;
  font-size: 13px;
  line-height: 1.45;
}

body:has(.employee-sidebar) .personal-help-card ol {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body:has(.employee-sidebar) .personal-help-card li {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #11182c;
  font-size: 13px;
  font-weight: 600;
}

body:has(.employee-sidebar) .personal-help-card li b {
  display: inline-flex;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: rgba(98, 105, 223, 0.08);
  color: #555dce;
  align-items: center;
  justify-content: center;
  font-size: 12px;
}

body:has(.employee-sidebar) .personal-activity-card {
  min-height: 0;
}

body:has(.employee-sidebar) .personal-tabs > input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

body:has(.employee-sidebar) .personal-tab-buttons {
  display: flex;
  gap: 8px;
  margin-bottom: 12px;
}

body:has(.employee-sidebar) .personal-tab-buttons label {
  min-height: 34px;
  padding: 8px 13px;
  border: 1px solid #dfe5f4;
  border-radius: 11px;
  color: #66708a;
  background: #fff;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}

body:has(.employee-sidebar) #activity-requests:checked ~ .personal-tab-buttons label[for="activity-requests"],
body:has(.employee-sidebar) #activity-history:checked ~ .personal-tab-buttons label[for="activity-history"] {
  color: #555dce;
  background: #f4f6ff;
  box-shadow: inset 0 -2px 0 rgba(98, 105, 223, 0.22);
}

body:has(.employee-sidebar) .personal-tab-panel {
  display: none;
}

body:has(.employee-sidebar) #activity-requests:checked ~ .personal-tab-requests,
body:has(.employee-sidebar) #activity-history:checked ~ .personal-tab-history {
  display: block;
}

body:has(.employee-sidebar) .personal-empty-state {
  display: grid;
  min-height: 96px;
  padding: 18px;
  border: 1px dashed #dfe5f4;
  border-radius: 16px;
  color: #737b91;
  background: #fbfcff;
  place-items: center;
  text-align: center;
}

body:has(.employee-sidebar) .personal-request-item,
body:has(.employee-sidebar) .personal-history-list article {
  padding: 12px 14px;
}

@media (min-width: 1600px) {
  body:has(.employee-sidebar) .personal-card-hero {
    grid-template-columns: 132px minmax(560px, 1fr) minmax(300px, 0.34fr);
  }
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .personal-card-hero,
  body:has(.employee-sidebar) .personal-request-layout {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .personal-summary div {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .personal-summary b {
    text-align: left;
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .personal-card-hero {
    padding: 18px;
  }

  body:has(.employee-sidebar) .personal-actions,
  body:has(.employee-sidebar) .personal-tab-buttons {
    align-items: stretch;
    flex-direction: column;
  }

body:has(.employee-sidebar) .personal-actions .button,
body:has(.employee-sidebar) .personal-actions .file-action {
    width: 100%;
  }
}

/* Final personal profile cards and modal */
body:has(.employee-sidebar) .personal-card-hero {
  grid-template-columns: 104px minmax(420px, 1fr) minmax(260px, 0.34fr);
  min-height: 172px;
  padding: 18px 20px;
}

body:has(.employee-sidebar) .personal-photo {
  width: 96px;
  height: 96px;
}

body:has(.employee-sidebar) .personal-identity h3 {
  font-size: 23px;
}

body:has(.employee-sidebar) .personal-identity .personal-position {
  font-size: 15px;
}

body:has(.employee-sidebar) .personal-actions {
  margin-top: 10px;
}

body:has(.employee-sidebar) .personal-photo-hint {
  margin-top: 6px;
}

body:has(.employee-sidebar) .personal-card-grid {
  align-items: stretch;
}

body:has(.employee-sidebar) .personal-card-grid > .personal-section-card {
  height: 100%;
}

body:has(.employee-sidebar) .personal-info-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

body:has(.employee-sidebar) .personal-card-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 8px;
}

body:has(.employee-sidebar) .personal-card-title h3 {
  margin: 0;
}

body:has(.employee-sidebar) .personal-edit-button {
  display: inline-flex;
  min-width: 34px;
  height: 34px;
  padding: 0 10px;
  border: 1px solid #dfe5f4;
  border-radius: 10px;
  background: #f8f9ff;
  color: #555dce;
  align-items: center;
  justify-content: center;
  box-shadow: none;
  font-size: 0;
  cursor: pointer;
}

body:has(.employee-sidebar) .personal-edit-button::before {
  content: "";
  width: 18px;
  height: 18px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/solar-broken/settings.svg') center / contain no-repeat;
  mask: url('/assets/icons/solar-broken/settings.svg') center / contain no-repeat;
}

body:has(.employee-sidebar) .personal-edit-button:hover {
  background: #f4f6ff;
  color: #6269df;
}

body:has(.employee-sidebar) .personal-data-grid div {
  padding: 9px 0;
}

body:has(.employee-sidebar) .personal-data-grid b {
  font-size: 14px;
}

body:has(.employee-sidebar) .personal-data-grid em {
  color: #737b91;
  font-size: 12px;
  font-style: normal;
  line-height: 1.3;
}

body:has(.employee-sidebar) .personal-info-grid .personal-data-grid {
  max-height: 236px;
  overflow: auto;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(98, 105, 223, 0.28) transparent;
}

body:has(.employee-sidebar) .personal-seniority-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

body:has(.employee-sidebar) .personal-seniority-grid div {
  padding: 10px;
  border: 1px solid #e5e9f5;
  border-radius: 12px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .personal-change-modal {
  width: min(980px, calc(100vw - 40px));
  max-height: min(760px, calc(100vh - 40px));
  padding: 20px;
  border: 1px solid #dfe5f4;
  border-radius: 22px;
  background: #fff;
  box-shadow: 0 24px 80px rgba(38, 42, 92, 0.18);
}

body:has(.employee-sidebar) .personal-change-modal::backdrop {
  background: rgba(16, 24, 43, 0.26);
  backdrop-filter: blur(4px);
}

body:has(.employee-sidebar) .personal-change-modal .personal-request-layout {
  grid-template-columns: minmax(0, 1fr) 260px;
}

body:has(.employee-sidebar) .personal-change-modal .personal-request-form textarea {
  min-height: 96px;
}

body:has(.employee-sidebar) .modal-close-form {
  position: absolute;
  top: 14px;
  right: 14px;
}

body:has(.employee-sidebar) .competency-modal-close {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 5;
  margin: 0;
}

body:has(.employee-sidebar) .competency-modal-close button {
  display: grid;
  position: relative;
  width: 38px;
  height: 38px;
  min-height: 38px;
  padding: 0;
  border: 1px solid #dfe5f4;
  border-radius: 14px;
  background: #fff;
  color: #6469e8;
  place-items: center;
  box-shadow: 0 10px 24px rgba(41, 48, 88, 0.12);
  font-size: 0;
  cursor: pointer;
}

body:has(.employee-sidebar) .competency-modal-close button::before,
body:has(.employee-sidebar) .competency-modal-close button::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body:has(.employee-sidebar) .competency-modal-close button::before {
  transform: rotate(45deg);
}

body:has(.employee-sidebar) .competency-modal-close button::after {
  transform: rotate(-45deg);
}

body:has(.employee-sidebar) .evidence-modal,
body:has(.employee-sidebar) .competency-request-modal {
  border: 0;
  border-radius: 28px;
  box-shadow: 0 28px 90px rgba(27, 34, 62, 0.22);
}

body:has(.employee-sidebar) .evidence-modal::backdrop,
body:has(.employee-sidebar) .competency-request-modal::backdrop {
  background: rgba(18, 23, 40, 0.36);
  backdrop-filter: blur(8px);
}

body:has(.employee-sidebar) .evidence-modal .competency-modal-layout,
body:has(.employee-sidebar) .competency-request-modal .competency-modal-layout {
  gap: 16px;
  padding: 30px 32px 32px;
}

body:has(.employee-sidebar) .evidence-modal h3,
body:has(.employee-sidebar) .competency-request-modal h3 {
  margin-right: 48px;
  font-size: 22px;
  font-weight: 640;
}

body:has(.employee-sidebar) .modal-close-form button {
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #dfe5f4;
  border-radius: 999px;
  background: #f8f9ff;
  color: #555dce;
  box-shadow: none;
  font-size: 20px;
  line-height: 1;
}

@media (max-width: 1500px) {
  body:has(.employee-sidebar) .personal-info-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .personal-info-grid,
  body:has(.employee-sidebar) .personal-change-modal .personal-request-layout {
    grid-template-columns: 1fr;
  }
}

/* Digital passport dashboard */
body:has(.employee-sidebar) .passport-hero {
  grid-template-columns: 112px minmax(0, 1fr) 230px;
  align-items: center;
  background:
    radial-gradient(circle at 82% 16%, rgba(98, 105, 223, 0.13), transparent 28%),
    linear-gradient(135deg, #fff 0%, #f8f9ff 100%);
}

body:has(.employee-sidebar) .passport-pills,
body:has(.employee-sidebar) .passport-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body:has(.employee-sidebar) .passport-pills span {
  padding: 8px 10px;
  border: 1px solid #e3e7f5;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.72);
  color: #66708a;
  font-size: 13px;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-score {
  display: grid;
  gap: 12px;
  justify-items: center;
}

body:has(.employee-sidebar) .passport-ring {
  display: grid;
  width: 132px;
  height: 132px;
  border-radius: 50%;
  background: conic-gradient(#6469e8 var(--value), #edf0fa 0);
  color: #0b1632;
  place-items: center;
  position: relative;
}

body:has(.employee-sidebar) .passport-ring::after {
  content: "";
  position: absolute;
  inset: 10px;
  border-radius: 50%;
  background: #fff;
}

body:has(.employee-sidebar) .passport-ring b,
body:has(.employee-sidebar) .passport-ring span {
  position: relative;
  z-index: 1;
}

body:has(.employee-sidebar) .passport-ring b {
  align-self: end;
  font-size: 30px;
}

body:has(.employee-sidebar) .passport-ring span {
  align-self: start;
  color: #7a8298;
  font-size: 12px;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-score ul {
  margin: 0;
  padding: 0;
  color: #737b91;
  font-size: 12px;
  list-style: none;
}

body:has(.employee-sidebar) .passport-overview {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(320px, 0.65fr);
  gap: 16px;
  margin: 16px 0;
}

body:has(.employee-sidebar) .passport-progress-row {
  display: grid;
  grid-template-columns: 190px 52px minmax(180px, 1fr) 132px;
  width: 100%;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border: 0;
  border-bottom: 1px solid #edf0f8;
  background: transparent;
  color: #0b1632;
  text-align: left;
  cursor: pointer;
}

body:has(.employee-sidebar) .passport-progress-row span,
body:has(.employee-sidebar) .passport-progress-row b,
body:has(.employee-sidebar) .passport-progress-row strong {
  font-size: 14px;
}

body:has(.employee-sidebar) .passport-progress-row b {
  color: #5158c9;
}

body:has(.employee-sidebar) .passport-progress-row i,
body:has(.employee-sidebar) .passport-timeline-row i {
  display: block;
  height: 7px;
  border-radius: 999px;
  background: #edf0f8;
  overflow: hidden;
}

body:has(.employee-sidebar) .passport-progress-row i em,
body:has(.employee-sidebar) .passport-timeline-row i em {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6469e8, #7f8cff);
}

body:has(.employee-sidebar) .passport-progress-row strong {
  color: #737b91;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-gap-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f8;
  color: #0b1632;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-gap-row button,
body:has(.employee-sidebar) .passport-link-button,
body:has(.employee-sidebar) .passport-quick-actions button {
  border: 1px solid #dfe5f4;
  border-radius: 12px;
  background: #f8f9ff;
  color: #5158c9;
  font-weight: 800;
  cursor: pointer;
}

body:has(.employee-sidebar) .passport-gap-row button {
  padding: 7px 10px;
}

body:has(.employee-sidebar) .passport-link-button {
  padding: 8px 11px;
}

body:has(.employee-sidebar) .passport-quick-actions {
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .passport-quick-actions button {
  padding: 10px 13px;
}

body:has(.employee-sidebar) .passport-detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  align-items: stretch;
}

body:has(.employee-sidebar) .passport-channel-row {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 11px 0;
  border-bottom: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .passport-channel-row b,
body:has(.employee-sidebar) .passport-channel-row em {
  display: block;
}

body:has(.employee-sidebar) .passport-channel-row em {
  color: #737b91;
  font-style: normal;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .passport-channel-row strong {
  padding: 6px 9px;
  border-radius: 999px;
  font-size: 12px;
}

body:has(.employee-sidebar) .passport-channel-row .is-ok {
  background: #e9f8f0;
  color: #208953;
}

body:has(.employee-sidebar) .passport-channel-row .is-warn {
  background: #fff5df;
  color: #9c6416;
}

body:has(.employee-sidebar) .passport-icon {
  width: 34px;
  height: 34px;
  border-radius: 12px;
  background: #f0f2ff;
  color: #6469e8;
  position: relative;
}

body:has(.employee-sidebar) .passport-icon::after {
  content: "";
  position: absolute;
  inset: 7px;
  background: currentColor;
  -webkit-mask: var(--mask) center / contain no-repeat;
  mask: var(--mask) center / contain no-repeat;
}

body:has(.employee-sidebar) .passport-icon-mail { --mask: url('/assets/icons/solar-broken/letter.svg'); }
body:has(.employee-sidebar) .passport-icon-phone { --mask: url('/assets/icons/solar-broken/shield-user.svg'); }
body:has(.employee-sidebar) .passport-icon-login { --mask: url('/assets/icons/solar-broken/lock.svg'); }

body:has(.employee-sidebar) .passport-position-card h4 {
  margin: 0 0 5px;
  font-size: 18px;
}

body:has(.employee-sidebar) .passport-position-card p {
  margin: 0 0 14px;
  color: #737b91;
}

body:has(.employee-sidebar) .passport-chain {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

body:has(.employee-sidebar) .passport-chain span {
  min-height: 74px;
  padding: 11px;
  border: 1px dashed #dfe5f4;
  border-radius: 16px;
  color: #737b91;
  font-size: 12px;
}

body:has(.employee-sidebar) .passport-chain b {
  display: block;
  margin-top: 4px;
  color: #0b1632;
}

body:has(.employee-sidebar) .passport-meta-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

body:has(.employee-sidebar) .passport-meta-grid div {
  padding: 10px;
  border-radius: 14px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .passport-meta-grid span {
  display: block;
  color: #737b91;
  font-size: 12px;
}

body:has(.employee-sidebar) .passport-meta-grid b {
  display: block;
  margin-top: 4px;
  font-size: 13px;
}

body:has(.employee-sidebar) .passport-timeline-row {
  display: grid;
  grid-template-columns: 128px minmax(120px, 1fr) 92px;
  gap: 12px;
  align-items: center;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .passport-timeline-row span,
body:has(.employee-sidebar) .passport-timeline-row b {
  font-size: 13px;
}

body:has(.employee-sidebar) .passport-empty-smart p {
  margin: 0 0 8px;
  color: #737b91;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-empty-smart ul {
  margin: 0;
  padding-left: 18px;
  color: #737b91;
  line-height: 1.7;
}

body:has(.employee-sidebar) .passport-empty-smart article {
  display: grid;
  gap: 4px;
  padding: 10px 0;
  border-bottom: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .passport-empty-smart article span,
body:has(.employee-sidebar) .passport-empty-smart article em {
  color: #737b91;
  font-style: normal;
}

body:has(.employee-sidebar) .passport-tech-status {
  margin-bottom: 12px;
  padding: 14px;
  border: 1px solid #e3e7f5;
  border-radius: 18px;
  background: linear-gradient(135deg, #fbfcff, #f4f6ff);
}

body:has(.employee-sidebar) .passport-tech-status b,
body:has(.employee-sidebar) .passport-tech-status span {
  display: block;
}

body:has(.employee-sidebar) .passport-tech-status span {
  margin-top: 4px;
  color: #737b91;
}

body:has(.employee-sidebar) .change-modal-fields {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e3e7f5;
  border-radius: 18px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .change-modal-fields[hidden] {
  display: none;
}

body:has(.employee-sidebar) .change-modal-fields h4 {
  margin: 0;
  color: #0b1632;
}

body:has(.employee-sidebar) .change-field-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

body:has(.employee-sidebar) .change-modal-fields input,
body:has(.employee-sidebar) .change-modal-fields select,
body:has(.employee-sidebar) .change-modal-fields textarea {
  width: 100%;
}

.review-request-item {
  display: grid;
  gap: 12px;
}

.review-values {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  margin: 0;
}

.review-values div {
  padding: 10px;
  border: 1px solid #e3e7f5;
  border-radius: 12px;
  background: #fbfcff;
}

.review-values dt {
  color: #737b91;
  font-size: 12px;
  font-weight: 800;
}

.review-values dd {
  margin: 4px 0 0;
  color: #0b1632;
  font-weight: 700;
}

.review-request-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.review-request-actions input {
  flex: 1 1 260px;
  min-width: 220px;
}

@media (max-width: 1400px) {
  body:has(.employee-sidebar) .passport-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 980px) {
  body:has(.employee-sidebar) .passport-hero,
  body:has(.employee-sidebar) .passport-overview,
  body:has(.employee-sidebar) .passport-detail-grid,
  body:has(.employee-sidebar) .change-field-grid {
    grid-template-columns: 1fr;
  }

  .review-values {
    grid-template-columns: 1fr;
  }
}

/* Passport compaction pass */
body:has(.employee-sidebar) .app-main > :not(.employee-sidebar):not(.employee-workbar) {
  max-width: 1760px;
}

body:has(.employee-sidebar) .profile-page-head,
body:has(.employee-sidebar) .passport-hero,
body:has(.employee-sidebar) .passport-overview,
body:has(.employee-sidebar) .passport-detail-grid,
body:has(.employee-sidebar) .personal-activity-card {
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
}

body:has(.employee-sidebar) .profile-page-head {
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .profile-page-head h2 {
  font-size: 24px;
  margin-bottom: 4px;
}

body:has(.employee-sidebar) .profile-page-head p {
  font-size: 14px;
}

body:has(.employee-sidebar) .passport-hero.personal-card-hero {
  grid-template-columns: 92px minmax(0, 1fr) 270px;
  min-height: 136px;
  padding: 18px 22px;
  border-radius: 24px;
  gap: 20px;
}

body:has(.employee-sidebar) .passport-hero .personal-photo {
  width: 86px;
  height: 86px;
  position: relative;
}

body:has(.employee-sidebar) .passport-photo-action {
  position: absolute;
  right: -2px;
  bottom: -2px;
  display: grid;
  width: 30px;
  height: 30px;
  border: 1px solid #dfe5f4;
  border-radius: 999px;
  background: #fff;
  color: #6469e8;
  place-items: center;
  box-shadow: 0 8px 20px rgba(44, 52, 96, 0.14);
  cursor: pointer;
}

body:has(.employee-sidebar) .passport-photo-action::before {
  content: "";
  width: 15px;
  height: 15px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/solar-broken/settings.svg') center / contain no-repeat;
  mask: url('/assets/icons/solar-broken/settings.svg') center / contain no-repeat;
}

body:has(.employee-sidebar) .passport-photo-action input {
  display: none;
}

body:has(.employee-sidebar) .passport-hero .personal-identity h3 {
  margin-bottom: 4px;
  font-size: 25px;
}

body:has(.employee-sidebar) .passport-hero .personal-position,
body:has(.employee-sidebar) .passport-hero .personal-identity p {
  margin: 0 0 4px;
}

body:has(.employee-sidebar) .passport-pills {
  margin-top: 9px;
}

body:has(.employee-sidebar) .passport-pills span {
  padding: 5px 8px;
  font-size: 11px;
  line-height: 1.1;
}

body:has(.employee-sidebar) .passport-hero .personal-actions {
  margin-top: 12px;
}

body:has(.employee-sidebar) .passport-hero .personal-actions .button {
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 13px;
}

body:has(.employee-sidebar) .passport-score {
  grid-template-columns: 108px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  justify-items: start;
}

body:has(.employee-sidebar) .passport-ring {
  width: 104px;
  height: 104px;
}

body:has(.employee-sidebar) .passport-ring::after {
  inset: 8px;
}

body:has(.employee-sidebar) .passport-ring b {
  font-size: 24px;
}

body:has(.employee-sidebar) .passport-score > strong {
  color: #0b1632;
  font-size: 15px;
  line-height: 1.25;
}

body:has(.employee-sidebar) .passport-score ul {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body:has(.employee-sidebar) .passport-score li {
  padding: 4px 8px;
  border-radius: 999px;
  background: #f4f6ff;
}

body:has(.employee-sidebar) .passport-overview {
  grid-template-columns: minmax(0, 1.4fr) minmax(320px, 0.6fr);
  gap: 20px;
  margin-top: 20px;
  margin-bottom: 20px;
}

body:has(.employee-sidebar) .passport-overview .personal-section-card,
body:has(.employee-sidebar) .passport-detail-grid .personal-section-card,
body:has(.employee-sidebar) .personal-activity-card {
  border-radius: 24px;
  padding: 18px 20px;
}

body:has(.employee-sidebar) .passport-completion {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
}

body:has(.employee-sidebar) .passport-completion h3 {
  grid-column: 1 / -1;
  margin-bottom: 2px;
}

body:has(.employee-sidebar) .passport-progress-row {
  grid-template-columns: minmax(128px, 1fr) 40px;
  gap: 6px 10px;
  padding: 8px 0;
  border-bottom-color: #eef2fb;
}

body:has(.employee-sidebar) .passport-progress-row i {
  grid-column: 1 / -1;
  height: 6px;
}

body:has(.employee-sidebar) .passport-progress-row strong {
  grid-column: 1 / -1;
  font-size: 11px;
}

body:has(.employee-sidebar) .passport-progress-row span,
body:has(.employee-sidebar) .passport-progress-row b {
  font-size: 13px;
}

body:has(.employee-sidebar) .passport-gaps {
  display: grid;
  align-content: start;
  gap: 8px;
}

body:has(.employee-sidebar) .passport-gap-row {
  min-height: 38px;
  padding: 7px 0;
  font-size: 13px;
}

body:has(.employee-sidebar) .passport-gap-row button {
  min-height: 30px;
  padding: 5px 9px;
  border-radius: 10px;
  font-size: 12px;
}

body:has(.employee-sidebar) .passport-detail-grid {
  grid-template-columns: minmax(360px, 1.05fr) minmax(460px, 1.35fr) minmax(340px, 1fr);
  gap: 20px;
  align-items: stretch;
}

body:has(.employee-sidebar) .passport-position-card {
  grid-row: span 2;
}

body:has(.employee-sidebar) .passport-position-card h4 {
  font-size: 20px;
}

body:has(.employee-sidebar) .passport-chain span {
  min-height: 64px;
  padding: 10px;
}

body:has(.employee-sidebar) .passport-channel-row {
  padding: 9px 0;
}

body:has(.employee-sidebar) .passport-timeline-row {
  grid-template-columns: 116px minmax(90px, 1fr) 86px;
  padding: 8px 0;
}

body:has(.employee-sidebar) .passport-empty-smart {
  min-height: 184px;
}

body:has(.employee-sidebar) .passport-empty-smart ul {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px 14px;
  padding-left: 16px;
  line-height: 1.35;
}

body:has(.employee-sidebar) .passport-tech-card {
  min-height: 184px;
}

body:has(.employee-sidebar) .personal-activity-card {
  margin-top: 20px;
}

body:has(.employee-sidebar) .personal-activity-card .personal-section-heading {
  margin-bottom: 12px;
}

body:has(.employee-sidebar) .passport-quick-actions {
  padding-bottom: 12px;
  border-bottom: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .passport-quick-actions button {
  min-height: 34px;
  padding: 7px 11px;
  font-size: 13px;
}

body:has(.employee-sidebar) .personal-tab-buttons {
  margin: 12px 0;
}

body:has(.employee-sidebar) .personal-empty-state {
  min-height: 144px;
  max-height: 160px;
}

body:has(.employee-sidebar) .personal-request-list,
body:has(.employee-sidebar) .personal-history-list {
  min-height: 0;
}

body:has(.employee-sidebar) .change-modal-current {
  display: grid;
  gap: 4px;
  padding: 14px 16px;
  border: 1px solid #e7e1ff;
  border-radius: 18px;
  background: linear-gradient(135deg, #f7f4ff, #fff);
}

body:has(.employee-sidebar) .change-modal-current__label {
  color: #6f63dd;
  font-size: 11px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

body:has(.employee-sidebar) .change-modal-current strong {
  color: #0b1632;
  font-size: 17px;
}

body:has(.employee-sidebar) .change-modal-current small {
  color: #737b91;
}

body:has(.employee-sidebar) .change-field-wide {
  grid-column: 1 / -1;
}

body:has(.employee-sidebar) .change-modal-fields[hidden] {
  display: none !important;
}

@media (max-width: 1500px) {
  body:has(.employee-sidebar) .passport-detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.employee-sidebar) .passport-position-card {
    grid-row: auto;
  }
}

@media (max-width: 1100px) {
  body:has(.employee-sidebar) .passport-hero.personal-card-hero,
  body:has(.employee-sidebar) .passport-overview,
  body:has(.employee-sidebar) .passport-detail-grid,
  body:has(.employee-sidebar) .passport-completion {
    grid-template-columns: 1fr;
  }
}

/* PDS and self-assessment period */
body:has(.employee-sidebar) .period-page-head,
body:has(.employee-sidebar) .period-cycle-card,
body:has(.employee-sidebar) .period-kpi-grid,
body:has(.employee-sidebar) .period-layout {
  max-width: 1760px;
  margin-left: auto;
  margin-right: auto;
}

body:has(.employee-sidebar) .period-page-head {
  margin-bottom: 16px;
}

body:has(.employee-sidebar) .period-page-head h2 {
  margin: 0 0 4px;
  color: #0b1632;
  font-size: 26px;
}

body:has(.employee-sidebar) .period-page-head p {
  margin: 0;
  color: #737b91;
  font-weight: 700;
}

body:has(.employee-sidebar) .period-cycle-card,
body:has(.employee-sidebar) .period-card,
body:has(.employee-sidebar) .period-kpi-grid article {
  border: 1px solid #dfe5f4;
  border-radius: 24px;
  background: #fff;
  box-shadow: 0 18px 42px rgba(43, 52, 93, 0.06);
}

body:has(.employee-sidebar) .period-cycle-card {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0;
  margin-bottom: 18px;
  overflow: hidden;
}

body:has(.employee-sidebar) .period-cycle-step {
  display: grid;
  grid-template-columns: 54px minmax(0, 1fr) 22px;
  gap: 12px;
  align-items: center;
  min-height: 124px;
  padding: 20px;
  position: relative;
}

body:has(.employee-sidebar) .period-cycle-step > span,
body:has(.employee-sidebar) .period-icon {
  width: 46px;
  height: 46px;
  border-radius: 14px;
  background: #f0f2ff;
  color: #6469e8;
  position: relative;
}

body:has(.employee-sidebar) .period-cycle-step > span::after,
body:has(.employee-sidebar) .period-icon::after {
  content: "";
  position: absolute;
  inset: 11px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/solar-broken/letter.svg') center / contain no-repeat;
  mask: url('/assets/icons/solar-broken/letter.svg') center / contain no-repeat;
}

body:has(.employee-sidebar) .period-cycle-step:nth-child(1) > span::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/letter.svg');
  mask-image: url('/assets/icons/solar-broken/letter.svg');
}

body:has(.employee-sidebar) .period-cycle-step:nth-child(2) > span::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/shield-user.svg');
  mask-image: url('/assets/icons/solar-broken/shield-user.svg');
}

body:has(.employee-sidebar) .period-cycle-step:nth-child(3) > span::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/case.svg');
  mask-image: url('/assets/icons/solar-broken/case.svg');
}

body:has(.employee-sidebar) .period-cycle-step:nth-child(4) > span::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/settings.svg');
  mask-image: url('/assets/icons/solar-broken/settings.svg');
}

body:has(.employee-sidebar) .period-icon-calendar::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/calendar.svg');
  mask-image: url('/assets/icons/solar-broken/calendar.svg');
}

body:has(.employee-sidebar) .period-icon-roles::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/shield-user.svg');
  mask-image: url('/assets/icons/solar-broken/shield-user.svg');
}

body:has(.employee-sidebar) .period-icon-weight::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/chart.svg');
  mask-image: url('/assets/icons/solar-broken/chart.svg');
}

body:has(.employee-sidebar) .period-icon-check::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/case.svg');
  mask-image: url('/assets/icons/solar-broken/case.svg');
}

body:has(.employee-sidebar) .period-icon-deadline::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/bell.svg');
  mask-image: url('/assets/icons/solar-broken/bell.svg');
}

body:has(.employee-sidebar) .period-tone-warning > span {
  background: #fff7df;
  color: #e2a423;
}

body:has(.employee-sidebar) .period-tone-success > span {
  background: #eaf9f0;
  color: #28a864;
}

body:has(.employee-sidebar) .period-tone-blue > span {
  background: #edf4ff;
  color: #4578ee;
}

body:has(.employee-sidebar) .period-cycle-step h3 {
  margin: 0 0 6px;
  font-size: 15px;
}

body:has(.employee-sidebar) .period-cycle-step b,
body:has(.employee-sidebar) .period-status {
  display: inline-flex;
  width: max-content;
  padding: 5px 9px;
  border-radius: 999px;
  background: #f0f2ff;
  color: #5158c9;
  font-size: 12px;
}

body:has(.employee-sidebar) .period-cycle-step p {
  margin: 8px 0 0;
  color: #737b91;
  font-size: 13px;
  line-height: 1.35;
}

body:has(.employee-sidebar) .period-cycle-step i {
  width: 18px;
  height: 18px;
  border-top: 2px solid #b6bed4;
  border-right: 2px solid #b6bed4;
  transform: rotate(45deg);
}

body:has(.employee-sidebar) .period-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 16px;
  margin-bottom: 18px;
}

body:has(.employee-sidebar) .period-kpi-grid article {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  min-height: 94px;
  padding: 16px;
}

body:has(.employee-sidebar) .period-kpi-grid small,
body:has(.employee-sidebar) .period-kpi-grid em {
  display: block;
  color: #737b91;
  font-style: normal;
  font-weight: 700;
}

body:has(.employee-sidebar) .period-kpi-grid b {
  display: block;
  color: #0b1632;
  font-size: 24px;
}

body:has(.employee-sidebar) .period-layout {
  display: grid;
  grid-template-columns: minmax(420px, 0.95fr) minmax(440px, 0.95fr) minmax(320px, 0.65fr);
  gap: 18px;
  align-items: start;
}

body:has(.employee-sidebar) .period-card {
  padding: 20px;
}

body:has(.employee-sidebar) .period-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  margin-bottom: 16px;
}

body:has(.employee-sidebar) .period-card-head h3,
body:has(.employee-sidebar) .period-card h3 {
  margin: 0;
  color: #0b1632;
  font-size: 21px;
}

body:has(.employee-sidebar) .period-card-head p {
  margin: 4px 0 0;
  color: #737b91;
}

body:has(.employee-sidebar) .period-status-success {
  background: #eaf9f0;
  color: #27965b;
}

body:has(.employee-sidebar) .period-status-warning {
  background: #fff4db;
  color: #a66b10;
}

body:has(.employee-sidebar) .period-status-blue {
  background: #edf4ff;
  color: #416de3;
}

body:has(.employee-sidebar) .period-role-list,
body:has(.employee-sidebar) .period-side {
  display: grid;
  gap: 12px;
}

body:has(.employee-sidebar) .period-role-item {
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6ebf6;
  border-radius: 18px;
  background: #fff;
}

body:has(.employee-sidebar) .period-role-item.is-active {
  border-color: #8b84ff;
  box-shadow: inset 3px 0 0 #6469e8;
}

body:has(.employee-sidebar) .period-role-main {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
}

body:has(.employee-sidebar) .period-role-icon {
  width: 42px;
  height: 42px;
  border-radius: 13px;
  background: #f0f2ff;
  color: #6469e8;
  position: relative;
}

body:has(.employee-sidebar) .period-role-icon::after {
  content: "";
  position: absolute;
  inset: 10px;
  background: currentColor;
  -webkit-mask: url('/assets/icons/solar-broken/shield-user.svg') center / contain no-repeat;
  mask: url('/assets/icons/solar-broken/shield-user.svg') center / contain no-repeat;
}

body:has(.employee-sidebar) .period-role-item:nth-child(2n) .period-role-icon::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/case.svg');
  mask-image: url('/assets/icons/solar-broken/case.svg');
}

body:has(.employee-sidebar) .period-role-item:nth-child(3n) .period-role-icon::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/home.svg');
  mask-image: url('/assets/icons/solar-broken/home.svg');
}

body:has(.employee-sidebar) .period-role-item:nth-child(4n) .period-role-icon::after {
  -webkit-mask-image: url('/assets/icons/solar-broken/chart.svg');
  mask-image: url('/assets/icons/solar-broken/chart.svg');
}

body:has(.employee-sidebar) .period-role-item h4,
body:has(.employee-sidebar) .period-assessment-box h4,
body:has(.employee-sidebar) .period-result-item h5 {
  margin: 0;
  color: #0b1632;
}

body:has(.employee-sidebar) .period-role-item p,
body:has(.employee-sidebar) .period-assessment-box p {
  margin: 5px 0 0;
  color: #737b91;
}

body:has(.employee-sidebar) .period-role-meta {
  display: flex;
  gap: 16px;
  color: #737b91;
  font-size: 13px;
  font-weight: 700;
}

body:has(.employee-sidebar) .period-role-meta b {
  color: #5158c9;
}

body:has(.employee-sidebar) .period-role-detail {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 10px;
  border-top: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .period-role-detail small {
  color: #737b91;
  font-weight: 800;
}

body:has(.employee-sidebar) .period-select-label {
  display: grid;
  gap: 8px;
  color: #737b91;
  font-weight: 800;
}

body:has(.employee-sidebar) .period-select-label select,
body:has(.employee-sidebar) .period-self-form input,
body:has(.employee-sidebar) .period-self-form textarea {
  width: 100%;
  border: 1px solid #dfe5f4;
  border-radius: 13px;
  background: #fbfcff;
  color: #0b1632;
  padding: 11px 13px;
}

body:has(.employee-sidebar) .period-assessment-box {
  display: grid;
  gap: 14px;
  margin-top: 14px;
}

body:has(.employee-sidebar) .period-task-head,
body:has(.employee-sidebar) .period-result-item {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 14px;
  border: 1px solid #e6ebf6;
  border-radius: 18px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .period-task-head b,
body:has(.employee-sidebar) .period-result-item span {
  color: #5158c9;
  font-weight: 850;
}

body:has(.employee-sidebar) .period-self-form {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding: 14px;
  border: 1px solid #e6ebf6;
  border-radius: 18px;
}

body:has(.employee-sidebar) .period-self-form label:nth-child(4),
body:has(.employee-sidebar) .period-self-form button {
  grid-column: 1 / -1;
}

body:has(.employee-sidebar) .period-self-form textarea {
  min-height: 86px;
}

body:has(.employee-sidebar) .period-file-action {
  display: grid;
  min-height: 46px;
  border: 1px dashed #cfc7ff;
  border-radius: 13px;
  color: #5158c9;
  place-items: center;
}

body:has(.employee-sidebar) .period-file-action input {
  display: none;
}

body:has(.employee-sidebar) .period-submit-form .button {
  width: 100%;
}

body:has(.employee-sidebar) .period-next-card ol {
  display: grid;
  gap: 14px;
  margin: 16px 0 0;
  padding: 0;
  list-style: none;
}

body:has(.employee-sidebar) .period-next-card li {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
}

body:has(.employee-sidebar) .period-next-card li b {
  display: grid;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: #f0f2ff;
  color: #5158c9;
  place-items: center;
}

body:has(.employee-sidebar) .period-next-card li.is-done b {
  background: #eaf9f0;
  color: #27965b;
}

body:has(.employee-sidebar) .period-next-card span,
body:has(.employee-sidebar) .period-next-card small {
  display: block;
}

body:has(.employee-sidebar) .period-next-card span {
  color: #0b1632;
  font-weight: 800;
}

body:has(.employee-sidebar) .period-next-card small {
  color: #737b91;
  font-weight: 600;
}

body:has(.employee-sidebar) .period-history-card article {
  padding: 12px 0;
  border-bottom: 1px solid #edf0f8;
}

body:has(.employee-sidebar) .period-history-card b,
body:has(.employee-sidebar) .period-history-card span {
  display: block;
}

body:has(.employee-sidebar) .period-history-card span {
  color: #737b91;
}

body:has(.employee-sidebar) .period-radar-lite {
  position: relative;
  width: 150px;
  height: 120px;
  margin: 14px auto;
  background: radial-gradient(circle, rgba(100,105,232,.14) 0 38%, transparent 39%), conic-gradient(from 18deg, rgba(100,105,232,.18), rgba(100,105,232,.04), rgba(100,105,232,.18));
  clip-path: polygon(50% 0, 96% 35%, 78% 100%, 22% 100%, 4% 35%);
}

body:has(.employee-sidebar) .period-competency-row {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid #edf0f8;
  color: #737b91;
}

body:has(.employee-sidebar) .period-competency-row b {
  color: #5158c9;
}

body:has(.employee-sidebar) .period-competency-card a {
  display: inline-flex;
  margin-top: 12px;
  color: #5158c9;
  font-weight: 800;
}

body:has(.employee-sidebar) .period-empty {
  display: grid;
  min-height: 120px;
  border: 1px solid #edf0f8;
  border-radius: 18px;
  color: #737b91;
  place-items: center;
  text-align: center;
}

body:has(.employee-sidebar) .period-empty.compact {
  min-height: 70px;
  padding: 14px;
}

@media (max-width: 1500px) {
  body:has(.employee-sidebar) .period-layout {
    grid-template-columns: 1fr 1fr;
  }

  body:has(.employee-sidebar) .period-side {
    grid-column: 1 / -1;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1100px) {
  body:has(.employee-sidebar) .period-cycle-card,
  body:has(.employee-sidebar) .period-kpi-grid,
  body:has(.employee-sidebar) .period-layout,
  body:has(.employee-sidebar) .period-side,
  body:has(.employee-sidebar) .period-self-form,
  body:has(.employee-sidebar) .period-role-detail {
    grid-template-columns: 1fr;
  }
}

/* Passport map and modal polish */
body:has(.employee-sidebar) .passport-overview {
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.55fr);
}

body:has(.employee-sidebar) .passport-completion {
  padding: 18px 20px 20px;
  background: #fff;
}

body:has(.employee-sidebar) .passport-completion h3 {
  margin: 0 0 12px;
  font-size: 20px;
}

body:has(.employee-sidebar) .passport-progress-row {
  min-height: 64px;
  padding: 10px 0;
  border-radius: 0;
  background: transparent !important;
  box-shadow: none !important;
  border-bottom: 1px solid #eef2fb;
}

body:has(.employee-sidebar) .passport-progress-row:hover {
  color: #5158c9;
}

body:has(.employee-sidebar) .passport-progress-row i {
  background: #eef2fb;
}

body:has(.employee-sidebar) .passport-progress-row strong {
  color: #747d95;
  font-size: 12px;
  font-weight: 700;
}

body:has(.employee-sidebar) .passport-progress-row span {
  font-weight: 760;
}

body:has(.employee-sidebar) .passport-gaps {
  padding: 18px 20px 20px;
}

body:has(.employee-sidebar) .personal-change-modal {
  width: min(920px, calc(100vw - 48px));
  max-height: min(820px, calc(100vh - 48px));
  padding: 0;
  border: 0;
  border-radius: 28px;
  background: #fff;
  overflow: hidden;
  box-shadow: 0 28px 90px rgba(27, 34, 62, 0.22);
}

body:has(.employee-sidebar) .personal-change-modal::backdrop {
  background: rgba(18, 23, 40, 0.36);
  backdrop-filter: blur(8px);
}

body:has(.employee-sidebar) .personal-change-modal .personal-request-layout {
  display: block;
  max-height: inherit;
  overflow: auto;
  padding: 30px 32px 32px;
}

body:has(.employee-sidebar) .personal-change-modal h3 {
  margin: 0 46px 8px 0;
  font-size: 22px;
}

body:has(.employee-sidebar) .personal-change-modal h3 + p {
  max-width: 680px;
  margin: 0 0 20px;
  color: #69738a;
  font-size: 15px;
  line-height: 1.45;
}

body:has(.employee-sidebar) .modal-close-form {
  position: absolute;
  top: 18px;
  right: 18px;
  z-index: 3;
  margin: 0;
}

body:has(.employee-sidebar) .modal-close-form button {
  display: grid;
  width: 38px;
  height: 38px;
  padding: 0;
  border: 1px solid #dfe5f4;
  border-radius: 14px;
  background: #fff;
  color: #6469e8;
  place-items: center;
  box-shadow: 0 10px 24px rgba(41, 48, 88, 0.12);
  font-size: 0;
  cursor: pointer;
}

body:has(.employee-sidebar) .modal-close-form button::before,
body:has(.employee-sidebar) .modal-close-form button::after {
  content: "";
  position: absolute;
  width: 15px;
  height: 2px;
  border-radius: 999px;
  background: currentColor;
}

body:has(.employee-sidebar) .modal-close-form button::before {
  transform: rotate(45deg);
}

body:has(.employee-sidebar) .modal-close-form button::after {
  transform: rotate(-45deg);
}

body:has(.employee-sidebar) .personal-request-form {
  gap: 14px;
}

body:has(.employee-sidebar) .change-modal-current {
  padding: 0 0 12px;
  border: 0;
  border-bottom: 1px solid #eef2fb;
  border-radius: 0;
  background: transparent;
}

body:has(.employee-sidebar) .change-modal-current__label {
  color: #737b91;
}

body:has(.employee-sidebar) .change-modal-current strong {
  font-size: 16px;
}

body:has(.employee-sidebar) .change-modal-fields {
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}

body:has(.employee-sidebar) .change-modal-fields h4 {
  margin: 4px 0 0;
  font-size: 17px;
}

body:has(.employee-sidebar) .change-field-grid {
  gap: 12px;
}

body:has(.employee-sidebar) .personal-request-form input,
body:has(.employee-sidebar) .personal-request-form select,
body:has(.employee-sidebar) .personal-request-form textarea {
  min-height: 48px;
  border-radius: 14px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .personal-change-modal .personal-request-form textarea {
  min-height: 82px;
}

body:has(.employee-sidebar) .file-action-wide {
  min-height: 50px;
  border: 1px dashed #cfc7ff;
  border-radius: 14px;
  background: #faf8ff;
}

body:has(.employee-sidebar) .personal-help-card {
  display: none !important;
}

/* Unified employee UI rhythm */
body:has(.employee-sidebar) {
  --ui-radius: 24px;
  --ui-radius-sm: 16px;
  --ui-gap: 20px;
  --ui-card-pad: 22px;
  --ui-text: #0f1b33;
  --ui-muted: #6f7890;
  --ui-line: #dfe6f5;
  --ui-surface: #fff;
  --ui-accent: #6267e9;
  --ui-accent-soft: #f1f0ff;
  color: var(--ui-text);
  font-weight: 450;
  letter-spacing: 0;
}

body:has(.employee-sidebar) h1,
body:has(.employee-sidebar) h2,
body:has(.employee-sidebar) h3,
body:has(.employee-sidebar) h4,
body:has(.employee-sidebar) h5,
body:has(.employee-sidebar) strong,
body:has(.employee-sidebar) b {
  letter-spacing: 0;
}

body:has(.employee-sidebar) h1,
body:has(.employee-sidebar) h2 {
  font-weight: 640;
  line-height: 1.16;
}

body:has(.employee-sidebar) h3,
body:has(.employee-sidebar) h4 {
  font-weight: 610;
  line-height: 1.2;
}

body:has(.employee-sidebar) p,
body:has(.employee-sidebar) span,
body:has(.employee-sidebar) small,
body:has(.employee-sidebar) em,
body:has(.employee-sidebar) label,
body:has(.employee-sidebar) li {
  line-height: 1.45;
}

body:has(.employee-sidebar) small,
body:has(.employee-sidebar) em,
body:has(.employee-sidebar) .muted {
  color: var(--ui-muted);
  font-style: normal;
}

body:has(.employee-sidebar) .employee-content,
body:has(.employee-sidebar) .service-page,
body:has(.employee-sidebar) .education-page,
body:has(.employee-sidebar) .competency-page,
body:has(.employee-sidebar) .period-page,
body:has(.employee-sidebar) .passport-page {
  max-width: 1760px;
}

body:has(.employee-sidebar) .service-card,
body:has(.employee-sidebar) .education-card,
body:has(.employee-sidebar) .competency-card,
body:has(.employee-sidebar) .competency-workspace,
body:has(.employee-sidebar) .period-card,
body:has(.employee-sidebar) .period-cycle-card,
body:has(.employee-sidebar) .panel,
body:has(.employee-sidebar) .passport-card,
body:has(.employee-sidebar) .passport-completion,
body:has(.employee-sidebar) .passport-gaps,
body:has(.employee-sidebar) .kpi-card {
  border: 1px solid var(--ui-line);
  border-radius: var(--ui-radius);
  background: var(--ui-surface);
  box-shadow: 0 18px 48px rgba(40, 47, 78, 0.06);
}

body:has(.employee-sidebar) .service-card,
body:has(.employee-sidebar) .education-card,
body:has(.employee-sidebar) .period-card,
body:has(.employee-sidebar) .panel,
body:has(.employee-sidebar) .passport-card {
  padding: var(--ui-card-pad);
}

body:has(.employee-sidebar) .service-heading,
body:has(.employee-sidebar) .education-page-head,
body:has(.employee-sidebar) .competency-page-head,
body:has(.employee-sidebar) .period-page-head {
  margin: 0 0 18px;
}

body:has(.employee-sidebar) .service-heading h2,
body:has(.employee-sidebar) .education-page-head h2,
body:has(.employee-sidebar) .competency-page-head h2,
body:has(.employee-sidebar) .period-page-head h2 {
  margin: 0 0 6px;
  font-size: 28px;
  font-weight: 640;
}

body:has(.employee-sidebar) .service-heading p,
body:has(.employee-sidebar) .education-page-head p,
body:has(.employee-sidebar) .competency-page-head p,
body:has(.employee-sidebar) .period-page-head p {
  margin: 0;
  color: var(--ui-muted);
  font-size: 15px;
  font-weight: 450;
}

body:has(.employee-sidebar) .button,
body:has(.employee-sidebar) button,
body:has(.employee-sidebar) .course-button,
body:has(.employee-sidebar) .passport-link-button {
  font-family: inherit;
  font-weight: 600;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .button,
body:has(.employee-sidebar) .course-button,
body:has(.employee-sidebar) .passport-link-button,
body:has(.employee-sidebar) .settings-tabs button,
body:has(.employee-sidebar) .education-tabs button,
body:has(.employee-sidebar) .competency-filter-tabs button,
body:has(.employee-sidebar) .service-filter-tabs button,
body:has(.employee-sidebar) .segmented button {
  min-height: 42px;
  border-radius: 14px;
}

body:has(.employee-sidebar) input,
body:has(.employee-sidebar) select,
body:has(.employee-sidebar) textarea {
  font-family: inherit;
  font-size: 15px;
  font-weight: 450;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .employee-sidebar {
  font-size: 14px;
}

body:has(.employee-sidebar) .employee-sidebar h1 {
  font-size: 30px;
  font-weight: 620;
}

body:has(.employee-sidebar) .employee-sidebar nav a {
  min-height: 50px;
  font-size: 15px;
  font-weight: 560;
}

body:has(.employee-sidebar) .employee-sidebar nav h2 {
  margin: 24px 0 8px;
  font-size: 12px;
  font-weight: 680;
  color: #9aa3b7;
}

body:has(.employee-sidebar) .workspace-tabs {
  min-height: 70px;
  padding: 0 22px;
}

body:has(.employee-sidebar) .workspace-tab {
  min-height: 64px;
  gap: 10px;
  font-size: 15px;
  font-weight: 560;
}

body:has(.employee-sidebar) .workspace-tab::before,
body:has(.employee-sidebar) .employee-sidebar nav a::before,
body:has(.employee-sidebar) .profile-icon-tile::before,
body:has(.employee-sidebar) .kpi-icon::before {
  opacity: 0.95;
}

body:has(.employee-sidebar) .kpi-grid {
  gap: 18px;
}

body:has(.employee-sidebar) .kpi-card {
  min-height: 132px;
  padding: 18px 20px;
  grid-template-columns: 56px minmax(0, 1fr);
  align-items: center;
}

body:has(.employee-sidebar) .kpi-card > span:not(.kpi-icon) {
  font-size: 13px;
  font-weight: 680;
}

body:has(.employee-sidebar) .kpi-card strong {
  font-size: 32px;
  font-weight: 640;
}

body:has(.employee-sidebar) .kpi-card em {
  font-size: 14px;
  font-weight: 500;
}

body:has(.employee-sidebar) .profile-icon-tile,
body:has(.employee-sidebar) .kpi-icon {
  flex: 0 0 auto;
}

body:has(.employee-sidebar) .education-kpi,
body:has(.employee-sidebar) .competency-metric,
body:has(.employee-sidebar) .period-kpi-grid article,
body:has(.employee-sidebar) .notification-summary article {
  min-height: 112px;
  padding: 18px 20px;
}

body:has(.employee-sidebar) .education-kpi strong,
body:has(.employee-sidebar) .competency-metric strong,
body:has(.employee-sidebar) .period-kpi-grid b,
body:has(.employee-sidebar) .notification-summary strong {
  font-size: 30px;
  font-weight: 640;
}

body:has(.employee-sidebar) .education-material-table article,
body:has(.employee-sidebar) .course-row,
body:has(.employee-sidebar) .competency-map-card,
body:has(.employee-sidebar) .period-role-item,
body:has(.employee-sidebar) .support-request-list article,
body:has(.employee-sidebar) .notification-card {
  border-radius: 18px;
}

body:has(.employee-sidebar) .course-row {
  min-height: 86px;
  gap: 14px;
}

body:has(.employee-sidebar) .course-row h4,
body:has(.employee-sidebar) .competency-map-card h3,
body:has(.employee-sidebar) .period-role-item h4 {
  font-size: 17px;
  font-weight: 610;
}

body:has(.employee-sidebar) .education-material-table {
  max-height: 520px;
}

body:has(.employee-sidebar) .education-material-table article {
  min-height: 54px;
}

body:has(.employee-sidebar) .education-material-table b {
  font-weight: 610;
}

body:has(.employee-sidebar) .service-empty {
  min-height: 150px;
  border-radius: 18px;
}

body:has(.employee-sidebar) .service-empty.compact,
body:has(.employee-sidebar) .education-empty.slim {
  min-height: 96px;
}

body:has(.employee-sidebar) .settings-card-grid,
body:has(.employee-sidebar) .settings-info-grid,
body:has(.employee-sidebar) .education-kpi-grid,
body:has(.employee-sidebar) .competency-metrics,
body:has(.employee-sidebar) .period-kpi-grid,
body:has(.employee-sidebar) .notification-summary {
  gap: 18px;
}

body:has(.employee-sidebar) .settings-info-grid article {
  min-height: 92px;
  padding: 18px 20px;
}

body:has(.employee-sidebar) .settings-info-grid b {
  font-size: 17px;
  font-weight: 610;
  overflow-wrap: anywhere;
}

body:has(.employee-sidebar) .settings-toggle {
  min-height: 34px;
}

body.employee-sidebar-collapsed .employee-sidebar {
  width: 96px;
}

body.employee-sidebar-collapsed .employee-sidebar h1,
body.employee-sidebar-collapsed .employee-sidebar nav h2,
body.employee-sidebar-collapsed .employee-sidebar nav a span {
  display: none;
}

body.employee-sidebar-collapsed .employee-sidebar nav a {
  justify-content: center;
  padding: 0;
}

html[data-kontur-theme="dark"] body:has(.employee-sidebar) {
  background: #101426;
}

html[data-kontur-theme="dark"] body:has(.employee-sidebar) .employee-main,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .employee-content {
  background: #101426;
  color: #eef2ff;
}

html[data-kontur-theme="dark"] body:has(.employee-sidebar) .service-card,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .education-card,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .period-card,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .panel,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .passport-card,
html[data-kontur-theme="dark"] body:has(.employee-sidebar) .workspace-tabs {
  background: #171d33;
  border-color: #293252;
  color: #eef2ff;
}

body[data-kontur-density="compact"]:has(.employee-sidebar) {
  --ui-gap: 14px;
  --ui-card-pad: 18px;
}

body[data-kontur-density="spacious"]:has(.employee-sidebar) {
  --ui-gap: 26px;
  --ui-card-pad: 28px;
}

/* Employee department contour */
body:has(.employee-sidebar) .department-page {
  display: grid;
  gap: 18px;
}

body:has(.employee-sidebar) .department-hero-card,
body:has(.employee-sidebar) .department-people-card,
body:has(.employee-sidebar) .department-competency-panel,
body:has(.employee-sidebar) .department-top-card {
  border: 1px solid #dfe5f4;
  border-radius: 24px;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 18px 48px rgba(38, 42, 92, 0.07);
}

body:has(.employee-sidebar) .department-hero-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 22px;
  min-height: 150px;
  padding: 24px;
  background:
    radial-gradient(circle at 82% 20%, rgba(99, 105, 232, 0.11), transparent 0 32%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.98), rgba(247, 249, 255, 0.92));
}

body:has(.employee-sidebar) .department-eyebrow {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--color-primary-700);
  font-size: 13px;
  font-weight: 650;
}

body:has(.employee-sidebar) .department-hero-card h2,
body:has(.employee-sidebar) .department-section-head h3,
body:has(.employee-sidebar) .department-top-card h3 {
  margin: 0;
  color: var(--text-main);
}

body:has(.employee-sidebar) .department-hero-card h2 {
  font-size: 28px;
}

body:has(.employee-sidebar) .department-hero-card p,
body:has(.employee-sidebar) .department-section-head p {
  margin: 6px 0 0;
  color: #737b91;
}

body:has(.employee-sidebar) .department-kpi-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  gap: 10px;
}

body:has(.employee-sidebar) .department-kpi-strip article {
  min-width: 128px;
  padding: 14px 16px;
  border: 1px solid #e4e9f7;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.78);
}

body:has(.employee-sidebar) .department-kpi-strip span {
  display: block;
  color: #7a8298;
  font-size: 12px;
}

body:has(.employee-sidebar) .department-kpi-strip b {
  display: block;
  margin-top: 6px;
  color: var(--color-primary-700);
  font-size: 26px;
}

body:has(.employee-sidebar) .department-people-card,
body:has(.employee-sidebar) .department-competency-panel,
body:has(.employee-sidebar) .department-top-card {
  padding: 20px;
}

body:has(.employee-sidebar) .department-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}

body:has(.employee-sidebar) .department-section-head.compact {
  align-items: center;
}

body:has(.employee-sidebar) .department-section-head.compact span {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 0 12px;
  border-radius: 999px;
  background: #f4f6ff;
  color: var(--color-primary-700);
  font-weight: 650;
}

body:has(.employee-sidebar) .department-people-strip {
  display: flex;
  gap: 13px;
  overflow-x: auto;
  padding: 4px 2px 10px;
}

body:has(.employee-sidebar) .department-person {
  position: relative;
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 74px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #6f7890;
}

body:has(.employee-sidebar) .department-person::after {
  content: "";
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d8dff2;
}

body:has(.employee-sidebar) .department-person.is-active::after {
  background: var(--color-primary-500);
}

body:has(.employee-sidebar) .department-person-photo {
  display: grid;
  place-items: center;
  width: 58px;
  height: 58px;
  overflow: hidden;
  border: 1px solid #dfe5f4;
  border-radius: 50%;
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
  box-shadow: 0 12px 28px rgba(38, 42, 92, 0.10);
}

body:has(.employee-sidebar) .department-person.is-active .department-person-photo {
  border-color: rgba(99, 105, 232, 0.55);
  box-shadow: 0 14px 32px rgba(99, 105, 232, 0.18);
}

body:has(.employee-sidebar) .department-person-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
}

body:has(.employee-sidebar) .department-person-photo em {
  color: var(--color-primary-700);
  font-style: normal;
  font-weight: 700;
}

body:has(.employee-sidebar) .department-person small {
  min-height: 22px;
  padding: 2px 8px;
  border-radius: 999px;
  background: #f1f4ff;
  color: #6269df;
  font-size: 12px;
}

body:has(.employee-sidebar) .department-detail-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 18px;
}

body:has(.employee-sidebar) .department-competency-panel {
  display: none;
}

body:has(.employee-sidebar) .department-competency-panel.is-active {
  display: block;
}

body:has(.employee-sidebar) .department-competency-list {
  display: grid;
  gap: 10px;
}

body:has(.employee-sidebar) .department-competency-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(120px, 220px) 32px;
  align-items: center;
  gap: 14px;
  padding: 12px;
  border: 1px solid #edf1fa;
  border-radius: 16px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .department-competency-row b,
body:has(.employee-sidebar) .department-top-list b {
  display: block;
  color: var(--text-main);
}

body:has(.employee-sidebar) .department-competency-row small,
body:has(.employee-sidebar) .department-top-list small {
  display: block;
  margin-top: 3px;
  color: #7a8298;
}

body:has(.employee-sidebar) .department-level-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #edf1fa;
}

body:has(.employee-sidebar) .department-level-bar span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, #6269df, #9366e8);
}

body:has(.employee-sidebar) .department-empty {
  padding: 28px;
  border: 1px dashed #dfe5f4;
  border-radius: 18px;
  color: #737b91;
  background: #fbfcff;
}

body:has(.employee-sidebar) .department-top-card {
  align-self: start;
}

body:has(.employee-sidebar) .department-top-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

body:has(.employee-sidebar) .department-top-list div {
  display: grid;
  grid-template-columns: 30px minmax(0, 1fr);
  gap: 10px;
  padding: 11px;
  border: 1px solid #edf1fa;
  border-radius: 16px;
  background: #fbfcff;
}

body:has(.employee-sidebar) .department-top-list span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f4ff;
  color: var(--color-primary-700);
  font-weight: 700;
}

@media (max-width: 1180px) {
  body:has(.employee-sidebar) .department-hero-card,
  body:has(.employee-sidebar) .department-detail-layout {
    grid-template-columns: 1fr;
  }

  body:has(.employee-sidebar) .department-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .department-kpi-strip,
  body:has(.employee-sidebar) .department-competency-row {
    grid-template-columns: 1fr;
  }
}

/* Final photo behavior across dashboard, personal card and settings. */
.hero-photo,
body:has(.employee-sidebar) .personal-photo,
body:has(.employee-sidebar) .settings-avatar {
  overflow: hidden;
  background: linear-gradient(135deg, #f6f8ff, #ffffff);
}

.hero-photo img,
body:has(.employee-sidebar) .personal-photo img,
body:has(.employee-sidebar) .settings-avatar img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center center;
}

.hero-photo-image {
  background-image: none !important;
}

.hero-photo.is-empty,
body:has(.employee-sidebar) .settings-avatar.is-empty {
  display: grid;
  place-items: center;
}

.hero-photo.is-empty::before,
body:has(.employee-sidebar) .settings-avatar.is-empty::before {
  content: "";
  width: 52%;
  height: 52%;
  background: rgba(99, 105, 232, 0.34);
  -webkit-mask: url("/assets/icons/solar-broken/shield-user.svg") center / contain no-repeat;
  mask: url("/assets/icons/solar-broken/shield-user.svg") center / contain no-repeat;
}

/* Final department screen: journey-board layout */
body:has(.employee-sidebar) .department-page {
  gap: 14px;
}

body:has(.department-journey-board) .page-heading {
  display: none;
}

body:has(.employee-sidebar) .department-journey-board {
  position: relative;
  overflow: hidden;
  min-height: 470px;
  padding: 26px 28px 24px;
  border: 1px solid rgba(204, 214, 234, 0.78);
  border-radius: 30px;
  background:
    radial-gradient(circle at 52% -8%, rgba(255, 255, 255, 0.98) 0 9%, transparent 9.5%),
    linear-gradient(135deg, #eef2f8 0%, #dfe7f3 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 24px 70px rgba(56, 65, 94, 0.10);
}

body:has(.employee-sidebar) .department-journey-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}

body:has(.employee-sidebar) .department-journey-head span {
  color: #5f6780;
  font-size: 13px;
  font-weight: 650;
}

body:has(.employee-sidebar) .department-journey-head h2 {
  margin: 8px 0 0;
  max-width: 760px;
  color: #141827;
  font-size: 30px;
  line-height: 1.08;
  letter-spacing: 0;
}

body:has(.employee-sidebar) .department-board-actions {
  display: flex;
  gap: 8px;
}

body:has(.employee-sidebar) .department-board-actions span {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid rgba(180, 190, 210, 0.7);
  border-radius: 50%;
  background: rgba(255, 255, 255, 0.48);
  color: #202638;
}

body:has(.employee-sidebar) .department-board-actions span:nth-child(2)::before,
body:has(.employee-sidebar) .department-board-actions span:nth-child(3)::before {
  content: "";
  width: 17px;
  height: 17px;
  background: currentColor;
}

body:has(.employee-sidebar) .department-board-actions span:nth-child(2)::before {
  -webkit-mask: url("/assets/icons/solar-broken/letter.svg") center / contain no-repeat;
  mask: url("/assets/icons/solar-broken/letter.svg") center / contain no-repeat;
}

body:has(.employee-sidebar) .department-board-actions span:nth-child(3)::before {
  -webkit-mask: url("/assets/icons/solar-broken/calendar.svg") center / contain no-repeat;
  mask: url("/assets/icons/solar-broken/calendar.svg") center / contain no-repeat;
}

body:has(.employee-sidebar) .department-journey-roster {
  position: absolute;
  top: 14px;
  left: 50%;
  z-index: 3;
  display: flex;
  gap: 8px;
  align-items: center;
  max-width: min(560px, 46vw);
  min-height: 68px;
  padding: 8px 18px 10px;
  overflow-x: auto;
  border-radius: 0 0 34px 34px;
  background: rgba(255, 255, 255, 0.58);
  box-shadow: 0 18px 40px rgba(80, 88, 120, 0.10);
  transform: translateX(-50%);
}

body:has(.employee-sidebar) .department-journey-roster .department-person {
  min-width: 42px;
  gap: 2px;
}

body:has(.employee-sidebar) .department-journey-roster .department-person-photo {
  width: 38px;
  height: 38px;
  border: 3px solid rgba(255, 255, 255, 0.9);
  box-shadow: 0 9px 20px rgba(55, 63, 95, 0.13);
}

body:has(.employee-sidebar) .department-journey-roster .department-person small {
  min-height: 18px;
  margin-top: -4px;
  padding: 0 6px;
  background: #8aa5e8;
  color: #fff;
  font-size: 10px;
}

body:has(.employee-sidebar) .department-journey-roster .block-curator .department-person-photo {
  border-color: rgba(224, 168, 29, 0.7);
}

body:has(.employee-sidebar) .department-journey-roster .block-curator small {
  background: #151515;
  color: #fff;
}

body:has(.employee-sidebar) .department-journey-canvas {
  position: relative;
  display: grid;
  grid-template-columns: 1fr 1.08fr 1.08fr 0.95fr 0.9fr;
  gap: 24px;
  align-items: stretch;
  margin-top: 58px;
}

body:has(.employee-sidebar) .department-journey-canvas::before {
  content: "";
  position: absolute;
  top: 50%;
  left: 13%;
  right: 18%;
  height: 2px;
  background: linear-gradient(90deg, rgba(116, 143, 189, 0), rgba(116, 143, 189, 0.42), rgba(116, 143, 189, 0));
  transform: translateY(-50%);
}

body:has(.employee-sidebar) .department-journey-column {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: space-between;
  min-height: 300px;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.62);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9), 0 14px 34px rgba(64, 73, 108, 0.08);
}

body:has(.employee-sidebar) .department-column-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

body:has(.employee-sidebar) .department-column-title b {
  color: #151a2b;
  font-size: 15px;
}

body:has(.employee-sidebar) .department-column-title span {
  color: #7b8499;
  font-size: 12px;
}

body:has(.employee-sidebar) .department-journey-stack {
  display: grid;
  gap: 12px;
}

body:has(.employee-sidebar) .department-journey-card {
  position: relative;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr) 34px;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 64px;
  margin: 0;
  padding: 10px;
  border: 0;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.86);
  color: #151a2b;
  text-align: left;
  box-shadow: 0 12px 25px rgba(64, 73, 108, 0.07);
}

body:has(.employee-sidebar) .department-journey-card::before,
body:has(.employee-sidebar) .department-journey-card::after {
  content: "";
  position: absolute;
  top: 50%;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #b8c9e7;
  transform: translateY(-50%);
}

body:has(.employee-sidebar) .department-journey-card::before { left: -22px; }
body:has(.employee-sidebar) .department-journey-card::after { right: -22px; }

body:has(.employee-sidebar) .department-journey-card.is-active {
  background: #151515;
  color: #fff;
}

body:has(.employee-sidebar) .department-journey-card.is-active small,
body:has(.employee-sidebar) .department-journey-card.is-active .department-card-score {
  color: rgba(255, 255, 255, 0.74);
}

body:has(.employee-sidebar) .department-card-avatar {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  overflow: hidden;
  border-radius: 50%;
  background: #eef3fb;
}

body:has(.employee-sidebar) .department-card-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

body:has(.employee-sidebar) .department-card-avatar em {
  color: #6269df;
  font-style: normal;
  font-weight: 750;
}

body:has(.employee-sidebar) .department-card-copy b {
  display: block;
  overflow: hidden;
  color: inherit;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .department-card-copy small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #7c8498;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .department-card-score {
  color: #6269df;
  font-size: 12px;
  font-weight: 750;
  text-align: right;
}

body:has(.employee-sidebar) .department-journey-summary {
  position: relative;
  z-index: 1;
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  align-content: center;
  padding: 18px;
  border-radius: 28px;
  background: rgba(255, 255, 255, 0.44);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.75);
}

body:has(.employee-sidebar) .department-journey-summary div {
  display: grid;
  align-content: center;
  min-height: 86px;
  padding: 14px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.82);
}

body:has(.employee-sidebar) .department-journey-summary .is-dark {
  background: #050505;
  color: #fff;
}

body:has(.employee-sidebar) .department-journey-summary b {
  font-size: 20px;
}

body:has(.employee-sidebar) .department-journey-summary span {
  margin-top: 5px;
  color: #7c8498;
  font-size: 12px;
}

body:has(.employee-sidebar) .department-journey-summary .is-dark span {
  color: rgba(255, 255, 255, 0.74);
}

body:has(.employee-sidebar) .department-detail-layout {
  margin-top: 18px;
}

body:has(.employee-sidebar) .department-ratings-board {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 16px;
  margin-top: 18px;
}

body:has(.employee-sidebar) .department-rating-card {
  padding: 18px;
  border: 1px solid rgba(204, 214, 234, 0.86);
  border-radius: 26px;
  background: rgba(255, 255, 255, 0.88);
  box-shadow: 0 18px 48px rgba(38, 42, 92, 0.07);
}

body:has(.employee-sidebar) .department-rating-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 14px;
}

body:has(.employee-sidebar) .department-rating-head h3 {
  margin: 0;
  color: #141827;
  font-size: 17px;
}

body:has(.employee-sidebar) .department-rating-head span {
  display: block;
  margin-top: 4px;
  color: #7a8298;
  font-size: 12px;
}

body:has(.employee-sidebar) .department-rating-list {
  display: grid;
  gap: 9px;
}

body:has(.employee-sidebar) .department-rating-row {
  display: grid;
  grid-template-columns: 30px 28px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  width: 100%;
  min-height: 58px;
  margin: 0;
  padding: 9px 10px;
  border: 1px solid #edf1fa;
  border-radius: 18px;
  background: #fbfcff;
  color: #151a2b;
  text-align: left;
}

body:has(.employee-sidebar) .department-rating-row.is-active {
  border-color: rgba(99, 105, 232, 0.48);
  background: #f4f6ff;
}

body:has(.employee-sidebar) .rank-place {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 50%;
  background: #f1f4ff;
  color: #6269df;
  font-weight: 750;
}

body:has(.employee-sidebar) .rank-crown {
  display: grid;
  place-items: center;
  width: 28px;
  height: 28px;
}

body:has(.employee-sidebar) .rank-crown::before {
  content: "♛";
  color: #c6cedf;
  font-size: 22px;
  line-height: 1;
}

body:has(.employee-sidebar) .department-rating-row.rank-1 .rank-crown::before { color: #e0a81d; }
body:has(.employee-sidebar) .department-rating-row.rank-2 .rank-crown::before { color: #9aa6bd; }
body:has(.employee-sidebar) .department-rating-row.rank-3 .rank-crown::before { color: #c4763d; }

body:has(.employee-sidebar) .rank-person {
  min-width: 0;
}

body:has(.employee-sidebar) .rank-person b {
  display: block;
  overflow: hidden;
  color: #141827;
  font-size: 13px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .rank-person small {
  display: block;
  overflow: hidden;
  margin-top: 2px;
  color: #7a8298;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

body:has(.employee-sidebar) .department-rating-row strong {
  color: #6269df;
  font-size: 16px;
}

@media (max-width: 1320px) {
  body:has(.employee-sidebar) .department-journey-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  body:has(.employee-sidebar) .department-journey-summary {
    grid-column: 1 / -1;
  }

  body:has(.employee-sidebar) .department-ratings-board {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 760px) {
  body:has(.employee-sidebar) .department-journey-board {
    padding: 20px;
  }

  body:has(.employee-sidebar) .department-journey-roster {
    position: static;
    max-width: 100%;
    margin: 18px 0 0;
    border-radius: 22px;
    transform: none;
  }

  body:has(.employee-sidebar) .department-journey-canvas,
  body:has(.employee-sidebar) .department-journey-summary {
    grid-template-columns: 1fr;
  }
}
/* Manager department contour */
body:has(.manager-department-page) .app-topbar,
body:has(.manager-department-page) .page-heading {
  display: none;
}

.manager-department-page {
  display: grid;
  gap: 24px;
}

.manager-department-hero {
  min-height: 150px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  padding: 28px;
  border: 1px solid rgba(104, 124, 196, .22);
  border-radius: 24px;
  background:
    radial-gradient(circle at 50% -10%, rgba(255, 255, 255, .95) 0 12%, rgba(255, 255, 255, 0) 24%),
    linear-gradient(135deg, rgba(247, 250, 255, .96), rgba(223, 233, 247, .9));
  box-shadow: 0 24px 60px rgba(89, 103, 158, .12);
}

.manager-department-hero span,
.manager-directories-board > div:first-child span {
  color: #4d5dde;
  font-weight: 800;
  font-size: 12px;
}

.manager-department-hero h2,
.manager-directories-board h3 {
  margin: 8px 0 6px;
  color: #06112d;
  font-size: 28px;
  line-height: 1.12;
}

.manager-department-hero p {
  margin: 0;
  color: #65708e;
}

.manager-department-metrics {
  display: grid;
  grid-template-columns: repeat(2, minmax(120px, 1fr));
  gap: 12px;
}

.manager-department-metrics article {
  min-height: 82px;
  padding: 18px;
  border-radius: 18px;
  background: rgba(255, 255, 255, .78);
  box-shadow: inset 0 0 0 1px rgba(104, 124, 196, .16);
}

.manager-department-metrics b {
  display: block;
  color: #2f43b8;
  font-size: 26px;
}

.manager-department-metrics span {
  color: #6a7391;
  font-size: 12px;
}

.manager-folder-tabs {
  position: sticky;
  top: 12px;
  z-index: 10;
  display: flex;
  gap: 0;
  overflow-x: auto;
  padding: 0 16px;
}

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

.manager-ranking-card {
  padding: 18px;
  border: 1px solid rgba(104, 124, 196, .2);
  border-radius: 22px;
  background: rgba(255, 255, 255, .88);
  box-shadow: 0 22px 50px rgba(85, 101, 160, .09);
}

.manager-ranking-list {
  display: grid;
  gap: 10px;
}

.manager-ranking-list button {
  min-height: 72px;
  display: grid;
  grid-template-columns: 34px 30px minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  gap: 2px 10px;
  padding: 12px;
  border: 0;
  border-radius: 16px;
  background: #f7f9ff;
  color: #06112d;
  text-align: left;
  cursor: pointer;
  box-shadow: inset 0 0 0 1px rgba(104, 124, 196, .12);
}

.manager-ranking-list button:hover {
  background: #fff;
  box-shadow: inset 0 0 0 1px rgba(85, 99, 238, .45), 0 12px 28px rgba(85, 99, 238, .12);
}

.manager-ranking-list button > span {
  grid-row: 1 / 3;
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #eef3ff;
  color: #5864e8;
  font-weight: 900;
}

.manager-ranking-list em {
  grid-row: 1 / 3;
  font-style: normal;
  font-size: 20px;
  text-align: center;
}

.manager-crown-1 { color: #f0ad00; }
.manager-crown-2 { color: #8ea0bd; }
.manager-crown-3 { color: #c87838; }

.manager-ranking-list b,
.manager-ranking-list small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-ranking-list b {
  font-size: 13px;
}

.manager-ranking-list small {
  color: #69728f;
  font-size: 11px;
}

.manager-ranking-list strong {
  grid-row: 1 / 3;
  color: #5964ed;
  font-size: 18px;
}

.manager-queue-card {
  grid-column: 1 / -1;
}

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

.manager-queue-grid a {
  min-height: 88px;
  display: grid;
  align-content: center;
  gap: 4px;
  padding: 16px;
  border-radius: 18px;
  background: #f7f9ff;
  color: #06112d;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(104, 124, 196, .14);
}

.manager-queue-grid b {
  color: #2f43b8;
  font-size: 26px;
}

.manager-queue-grid span {
  color: #69728f;
  font-size: 12px;
}

.manager-section-anchors {
  position: relative;
  height: 1px;
  margin-top: -1px;
}

.manager-section-anchors span {
  position: absolute;
  top: -96px;
}

.manager-folder-tabs button {
  width: 190px;
  min-height: 88px;
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  grid-template-rows: auto auto;
  column-gap: 10px;
  align-items: center;
  margin-left: -10px;
  padding: 14px 14px 12px 18px;
  border: 1px solid rgba(105, 123, 194, .18);
  border-radius: 18px 18px 0 0;
  background: rgba(250, 252, 255, .9);
  color: #07132d;
  text-align: left;
  box-shadow: 0 -10px 26px rgba(101, 115, 169, .08);
  cursor: pointer;
}

.manager-folder-tabs button:first-child {
  margin-left: 0;
}

.manager-folder-tabs button.is-active {
  z-index: 2;
  border-color: rgba(85, 99, 238, .55);
  background: #fff;
  box-shadow: 0 -14px 34px rgba(89, 101, 224, .16);
}

.manager-folder-tabs button > span {
  grid-row: 1 / 3;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: #eef3ff;
  color: #5864e8;
  font-weight: 900;
}

.manager-folder-tabs img,
.manager-employee-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.manager-folder-tabs b,
.manager-folder-tabs small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.manager-folder-tabs b {
  font-size: 13px;
}

.manager-folder-tabs small {
  color: #69728f;
  font-size: 11px;
}

.manager-employee-sheet {
  display: none;
  padding: 22px;
  border: 1px solid rgba(104, 124, 196, .2);
  border-radius: 24px;
  background: rgba(255, 255, 255, .86);
  box-shadow: 0 22px 56px rgba(85, 101, 160, .1);
}

.manager-employee-sheet.is-active {
  display: block;
}

.manager-employee-title {
  display: grid;
  grid-template-columns: 70px minmax(0, 1fr) auto;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}

.manager-employee-photo {
  width: 70px;
  height: 70px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border-radius: 22px;
  background: #edf2ff;
  color: #5864e8;
  font-weight: 900;
  font-size: 22px;
}

.manager-employee-title h3 {
  margin: 0;
  color: #06112d;
  font-size: 24px;
}

.manager-employee-title p {
  margin: 4px 0 0;
  color: #65708e;
}

.manager-employee-title a,
.manager-section-card a,
.manager-directory-links a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  border-radius: 12px;
  background: #5a63ee;
  color: #fff;
  font-weight: 800;
  text-decoration: none;
}

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

.manager-department-page[data-section="cards"] .manager-section-card,
.manager-department-page[data-section="profiles"] .manager-section-card,
.manager-department-page[data-section="self"] .manager-section-card,
.manager-department-page[data-section="competencies"] .manager-section-card,
.manager-department-page[data-section="evidence"] .manager-section-card {
  display: none;
}

.manager-department-page[data-section="cards"] .manager-section-personal,
.manager-department-page[data-section="profiles"] .manager-section-profile,
.manager-department-page[data-section="self"] .manager-section-self,
.manager-department-page[data-section="competencies"] .manager-section-competencies,
.manager-department-page[data-section="evidence"] .manager-section-evidence {
  display: block;
  grid-column: 1 / -1;
}

.manager-department-page[data-section="cards"] .manager-section-grid,
.manager-department-page[data-section="profiles"] .manager-section-grid,
.manager-department-page[data-section="self"] .manager-section-grid,
.manager-department-page[data-section="competencies"] .manager-section-grid,
.manager-department-page[data-section="evidence"] .manager-section-grid {
  grid-template-columns: 1fr;
}

.deputy-block-page[data-section="departments"] .manager-section-card,
.deputy-block-page[data-section="profiles"] .manager-section-card,
.deputy-block-page[data-section="tasks"] .manager-section-card,
.deputy-block-page[data-section="competencies"] .manager-section-card,
.deputy-block-page[data-section="evidence"] .manager-section-card {
  display: none;
}

.deputy-block-page[data-section="departments"] .deputy-section-departments,
.deputy-block-page[data-section="profiles"] .deputy-section-profiles,
.deputy-block-page[data-section="tasks"] .deputy-section-tasks,
.deputy-block-page[data-section="competencies"] .deputy-section-competencies,
.deputy-block-page[data-section="evidence"] .deputy-section-evidence {
  display: block;
  grid-column: 1 / -1;
}

.deputy-block-page[data-section="departments"] .manager-section-grid,
.deputy-block-page[data-section="profiles"] .manager-section-grid,
.deputy-block-page[data-section="tasks"] .manager-section-grid,
.deputy-block-page[data-section="competencies"] .manager-section-grid,
.deputy-block-page[data-section="evidence"] .manager-section-grid {
  grid-template-columns: 1fr;
}

.director-inspection-page[data-section="deputies"] .manager-section-card,
.director-inspection-page[data-section="profiles"] .manager-section-card,
.director-inspection-page[data-section="tasks"] .manager-section-card,
.director-inspection-page[data-section="competencies"] .manager-section-card,
.director-inspection-page[data-section="evidence"] .manager-section-card {
  display: none;
}

.director-inspection-page[data-section="deputies"] .director-section-deputies,
.director-inspection-page[data-section="profiles"] .director-section-profiles,
.director-inspection-page[data-section="tasks"] .director-section-tasks,
.director-inspection-page[data-section="competencies"] .director-section-competencies,
.director-inspection-page[data-section="evidence"] .director-section-evidence {
  display: block;
  grid-column: 1 / -1;
}

.director-inspection-page[data-section="deputies"] .manager-section-grid,
.director-inspection-page[data-section="profiles"] .manager-section-grid,
.director-inspection-page[data-section="tasks"] .manager-section-grid,
.director-inspection-page[data-section="competencies"] .manager-section-grid,
.director-inspection-page[data-section="evidence"] .manager-section-grid {
  grid-template-columns: 1fr;
}

.manager-section-card,
.manager-directories-board {
  padding: 18px;
  border: 1px solid rgba(104, 124, 196, .18);
  border-radius: 20px;
  background: #fbfcff;
}

.manager-section-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 14px;
}

.manager-section-head b {
  color: #06112d;
  font-size: 16px;
}

.manager-section-head span {
  color: #7c86a4;
  font-size: 12px;
}

.manager-section-card dl {
  display: grid;
  gap: 10px;
  margin: 0;
}

.manager-section-card dl div,
.manager-score-row,
.manager-duty-list div {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 0;
  border-bottom: 1px solid rgba(104, 124, 196, .12);
}

.manager-section-card dt,
.manager-section-card dd {
  margin: 0;
}

.manager-section-card dt,
.manager-score-row span,
.manager-duty-list small,
.manager-section-card p {
  color: #69728f;
  font-size: 12px;
}

.manager-section-card dd,
.manager-score-row b {
  color: #06112d;
  font-weight: 800;
  text-align: right;
}

.manager-mini-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin-bottom: 10px;
}

.manager-mini-stats span {
  padding: 12px;
  border-radius: 14px;
  background: #eef3ff;
  color: #65708e;
  font-size: 12px;
}

.manager-mini-stats b {
  display: block;
  color: #2f43b8;
  font-size: 20px;
}

.manager-duty-list {
  display: grid;
  gap: 4px;
}

.manager-duty-list div {
  display: grid;
  justify-content: stretch;
}

.manager-duty-list b {
  color: #06112d;
  font-size: 13px;
}

.manager-competency-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-competency-chips span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #4c57d6;
  font-weight: 800;
  font-size: 12px;
}

.manager-competency-chips b {
  display: grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #fff;
  color: #06112d;
}

.manager-directory-card {
  background: linear-gradient(135deg, #f8fbff, #eef4ff);
}

.manager-directory-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-directory-links a {
  min-height: 34px;
  background: #fff;
  color: #4d57d8;
  box-shadow: inset 0 0 0 1px rgba(93, 104, 232, .22);
}

.manager-directories-board {
  display: grid;
  gap: 16px;
}

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

.manager-directory-grid a {
  min-height: 116px;
  display: grid;
  align-content: start;
  gap: 10px;
  padding: 18px;
  border-radius: 18px;
  background: #fff;
  color: #06112d;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(104, 124, 196, .16);
}

.manager-directory-grid a:hover {
  box-shadow: inset 0 0 0 1px rgba(85, 99, 238, .5), 0 14px 34px rgba(85, 99, 238, .12);
}

.manager-directory-grid span,
.manager-empty-state {
  color: #69728f;
  font-size: 13px;
}

.manager-empty-state {
  padding: 30px;
  border-radius: 20px;
  background: #fff;
}

.manager-reserve-page,
.manager-settings-page {
  display: grid;
  gap: 22px;
}

.manager-tool-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 20px;
  align-items: center;
  padding: 26px;
  border: 1px solid rgba(104, 124, 196, .22);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(248, 251, 255, .96), rgba(225, 235, 249, .9));
  box-shadow: 0 22px 54px rgba(85, 101, 160, .1);
}

.manager-tool-hero span {
  color: #4d5dde;
  font-weight: 900;
  font-size: 12px;
}

.manager-tool-hero h2 {
  margin: 8px 0 6px;
  color: #06112d;
  font-size: 28px;
}

.manager-tool-hero p {
  margin: 0;
  color: #65708e;
}

.manager-tool-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.manager-tool-actions a,
.manager-filter-bar button,
.manager-settings-form button,
.manager-settings-link {
  min-height: 40px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 16px;
  border: 0;
  border-radius: 12px;
  background: #5a63ee;
  color: #fff;
  font-weight: 900;
  text-decoration: none;
  cursor: pointer;
}

.manager-filter-bar {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) repeat(3, minmax(150px, 190px)) auto;
  gap: 10px;
  padding: 14px;
  border: 1px solid rgba(104, 124, 196, .16);
  border-radius: 18px;
  background: #fff;
}

.manager-filter-bar input,
.manager-filter-bar select,
.manager-settings-form input,
.manager-settings-form select,
.manager-settings-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid rgba(104, 124, 196, .18);
  border-radius: 12px;
  background: #f8faff;
  color: #06112d;
  padding: 10px 12px;
}

.manager-reserve-summary,
.manager-settings-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.manager-reserve-summary article,
.manager-settings-summary article,
.manager-candidate-card,
.manager-settings-panel {
  border: 1px solid rgba(104, 124, 196, .18);
  border-radius: 20px;
  background: rgba(255, 255, 255, .9);
  box-shadow: 0 18px 42px rgba(85, 101, 160, .08);
}

.manager-reserve-summary article,
.manager-settings-summary article {
  padding: 18px;
}

.manager-reserve-summary b,
.manager-settings-summary b {
  display: block;
  color: #2f43b8;
  font-size: 28px;
}

.manager-reserve-summary span,
.manager-settings-summary span {
  color: #06112d;
  font-weight: 900;
}

.manager-settings-summary p {
  margin: 8px 0 0;
  color: #69728f;
  font-size: 12px;
}

.manager-board-title {
  margin: 6px 0 -8px;
  color: #06112d;
  font-size: 20px;
}

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

.manager-candidate-card {
  display: grid;
  gap: 10px;
  padding: 18px;
}

.manager-candidate-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.manager-candidate-head span,
.manager-candidate-head b {
  padding: 7px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #4d57d8;
  font-size: 11px;
}

.manager-candidate-card h4 {
  margin: 0;
  color: #06112d;
  font-size: 18px;
}

.manager-candidate-card p,
.manager-candidate-card small,
.manager-candidate-card footer,
.manager-candidate-note {
  margin: 0;
  color: #69728f;
  font-size: 13px;
}

.manager-candidate-note {
  min-height: 58px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f9ff;
}

.manager-candidate-links {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-candidate-links a {
  padding: 7px 10px;
  border-radius: 999px;
  background: #fff;
  color: #4d57d8;
  font-weight: 800;
  text-decoration: none;
  box-shadow: inset 0 0 0 1px rgba(104, 124, 196, .18);
}

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

.manager-settings-panel {
  padding: 18px;
}

.manager-settings-form {
  display: grid;
  gap: 10px;
}

.manager-settings-form label {
  display: grid;
  gap: 6px;
  color: #69728f;
  font-size: 12px;
}

.manager-settings-list {
  display: grid;
  gap: 10px;
  margin-bottom: 14px;
}

.manager-settings-list div {
  display: grid;
  gap: 4px;
  padding: 12px;
  border-radius: 14px;
  background: #f7f9ff;
}

.manager-settings-list b {
  color: #06112d;
}

.manager-settings-list span,
.manager-settings-list p {
  color: #69728f;
  font-size: 12px;
}

.manager-settings-wide {
  grid-column: 1 / -1;
}

.manager-skill-cloud {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.manager-skill-cloud span {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 8px 10px;
  border-radius: 999px;
  background: #eef3ff;
  color: #4d57d8;
  font-weight: 900;
}

.manager-skill-cloud small {
  color: #69728f;
  font-weight: 700;
}

@media (max-width: 1180px) {
  .manager-department-hero,
  .manager-section-grid,
  .manager-dashboard-board,
  .manager-directory-grid,
  .manager-tool-hero,
  .manager-filter-bar,
  .manager-reserve-summary,
  .manager-settings-summary,
  .manager-reserve-grid,
  .manager-settings-grid {
    grid-template-columns: 1fr;
  }

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

@media (max-width: 720px) {
  .manager-department-hero,
  .manager-employee-sheet {
    padding: 16px;
  }

  .manager-department-metrics,
  .manager-queue-grid,
  .manager-employee-title {
    grid-template-columns: 1fr;
  }

  .manager-folder-tabs button {
    width: 170px;
  }
}
