:root {
  --ink: #18212f;
  --muted: #667085;
  --line: #dfe5ee;
  --paper: #f7f8fb;
  --panel: #ffffff;
  --input: #ffffff;
  --green: #16856b;
  --success: #16856b;
  --blue: #2d6cdf;
  --coral: #d85945;
  --amber: #b7791f;
  --purple: #8f008d;
  --purple-strong: #690a70;
  --purple-soft: rgba(143, 0, 141, 0.12);
  --cyan: #0e9f9a;
  --nav: #101827;
  --shadow: 0 16px 40px rgba(24, 33, 47, 0.08);
  --purple-shadow: 0 18px 44px rgba(143, 0, 141, 0.16);
  --panel-glow: linear-gradient(90deg, rgba(143, 0, 141, 0.28), rgba(14, 159, 154, 0.22), transparent 74%);
  --surface-line: rgba(143, 0, 141, 0.1);
}

:root[data-theme="dark"] {
  --ink: #edf2f7;
  --muted: #a8b3c7;
  --line: #2c374a;
  --paper: #0d1118;
  --panel: #151b26;
  --input: #101722;
  --green: #52c7a8;
  --success: #52c7a8;
  --blue: #7aa7ff;
  --coral: #ff806f;
  --amber: #f0b454;
  --purple: #d45bd2;
  --purple-strong: #f185ef;
  --purple-soft: rgba(212, 91, 210, 0.16);
  --cyan: #49d4ce;
  --nav: #080c12;
  --shadow: 0 16px 40px rgba(0, 0, 0, 0.28);
  --purple-shadow: 0 18px 44px rgba(212, 91, 210, 0.12);
  --panel-glow: linear-gradient(90deg, rgba(212, 91, 210, 0.32), rgba(73, 212, 206, 0.22), transparent 74%);
  --surface-line: rgba(212, 91, 210, 0.14);
}

* {
  box-sizing: border-box;
}

html {
  scroll-padding-top: 120px;
}

body {
  margin: 0;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 30%),
    linear-gradient(90deg, transparent, var(--surface-line) 50%, transparent),
    linear-gradient(180deg, var(--paper), var(--paper));
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  letter-spacing: 0;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  border: 0;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  color: var(--paper);
  min-height: 42px;
  border-radius: 7px;
  padding: 0 16px;
  cursor: pointer;
  box-shadow: 0 12px 24px rgba(143, 0, 141, 0.14);
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease;
}

button:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 32px rgba(143, 0, 141, 0.18);
}

button:focus-visible,
input:focus-visible,
select:focus-visible,
textarea:focus-visible {
  outline: 3px solid rgba(143, 0, 141, 0.26);
  outline-offset: 2px;
}

label {
  display: grid;
  gap: 7px;
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.help-title,
.help-label-title,
.help-metric-title {
  display: inline-flex;
  align-items: start;
  gap: 7px;
  min-width: 0;
}

.help-title {
  width: fit-content;
  max-width: 100%;
}

.help-label-title {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 750;
}

.help-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.help-icon {
  position: relative;
  z-index: 4;
  display: inline-grid;
  flex: 0 0 auto;
  place-items: center;
  width: 17px;
  height: 17px;
  border: 1px solid rgba(143, 0, 141, 0.38);
  border-radius: 50%;
  background: rgba(143, 0, 141, 0.08);
  color: var(--purple-strong);
  font-size: 0.68rem;
  font-weight: 950;
  line-height: 1;
  text-transform: none;
  cursor: help;
  box-shadow: 0 8px 18px rgba(143, 0, 141, 0.09);
}

button .help-icon,
.tab .help-icon,
.light-text .help-icon {
  border-color: rgba(255, 255, 255, 0.52);
  background: rgba(255, 255, 255, 0.14);
  color: currentColor;
  box-shadow: none;
}

.ghost.dark-text .help-icon,
.dark-text .help-icon {
  border-color: rgba(143, 0, 141, 0.36);
  background: rgba(143, 0, 141, 0.08);
  color: var(--purple-strong);
}

.help-icon::before,
.help-icon::after {
  display: none;
  position: absolute;
  left: 50%;
  pointer-events: none;
  opacity: 0;
  visibility: hidden;
  transition: opacity 150ms ease, transform 150ms ease, visibility 150ms ease;
}

.help-icon::before {
  content: "";
  bottom: calc(100% + 5px);
  z-index: 51;
  width: 10px;
  height: 10px;
  background: #201127;
  border: 1px solid rgba(255, 255, 255, 0.1);
  border-top: 0;
  border-left: 0;
  transform: translate(-50%, 6px) rotate(45deg);
}

.help-icon::after {
  content: attr(data-help);
  bottom: calc(100% + 10px);
  z-index: 50;
  width: max-content;
  max-width: min(280px, 70vw);
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.32), rgba(14, 159, 154, 0.16)),
    #201127;
  color: #fff;
  font-size: 0.78rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  text-transform: none;
  white-space: normal;
  box-shadow: 0 18px 44px rgba(15, 9, 20, 0.35);
  transform: translate(-50%, 6px);
}

.help-icon:hover,
.help-icon:focus-visible {
  border-color: var(--purple);
  background: var(--purple-soft);
  outline: none;
}

.help-icon:hover::before,
.help-icon:hover::after,
.help-icon:focus-visible::before,
.help-icon:focus-visible::after,
.help-button:hover .help-icon::before,
.help-button:hover .help-icon::after,
.help-button:focus-visible .help-icon::before,
.help-button:focus-visible .help-icon::after {
  opacity: 1;
  visibility: visible;
  transform: translate(-50%, 0) rotate(45deg);
}

.help-icon:hover::after,
.help-icon:focus-visible::after,
.help-button:hover .help-icon::after,
.help-button:focus-visible .help-icon::after {
  transform: translate(-50%, 0);
}

.help-floating-tooltip {
  position: fixed;
  z-index: 10000;
  max-width: min(300px, calc(100vw - 24px));
  padding: 10px 12px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.34), rgba(14, 159, 154, 0.16)),
    #201127;
  color: #fff;
  font-size: 0.8rem;
  font-weight: 750;
  line-height: 1.35;
  text-align: left;
  box-shadow: 0 18px 44px rgba(15, 9, 20, 0.36);
  pointer-events: none;
}

.help-floating-tooltip.hidden {
  display: none;
}

.action-modal {
  position: fixed;
  inset: 0;
  z-index: 10020;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 10, 18, 0.58);
  backdrop-filter: blur(10px);
}

.action-modal.hidden,
.success-popup.hidden,
.pending-overlay.hidden {
  display: none;
}

.action-modal-card {
  width: min(440px, calc(100vw - 32px));
  display: grid;
  gap: 12px;
  border: 1px solid rgba(143, 0, 141, 0.26);
  border-radius: 10px;
  padding: 22px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.12), rgba(14, 159, 154, 0.06)),
    var(--panel);
  color: var(--ink);
  box-shadow: 0 24px 64px rgba(0, 0, 0, 0.26);
}

.action-modal-card h2,
.action-modal-card p {
  margin: 0;
}

.action-modal-card h2 {
  font-size: 1.35rem;
}

.action-modal-card p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.5;
}

.action-modal-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 8px;
}

.success-popup {
  position: fixed;
  right: 22px;
  bottom: 22px;
  z-index: 10030;
  width: min(360px, calc(100vw - 32px));
  display: grid;
  gap: 6px;
  border: 1px solid rgba(22, 133, 107, 0.35);
  border-radius: 10px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(22, 133, 107, 0.18), rgba(143, 0, 141, 0.08)),
    var(--panel);
  color: var(--ink);
  box-shadow: 0 18px 48px rgba(0, 0, 0, 0.2);
  animation: popupLift 180ms ease both;
}

.success-popup strong {
  color: var(--success);
}

.success-popup p {
  margin: 0;
  color: var(--muted);
}

.pending-overlay {
  position: fixed;
  inset: 0;
  z-index: 10025;
  display: grid;
  place-items: center;
  padding: 20px;
  background: rgba(7, 10, 18, 0.3);
  backdrop-filter: blur(5px);
}

.pending-card {
  width: min(390px, calc(100vw - 32px));
  display: flex;
  align-items: center;
  gap: 14px;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 10px;
  padding: 16px 18px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.14), rgba(14, 159, 154, 0.08)),
    var(--panel);
  color: var(--ink);
  box-shadow: 0 22px 58px rgba(0, 0, 0, 0.24);
}

.pending-card p {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.4;
}

.pending-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 3px solid rgba(143, 0, 141, 0.18);
  border-top-color: var(--purple);
  border-radius: 50%;
  animation: pendingSpin 750ms linear infinite;
}

@keyframes pendingSpin {
  to {
    transform: rotate(360deg);
  }
}

@keyframes popupLift {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--ink);
  background: var(--input);
  padding: 10px 12px;
}

textarea {
  resize: vertical;
}

h1,
h2,
p {
  margin: 0;
}

.hidden {
  display: none !important;
}

html.preloader-running,
body.preloader-running {
  height: 100%;
  overflow: hidden;
  overscroll-behavior: none;
}

body.preloader-running {
  max-height: 100vh;
}

.loader {
  position: fixed;
  inset: 0;
  z-index: 9999;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 22px;
  background:
    radial-gradient(circle at 50% 42%, rgba(143, 0, 141, 0.24), transparent 28%),
    linear-gradient(180deg, #020002, #000 68%);
  color: #bd14ba;
  opacity: 1;
  visibility: visible;
  transition: opacity 700ms ease, visibility 700ms ease;
}

.loader.is-done {
  opacity: 0;
  visibility: hidden;
  pointer-events: none;
}

.loader.is-hidden {
  display: none;
}

.loader.is-leaving {
  pointer-events: none;
}

.loader.is-done .loader-mark {
  animation: loaderCollapsePortal 700ms cubic-bezier(0.16, 0.85, 0.26, 1) both;
}

.loader-mark {
  position: relative;
  display: grid;
  place-items: center;
  width: min(54vw, 430px);
  aspect-ratio: 1;
}

.loader-mark::before,
.loader-mark::after,
.loader-mark i {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.loader-mark::before {
  inset: 8%;
  border: 1px solid rgba(189, 20, 186, 0.28);
  box-shadow: inset 0 0 28px rgba(189, 20, 186, 0.2), 0 0 44px rgba(189, 20, 186, 0.18);
}

.loader-mark::after {
  inset: 19%;
  border: 1px solid rgba(248, 239, 250, 0.12);
}

.loader-mark i {
  inset: 2%;
  border: 2px solid transparent;
  border-top-color: rgba(189, 20, 186, 0.88);
  border-right-color: rgba(189, 20, 186, 0.16);
  animation: loaderOrbit 2600ms linear infinite;
}

.loader-mark i:nth-child(2) {
  inset: 15%;
  border-top-color: rgba(248, 239, 250, 0.7);
  border-left-color: rgba(189, 20, 186, 0.22);
  animation-duration: 3600ms;
  animation-direction: reverse;
}

.loader-logo-image {
  width: 78%;
  height: 78%;
  object-fit: contain;
  transform-origin: center;
  filter: drop-shadow(0 0 22px rgba(189, 20, 186, 0.72));
  animation: loaderPulse 2200ms cubic-bezier(0.42, 0, 0.22, 1) infinite;
}

.loader-meta {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 260px;
}

.loader-meta span {
  color: rgba(248, 239, 250, 0.58);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0;
}

.loader-count {
  min-width: 70px;
  border-top: 1px solid rgba(189, 20, 186, 0.5);
  padding-top: 8px;
  color: #bd14ba;
  text-align: center;
  font-size: 20px;
  font-weight: 700;
  text-shadow: 0 0 18px #bd14ba;
}

@keyframes loaderPulse {
  50% {
    transform: scale(1.025);
    filter: drop-shadow(0 0 32px rgba(189, 20, 186, 0.82));
  }
}

@keyframes loaderOrbit {
  to {
    transform: rotate(360deg);
  }
}

@keyframes loaderCollapsePortal {
  0% {
    transform: scale(1);
    filter: brightness(1);
  }

  46% {
    transform: scale(0.58) rotate(-11deg);
    filter: brightness(1.65) blur(0);
  }

  100% {
    transform: scale(0.08) rotate(24deg);
    filter: brightness(3.2) blur(6px);
  }
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}

.login-panel {
  width: min(430px, 100%);
  display: grid;
  gap: 28px;
  background:
    linear-gradient(180deg, rgba(143, 0, 141, 0.05), transparent 36%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--purple-shadow);
  padding: 34px;
  animation: pageLift 320ms ease both;
}

.login-panel h1 {
  font-size: 2.35rem;
}

.password-reveal-field {
  position: relative;
  display: block;
}

.password-reveal-field input {
  padding-right: 52px;
}

.password-eye-button {
  position: absolute;
  right: 8px;
  top: 50%;
  width: 36px;
  height: 36px;
  min-height: 36px;
  display: inline-grid;
  place-items: center;
  padding: 0;
  border: 1px solid transparent;
  border-radius: 7px;
  background: transparent;
  color: var(--muted);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-eye-button:hover {
  border-color: rgba(143, 0, 141, 0.2);
  background: rgba(143, 0, 141, 0.08);
  color: var(--purple-strong);
  box-shadow: none;
  transform: translateY(-50%);
}

.password-eye-button svg {
  width: 20px;
  height: 20px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-eye-button[aria-pressed="true"] {
  color: var(--purple-strong);
  background: var(--purple-soft);
}

.brand-logo {
  width: 46px;
  height: 46px;
  object-fit: contain;
  display: block;
  margin-bottom: 10px;
  filter: drop-shadow(0 8px 16px rgba(143, 0, 141, 0.2));
}

.brand-logo.large {
  width: 76px;
  height: 76px;
  margin-bottom: 14px;
}

.eyebrow {
  color: var(--green);
  text-transform: uppercase;
  font-size: 0.72rem;
  font-weight: 850;
}

.role-label {
  color: rgba(255, 255, 255, 0.7);
  margin-top: 8px;
  font-size: 0.84rem;
}

.stack {
  display: grid;
  gap: 16px;
}

.error {
  min-height: 20px;
  color: var(--coral);
  font-weight: 750;
}

.notice {
  min-height: 20px;
  color: var(--green);
  font-weight: 750;
  overflow-wrap: anywhere;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  position: sticky;
  top: 0;
  height: 100vh;
  min-width: 0;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  gap: 18px;
  padding: 24px 22px;
  overflow: hidden;
  background:
    linear-gradient(160deg, rgba(143, 0, 141, 0.5), transparent 38%),
    linear-gradient(90deg, rgba(255, 255, 255, 0.04), transparent 18%),
    linear-gradient(180deg, var(--nav), #05070b);
  color: white;
  border-right: 1px solid rgba(212, 91, 210, 0.22);
}

.tabs,
.side-actions {
  display: grid;
  gap: 7px;
  min-width: 0;
}

.tabs {
  flex: 1 1 auto;
  min-height: 0;
  align-content: start;
  overflow-y: auto;
  padding-right: 4px;
  scrollbar-color: rgba(212, 91, 210, 0.45) transparent;
  scrollbar-width: thin;
}

.tabs::-webkit-scrollbar {
  width: 5px;
}

.tabs::-webkit-scrollbar-thumb {
  background: rgba(212, 91, 210, 0.45);
  border-radius: 999px;
}

.legacy-tab {
  display: none !important;
}

.side-actions {
  flex: 0 0 auto;
}

.tab {
  position: relative;
  width: 100%;
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
  justify-content: flex-start;
  text-align: left;
  overflow-wrap: anywhere;
}

.sidebar .tab::before {
  content: "";
  flex: 0 0 18px;
  width: 18px;
  height: 18px;
  border: 1px solid currentColor;
  border-radius: 6px;
  opacity: 0.76;
  background:
    linear-gradient(135deg, currentColor 0 36%, transparent 37% 100%),
    rgba(255, 255, 255, 0.08);
}

.sidebar .tab.active::before {
  opacity: 1;
  background:
    radial-gradient(circle at 65% 35%, currentColor 0 18%, transparent 19%),
    linear-gradient(135deg, currentColor 0 42%, transparent 43% 100%);
}

.sidebar .tab[data-nav-group="agent"]::before {
  border-radius: 50%;
  background:
    radial-gradient(circle at 50% 50%, currentColor 0 18%, transparent 19%),
    conic-gradient(from 20deg, currentColor 0 14%, transparent 14% 28%, currentColor 28% 42%, transparent 42% 58%, currentColor 58% 72%, transparent 72% 86%, currentColor 86% 100%),
    rgba(255, 255, 255, 0.08);
}

.sidebar .help-icon {
  display: none !important;
}

.notification-badge {
  display: inline-grid;
  place-items: center;
  min-width: 22px;
  height: 22px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-size: 0.72rem;
  font-weight: 900;
  line-height: 1;
  box-shadow: 0 0 0 2px rgba(255, 255, 255, 0.1), 0 10px 22px rgba(143, 0, 141, 0.24);
}

.notification-badge.urgent {
  background: var(--coral);
}

.tab .notification-badge {
  float: right;
  margin-left: 8px;
}

.tab,
.ghost {
  background: transparent;
  border: 1px solid rgba(255, 255, 255, 0.18);
  color: white;
  text-align: left;
  box-shadow: none;
}

.dark-text {
  color: var(--ink);
  border-color: var(--line);
}

.tab.active {
  background: linear-gradient(135deg, #ffffff, #fbecff);
  color: #380a3d;
  border-color: rgba(255, 255, 255, 0.72);
  box-shadow: 0 12px 28px rgba(143, 0, 141, 0.22);
}

.tab:not(.active):hover,
.ghost:hover {
  border-color: rgba(212, 91, 210, 0.42);
  background: rgba(255, 255, 255, 0.06);
}

.content {
  min-width: 0;
  padding: 24px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 22px;
  position: relative;
  z-index: 10;
  padding: 12px 0;
  background: linear-gradient(180deg, var(--paper) 74%, rgba(247, 248, 251, 0));
}

.topbar h1 {
  font-size: 1.8rem;
}

.page-use-box {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  margin: -8px 0 16px;
  padding: 14px 16px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(143, 0, 141, 0.08), rgba(14, 159, 154, 0.045), transparent 76%),
    var(--panel);
  box-shadow: 0 12px 32px rgba(24, 33, 47, 0.055);
}

.page-use-box > div {
  display: grid;
  gap: 3px;
  min-width: 150px;
}

.page-use-box span {
  color: var(--purple-strong);
  font-size: 0.74rem;
  font-weight: 950;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.page-use-box strong {
  color: var(--ink);
  font-size: 1rem;
}

.page-use-box p {
  color: var(--muted);
  line-height: 1.45;
}

.page-use-content {
  display: grid;
  gap: 12px;
}

.page-use-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.page-use-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
}

.list-controls {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) minmax(96px, auto) minmax(150px, auto) auto;
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.06), rgba(14, 159, 154, 0.035)),
    var(--panel);
  box-shadow: 0 10px 24px rgba(24, 33, 47, 0.045);
}

.list-controls label {
  display: grid;
  gap: 5px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
}

.list-controls input,
.list-controls select {
  min-height: 38px;
  border-radius: 8px;
}

.list-page-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
}

.list-page-actions button {
  min-width: 88px;
  gap: 0;
}

.list-page-actions button .help-icon {
  display: none;
}

.list-controls .help-icon {
  display: none;
}

.list-page-actions span {
  min-width: 88px;
  color: var(--muted);
  font-weight: 850;
  text-align: center;
}

.list-page-actions button {
  min-height: 36px;
  padding: 8px 11px;
  border-radius: 8px;
}

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

.panel-head-actions button {
  min-height: 38px;
  padding: 9px 14px;
  border-radius: 8px;
}

.manager-request-card {
  display: grid;
  gap: 14px;
}

.manager-request-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.manager-request-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.manager-request-actions button {
  min-height: 36px;
  padding: 8px 12px;
  border-radius: 8px;
}

.workflow-guide {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  width: 100%;
  margin: 4px 0 12px;
  padding: 10px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.055), rgba(14, 159, 154, 0.035)),
    var(--panel);
}

.workflow-guide-wide {
  grid-column: 1 / -1;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.workflow-guide.compact {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin: 0;
  padding: 8px;
  background: rgba(143, 0, 141, 0.035);
  box-shadow: none;
}

.workflow-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 4px 9px;
  align-items: start;
  min-height: 78px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: var(--input);
  color: var(--muted);
}

.workflow-step b {
  display: inline-grid;
  grid-row: 1 / 3;
  place-items: center;
  width: 26px;
  height: 26px;
  border-radius: 50%;
  background: rgba(143, 0, 141, 0.1);
  color: var(--purple-strong);
  font-size: 0.78rem;
}

.workflow-step strong {
  color: var(--ink);
  font-size: 0.9rem;
  line-height: 1.2;
}

.workflow-step small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1.3;
}

.workflow-step.current {
  border-color: rgba(143, 0, 141, 0.38);
  box-shadow: inset 0 0 0 1px rgba(143, 0, 141, 0.12), 0 10px 22px rgba(143, 0, 141, 0.08);
}

.workflow-step.current b {
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  color: #fff;
}

.workflow-step.done {
  border-color: rgba(22, 133, 107, 0.28);
  background:
    linear-gradient(135deg, rgba(22, 133, 107, 0.09), transparent 60%),
    var(--input);
}

.workflow-step.done b {
  background: var(--success);
  color: #fff;
}

.schedule-bottom-submit {
  justify-self: start;
}

:root[data-theme="dark"] .page-use-box {
  border-color: rgba(212, 91, 210, 0.22);
  background:
    linear-gradient(90deg, rgba(212, 91, 210, 0.1), rgba(73, 212, 206, 0.055), transparent 76%),
    #151d29;
  box-shadow: 0 14px 34px rgba(0, 0, 0, 0.28);
}

:root[data-theme="dark"] .workflow-guide {
  border-color: rgba(212, 91, 210, 0.2);
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.08), rgba(73, 212, 206, 0.045)),
    var(--panel);
}

:root[data-theme="dark"] .workflow-step {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(174, 184, 202, 0.18);
}

.section-tabs {
  position: sticky;
  top: 0;
  z-index: 9;
  display: flex;
  gap: 8px;
  width: 100%;
  max-width: 100%;
  margin: -8px 0 18px;
  padding: 10px 0 12px;
  overflow: visible;
  border-bottom: 1px solid var(--surface-line);
  background:
    linear-gradient(180deg, var(--paper) 76%, rgba(247, 248, 251, 0)),
    var(--paper);
  scrollbar-width: thin;
}

.section-tabs[data-mode="full"] {
  overflow-x: auto;
  overflow-y: hidden;
}

.section-tab {
  flex: 0 0 auto;
  min-height: 36px;
  min-width: 0;
  padding: 0 13px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 999px;
  background: var(--panel);
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 850;
  text-align: center;
  box-shadow: 0 10px 26px rgba(24, 33, 47, 0.06);
  white-space: nowrap;
}

.section-tab:hover {
  border-color: rgba(143, 0, 141, 0.34);
  background: var(--purple-soft);
}

.section-tab.active {
  border-color: rgba(143, 0, 141, 0.3);
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  color: #fff;
  box-shadow: var(--purple-shadow);
}

.global-search {
  position: relative;
  display: grid;
  gap: 6px;
  width: min(430px, 32vw);
  min-width: 250px;
}

.search-label {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
}

.search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 6px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 52%),
    var(--input);
  box-shadow: 0 14px 34px rgba(143, 0, 141, 0.08);
}

.search-box input {
  min-height: 36px;
  border: 0;
  background: transparent;
  padding: 7px 8px;
}

.search-box input:focus-visible {
  outline: 0;
}

.search-box button {
  min-height: 32px;
  padding: 6px 10px;
}

.global-search-panel {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 30;
  width: min(640px, calc(100vw - 32px));
  max-height: min(680px, calc(100vh - 120px));
  display: grid;
  gap: 12px;
  overflow: auto;
  border: 1px solid rgba(143, 0, 141, 0.22);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(143, 0, 141, 0.12), transparent 34%),
    linear-gradient(315deg, rgba(14, 159, 154, 0.1), transparent 38%),
    var(--panel);
  box-shadow: 0 24px 70px rgba(24, 33, 47, 0.2);
}

.search-panel-head,
.search-group-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
}

.search-results,
.search-group {
  display: grid;
  gap: 10px;
}

.search-group {
  padding-top: 2px;
}

.search-result {
  width: 100%;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 5px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.search-result:hover {
  border-color: rgba(143, 0, 141, 0.36);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 52%),
    var(--input);
}

.search-result-type {
  grid-row: span 2;
  align-self: stretch;
  display: inline-grid;
  place-items: center;
  min-width: 86px;
  border-radius: 6px;
  padding: 6px 8px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.search-result strong,
.search-result p {
  overflow-wrap: anywhere;
}

.search-result p {
  grid-column: 2 / 3;
  color: var(--muted);
  font-size: 0.9rem;
}

.search-result .status {
  grid-row: span 2;
  justify-self: end;
}

.notification-bell {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 9px 12px;
  background: var(--input);
  color: var(--ink);
  font-weight: 850;
  box-shadow: none;
}

.notification-bell.has-unread {
  border-color: rgba(143, 0, 141, 0.45);
  box-shadow: var(--purple-shadow);
}

.notification-bell.urgent {
  border-color: rgba(216, 89, 69, 0.48);
}

.date-range {
  display: grid;
  grid-template-columns: repeat(2, minmax(130px, 1fr));
  gap: 10px;
  min-width: min(360px, 100%);
  align-items: end;
}

.date-range label {
  min-width: 0;
}

.theme-toggle,
.mode-toggle,
.guide-toggle {
  display: inline-flex;
  align-items: center;
  gap: 9px;
  white-space: nowrap;
}

.theme-icon,
.mode-icon,
.guide-icon {
  width: 18px;
  height: 18px;
  border-radius: 999px;
  border: 2px solid currentColor;
  position: relative;
  flex: 0 0 auto;
}

.guide-icon {
  display: inline-grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1;
}

.mode-icon {
  border-radius: 7px;
  background: linear-gradient(135deg, rgba(212, 91, 210, 0.16), rgba(73, 212, 206, 0.12));
}

.mode-icon::before {
  content: "";
  position: absolute;
  width: 6px;
  height: 6px;
  border-radius: 999px;
  top: 4px;
  left: 4px;
  background: currentColor;
  transition: transform 180ms ease;
}

.mode-icon[data-mode="full"]::before {
  transform: translateX(5px);
}

.theme-icon::after {
  content: "";
  position: absolute;
  width: 8px;
  height: 8px;
  border-radius: 999px;
  top: -3px;
  right: -3px;
  background: currentColor;
  box-shadow: 0 0 0 3px var(--panel);
}

.theme-icon[data-mode="dark"] {
  background: currentColor;
}

.guide-overlay {
  position: fixed;
  inset: 0;
  z-index: 10001;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    radial-gradient(circle at 18% 12%, rgba(143, 0, 141, 0.24), transparent 34%),
    rgba(9, 12, 18, 0.58);
  backdrop-filter: blur(14px);
}

.guide-card {
  position: relative;
  width: min(780px, 100%);
  max-height: min(760px, calc(100vh - 48px));
  overflow: auto;
  display: grid;
  gap: 18px;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 38%),
    linear-gradient(315deg, rgba(14, 159, 154, 0.06), transparent 34%),
    var(--panel);
  color: var(--ink);
  box-shadow: 0 28px 80px rgba(8, 12, 18, 0.28);
}

.guide-close {
  position: absolute;
  top: 14px;
  right: 14px;
  min-height: 34px;
  padding: 0 12px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  box-shadow: none;
}

.guide-intro {
  max-width: 62ch;
  color: var(--muted);
  line-height: 1.55;
}

.guide-steps {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.guide-step {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 12px;
  min-height: 126px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
}

.guide-step > span {
  display: inline-grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-weight: 950;
}

.guide-step strong {
  display: block;
  margin-bottom: 6px;
  font-size: 0.95rem;
}

.guide-step p,
.guide-permissions p {
  color: var(--muted);
  font-size: 0.9rem;
  line-height: 1.48;
}

.guide-permissions {
  display: grid;
  gap: 6px;
  padding: 16px;
  border: 1px solid rgba(143, 0, 141, 0.2);
  border-radius: 10px;
  background: var(--purple-soft);
}

.guide-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
}

:root[data-theme="dark"] .guide-card {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(73, 212, 206, 0.06), transparent 34%),
    #151d29;
  border-color: rgba(174, 184, 202, 0.2);
}

:root[data-theme="dark"] .guide-step {
  background: rgba(255, 255, 255, 0.045);
  border-color: rgba(174, 184, 202, 0.17);
}

:root[data-theme="dark"] .guide-close {
  background: #101722;
  color: #eef3fb;
  border-color: rgba(174, 184, 202, 0.25);
}

.view {
  display: none;
}

.view.active {
  display: grid;
  gap: 18px;
  animation: pageLift 280ms ease both;
}

.view.active.page-flow {
  align-content: start;
  gap: 16px;
}

.page-flow > * {
  min-width: 0;
}

.page-flow > .page-block-summary {
  order: 10;
}

.page-flow > .page-block-actions {
  order: 20;
}

.page-flow > .page-block-filters {
  order: 30;
}

.page-flow > .page-block-list {
  order: 40;
}

.page-flow > .page-block-details {
  order: 50;
}

.page-flow > :is(.page-block-summary, .page-block-actions, .page-block-filters, .page-block-list, .page-block-details) {
  scroll-margin-top: 120px;
}

.page-flow > .page-block-actions {
  border-color: rgba(143, 0, 141, 0.14);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.045), rgba(14, 159, 154, 0.035)),
    var(--panel);
}

.page-block-filters > .panel,
.page-panel-filters {
  border-color: rgba(14, 159, 154, 0.2);
  background:
    linear-gradient(135deg, rgba(14, 159, 154, 0.055), rgba(143, 0, 141, 0.03)),
    var(--panel);
}

.page-block-filters .filter-grid,
.page-panel-filters .filter-grid,
.page-block-filters .schedule-tools,
.page-panel-filters .schedule-tools {
  margin: 0;
  padding: 12px;
  border: 1px solid rgba(14, 159, 154, 0.14);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.55);
}

.page-block-list > .panel,
.page-panel-list {
  border-color: rgba(143, 0, 141, 0.13);
}

.page-block-list .panel-head,
.page-panel-list .panel-head {
  padding-bottom: 12px;
  border-bottom: 1px solid var(--line);
}

.page-block-list .table-wrap,
.page-panel-list .table-wrap,
.page-block-list :is([class*="list"], [id$="List"]):not(.list-controls):not(.owner-list),
.page-panel-list :is([class*="list"], [id$="List"]):not(.list-controls):not(.owner-list) {
  margin-top: 12px;
}

.page-block-details > .panel,
.page-panel-details {
  border-left: 4px solid rgba(143, 0, 141, 0.42);
}

.page-block-details .panel-head,
.page-panel-details .panel-head {
  align-items: start;
}

:root[data-theme="dark"] .page-flow > .page-block-actions,
:root[data-theme="dark"] .page-block-filters > .panel,
:root[data-theme="dark"] .page-panel-filters {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.075), rgba(73, 212, 206, 0.045)),
    var(--panel);
}

:root[data-theme="dark"] .page-block-filters .filter-grid,
:root[data-theme="dark"] .page-panel-filters .filter-grid,
:root[data-theme="dark"] .page-block-filters .schedule-tools,
:root[data-theme="dark"] .page-panel-filters .schedule-tools {
  background: rgba(255, 255, 255, 0.035);
  border-color: rgba(73, 212, 206, 0.18);
}

.global-alert {
  display: grid;
  gap: 6px;
  margin-bottom: 18px;
  border: 1px solid rgba(216, 89, 69, 0.35);
  border-left: 5px solid var(--coral);
  background: rgba(216, 89, 69, 0.1);
  color: var(--ink);
  border-radius: 8px;
  padding: 14px 16px;
  box-shadow: var(--shadow);
}

.start-here-panel {
  display: grid;
  gap: 16px;
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: clamp(16px, 2vw, 22px);
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.055), transparent 42%),
    linear-gradient(315deg, rgba(20, 156, 152, 0.055), transparent 38%),
    var(--panel);
  box-shadow: var(--shadow);
}

.start-here-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.start-here-head h2 {
  margin-top: 3px;
  font-size: clamp(1.45rem, 2vw, 2rem);
}

.start-here-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.start-here-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 130px;
  align-content: start;
  padding: 15px;
  padding-right: 34px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(20, 156, 152, 0.58);
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

:root[data-theme="dark"] .start-here-card {
  background: rgba(255, 255, 255, 0.035);
}

.start-here-card:hover {
  border-color: rgba(151, 0, 143, 0.28);
  background: var(--purple-soft);
}

.start-here-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
}

.start-here-card strong {
  color: var(--ink);
  font-size: 1.25rem;
  line-height: 1.15;
  overflow-wrap: break-word;
}

.start-here-card small {
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 760;
  line-height: 1.35;
}

.start-here-card em {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  min-height: 30px;
  align-items: center;
  justify-content: center;
  margin-top: auto;
  padding: 6px 11px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  color: #fff;
  font-size: 0.78rem;
  font-style: normal;
  font-weight: 900;
  line-height: 1.15;
}

.start-here-card.urgent {
  border-color: rgba(216, 89, 69, 0.38);
  border-left-color: var(--coral);
  background:
    linear-gradient(135deg, rgba(216, 89, 69, 0.1), transparent 58%),
    var(--panel);
}

.start-here-card.watch,
.start-here-card.normal {
  border-left-color: var(--purple);
}

.start-here-card.calm {
  border-left-color: var(--cyan);
}

.morning-checklist-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(20, 156, 152, 0.2);
  border-radius: 12px;
  padding: clamp(15px, 2vw, 20px);
  background:
    linear-gradient(135deg, rgba(20, 156, 152, 0.08), transparent 48%),
    linear-gradient(315deg, rgba(151, 0, 143, 0.055), transparent 44%),
    var(--panel);
  box-shadow: var(--shadow);
}

.morning-checklist-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 14px;
}

.morning-checklist-head h2 {
  margin-top: 3px;
  font-size: clamp(1.25rem, 1.8vw, 1.65rem);
}

.morning-checklist-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.morning-check-item {
  display: grid;
  gap: 7px;
  min-height: 122px;
  align-content: start;
  border: 1px solid var(--line);
  border-top: 4px solid var(--cyan);
  border-radius: 10px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.78);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

:root[data-theme="dark"] .morning-check-item {
  background: rgba(255, 255, 255, 0.035);
}

.morning-check-item:hover {
  border-color: rgba(151, 0, 143, 0.32);
  background: var(--purple-soft);
}

.morning-check-item span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.morning-check-item strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.morning-check-item small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 760;
  line-height: 1.35;
}

.morning-check-item.watch {
  border-top-color: var(--purple);
}

.morning-check-item.urgent {
  border-top-color: var(--coral);
  background:
    linear-gradient(135deg, rgba(216, 89, 69, 0.1), transparent 58%),
    var(--panel);
}

.role-owner .hr-home-only,
.role-hr .owner-home-only,
.role-employee .hr-home-only,
.role-employee .owner-home-only {
  display: none !important;
}

.role-owner .employee-only,
.role-hr .employee-only,
.role-employee .manager-only,
.role-employee .owner-only,
.role-hr .owner-only {
  display: none !important;
}

.owner-home-actions {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.owner-home-decision-list {
  display: grid;
  gap: 12px;
}

.owner-home-decision {
  display: grid;
  gap: 8px;
  justify-items: start;
  min-height: 112px;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.055), rgba(14, 159, 154, 0.035)),
    var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.055);
}

.owner-home-decision.critical,
.owner-home-decision.urgent {
  border-left-color: var(--coral);
}

.owner-home-decision.high {
  border-left-color: var(--amber);
}

.owner-home-decision span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.owner-home-decision strong {
  color: var(--ink);
  font-size: 1rem;
}

.owner-home-decision p {
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.quick-actions-panel {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(151, 0, 143, 0.12);
  border-radius: 12px;
  padding: clamp(14px, 2vw, 20px);
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.055), rgba(20, 156, 152, 0.045)),
    var(--panel);
  box-shadow: 0 18px 44px rgba(24, 33, 47, 0.055);
}

.quick-actions-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
}

.quick-actions-head h2 {
  margin-top: 3px;
  font-size: clamp(1.35rem, 1.8vw, 1.75rem);
}

.quick-actions-head .muted {
  margin-top: 4px;
  max-width: 64ch;
  line-height: 1.45;
}

.quick-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.quick-action-button {
  display: grid;
  gap: 7px;
  min-height: 128px;
  align-content: center;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid rgba(151, 0, 143, 0.58);
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.88);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.06);
}

:root[data-theme="dark"] .quick-action-button {
  background: rgba(255, 255, 255, 0.035);
}

.quick-action-button:hover {
  transform: translateY(-1px);
  border-color: rgba(151, 0, 143, 0.3);
  background: var(--purple-soft);
}

.quick-action-button small {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(151, 0, 143, 0.16);
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.quick-action-button strong {
  font-size: 1rem;
  line-height: 1.15;
}

.quick-action-button span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 780;
  line-height: 1.35;
}

.metric-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 14px;
}

.metric-grid.compact {
  grid-template-columns: repeat(4, minmax(120px, 1fr));
  margin-bottom: 14px;
}

.metric,
.panel {
  background:
    linear-gradient(180deg, rgba(143, 0, 141, 0.035), transparent 34%),
    var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  display: grid;
  gap: 8px;
  min-height: 104px;
  align-content: center;
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.metric::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--purple), var(--cyan));
}

.metric span,
.muted {
  color: var(--muted);
}

.metric strong {
  font-size: 2rem;
}

.panel {
  padding: 18px;
  position: relative;
  overflow: hidden;
}

.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto;
  height: 2px;
  background: var(--panel-glow);
  opacity: 0.7;
}

.empty-state,
.table-empty {
  display: grid;
  gap: 12px;
  min-height: 104px;
  align-content: center;
  justify-items: start;
  padding: 18px;
  border: 1px dashed rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.075), transparent 44%),
    linear-gradient(315deg, rgba(14, 159, 154, 0.08), transparent 42%),
    var(--input);
  color: var(--ink);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.02);
}

.empty-state p,
.table-empty {
  color: var(--muted);
  margin: 0;
}

.empty-state strong {
  color: var(--ink);
  font-size: 1rem;
  line-height: 1.25;
}

.empty-state-action {
  min-height: 34px;
  padding-inline: 14px;
}

.empty-state.calm {
  border-color: rgba(14, 159, 154, 0.2);
}

.table-empty {
  min-height: 78px;
  text-align: center;
}

.command-hero {
  display: grid;
  grid-template-columns: minmax(0, 1.3fr) minmax(280px, 0.75fr);
  gap: 18px;
  position: relative;
  overflow: hidden;
  min-height: 320px;
  padding: 24px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(115deg, rgba(12, 17, 27, 0.94), rgba(55, 9, 65, 0.9) 54%, rgba(7, 30, 39, 0.92)),
    var(--nav);
  color: #f8f5fb;
  box-shadow: 0 26px 70px rgba(30, 8, 42, 0.32);
  isolation: isolate;
}

.command-hero::before,
.command-hero::after {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: -1;
}

.command-hero::before {
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.055) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.04) 1px, transparent 1px);
  background-size: 46px 46px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.78), transparent 82%);
}

.command-hero::after {
  background: linear-gradient(100deg, transparent 0 36%, rgba(212, 91, 210, 0.13) 46%, transparent 58% 100%);
  animation: commandScan 4.8s ease-in-out infinite;
}

.command-hero-copy {
  display: grid;
  align-content: center;
  gap: 14px;
  min-width: 0;
}

.command-hero-copy h2 {
  color: #fff;
  font-size: 2.35rem;
  line-height: 1.02;
  max-width: 720px;
}

.command-hero-copy p:not(.eyebrow) {
  max-width: 680px;
  color: rgba(248, 245, 251, 0.78);
  font-weight: 650;
}

.command-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 6px;
}

.command-actions .ghost {
  border-color: rgba(255, 255, 255, 0.32);
  color: #fff;
}

.command-core {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 18px;
  align-items: center;
  justify-self: end;
  width: min(100%, 430px);
  padding: 18px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.075);
  box-shadow: inset 0 0 30px rgba(255, 255, 255, 0.045);
}

.command-radar {
  --readiness: 0%;
  display: grid;
  place-items: center;
  align-content: center;
  gap: 3px;
  position: relative;
  width: 174px;
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, rgba(255, 255, 255, 0.11) 0 34%, transparent 35%),
    conic-gradient(var(--cyan) var(--readiness), rgba(255, 255, 255, 0.13) 0);
  box-shadow: 0 0 36px rgba(73, 212, 206, 0.24), inset 0 0 30px rgba(0, 0, 0, 0.3);
}

.command-radar::before,
.command-radar::after {
  content: "";
  position: absolute;
  border-radius: 50%;
  pointer-events: none;
}

.command-radar::before {
  inset: 11px;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.command-radar::after {
  inset: 34px;
  border: 1px dashed rgba(255, 255, 255, 0.22);
  animation: commandOrbit 7s linear infinite;
}

.command-radar img {
  width: 40px;
  height: 40px;
  object-fit: contain;
  border-radius: 50%;
  background: #fff;
  padding: 4px;
  box-shadow: 0 0 18px rgba(212, 91, 210, 0.42);
}

.command-radar strong,
.command-load {
  color: #fff;
  font-size: 2.1rem;
  line-height: 1;
}

.command-radar span,
.command-core .muted,
.command-core .eyebrow {
  color: rgba(248, 245, 251, 0.72);
}

.command-status-grid {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}

.command-status-card,
.command-priority,
.formation-chip,
.command-clear,
.command-bar {
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
}

.command-status-card {
  display: grid;
  gap: 5px;
  min-width: 0;
  padding: 15px;
  background: rgba(255, 255, 255, 0.082);
}

.command-status-card span,
.command-status-card p {
  color: rgba(248, 245, 251, 0.72);
}

.command-status-card strong {
  color: #fff;
  font-size: 1.25rem;
}

.command-metrics {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
}

.command-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(280px, 0.82fr);
  gap: 18px;
}

.command-panel {
  min-height: 260px;
}

.command-panel-wide {
  grid-column: 1 / -1;
}

.command-priority-list,
.command-formation-list,
.command-radar-bars {
  display: grid;
  gap: 10px;
}

.command-priority {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 12px;
  width: 100%;
  min-height: 0;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(90deg, rgba(143, 0, 141, 0.11), transparent),
    var(--input);
  box-shadow: none;
}

.command-priority:hover {
  border-color: var(--purple);
}

.command-priority span {
  font-weight: 850;
}

.command-priority strong {
  color: var(--purple-strong);
  font-size: 1.35rem;
}

.command-priority p {
  grid-column: 1 / -1;
  color: var(--muted);
}

.command-priority.critical,
.command-priority.urgent {
  background:
    linear-gradient(90deg, rgba(216, 89, 69, 0.16), transparent),
    var(--input);
  border-color: rgba(216, 89, 69, 0.32);
}

.command-clear {
  padding: 18px;
  background: linear-gradient(135deg, rgba(22, 133, 107, 0.12), transparent), var(--input);
}

.formation-chip {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 6px 10px;
  padding: 12px;
  background: var(--input);
}

.formation-chip span {
  color: var(--muted);
  font-weight: 800;
}

.formation-chip strong {
  font-size: 1.35rem;
}

.formation-chip i {
  grid-column: 1 / -1;
  height: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(143, 0, 141, 0.1);
}

.formation-chip i::before {
  content: "";
  display: block;
  width: var(--level);
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.formation-chip.absent i::before,
.formation-chip.locked i::before {
  background: linear-gradient(90deg, var(--coral), var(--amber));
}

.command-bar {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr) 44px;
  gap: 12px;
  align-items: center;
  padding: 12px;
  background: var(--input);
}

.command-bar span {
  color: var(--muted);
  font-weight: 850;
}

.command-bar i {
  height: 10px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.1);
}

.command-bar b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--blue), var(--cyan));
}

@keyframes commandScan {
  0%,
  100% {
    transform: translateX(-34%);
    opacity: 0;
  }
  45%,
  62% {
    opacity: 1;
  }
  100% {
    transform: translateX(38%);
  }
}

@keyframes commandOrbit {
  to {
    transform: rotate(360deg);
  }
}

.owner-desk-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 20px;
  align-items: center;
  overflow: hidden;
  min-height: 190px;
  border: 1px solid rgba(212, 91, 210, 0.26);
  border-radius: 8px;
  padding: 26px;
  background:
    radial-gradient(circle at 82% 22%, rgba(73, 212, 206, 0.28), transparent 24%),
    radial-gradient(circle at 16% 18%, rgba(212, 91, 210, 0.32), transparent 30%),
    linear-gradient(135deg, #19051f, #101827 58%, #080c12);
  color: white;
  box-shadow: var(--purple-shadow);
}

.owner-desk-hero::after {
  content: "";
  position: absolute;
  inset: auto 0 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), transparent);
  animation: commandScan 2600ms ease-in-out infinite alternate;
}

.owner-desk-hero h2 {
  margin: 5px 0 8px;
  font-size: clamp(2rem, 5vw, 4.8rem);
  line-height: 0.95;
}

.owner-desk-hero p:not(.eyebrow) {
  max-width: 760px;
  color: rgba(255, 255, 255, 0.72);
}

.owner-score {
  display: grid;
  place-items: center;
  gap: 5px;
  width: 150px;
  aspect-ratio: 1;
  justify-self: end;
  border-radius: 50%;
  background:
    radial-gradient(circle, rgba(8, 12, 18, 0.92) 49%, transparent 51%),
    conic-gradient(from 230deg, var(--purple), var(--cyan), rgba(255, 255, 255, 0.2), var(--purple));
  box-shadow: 0 0 36px rgba(212, 91, 210, 0.42);
}

.owner-score span,
.owner-score p {
  color: rgba(255, 255, 255, 0.66);
  font-size: 0.72rem;
  font-weight: 800;
  max-width: 104px;
  text-align: center;
  text-transform: uppercase;
}

.owner-score strong {
  font-size: 2.1rem;
  line-height: 1;
}

.owner-desk-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.95fr) minmax(360px, 1.05fr);
  gap: 18px;
}

.owner-list,
.owner-detail-body,
.owner-recent {
  display: grid;
  gap: 10px;
}

.owner-card {
  position: relative;
  display: grid;
  gap: 6px;
  overflow: hidden;
  min-height: 120px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

.owner-card.active {
  border-color: rgba(143, 0, 141, 0.72);
  box-shadow: 0 14px 34px rgba(143, 0, 141, 0.16);
}

.owner-card.critical {
  border-left-color: var(--coral);
}

.owner-card.urgent {
  border-left-color: var(--amber);
}

.owner-card.high {
  border-left-color: var(--purple);
}

.owner-card span {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.owner-card strong {
  font-size: 1rem;
}

.owner-card p {
  color: var(--muted);
  font-size: 0.88rem;
}

.owner-card i {
  position: relative;
  overflow: hidden;
  width: 100%;
  height: 5px;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.1);
}

.owner-card i::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: var(--level);
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan));
}

.owner-profile {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 14px;
  align-items: start;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, var(--purple-soft), transparent 58%);
}

.owner-profile strong {
  display: block;
  margin: 3px 0 5px;
  font-size: 1.25rem;
}

.owner-profile div:last-child {
  min-width: 92px;
  text-align: right;
}

.owner-profile div:last-child strong {
  color: var(--purple-strong);
  font-size: 2rem;
}

.owner-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.owner-signal-grid article,
.owner-action-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.owner-signal-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.owner-signal-grid strong,
.owner-action-row strong {
  overflow-wrap: anywhere;
}

.owner-action-row {
  display: grid;
  gap: 6px;
}

.owner-action-row p {
  color: var(--muted);
}

.owner-pay-visibility {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.owner-pay-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: color-mix(in srgb, var(--panel) 88%, var(--purple) 5%);
}

.owner-pay-card:nth-child(5) {
  grid-column: 1 / -1;
}

.owner-pay-list {
  display: grid;
  gap: 8px;
}

.owner-decision-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.26);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 50%),
    var(--panel);
  box-shadow: var(--purple-shadow);
}

.owner-decision-box p {
  margin-top: 5px;
  color: var(--muted);
}

.owner-decision-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
}

.owner-decision-actions button {
  min-width: 132px;
}

:root[data-theme="dark"] .owner-card,
:root[data-theme="dark"] .owner-signal-grid article,
:root[data-theme="dark"] .owner-action-row,
:root[data-theme="dark"] .owner-decision-box {
  background: rgba(16, 23, 34, 0.9);
}

.mission-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(153, 27, 155, 0.22);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(21, 6, 38, 0.96), rgba(80, 13, 85, 0.88)),
    radial-gradient(circle at 20% 20%, rgba(28, 190, 176, 0.2), transparent 32%);
  color: #fff;
  box-shadow: 0 26px 70px rgba(76, 0, 96, 0.24);
}

.mission-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background-image:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 34px 34px;
  mask-image: linear-gradient(90deg, #000, transparent 76%);
  opacity: 0.45;
}

.mission-hero > * {
  position: relative;
  z-index: 1;
}

.mission-hero h2 {
  margin: 8px 0;
  font-size: 2.25rem;
  letter-spacing: 0;
}

.mission-hero p:not(.eyebrow) {
  max-width: 720px;
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
}

.mission-pulse {
  position: relative;
  display: grid;
  width: 138px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(176, 17, 170, 0.32), rgba(11, 17, 32, 0.82));
  border: 1px solid rgba(255, 255, 255, 0.2);
}

.mission-pulse span {
  position: absolute;
  inset: 13px;
  border: 1px solid rgba(28, 190, 176, 0.58);
  border-radius: inherit;
  animation: missionPulse 2.8s ease-out infinite;
}

.mission-pulse span + span {
  animation-delay: 1.1s;
}

.mission-pulse strong {
  font-size: 2.7rem;
}

.mission-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(320px, 0.75fr);
  gap: 18px;
}

.mission-list {
  display: grid;
  gap: 12px;
}

.mission-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid rgba(153, 27, 155, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(250, 245, 255, 0.72));
}

.mission-card.critical,
.mission-card.urgent {
  border-color: rgba(220, 38, 38, 0.32);
  box-shadow: inset 4px 0 0 rgba(220, 38, 38, 0.86);
}

.mission-card.high {
  border-color: rgba(153, 27, 155, 0.34);
  box-shadow: inset 4px 0 0 rgba(153, 27, 155, 0.78);
}

.mission-card.active {
  outline: 2px solid rgba(28, 190, 176, 0.72);
  background: linear-gradient(135deg, rgba(250, 245, 255, 0.98), rgba(236, 254, 255, 0.74));
}

.mission-select {
  min-width: 0;
  padding: 0;
  color: inherit;
  text-align: left;
  background: transparent;
  border: 0;
  box-shadow: none;
}

.mission-select:hover,
.mission-select:focus {
  transform: none;
  box-shadow: none;
}

.mission-lane {
  display: inline-flex;
  margin-bottom: 8px;
  color: var(--accent-strong);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.mission-card strong {
  display: block;
  font-size: 1.02rem;
}

.mission-card p {
  margin: 7px 0;
  color: var(--muted);
}

.mission-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  color: var(--muted);
  font-size: 0.86rem;
}

.mission-source {
  white-space: nowrap;
}

.mission-action-panel {
  align-self: start;
}

.mission-recent {
  display: grid;
  gap: 10px;
  margin-top: 18px;
}

.mission-recent h3 {
  margin: 0;
  font-size: 1rem;
}

.mission-action-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.7);
}

.mission-action-row p {
  margin: 4px 0 0;
  color: var(--muted);
}

@keyframes missionPulse {
  0% {
    transform: scale(0.78);
    opacity: 0.9;
  }
  100% {
    transform: scale(1.22);
    opacity: 0;
  }
}

:root[data-theme="dark"] .mission-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(37, 20, 52, 0.88));
}

:root[data-theme="dark"] .mission-card.active {
  background: linear-gradient(135deg, rgba(37, 20, 52, 0.98), rgba(10, 49, 55, 0.72));
}

:root[data-theme="dark"] .mission-action-row {
  background: rgba(16, 23, 34, 0.86);
}

.intel-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(14, 159, 154, 0.24);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(14, 159, 154, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(13, 17, 24, 0.98), rgba(82, 11, 92, 0.86));
  color: #fff;
  box-shadow: 0 26px 72px rgba(14, 159, 154, 0.16);
}

.intel-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.34;
}

.intel-hero > * {
  position: relative;
  z-index: 1;
}

.intel-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.intel-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.intel-score {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(143, 0, 141, 0.54), rgba(12, 19, 32, 0.86) 68%),
    conic-gradient(from -40deg, var(--cyan), var(--purple), var(--cyan));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.intel-score span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intel-score strong {
  align-self: start;
  font-size: 3rem;
}

.people-intel-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.82fr);
  gap: 18px;
}

.people-intel-list {
  display: grid;
  gap: 12px;
}

.people-intel-card {
  display: grid;
  gap: 8px;
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.94), rgba(250, 245, 255, 0.78));
  box-shadow: none;
}

.people-intel-card:hover,
.people-intel-card:focus {
  transform: translateY(-1px);
  box-shadow: var(--purple-shadow);
}

.people-intel-card.active {
  outline: 2px solid rgba(14, 159, 154, 0.7);
}

.people-intel-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.people-intel-card.watch {
  box-shadow: inset 5px 0 0 var(--amber);
}

.people-intel-card.clear {
  box-shadow: inset 5px 0 0 var(--green);
}

.people-intel-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.people-intel-card p,
.people-intel-card small {
  color: var(--muted);
}

.intel-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.intel-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green));
}

.people-intel-detail {
  align-self: start;
}

.employee-profile-layout {
  display: grid;
  grid-template-columns: minmax(280px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.employee-profile-card-panel,
.employee-profile-detail-panel {
  min-width: 0;
}

.employee-profile-cards,
.employee-profile-list {
  display: grid;
  gap: 12px;
}

.employee-profile-card {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  box-shadow: none;
}

.employee-profile-card:hover,
.employee-profile-card:focus,
.employee-profile-card.active {
  border-color: rgba(143, 0, 141, 0.44);
  transform: translateY(-1px);
  box-shadow: var(--purple-shadow);
}

.employee-profile-card.active {
  outline: 2px solid rgba(14, 159, 154, 0.58);
}

.employee-profile-card span,
.employee-profile-card small,
.employee-profile-list small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 800;
}

.employee-profile-card span {
  color: var(--purple-strong);
  text-transform: uppercase;
}

.employee-profile-card p {
  color: var(--muted);
}

.employee-profile-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: start;
  padding-bottom: 16px;
  border-bottom: 1px solid var(--line);
}

.employee-profile-head p {
  color: var(--muted);
}

.employee-profile-actions,
.profile-tabs {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
}

.profile-tabs {
  justify-content: flex-start;
  margin: 16px 0;
}

.profile-tabs button {
  min-height: 38px;
  padding: 8px 13px;
  color: var(--muted);
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input);
  box-shadow: none;
}

.profile-tabs button.active {
  color: #fff;
  border-color: transparent;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
}

.employee-profile-week {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}

.employee-profile-day,
.employee-profile-list article,
.profile-detail-grid article,
.employee-document-summary article {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.employee-profile-day {
  display: grid;
  gap: 6px;
  border-left: 4px solid rgba(143, 0, 141, 0.62);
}

.employee-profile-day.office {
  border-left-color: var(--green);
}

.employee-profile-day.home {
  border-left-color: var(--cyan);
}

.employee-profile-day.off {
  border-left-color: var(--muted);
}

.employee-profile-day span,
.profile-detail-grid span,
.employee-document-summary span {
  color: var(--muted);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-profile-day p,
.employee-profile-day small {
  color: var(--muted);
}

.employee-profile-list article {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: start;
}

.employee-profile-list p {
  color: var(--muted);
  margin-top: 4px;
}

.profile-detail-grid,
.employee-document-summary {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-document-summary {
  margin-top: 12px;
}

.profile-detail-grid article,
.employee-document-summary article {
  display: grid;
  gap: 6px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.1);
  font-size: 0.78rem;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.approved,
.status-pill.completed {
  color: var(--green);
  background: rgba(14, 159, 154, 0.12);
}

.status-pill.rejected,
.status-pill.urgent {
  color: var(--coral);
  background: rgba(216, 89, 69, 0.14);
}

.status-pill.watch {
  color: #c48a10;
  background: rgba(196, 138, 16, 0.14);
}

.status-pill.info {
  color: #2176ae;
  background: rgba(33, 118, 174, 0.14);
}

.status-pill.purple {
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.14);
}

.status-pill.muted {
  color: var(--muted);
  background: rgba(120, 132, 158, 0.14);
}

.intel-profile {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.intel-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.14), rgba(14, 159, 154, 0.12));
}

.intel-profile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.intel-profile strong {
  font-size: 1.35rem;
}

.intel-profile > div:first-child strong {
  font-size: 2.5rem;
}

.intel-reasons {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin: 14px 0;
}

.intel-reason {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  padding: 7px 10px;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--muted);
  background: var(--input);
  font-size: 0.82rem;
  font-weight: 800;
}

.intel-reason.critical {
  border-color: rgba(216, 89, 69, 0.42);
  color: var(--coral);
}

.intel-reason.high {
  border-color: rgba(183, 121, 31, 0.38);
  color: var(--amber);
}

.intel-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.intel-signal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.intel-signal-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.intel-signal-grid strong {
  display: block;
  margin-top: 5px;
  font-size: 1.25rem;
}

.intel-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

:root[data-theme="dark"] .people-intel-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(37, 20, 52, 0.82));
}

.service-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(14, 159, 154, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 86% 28%, rgba(14, 159, 154, 0.34), transparent 28%),
    radial-gradient(circle at 22% 80%, rgba(216, 89, 69, 0.18), transparent 26%),
    linear-gradient(135deg, rgba(12, 19, 32, 0.99), rgba(84, 13, 96, 0.9));
  color: #fff;
  box-shadow: 0 26px 72px rgba(14, 159, 154, 0.16);
}

.service-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px);
  background-size: 32px 32px;
  mask-image: radial-gradient(circle at 82% 48%, black, transparent 74%);
  opacity: 0.44;
}

.service-hero > * {
  position: relative;
  z-index: 1;
}

.service-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.service-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.service-core {
  position: relative;
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(12, 19, 32, 0.9), rgba(143, 0, 141, 0.34)),
    conic-gradient(from -80deg, var(--cyan), var(--purple), var(--coral), var(--cyan));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42), 0 0 42px rgba(14, 159, 154, 0.26);
}

.service-core span {
  position: absolute;
  inset: 18px;
  border: 2px dashed rgba(255, 255, 255, 0.55);
  border-radius: inherit;
  animation: spin 12s linear infinite;
}

.service-core strong {
  align-self: end;
  font-size: 3rem;
}

.service-core small {
  align-self: start;
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.service-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(340px, 0.42fr);
  gap: 18px;
}

.service-board-panel,
.service-action-panel {
  align-self: start;
}

.service-list {
  display: grid;
  gap: 12px;
}

.service-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  padding: 14px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 251, 255, 0.78));
}

.service-card.critical {
  border-color: rgba(216, 89, 69, 0.36);
  box-shadow: inset 5px 0 0 var(--coral);
}

.service-card.high {
  border-color: rgba(183, 121, 31, 0.34);
  box-shadow: inset 5px 0 0 var(--amber);
}

.service-card.active {
  outline: 2px solid rgba(14, 159, 154, 0.72);
}

.service-select {
  display: grid;
  gap: 7px;
  min-height: auto;
  padding: 0;
  color: var(--ink);
  text-align: left;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.service-select:hover,
.service-select:focus {
  transform: none;
  box-shadow: none;
}

.service-lane {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.service-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.service-source {
  white-space: nowrap;
}

.service-recent {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.service-recent h3 {
  margin: 0;
  font-size: 1rem;
}

.service-action-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.service-action-row p {
  color: var(--muted);
}

:root[data-theme="dark"] .service-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(20, 42, 52, 0.78));
}

.compliance-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 22%, rgba(143, 0, 141, 0.36), transparent 30%),
    radial-gradient(circle at 18% 90%, rgba(31, 154, 109, 0.22), transparent 28%),
    linear-gradient(135deg, rgba(13, 17, 24, 0.99), rgba(70, 16, 92, 0.9));
  color: #fff;
  box-shadow: 0 26px 72px rgba(143, 0, 141, 0.18);
}

.compliance-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 26px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.42;
}

.compliance-hero > * {
  position: relative;
  z-index: 1;
}

.compliance-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.compliance-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.compliance-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(12, 19, 32, 0.88), rgba(143, 0, 141, 0.36)),
    conic-gradient(from 40deg, var(--green), var(--cyan), var(--purple), var(--green));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.compliance-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compliance-core strong {
  align-self: start;
  font-size: 3rem;
}

.compliance-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.compliance-list {
  display: grid;
  gap: 12px;
}

.compliance-card {
  display: grid;
  gap: 8px;
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(250, 245, 255, 0.78));
  box-shadow: none;
}

.compliance-card:hover,
.compliance-card:focus {
  transform: translateY(-1px);
  box-shadow: var(--purple-shadow);
}

.compliance-card.active {
  outline: 2px solid rgba(14, 159, 154, 0.72);
}

.compliance-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.compliance-card.watch {
  box-shadow: inset 5px 0 0 var(--amber);
}

.compliance-card.clear {
  box-shadow: inset 5px 0 0 var(--green);
}

.compliance-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.compliance-card p,
.compliance-card small {
  color: var(--muted);
}

.compliance-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.compliance-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--green));
}

.compliance-detail {
  align-self: start;
}

.compliance-profile {
  display: grid;
  grid-template-columns: 130px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.compliance-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.14), rgba(31, 154, 109, 0.12));
}

.compliance-profile span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.compliance-profile strong {
  font-size: 1.35rem;
}

.compliance-profile > div:first-child strong {
  font-size: 2.5rem;
}

.compliance-gap-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.compliance-gap-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.compliance-gap-grid span {
  display: block;
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
}

.compliance-chip {
  display: inline-flex;
  margin: 6px 6px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.compliance-chip.clear {
  color: var(--green);
  border-color: rgba(31, 154, 109, 0.28);
  background: rgba(31, 154, 109, 0.1);
}

.compliance-recent {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.compliance-recent h3 {
  margin: 0;
  font-size: 1rem;
}

.compliance-action-row {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.compliance-action-row p {
  color: var(--muted);
}

:root[data-theme="dark"] .compliance-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(37, 20, 52, 0.82));
}

.document-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(14, 159, 154, 0.26), transparent 28%),
    radial-gradient(circle at 16% 84%, rgba(245, 158, 11, 0.16), transparent 30%),
    linear-gradient(135deg, rgba(8, 13, 23, 0.99), rgba(54, 24, 86, 0.94) 55%, rgba(18, 63, 73, 0.86));
  color: #fff;
  box-shadow: 0 26px 72px rgba(31, 22, 76, 0.2);
}

.document-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(45deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 30px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.34;
}

.document-hero > * {
  position: relative;
  z-index: 1;
}

.document-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.document-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.document-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(11, 18, 30, 0.9), rgba(143, 0, 141, 0.24)),
    conic-gradient(from 60deg, var(--cyan), var(--purple), var(--amber), var(--green), var(--cyan));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.document-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-core strong {
  align-self: start;
  font-size: 2.45rem;
}

.document-command-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.document-command-list,
.document-command-files,
.document-vault-recent {
  display: grid;
  gap: 12px;
}

.document-command-card,
.document-command-file,
.document-command-action {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(14, 159, 154, 0.18);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(242, 250, 255, 0.82));
}

.document-command-card {
  min-height: auto;
  text-align: left;
  box-shadow: none;
}

.document-command-card:hover,
.document-command-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(14, 159, 154, 0.14);
}

.document-command-card.active {
  outline: 2px solid rgba(143, 0, 141, 0.64);
}

.document-command-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.document-command-card.watch {
  box-shadow: inset 5px 0 0 var(--amber);
}

.document-command-card.clear {
  box-shadow: inset 5px 0 0 var(--green);
}

.document-command-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.document-command-card p,
.document-command-card small,
.document-command-file p,
.document-command-action p {
  color: var(--muted);
}

.document-command-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.document-command-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--cyan), var(--green));
}

.document-command-detail {
  align-self: start;
}

.document-command-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.document-command-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 159, 154, 0.14), rgba(143, 0, 141, 0.12));
}

.document-command-profile span,
.document-command-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.document-command-profile strong {
  font-size: 1.35rem;
}

.document-command-profile > div:first-child strong {
  font-size: 2.25rem;
}

.document-command-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.document-command-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.document-command-chip {
  display: inline-flex;
  margin: 6px 6px 0 0;
  padding: 6px 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.document-command-chip.clear {
  color: var(--green);
  border-color: rgba(31, 154, 109, 0.28);
  background: rgba(31, 154, 109, 0.1);
}

.document-command-files {
  margin-top: 14px;
}

.document-vault-recent {
  margin-top: 16px;
}

.document-vault-recent h3 {
  margin: 0;
  font-size: 1rem;
}

:root[data-theme="dark"] .document-command-card,
:root[data-theme="dark"] .document-command-file,
:root[data-theme="dark"] .document-command-action {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(18, 40, 54, 0.82));
}

.calendar-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 82% 18%, rgba(143, 0, 141, 0.42), transparent 28%),
    radial-gradient(circle at 18% 82%, rgba(31, 154, 109, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(7, 13, 22, 0.99), rgba(53, 22, 92, 0.94) 54%, rgba(12, 70, 82, 0.88));
  color: #fff;
  box-shadow: 0 26px 72px rgba(52, 29, 124, 0.22);
}

.calendar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.055) 0 1px, transparent 1px 28px);
  opacity: 0.36;
}

.calendar-hero > * {
  position: relative;
  z-index: 1;
}

.calendar-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.calendar-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.calendar-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(11, 18, 30, 0.92), rgba(143, 0, 141, 0.22)),
    conic-gradient(from 30deg, var(--purple), var(--cyan), var(--green), var(--amber), var(--purple));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.calendar-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-core strong {
  align-self: start;
  font-size: 2.45rem;
}

.calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.calendar-month-panel {
  overflow: hidden;
}

.det-calendar-month {
  display: grid;
  gap: 0;
  overflow-x: auto;
  padding-bottom: 2px;
}

.det-calendar-weekdays,
.det-calendar-days {
  min-width: 880px;
}

.det-calendar-weekdays {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border: 1px solid var(--line);
  border-bottom: 0;
  border-radius: 8px 8px 0 0;
  background: var(--input);
}

.det-calendar-weekdays span {
  padding: 10px 12px;
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
  border-right: 1px solid var(--line);
}

.det-calendar-weekdays span:last-child {
  border-right: 0;
}

.det-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  border-left: 1px solid var(--line);
  border-top: 1px solid var(--line);
}

.det-calendar-day {
  min-height: 136px;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  gap: 7px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 10px;
  background: rgba(255, 255, 255, 0.72);
}

.det-calendar-day.muted {
  background: rgba(102, 112, 133, 0.045);
}

.det-calendar-day.today {
  box-shadow: inset 0 0 0 2px rgba(143, 0, 141, 0.42);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 60%),
    rgba(255, 255, 255, 0.86);
}

.det-calendar-day-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.det-calendar-day-head strong {
  color: var(--ink);
  font-size: 0.92rem;
}

.det-calendar-day-head span {
  border-radius: 999px;
  padding: 3px 7px;
  color: #fff;
  background: var(--purple);
  font-size: 0.66rem;
  font-weight: 900;
}

.det-calendar-chips {
  display: grid;
  align-content: start;
  gap: 5px;
  min-width: 0;
}

.det-calendar-chips > p {
  margin: 0;
  color: transparent;
  min-height: 22px;
}

.det-calendar-chip {
  display: grid;
  grid-template-columns: 48px minmax(0, 1fr);
  gap: 6px;
  align-items: center;
  min-height: 28px;
  width: 100%;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 7px;
  padding: 4px 7px;
  color: var(--ink);
  background: var(--panel);
  box-shadow: none;
  text-align: left;
}

.det-calendar-chip span {
  overflow: hidden;
  color: var(--muted);
  font-size: 0.62rem;
  font-weight: 900;
  text-overflow: ellipsis;
  text-transform: uppercase;
  white-space: nowrap;
}

.det-calendar-chip strong {
  overflow: hidden;
  font-size: 0.74rem;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.det-calendar-chip:hover,
.det-calendar-chip:focus {
  transform: translateY(-1px);
  box-shadow: 0 10px 20px rgba(143, 0, 141, 0.13);
}

.det-calendar-chip.active {
  border-color: rgba(143, 0, 141, 0.62);
  box-shadow: 0 0 0 2px rgba(143, 0, 141, 0.12);
}

.det-calendar-chip.danger {
  border-color: rgba(216, 89, 69, 0.35);
  background: rgba(216, 89, 69, 0.1);
}

.det-calendar-chip.watch {
  border-color: rgba(214, 165, 40, 0.38);
  background: rgba(214, 165, 40, 0.12);
}

.det-calendar-chip.holiday,
.det-calendar-chip.leave {
  border-color: rgba(22, 133, 107, 0.32);
  background: rgba(22, 133, 107, 0.1);
}

.det-calendar-chip.office {
  border-color: rgba(143, 0, 141, 0.28);
  background: rgba(143, 0, 141, 0.1);
}

.det-calendar-chip.home {
  border-color: rgba(18, 189, 184, 0.32);
  background: rgba(18, 189, 184, 0.1);
}

.det-calendar-chips small {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 850;
}

.calendar-list,
.calendar-recent {
  display: grid;
  gap: 12px;
}

.calendar-card,
.calendar-action-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(245, 247, 255, 0.82));
}

.calendar-card {
  min-height: 124px;
  text-align: left;
  box-shadow: none;
}

.calendar-card:hover,
.calendar-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(143, 0, 141, 0.14);
}

.calendar-card.active {
  outline: 2px solid rgba(143, 0, 141, 0.66);
}

.calendar-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.calendar-card.high {
  box-shadow: inset 5px 0 0 var(--amber);
}

.calendar-card.normal {
  box-shadow: inset 5px 0 0 var(--cyan);
}

.calendar-card.quiet {
  box-shadow: inset 5px 0 0 var(--green);
}

.calendar-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.calendar-card p,
.calendar-card small,
.calendar-action-row p,
.calendar-event-body {
  color: var(--muted);
}

.calendar-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.calendar-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--purple), var(--cyan), var(--green));
}

.calendar-detail {
  align-self: start;
}

.calendar-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.calendar-profile > div:first-child {
  display: grid;
  place-items: center;
  text-align: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.14), rgba(14, 159, 154, 0.12));
}

.calendar-profile span,
.calendar-signal-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.calendar-profile strong {
  font-size: 1.28rem;
}

.calendar-profile > div:first-child strong {
  max-width: 100%;
  font-size: 1.45rem;
  line-height: 1.05;
}

.calendar-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.calendar-signal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.calendar-signal-grid strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.calendar-event-body {
  margin: 12px 0 0;
}

.calendar-recent {
  margin-top: 16px;
}

.calendar-recent h3 {
  margin: 0;
  font-size: 1rem;
}

:root[data-theme="dark"] .calendar-card,
:root[data-theme="dark"] .calendar-action-row,
:root[data-theme="dark"] .det-calendar-day,
:root[data-theme="dark"] .det-calendar-chip {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(37, 20, 52, 0.82));
}

:root[data-theme="dark"] .det-calendar-weekdays {
  background: rgba(15, 23, 42, 0.9);
}

:root[data-theme="dark"] .det-calendar-day.muted {
  background: rgba(15, 23, 42, 0.52);
}

:root[data-theme="dark"] .det-calendar-day.today {
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.22), transparent 60%),
    rgba(21, 27, 38, 0.96);
}

.sla-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.3);
  border-radius: 8px;
  background:
    radial-gradient(circle at 18% 18%, rgba(216, 89, 69, 0.22), transparent 28%),
    radial-gradient(circle at 84% 74%, rgba(14, 159, 154, 0.26), transparent 30%),
    linear-gradient(135deg, rgba(7, 13, 22, 0.99), rgba(68, 18, 82, 0.95) 54%, rgba(48, 43, 95, 0.9));
  color: #fff;
  box-shadow: 0 26px 72px rgba(52, 29, 124, 0.22);
}

.sla-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(135deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 32px),
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent);
  opacity: 0.34;
}

.sla-hero > * {
  position: relative;
  z-index: 1;
}

.sla-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.sla-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.sla-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.26);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(11, 18, 30, 0.92), rgba(216, 89, 69, 0.2)),
    conic-gradient(from 10deg, var(--coral), var(--purple), var(--cyan), var(--amber), var(--coral));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.sla-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sla-core strong {
  align-self: start;
  font-size: 2.45rem;
}

.sla-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.sla-list,
.sla-recent {
  display: grid;
  gap: 12px;
}

.sla-card,
.sla-action-row {
  display: grid;
  gap: 8px;
  padding: 14px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  color: var(--ink);
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 250, 0.82));
}

.sla-card {
  min-height: 124px;
  text-align: left;
  box-shadow: none;
}

.sla-card:hover,
.sla-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(143, 0, 141, 0.14);
}

.sla-card.active {
  outline: 2px solid rgba(143, 0, 141, 0.66);
}

.sla-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.sla-card.high {
  box-shadow: inset 5px 0 0 var(--amber);
}

.sla-card.watch {
  box-shadow: inset 5px 0 0 var(--cyan);
}

.sla-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.sla-card p,
.sla-card small,
.sla-action-row p {
  color: var(--muted);
}

.sla-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.sla-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--purple), var(--cyan), var(--green));
}

.sla-detail {
  align-self: start;
}

.sla-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.sla-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(216, 89, 69, 0.14), rgba(143, 0, 141, 0.12));
}

.sla-profile span,
.sla-signal-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.sla-profile strong {
  font-size: 1.28rem;
}

.sla-profile > div:first-child strong {
  font-size: 2.25rem;
}

.sla-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.sla-signal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.sla-signal-grid strong {
  display: block;
  margin-top: 4px;
  word-break: break-word;
}

.sla-recent {
  margin-top: 16px;
}

.sla-recent h3 {
  margin: 0;
  font-size: 1rem;
}

:root[data-theme="dark"] .sla-card,
:root[data-theme="dark"] .sla-action-row {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(52, 23, 41, 0.82));
}

.workforce-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.26);
  border-radius: 8px;
  background:
    radial-gradient(circle at 14% 18%, rgba(14, 159, 154, 0.28), transparent 26%),
    radial-gradient(circle at 82% 76%, rgba(143, 0, 141, 0.34), transparent 30%),
    linear-gradient(135deg, rgba(7, 13, 22, 0.99), rgba(35, 20, 74, 0.94) 52%, rgba(17, 74, 76, 0.86));
  color: #fff;
  box-shadow: 0 26px 72px rgba(45, 31, 130, 0.2);
}

.workforce-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.08), transparent),
    repeating-linear-gradient(0deg, rgba(255, 255, 255, 0.08) 0 1px, transparent 1px 34px);
  opacity: 0.38;
}

.workforce-hero > * {
  position: relative;
  z-index: 1;
}

.workforce-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.workforce-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.workforce-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(11, 18, 30, 0.9), rgba(14, 159, 154, 0.24)),
    conic-gradient(from 120deg, var(--cyan), var(--purple), var(--amber), var(--green), var(--cyan));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.workforce-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workforce-core strong {
  align-self: start;
  font-size: 2.45rem;
}

.workforce-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.team-calendar {
  overflow-x: auto;
  padding-bottom: 4px;
}

.team-calendar-grid {
  display: grid;
  grid-template-columns: minmax(190px, 230px) repeat(var(--team-calendar-days, 7), minmax(170px, 1fr));
  min-width: 1320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.team-calendar-corner,
.team-calendar-head,
.team-calendar-employee,
.team-calendar-cell {
  min-width: 0;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
}

.team-calendar-corner,
.team-calendar-head {
  position: sticky;
  top: 0;
  z-index: 2;
  padding: 12px;
  background: linear-gradient(180deg, rgba(143, 0, 141, 0.1), rgba(14, 159, 154, 0.07)), var(--card);
}

.team-calendar-corner {
  left: 0;
  z-index: 3;
  color: var(--purple-strong);
  font-weight: 950;
}

.team-calendar-head {
  display: grid;
  gap: 4px;
}

.team-calendar-head span,
.team-calendar-head small,
.team-calendar-employee span,
.team-calendar-cell small,
.team-calendar-cell em {
  color: var(--muted);
  font-size: 0.76rem;
  font-style: normal;
  line-height: 1.35;
}

.team-calendar-head small {
  color: var(--purple-strong);
  font-weight: 850;
}

.team-calendar-employee {
  position: sticky;
  left: 0;
  z-index: 1;
  display: grid;
  gap: 4px;
  padding: 12px;
  background: var(--card);
}

.team-calendar-employee strong,
.team-calendar-cell strong,
.team-calendar-cell span,
.team-calendar-cell small,
.team-calendar-cell em {
  overflow-wrap: anywhere;
}

.team-calendar-cell {
  display: grid;
  gap: 5px;
  min-height: 112px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  border-radius: 0;
  background: var(--input);
  box-shadow: none;
}

.team-calendar-cell:hover,
.team-calendar-cell:focus {
  z-index: 2;
  transform: none;
  outline: 2px solid rgba(143, 0, 141, 0.44);
  outline-offset: -2px;
  box-shadow: inset 0 0 0 1px rgba(143, 0, 141, 0.16);
}

.team-calendar-cell.office {
  background: linear-gradient(135deg, rgba(14, 159, 154, 0.14), rgba(14, 159, 154, 0.04));
  box-shadow: inset 4px 0 0 var(--cyan);
}

.team-calendar-cell.remote {
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.12), rgba(143, 0, 141, 0.04));
  box-shadow: inset 4px 0 0 var(--purple);
}

.team-calendar-cell.leave {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  box-shadow: inset 4px 0 0 var(--amber);
}

.team-calendar-cell.off {
  background: linear-gradient(135deg, rgba(102, 112, 133, 0.14), rgba(102, 112, 133, 0.05));
  box-shadow: inset 4px 0 0 rgba(102, 112, 133, 0.72);
}

.team-calendar-cell.missing,
.team-calendar-cell.warning {
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.13), rgba(255, 90, 95, 0.04));
  box-shadow: inset 4px 0 0 var(--coral);
}

.workforce-list {
  display: grid;
  gap: 12px;
}

.workforce-card {
  display: grid;
  gap: 8px;
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(14, 159, 154, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 251, 250, 0.78));
  box-shadow: none;
}

.workforce-card:hover,
.workforce-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(14, 159, 154, 0.14);
}

.workforce-card.active {
  outline: 2px solid rgba(143, 0, 141, 0.64);
}

.workforce-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.workforce-card.watch {
  box-shadow: inset 5px 0 0 var(--amber);
}

.workforce-card.covered {
  box-shadow: inset 5px 0 0 var(--green);
}

.workforce-card.quiet {
  box-shadow: inset 5px 0 0 var(--cyan);
}

.workforce-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.workforce-card p,
.workforce-card small {
  color: var(--muted);
}

.workforce-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.workforce-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--coral), var(--amber), var(--cyan), var(--green));
}

.workforce-detail {
  align-self: start;
}

.workforce-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.workforce-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(14, 159, 154, 0.14), rgba(143, 0, 141, 0.12));
}

.workforce-profile span,
.workforce-signal-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.workforce-profile strong {
  font-size: 1.35rem;
}

.workforce-profile > div:first-child strong {
  font-size: 2.25rem;
}

.workforce-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.workforce-signal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.workforce-signal-grid strong {
  display: block;
  margin-top: 5px;
}

.workforce-warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.workforce-chip {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.workforce-chip.critical {
  color: var(--coral);
  border-color: rgba(255, 90, 95, 0.3);
  background: rgba(255, 90, 95, 0.1);
}

.workforce-chip.watch {
  color: #a05f00;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
}

.workforce-chip.covered,
.workforce-chip.quiet {
  color: var(--green);
  border-color: rgba(31, 154, 109, 0.28);
  background: rgba(31, 154, 109, 0.1);
}

.workforce-recent {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.workforce-recent h3 {
  margin: 0;
  font-size: 1rem;
}

.workforce-action-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.workforce-action-row p {
  color: var(--muted);
}

:root[data-theme="dark"] .workforce-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(18, 47, 54, 0.82));
}

:root[data-theme="dark"] .team-calendar-grid,
:root[data-theme="dark"] .team-calendar-corner,
:root[data-theme="dark"] .team-calendar-head,
:root[data-theme="dark"] .team-calendar-employee {
  background-color: var(--card);
}

.relations-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 76% 24%, rgba(245, 158, 11, 0.18), transparent 28%),
    radial-gradient(circle at 20% 76%, rgba(14, 159, 154, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(9, 12, 22, 0.98), rgba(83, 18, 94, 0.9) 56%, rgba(82, 25, 46, 0.88));
  color: #fff;
  box-shadow: 0 26px 72px rgba(83, 18, 94, 0.2);
}

.relations-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 38px),
    linear-gradient(110deg, transparent 0 42%, rgba(255, 255, 255, 0.1) 50%, transparent 58% 100%);
  opacity: 0.34;
}

.relations-hero > * {
  position: relative;
  z-index: 1;
}

.relations-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.relations-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.relations-core {
  display: grid;
  width: 148px;
  aspect-ratio: 1;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(11, 18, 30, 0.9), rgba(143, 0, 141, 0.26)),
    conic-gradient(from 180deg, var(--coral), var(--amber), var(--purple), var(--cyan), var(--coral));
  box-shadow: inset 0 0 0 12px rgba(7, 13, 22, 0.42);
}

.relations-core span {
  align-self: end;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.relations-core strong {
  align-self: start;
  font-size: 2.45rem;
}

.relations-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(380px, 0.9fr);
  gap: 18px;
}

.relations-list {
  display: grid;
  gap: 12px;
}

.relations-card {
  display: grid;
  gap: 8px;
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(255, 247, 252, 0.82));
  box-shadow: none;
}

.relations-card:hover,
.relations-card:focus {
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(143, 0, 141, 0.14);
}

.relations-card.active {
  outline: 2px solid rgba(14, 159, 154, 0.72);
}

.relations-card.critical {
  box-shadow: inset 5px 0 0 var(--coral);
}

.relations-card.high {
  box-shadow: inset 5px 0 0 var(--amber);
}

.relations-card.normal {
  box-shadow: inset 5px 0 0 var(--cyan);
}

.relations-card span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.relations-card p,
.relations-card small {
  color: var(--muted);
}

.relations-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.relations-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--green), var(--cyan), var(--amber), var(--coral));
}

.relations-detail {
  align-self: start;
}

.relations-profile {
  display: grid;
  grid-template-columns: 132px minmax(0, 1fr);
  gap: 14px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.relations-profile > div:first-child {
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.14), rgba(245, 158, 11, 0.14));
}

.relations-profile span,
.relations-signal-grid span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: uppercase;
}

.relations-profile strong {
  font-size: 1.35rem;
}

.relations-profile > div:first-child strong {
  font-size: 2.25rem;
}

.relations-signal-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.relations-signal-grid article {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.relations-signal-grid strong {
  display: block;
  margin-top: 5px;
}

.relations-body {
  margin-top: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: var(--input);
}

.relations-warning-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.relations-chip {
  display: inline-flex;
  padding: 6px 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 850;
}

.relations-chip.critical {
  color: var(--coral);
  border-color: rgba(255, 90, 95, 0.3);
  background: rgba(255, 90, 95, 0.1);
}

.relations-chip.high {
  color: #a05f00;
  border-color: rgba(245, 158, 11, 0.34);
  background: rgba(245, 158, 11, 0.12);
}

.relations-chip.normal {
  color: var(--cyan);
  border-color: rgba(14, 159, 154, 0.3);
  background: rgba(14, 159, 154, 0.1);
}

.relations-recent {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}

.relations-recent h3 {
  margin: 0;
  font-size: 1rem;
}

.relations-action-row {
  margin-top: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.relations-action-row p {
  color: var(--muted);
}

:root[data-theme="dark"] .relations-card {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(47, 24, 52, 0.82));
}

.lifecycle-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 24px;
  overflow: hidden;
  padding: 28px;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  background:
    radial-gradient(circle at 78% 28%, rgba(143, 0, 141, 0.32), transparent 30%),
    radial-gradient(circle at 16% 88%, rgba(14, 159, 154, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(13, 17, 24, 0.99), rgba(65, 11, 82, 0.92));
  color: #fff;
  box-shadow: 0 26px 72px rgba(143, 0, 141, 0.18);
}

.lifecycle-hero::before {
  content: "";
  position: absolute;
  inset: -40%;
  background:
    linear-gradient(120deg, transparent 42%, rgba(255, 255, 255, 0.11) 48%, transparent 54%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.07) 0 1px, transparent 1px 34px);
  animation: lifecycleSweep 8s linear infinite;
  opacity: 0.45;
}

.lifecycle-hero > * {
  position: relative;
  z-index: 1;
}

.lifecycle-hero h2 {
  margin: 8px 0;
  font-size: 2.2rem;
}

.lifecycle-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.lifecycle-orbit {
  position: relative;
  display: grid;
  width: 156px;
  aspect-ratio: 1;
  place-items: center;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(255, 255, 255, 0.96) 0 35%, rgba(143, 0, 141, 0.12) 36% 54%, rgba(14, 159, 154, 0.18) 55% 100%),
    conic-gradient(from 30deg, var(--purple), var(--cyan), var(--purple));
  box-shadow: inset 0 0 0 10px rgba(7, 13, 22, 0.34), 0 0 38px rgba(143, 0, 141, 0.34);
}

.lifecycle-orbit span {
  position: absolute;
  inset: 16px;
  border: 2px dashed rgba(255, 255, 255, 0.66);
  border-radius: inherit;
  animation: spin 11s linear infinite;
}

.lifecycle-orbit img {
  width: 72px;
  height: 72px;
  object-fit: contain;
  border-radius: 999px;
}

.lifecycle-layout {
  display: grid;
  grid-template-columns: minmax(320px, 0.44fr) minmax(0, 1fr);
  gap: 18px;
}

.lifecycle-case-panel,
.lifecycle-task-panel {
  align-self: start;
}

.lifecycle-cases {
  display: grid;
  gap: 12px;
  margin-top: 16px;
}

.lifecycle-case {
  display: grid;
  gap: 8px;
  width: 100%;
  min-height: auto;
  padding: 14px;
  color: var(--ink);
  text-align: left;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.95), rgba(246, 241, 255, 0.82));
  box-shadow: none;
}

.lifecycle-case:hover,
.lifecycle-case:focus {
  transform: translateY(-1px);
  box-shadow: var(--purple-shadow);
}

.lifecycle-case.active {
  outline: 2px solid rgba(14, 159, 154, 0.72);
}

.lifecycle-case.offboarding {
  border-color: rgba(216, 89, 69, 0.26);
}

.lifecycle-case span,
.lifecycle-command-card span,
.lifecycle-task-main span {
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.lifecycle-case p,
.lifecycle-case small,
.lifecycle-task-main p {
  color: var(--muted);
}

.lifecycle-meter {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
}

.lifecycle-meter b {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--green));
}

.lifecycle-selected {
  display: grid;
  gap: 12px;
  margin-bottom: 14px;
}

.lifecycle-command-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 16px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.12), rgba(14, 159, 154, 0.1)),
    var(--input);
}

.lifecycle-command-card.offboarding {
  background:
    linear-gradient(135deg, rgba(216, 89, 69, 0.12), rgba(143, 0, 141, 0.1)),
    var(--input);
}

.lifecycle-tasks {
  display: grid;
  gap: 12px;
}

.lifecycle-task {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.62fr);
  gap: 14px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  box-shadow: 0 14px 34px rgba(12, 19, 32, 0.07);
}

.lifecycle-task.done {
  border-color: rgba(31, 154, 109, 0.34);
  box-shadow: inset 4px 0 0 var(--green);
}

.lifecycle-task.blocked {
  border-color: rgba(216, 89, 69, 0.38);
  box-shadow: inset 4px 0 0 var(--coral);
}

.lifecycle-task.skipped {
  opacity: 0.72;
}

.lifecycle-task-main {
  display: grid;
  gap: 6px;
}

.lifecycle-task-controls {
  display: grid;
  grid-template-columns: minmax(0, 0.8fr) minmax(0, 1fr);
  gap: 8px;
}

.lifecycle-task-controls textarea,
.lifecycle-task-controls button {
  grid-column: 1 / -1;
}

@keyframes lifecycleSweep {
  from {
    transform: translateX(-8%);
  }
  to {
    transform: translateX(8%);
  }
}

@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}

:root[data-theme="dark"] .lifecycle-case,
:root[data-theme="dark"] .lifecycle-task {
  background: linear-gradient(135deg, rgba(21, 27, 38, 0.96), rgba(37, 20, 52, 0.82));
}

.narrow-panel {
  max-width: 560px;
}

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

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 0 10px;
  border-radius: 999px;
  background: rgba(45, 108, 223, 0.14);
  color: var(--blue);
  font-size: 0.78rem;
  font-weight: 850;
}

.pill.warn {
  background: rgba(183, 121, 31, 0.14);
  color: var(--amber);
}

.table-wrap {
  position: relative;
  width: 100%;
  max-width: 100%;
  overflow-x: auto;
  overflow-y: hidden;
  -webkit-overflow-scrolling: touch;
  overscroll-behavior-inline: contain;
  touch-action: pan-x pan-y;
  scrollbar-width: thin;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: max(760px, 100%);
}

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

th {
  color: var(--muted);
  font-size: 0.78rem;
  text-transform: uppercase;
}

.status {
  display: inline-flex;
  min-width: 76px;
  justify-content: center;
  border-radius: 999px;
  padding: 5px 10px;
  font-size: 0.76rem;
  font-weight: 850;
  text-transform: capitalize;
}

.status.present,
.status.checkin,
.status.full_day,
.status.visible,
.status.approved,
.status.paid,
.status.assigned,
.status.available,
.status.eligible,
.status.accepted,
.status.passed,
.status.status-2fa_enabled,
.status.locked,
.status.corrected {
  background: rgba(22, 133, 107, 0.14);
  color: var(--green);
}

.status.absent,
.status.partial,
.status.checkout,
.status.urgent,
.status.critical,
.status.rejected,
.status.lost,
.status.failed,
.status.no_show,
.status.status-2fa_required {
  background: rgba(216, 89, 69, 0.14);
  color: var(--coral);
}

.status.off,
.status.offday_work,
.status.manual_schedule,
.status.submitted,
.status.draft,
.status.normal,
.status.half_day,
.status.private,
.status.not_started,
.status.manager_only {
  background: rgba(102, 112, 133, 0.14);
  color: var(--muted);
}

.status.high,
.status.blocked,
.status.pending_owner,
.status.needs_followup,
.status.paused,
.status.returned {
  background: rgba(183, 121, 31, 0.14);
  color: var(--amber);
}

.status.shared,
.status.in_progress,
.status.mandatory,
.status.offer,
.status.interview,
.status.screening,
.status.account,
.status.software,
.status.license {
  background: rgba(45, 108, 223, 0.14);
  color: var(--blue);
}

.status.overdue {
  background: rgba(216, 89, 69, 0.14);
  color: var(--coral);
}

.status.acknowledged,
.status.done {
  background: rgba(22, 133, 107, 0.14);
  color: var(--green);
}

.status.owner,
.status.hr,
.status.applied,
.status.hired,
.status.laptop,
.status.phone,
.status.badge,
.status.allowance,
.status.insurance,
.status.salary_change {
  background: rgba(126, 42, 141, 0.14);
  color: var(--purple);
}

.status.employee,
.status.active {
  background: rgba(26, 115, 232, 0.13);
  color: var(--blue);
}

.status.inactive,
.status.must_change {
  background: rgba(183, 121, 31, 0.14);
  color: var(--amber);
}

.feed-list {
  display: grid;
  gap: 10px;
}

.feed-item {
  display: grid;
  grid-template-columns: 180px 180px 110px 1fr;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
}

.feed-item.compact {
  grid-template-columns: 1.2fr 1.4fr 0.8fr 1fr;
}

.feed-item .text {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.import-grid,
.employee-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 22px;
}

.employee-grid {
  grid-template-columns: minmax(260px, 360px) 1fr;
  align-items: start;
}

.employee-grid > [data-list-control="employees"],
.employee-grid > #employeeList {
  grid-column: 1;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  justify-self: stretch;
}

.employee-grid > [data-list-control="employees"] {
  grid-row: 1;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 92px);
}

.employee-grid > [data-list-control="employees"] label:first-child,
.employee-grid > [data-list-control="employees"] .list-page-actions {
  grid-column: 1 / -1;
}

.employee-grid > [data-list-control="employees"] .list-page-actions {
  justify-content: space-between;
}

.employee-grid > #employeeList {
  grid-row: 2;
}

.employee-grid > .employee-detail-column {
  grid-column: 2;
  grid-row: 1 / span 2;
  min-width: 0;
}

.payroll-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 360px);
  gap: 18px;
  align-items: start;
}

.payroll-editor-stack,
.payroll-side-rail {
  display: grid;
  gap: 14px;
  min-width: 0;
}

.payroll-side-rail {
  align-self: start;
  overflow: hidden;
  grid-template-columns: minmax(0, 1fr);
}

.payroll-side-rail .employee-list {
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  justify-self: stretch;
}

.payroll-side-rail .employee-row,
.payroll-side-rail .list-controls {
  box-sizing: border-box;
  max-width: 100%;
}

.payroll-side-rail .list-controls {
  width: 100%;
  min-width: 0;
  grid-template-columns: minmax(0, 1fr) minmax(78px, 92px);
}

.payroll-side-rail .list-controls label:first-child,
.payroll-side-rail .list-page-actions {
  grid-column: 1 / -1;
}

.payroll-side-rail .list-page-actions {
  justify-content: space-between;
}

.payroll-editor-form,
.payroll-selected-summary {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  padding: 16px;
}

.pay-profile-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.pay-rule-switches {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: stretch;
}

.pay-rule-switches legend {
  grid-column: 1 / -1;
}

.pay-rule-switches .checkline {
  margin: 0;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  padding: 10px 12px;
}

.field-help {
  margin: 0;
  border: 1px solid var(--surface-line);
  border-radius: 8px;
  background: var(--purple-soft);
  color: var(--ink);
  padding: 10px 12px;
  font-size: 0.92rem;
  line-height: 1.45;
}

.compact-head {
  gap: 12px;
  align-items: flex-start;
  margin-bottom: 8px;
}

.compact-head h2,
.compact-head p {
  margin: 0;
}

.overtime-approval-item {
  display: grid;
  gap: 6px;
}

.muted-card {
  opacity: 0.72;
}

.payroll-selected-summary:empty {
  display: none;
}

.payroll-selected-card {
  display: grid;
  gap: 8px;
}

.payroll-selected-card > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.payroll-selected-card strong {
  color: var(--ink);
  font-size: 1.3rem;
}

.payroll-selected-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payroll-selected-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--input);
  color: var(--muted);
  padding: 7px 10px;
  font-size: 0.82rem;
  font-weight: 750;
}

.employee-login-box {
  display: grid;
  gap: 12px;
}

.employee-login-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(240px, 1fr));
  gap: 14px;
}

.employee-login-grid label {
  min-width: 0;
}

.employee-login-grid input {
  width: 100%;
  min-width: 0;
}

.attendance-ops-grid {
  display: grid;
  grid-template-columns: minmax(280px, 1fr) minmax(280px, 360px);
  gap: 18px;
}

.exception-list {
  display: grid;
  gap: 10px;
}

.exception-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
}

.exception-row:hover,
.exception-row.active {
  border-color: rgba(126, 42, 141, 0.45);
  box-shadow: inset 4px 0 0 var(--purple);
}

.exception-row > p {
  grid-column: 1 / -1;
  margin: 0;
}

.whatsapp-match-panel {
  margin-bottom: 18px;
}

.whatsapp-match-metrics {
  grid-template-columns: repeat(6, minmax(120px, 1fr));
  margin: 12px 0 16px;
}

.whatsapp-match-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(260px, 0.8fr);
  gap: 16px;
}

.whatsapp-match-list,
.whatsapp-unmatched-list {
  display: grid;
  gap: 10px;
}

.whatsapp-match-row {
  width: 100%;
  display: grid;
  grid-template-columns: minmax(170px, 0.9fr) minmax(240px, 1.2fr) minmax(190px, 0.9fr);
  gap: 10px 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
}

.whatsapp-match-row:hover {
  border-color: rgba(126, 42, 141, 0.5);
  transform: translateY(-1px);
}

.whatsapp-match-row.ok {
  box-shadow: inset 4px 0 0 var(--green);
}

.whatsapp-match-row.warn {
  box-shadow: inset 4px 0 0 var(--amber);
}

.whatsapp-match-row.danger {
  box-shadow: inset 4px 0 0 var(--danger);
}

.whatsapp-match-row .full-line {
  grid-column: 1 / -1;
  margin: 0;
}

.phone-pair {
  display: grid;
  gap: 6px;
}

.phone-pair span {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  align-items: center;
  min-width: 0;
  overflow-wrap: anywhere;
}

.phone-pair b {
  color: var(--muted);
  font-size: 0.76rem;
  text-transform: uppercase;
}

.whatsapp-unmatched-row {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--danger) 7%, var(--input));
  display: grid;
  gap: 6px;
}

.whatsapp-unmatched-row p {
  margin: 0;
  color: var(--ink);
  overflow-wrap: anywhere;
}

.whatsapp-unmatched-row small,
.whatsapp-unmatched-row span {
  color: var(--muted);
}

.live-whatsapp-panel {
  overflow: hidden;
}

.live-whatsapp-feed {
  display: grid;
  gap: 10px;
}

.live-whatsapp-row {
  display: grid;
  grid-template-columns: minmax(180px, 1fr) auto minmax(150px, auto) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--panel) 88%, var(--input));
}

.live-whatsapp-row.unknown {
  border-color: color-mix(in srgb, var(--danger) 65%, var(--line));
  background: color-mix(in srgb, var(--danger) 9%, var(--panel));
}

.live-whatsapp-main {
  min-width: 0;
}

.live-whatsapp-main strong,
.live-whatsapp-main p {
  overflow-wrap: anywhere;
}

.live-whatsapp-main p {
  margin: 4px 0 0;
  color: var(--muted);
  font-size: 0.86rem;
}

.live-whatsapp-action,
.unknown-number-badge {
  justify-self: start;
  border-radius: 999px;
  padding: 7px 10px;
  font-size: 0.78rem;
  font-weight: 900;
}

.live-whatsapp-action.checkin {
  color: var(--success);
  background: color-mix(in srgb, var(--success) 13%, var(--input));
}

.live-whatsapp-action.checkout {
  color: var(--accent);
  background: color-mix(in srgb, var(--accent) 13%, var(--input));
}

.live-whatsapp-row time {
  color: var(--muted);
  font-weight: 800;
  white-space: nowrap;
}

.unknown-number-badge {
  color: var(--danger);
  background: color-mix(in srgb, var(--danger) 12%, var(--input));
}

.panel-head.subhead {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}

.payroll-cycle-layout {
  display: grid;
  grid-template-columns: minmax(220px, 320px) minmax(0, 1fr);
  gap: 18px;
  margin-top: 16px;
}

.payroll-cycle-layout > *,
.payroll-grid > * {
  min-width: 0;
}

.payroll-cycle-table input {
  min-width: 120px;
  margin-bottom: 6px;
}

.payroll-deduction-editor {
  display: grid;
  gap: 8px;
  min-width: 220px;
}

.payroll-review-editor {
  display: grid;
  gap: 8px;
  min-width: 190px;
}

.payroll-deduction-editor label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.payroll-review-editor label {
  display: grid;
  gap: 4px;
  margin: 0;
}

.payroll-deduction-editor span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-review-editor span,
.payroll-review-editor label span {
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-deduction-editor input {
  width: 100%;
  margin: 0;
}

.payroll-review-editor input {
  width: 100%;
  margin: 0;
}

.payroll-deduction-editor button {
  width: fit-content;
  padding: 8px 12px;
}

.payroll-suggestion-card {
  display: grid;
  gap: 8px;
  min-width: 280px;
  padding: 10px;
  border: 1px solid color-mix(in srgb, var(--purple) 24%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--purple) 8%, var(--panel));
}

.payroll-suggestion-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.payroll-suggestion-grid span {
  display: grid;
  gap: 2px;
}

.payroll-suggestion-grid small {
  color: var(--muted);
  font-size: 0.7rem;
  font-weight: 900;
  text-transform: uppercase;
}

.payroll-suggestion-card p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
}

.payroll-suggestion-card details {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.payroll-suggestion-card summary {
  cursor: pointer;
  font-weight: 900;
}

.payroll-suggestion-card details p {
  display: block;
  margin-top: 8px;
  color: var(--muted);
}

.payroll-suggestion-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.payroll-suggestion-card button {
  width: fit-content;
  padding: 8px 12px;
}

.payroll-dispute-list,
.employee-payroll-dispute-list {
  display: grid;
  gap: 12px;
}

.payroll-dispute-card,
.employee-payroll-dispute-card {
  display: grid;
  gap: 14px;
  border: 1px solid color-mix(in srgb, var(--purple) 22%, var(--line));
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  padding: 16px;
  background: color-mix(in srgb, var(--panel) 86%, var(--purple) 5%);
  box-shadow: var(--card-shadow);
}

.payroll-dispute-card.pending_hr,
.employee-payroll-dispute-card.pending_hr {
  border-left-color: var(--coral);
}

.payroll-dispute-card.accepted,
.employee-payroll-dispute-card.accepted {
  border-left-color: var(--success);
}

.payroll-dispute-card.rejected,
.employee-payroll-dispute-card.rejected {
  border-left-color: var(--danger);
}

.payroll-dispute-main {
  display: grid;
  grid-template-columns: minmax(220px, 0.55fr) minmax(0, 1fr);
  gap: 14px;
  align-items: start;
}

.payroll-dispute-evidence {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
}

.payroll-dispute-evidence p {
  margin: 0;
}

.payroll-dispute-evidence details {
  border-top: 1px solid var(--line);
  padding-top: 8px;
}

.payroll-dispute-explanation {
  display: grid;
  gap: 8px;
  border-radius: 8px;
  padding: 12px;
  background: color-mix(in srgb, var(--cyan) 8%, var(--panel));
}

.payroll-dispute-explanation p {
  margin: 0;
}

.payroll-dispute-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.35fr) minmax(260px, 1fr) auto;
  gap: 12px;
  align-items: end;
}

.employee-dispute-examples {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-payroll-dispute-card textarea,
.payroll-dispute-form textarea {
  min-height: 96px;
  resize: vertical;
}

.payroll-cycle-table tr.has-deduction {
  box-shadow: inset 4px 0 0 var(--coral);
}

.payroll-cycle-table tr.has-deduction .cycle-net {
  color: var(--coral);
}

.payroll-cycle-table .table-empty {
  max-width: calc(100vw - 96px);
}

.metric-grid.compact .metric {
  min-height: 84px;
  padding: 14px;
}

.metric-grid.compact .metric strong {
  font-size: 1.15rem;
  overflow-wrap: anywhere;
}

.filter-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 12px;
  align-items: end;
}

.chart-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
}

.bar-chart {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.bar-row {
  display: grid;
  grid-template-columns: 120px 1fr 48px;
  gap: 10px;
  align-items: center;
}

.bar-track {
  height: 14px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
  overflow: hidden;
}

.bar-fill {
  height: 100%;
  border-radius: 999px;
  background: var(--blue);
}

.leave-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
  margin-top: 18px;
}

.leave-card {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
}

.approval-list {
  display: grid;
  gap: 10px;
}

.bulk-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, max-content));
  gap: 10px;
  align-items: center;
  margin: 0 0 12px;
  padding: 10px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  background: linear-gradient(135deg, var(--purple-soft), transparent 58%);
}

.bulk-actions label {
  display: inline-flex;
  grid-auto-flow: column;
  gap: 8px;
  align-items: center;
  color: var(--ink);
  white-space: nowrap;
}

.bulk-actions input[type="checkbox"],
.bulk-check input {
  width: 18px;
  height: 18px;
  accent-color: var(--purple);
}

.bulk-actions select,
.bulk-actions input:not([type="checkbox"]) {
  min-width: 170px;
  height: 42px;
}

.bulk-actions .notice {
  align-self: center;
}

.notification-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(118px, 1fr));
  gap: 10px;
  margin: 0 0 12px;
}

.notification-metrics article {
  display: grid;
  gap: 5px;
  min-height: 74px;
  padding: 12px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  background:
    radial-gradient(circle at 12% 12%, rgba(143, 0, 141, 0.13), transparent 35%),
    var(--input);
}

.notification-metrics span {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.notification-filter-form {
  display: grid;
  grid-template-columns: minmax(220px, 1.5fr) repeat(3, minmax(150px, 1fr));
  gap: 10px;
  align-items: end;
  margin: 0 0 12px;
}

.notification-filter-form input,
.notification-filter-form select {
  height: 42px;
}

.employee-notification-command {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: 0 0 12px;
  padding: 16px;
  border: 1px solid rgba(143, 0, 141, 0.22);
  border-radius: 8px;
  background:
    radial-gradient(circle at 8% 0%, rgba(143, 0, 141, 0.18), transparent 32%),
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 46%),
    var(--input);
  box-shadow: var(--card-shadow);
}

.employee-notification-command h3 {
  margin: 0;
  font-size: 1.45rem;
}

.employee-notification-command p {
  margin: 5px 0 0;
  color: var(--muted);
}

.employee-notification-actions,
.notification-quick-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-notification-actions {
  justify-content: flex-end;
}

.notification-quick-filters {
  margin: 0 0 12px;
}

.notification-quick-filters button,
.employee-notification-actions button {
  min-height: 36px;
  border-color: rgba(143, 0, 141, 0.2);
  background: var(--input);
  color: var(--ink);
}

.notification-quick-filters button.active,
.employee-notification-actions button.active {
  border-color: rgba(143, 0, 141, 0.45);
  background: var(--purple);
  color: #fff;
  box-shadow: var(--purple-shadow);
}

.urgent-notification-panel {
  display: grid;
  grid-template-columns: minmax(160px, 220px) minmax(0, 1fr);
  gap: 12px;
  align-items: stretch;
  margin: 0 0 12px;
  padding: 14px;
  border: 1px solid rgba(216, 89, 69, 0.45);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(216, 89, 69, 0.15), transparent 42%),
    radial-gradient(circle at 96% 0%, rgba(143, 0, 141, 0.18), transparent 38%),
    var(--input);
  box-shadow: 0 18px 42px rgba(216, 89, 69, 0.1);
}

.urgent-notification-panel h3 {
  margin: 0;
}

.urgent-notification-stack {
  display: grid;
  gap: 10px;
}

.urgent-notification-stack article {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid rgba(216, 89, 69, 0.28);
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.48);
}

[data-theme="dark"] .urgent-notification-stack article {
  background: rgba(15, 23, 42, 0.56);
}

.urgent-notification-stack p {
  margin: 4px 0 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.bulk-check {
  display: inline-flex;
  gap: 7px;
  align-items: center;
  width: max-content;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.approval-card {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
}

.approval-card p {
  margin: 6px 0 0;
  overflow-wrap: anywhere;
}

.approval-actions {
  display: inline-flex;
  gap: 8px;
  align-items: center;
  justify-content: end;
  flex-wrap: wrap;
}

.notification-actions,
.holiday-actions,
.approval-actions,
.account-actions,
.document-actions,
.template-card-actions,
.owner-decision-actions,
.urgent-popup-actions,
.command-actions {
  min-width: 0;
}

.notification-actions button,
.holiday-actions button,
.approval-actions button,
.account-actions button,
.document-actions button,
.template-card-actions button,
.owner-decision-actions button,
.urgent-popup-actions button,
.command-actions button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  max-width: 100%;
}

.notification-list,
.holiday-list,
.policy-list {
  display: grid;
  gap: 10px;
}

.notification-group {
  display: grid;
  gap: 10px;
}

.notification-group + .notification-group {
  margin-top: 8px;
}

.notification-group-head,
.notification-title-row {
  display: flex;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  min-width: 0;
}

.notification-title-main,
.notification-urgent-title {
  display: inline-flex;
  min-width: 0;
  gap: 9px;
  align-items: center;
}

.notification-type-icon {
  display: inline-grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 9px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.16), rgba(14, 159, 154, 0.1)),
    var(--panel);
  color: var(--purple-strong);
  border: 1px solid rgba(143, 0, 141, 0.2);
  font-size: 0.7rem;
  font-weight: 950;
  letter-spacing: 0;
}

.notification-title-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
}

.notification-title-row .notification-type-label {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 0.72rem;
  font-weight: 900;
  text-transform: uppercase;
}

.notification-card,
.holiday-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
}

.notification-card:has(.bulk-check) {
  grid-template-columns: auto minmax(0, 1fr) auto;
}

.notification-card.urgent {
  border-color: rgba(216, 89, 69, 0.45);
  box-shadow: inset 4px 0 0 var(--coral);
}

.notification-card.critical {
  border-color: rgba(216, 89, 69, 0.65);
  box-shadow:
    inset 4px 0 0 var(--coral),
    0 16px 38px rgba(216, 89, 69, 0.1);
}

.notification-card.unread {
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 46%),
    var(--input);
}

.notification-card.read {
  opacity: 0.76;
}

.notification-card.archived {
  opacity: 0.68;
  border-style: dashed;
  background:
    linear-gradient(135deg, rgba(100, 116, 139, 0.08), transparent 44%),
    var(--input);
}

.notification-actions {
  display: inline-flex;
  flex-wrap: wrap;
  justify-content: end;
  gap: 8px;
  align-items: center;
}

.notification-actions button {
  min-height: 34px;
  padding: 7px 10px;
}

.urgent-popup {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin: -8px 0 18px;
  padding: 15px;
  border: 1px solid rgba(216, 89, 69, 0.48);
  border-radius: 7px;
  background:
    linear-gradient(135deg, rgba(216, 89, 69, 0.14), transparent 45%),
    var(--input);
  box-shadow: 0 18px 42px rgba(216, 89, 69, 0.12);
}

.urgent-popup strong {
  display: block;
  color: var(--ink);
  margin-bottom: 4px;
}

.urgent-popup p {
  margin: 0;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.urgent-popup-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.policy-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
}

.policy-card.needs-ack {
  border-color: rgba(183, 121, 31, 0.42);
  box-shadow: inset 4px 0 0 var(--amber);
}

.policy-card strong,
.policy-body {
  overflow-wrap: anywhere;
}

.policy-body {
  white-space: pre-wrap;
  color: var(--ink);
}

.policy-actions {
  display: grid;
  gap: 10px;
  align-items: start;
}

.training-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
  gap: 18px;
}

.training-list {
  display: grid;
  gap: 10px;
}

.training-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
}

.training-card.overdue {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 var(--coral);
}

.training-card strong,
.training-card p {
  overflow-wrap: anywhere;
}

.recruiting-layout,
.recruiting-detail {
  display: grid;
  grid-template-columns: minmax(260px, 1fr) minmax(280px, 420px);
  gap: 18px;
}

.recruiting-list {
  display: grid;
  gap: 10px;
}

.recruiting-card {
  width: 100%;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
}

button.recruiting-card {
  min-height: 0;
  transition: border-color 180ms ease, box-shadow 180ms ease, transform 180ms ease;
}

button.recruiting-card:hover,
button.recruiting-card.active {
  border-color: rgba(143, 0, 141, 0.52);
  box-shadow: 0 12px 28px rgba(143, 0, 141, 0.16);
  transform: translateY(-1px);
}

.recruiting-card strong,
.recruiting-card p {
  overflow-wrap: anywhere;
}

.enterprise-layout {
  display: grid;
  grid-template-columns: minmax(260px, 380px) minmax(0, 1fr);
  gap: 18px;
  align-items: start;
}

.enterprise-list {
  display: grid;
  gap: 10px;
}

.device-monitor-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(280px, 1.1fr);
  gap: 16px;
}

.agent-purpose {
  order: -40 !important;
  align-items: center;
  border-color: rgba(143, 0, 141, 0.2);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.12), rgba(20, 156, 152, 0.06) 55%, transparent),
    var(--card);
}

.agent-purpose h2,
.agent-purpose p {
  max-width: 860px;
}

.agent-start-grid {
  order: -35 !important;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}

.agent-start-card {
  display: grid;
  gap: 8px;
  min-height: 148px;
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.72), rgba(255, 255, 255, 0.24)),
    var(--card);
  box-shadow: 0 14px 34px rgba(15, 18, 32, 0.08);
}

body.dark .agent-start-card {
  background:
    linear-gradient(145deg, rgba(255, 255, 255, 0.055), rgba(143, 0, 141, 0.09)),
    var(--card);
}

.agent-start-card span {
  color: var(--muted);
  font-size: 0.75rem;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: uppercase;
}

.agent-start-card strong {
  color: var(--ink);
  font-size: clamp(1.45rem, 2vw, 2.05rem);
  line-height: 1;
}

.agent-start-card p {
  margin: 0;
  color: var(--muted);
}

.agent-start-card.ready {
  border-left: 5px solid rgba(20, 156, 152, 0.8);
}

.agent-start-card.attention {
  border-left: 5px solid rgba(255, 111, 97, 0.9);
}

.agent-start-card.browser {
  border-left: 5px solid rgba(143, 0, 141, 0.7);
}

.agent-start-card.report {
  border-left: 5px solid rgba(246, 181, 71, 0.9);
}

.agent-filter-panel .filter-grid {
  align-items: end;
}

.agent-filter-panel {
  order: -30 !important;
}

.agent-details-card {
  order: -25 !important;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
}

.agent-details-card summary {
  cursor: pointer;
  color: var(--ink);
  font-weight: 900;
}

.agent-details-card > p {
  margin: 8px 0 14px;
  color: var(--muted);
}

.agent-metrics-grid {
  margin-top: 12px;
}

.agent-primary-panel {
  order: -20 !important;
  border-color: rgba(20, 156, 152, 0.22);
}

.agent-setup-panel {
  align-self: start;
}

.agent-setup-steps {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.agent-setup-status {
  display: grid;
  gap: 8px;
  margin-top: 12px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(14, 159, 154, 0.08), rgba(143, 0, 141, 0.05)),
    var(--input);
}

.agent-setup-status.hidden {
  display: none;
}

.agent-setup-status strong,
.agent-setup-status small {
  display: block;
}

.agent-setup-status p {
  margin: 7px 0;
  color: var(--muted);
}

.device-category-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.device-category-card {
  display: grid;
  gap: 7px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.075), transparent 46%),
    var(--input);
}

.device-category-card strong {
  font-size: 1.25rem;
}

.device-token-box {
  display: grid;
  gap: 10px;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  background: var(--purple-soft);
}

.device-token-box code {
  display: block;
  overflow-wrap: anywhere;
  padding: 10px 12px;
  border-radius: 7px;
  border: 1px solid var(--line);
  background: var(--input);
  color: var(--ink);
  font-size: 0.88rem;
}

.device-card-grid,
.device-app-list {
  display: grid;
  gap: 12px;
}

.device-activity-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-wrap: wrap;
}

.weekly-device-report-grid {
  display: grid;
  gap: 14px;
}

.weekly-device-report {
  display: grid;
  gap: 13px;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(143, 0, 141, 0.55);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.07), transparent 48%),
    var(--input);
}

.weekly-device-report.review {
  border-left-color: rgba(255, 111, 97, 0.95);
}

.weekly-device-report.watch {
  border-left-color: rgba(246, 181, 71, 0.95);
}

.weekly-device-report.clear {
  border-left-color: rgba(30, 171, 96, 0.9);
}

.weekly-device-report-head,
.weekly-compare,
.weekly-device-kpis,
.weekly-device-lists {
  display: grid;
  gap: 10px;
}

.weekly-device-report-head {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
}

.weekly-device-report-head h3,
.weekly-device-report-head p,
.weekly-device-summary,
.weekly-device-rule p,
.weekly-device-lists p {
  margin: 0;
}

.weekly-device-report-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 7px;
}

.weekly-device-summary {
  color: var(--ink);
  font-weight: 700;
}

.weekly-device-suggestion {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid color-mix(in srgb, var(--purple) 28%, var(--line));
  border-radius: 8px;
  background: color-mix(in srgb, var(--purple) 10%, transparent);
  color: var(--ink);
  font-weight: 700;
  line-height: 1.45;
}

.weekly-compare {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.weekly-compare div,
.weekly-device-kpis article,
.weekly-device-lists > div,
.weekly-device-rule {
  display: grid;
  gap: 5px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 70%, transparent);
}

.weekly-compare span,
.weekly-device-kpis span,
.weekly-device-kpis small {
  color: var(--muted);
}

.weekly-compare strong,
.weekly-device-kpis strong {
  font-size: 1.1rem;
}

.weekly-device-meter {
  height: 9px;
  overflow: hidden;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 18%, transparent);
}

.weekly-device-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--teal), var(--purple));
}

.weekly-device-kpis {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.weekly-device-lists {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.weekly-device-lists p {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.device-health-list {
  display: grid;
  gap: 12px;
}

.device-health-card {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(260px, 0.85fr);
  gap: 16px;
  align-items: stretch;
  padding: 15px;
  border: 1px solid var(--line);
  border-left: 5px solid rgba(143, 0, 141, 0.5);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 42%),
    var(--input);
}

.device-health-card.healthy {
  border-left-color: rgba(30, 171, 96, 0.9);
}

.device-health-card.offline,
.device-health-card.token_problem,
.device-health-card.assignment_pending,
.device-health-card.extension_disabled,
.device-health-card.tamper_alert {
  border-left-color: rgba(255, 111, 97, 0.95);
}

.device-health-card.extension_missing,
.device-health-card.needs_attention {
  border-left-color: rgba(246, 181, 71, 0.95);
}

.device-health-main,
.device-health-fix {
  display: grid;
  gap: 8px;
  align-content: start;
}

.device-health-main h3 {
  margin: 0;
}

.device-health-main p,
.device-health-fix p {
  margin: 0;
  color: var(--muted);
}

.device-tamper-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.device-tamper-tags .status-pill {
  width: fit-content;
}

.device-health-fix {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: color-mix(in srgb, var(--panel) 72%, transparent);
}

.device-fix-steps {
  display: grid;
  gap: 6px;
  margin: 4px 0 0;
  padding-left: 20px;
  color: var(--muted);
  font-size: 0.86rem;
  line-height: 1.35;
}

.device-fix-steps li::marker {
  color: var(--purple);
  font-weight: 900;
}

.device-version-status {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-top: 2px;
}

.device-version-status small {
  color: var(--muted);
  font-weight: 800;
}

.device-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.device-card.inactive {
  opacity: 0.72;
}

.device-card h3 {
  margin: 8px 0 4px;
}

.fairness-note {
  display: block;
  margin-top: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  line-height: 1.35;
}

.device-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.device-actions .danger-action {
  border-color: rgba(216, 89, 69, 0.42);
  color: var(--coral);
}

.device-app-list article {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
}

.device-app-list article > div {
  display: grid;
  gap: 6px;
  min-width: 0;
}

.device-app-list article strong {
  overflow-wrap: anywhere;
}

.enterprise-card {
  width: 100%;
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.065), transparent 42%),
    var(--input);
  color: var(--ink);
  text-align: left;
  box-shadow: none;
}

button.enterprise-card {
  min-height: 0;
}

button.enterprise-card:hover,
button.enterprise-card:focus {
  border-color: rgba(143, 0, 141, 0.5);
  box-shadow: var(--purple-shadow);
}

.enterprise-card strong,
.enterprise-card p {
  overflow-wrap: anywhere;
}

.template-layout {
  grid-template-columns: minmax(280px, 420px) minmax(0, 1fr);
}

.template-apply {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: end;
}

.template-apply button {
  min-height: 42px;
}

.template-token-row,
.template-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.template-token-row span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 9px;
  color: var(--muted);
  background: rgba(143, 0, 141, 0.08);
  font-size: 0.78rem;
  font-weight: 800;
}

.template-card {
  position: relative;
  overflow: hidden;
}

.template-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: linear-gradient(180deg, var(--purple), rgba(20, 184, 166, 0.92));
}

.template-card-actions {
  justify-content: end;
}

.holiday-card.half {
  box-shadow: inset 4px 0 0 var(--amber);
}

.holiday-actions {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.employee-checks {
  max-height: 190px;
  overflow: auto;
}

.history-list {
  display: grid;
  gap: 8px;
}

.history-item {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  color: var(--muted);
  background: var(--input);
  font-size: 0.86rem;
}

@keyframes pageLift {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes pulseMark {
  0%,
  100% {
    transform: scale(1);
    box-shadow: 0 0 0 rgba(143, 0, 141, 0);
  }
  50% {
    transform: scale(1.05);
    box-shadow: 0 0 32px rgba(143, 0, 141, 0.34);
  }
}

.import-side {
  border-left: 1px solid var(--line);
  padding-left: 22px;
}

.chips,
fieldset {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.chips {
  margin-top: 14px;
}

.chips span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 7px 10px;
  color: var(--muted);
  font-weight: 750;
  font-size: 0.82rem;
}

.employee-list {
  display: grid;
  gap: 10px;
  align-content: start;
  max-height: 680px;
  overflow: auto;
  overflow-x: hidden;
  min-width: 0;
  padding: 2px;
}

.employee-row {
  width: 100%;
  min-height: 78px;
  display: grid;
  gap: 5px;
  align-content: center;
  border: 1px solid var(--line);
  background: var(--input);
  border-radius: 7px;
  color: var(--ink);
  text-align: left;
  padding: 11px 12px;
  box-shadow: none;
  transform: none;
  white-space: normal;
}

.employee-row:hover,
.employee-row:focus {
  transform: none;
  box-shadow: 0 10px 22px rgba(143, 0, 141, 0.12);
}

.employee-row strong,
.employee-row p {
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.employee-row p {
  margin: 0;
  font-size: 0.84rem;
}

.employee-row.active {
  border-color: var(--blue);
  box-shadow: inset 3px 0 0 var(--blue);
}

.employee-form {
  display: grid;
  gap: 14px;
  align-content: start;
}

.employee-detail-column,
.document-vault,
.document-list,
.payslip-list,
.profile-grid {
  display: grid;
  gap: 14px;
}

.two-col {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.document-vault {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.document-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
}

.document-card p {
  color: var(--muted);
}

.payslip-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
}

.payslip-card p {
  margin: 6px 0 0;
}

.document-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
  align-items: center;
}

.button-link {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  border-radius: 7px;
  padding: 0 12px;
  background: var(--ink);
  color: var(--paper);
  text-decoration: none;
  font-weight: 750;
}

.report-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 12px;
}

.report-summary-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.report-summary-item {
  display: grid;
  gap: 5px;
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
}

.report-summary-item span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 800;
}

.report-summary-item strong {
  color: var(--ink);
  font-size: 1.1rem;
  overflow-wrap: anywhere;
}

.monthly-hours-report {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.payroll-risk-report-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  margin-top: 14px;
}

.payroll-risk-report-card {
  display: grid;
  align-content: start;
  gap: 12px;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--card);
}

.payroll-risk-report-card.wide {
  grid-column: 1 / -1;
}

.payroll-risk-report-card-head,
.payroll-risk-report-item {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.payroll-risk-report-card-head h3 {
  margin: 0;
  font-size: 0.98rem;
  color: var(--ink);
}

.payroll-risk-report-list {
  display: grid;
  gap: 8px;
}

.payroll-risk-report-item {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 11px;
  background: var(--input);
}

.payroll-risk-report-item div {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.payroll-risk-report-item strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.payroll-risk-report-item span:not(.status) {
  color: var(--muted);
  font-size: 0.82rem;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.monthly-hours-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--card);
  overflow: hidden;
}

.monthly-hours-card summary {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) minmax(0, 1.8fr);
  gap: 12px;
  align-items: center;
  cursor: pointer;
  padding: 14px;
  list-style: none;
}

.monthly-hours-card summary::-webkit-details-marker {
  display: none;
}

.monthly-hours-card summary span {
  display: inline-flex;
  width: fit-content;
  margin-top: 5px;
  padding: 4px 8px;
  border-radius: 999px;
  color: var(--purple-strong);
  background: rgba(143, 0, 141, 0.09);
  font-size: 0.74rem;
  font-weight: 900;
  text-transform: uppercase;
}

.monthly-hours-card.needs-review summary span {
  color: var(--coral);
  background: rgba(255, 90, 95, 0.12);
}

.monthly-hours-totals {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.monthly-hours-totals b {
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 7px;
  background: var(--input);
  font-size: 0.85rem;
}

.monthly-hours-days {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 10px;
  padding: 0 14px 14px;
}

.monthly-hours-day {
  display: grid;
  gap: 6px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  box-shadow: inset 4px 0 0 rgba(102, 112, 133, 0.45);
}

.monthly-hours-day > div {
  display: flex;
  justify-content: space-between;
  gap: 8px;
}

.monthly-hours-day span,
.monthly-hours-day p {
  color: var(--muted);
  font-size: 0.82rem;
}

.monthly-hours-day.missing {
  background: linear-gradient(135deg, rgba(255, 90, 95, 0.16), rgba(255, 90, 95, 0.05));
  box-shadow: inset 4px 0 0 var(--coral);
}

.monthly-hours-day.warning {
  background: linear-gradient(135deg, rgba(245, 158, 11, 0.18), rgba(245, 158, 11, 0.05));
  box-shadow: inset 4px 0 0 var(--amber);
}

.monthly-hours-day.overtime {
  background: linear-gradient(135deg, rgba(14, 159, 154, 0.16), rgba(14, 159, 154, 0.05));
  box-shadow: inset 4px 0 0 var(--cyan);
}

.performance-layout {
  display: grid;
  grid-template-columns: minmax(240px, 340px) minmax(0, 1fr);
  gap: 18px;
}

.performance-workspace {
  display: grid;
  gap: 18px;
}

.performance-list {
  display: grid;
  gap: 10px;
}

.performance-card {
  width: 100%;
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
}

button.performance-card:hover,
button.performance-card:focus {
  border-color: rgba(143, 0, 141, 0.42);
  box-shadow: inset 4px 0 0 var(--purple);
}

.performance-card p {
  overflow-wrap: anywhere;
}

.goal-meter {
  display: block;
  height: 8px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.16);
  overflow: hidden;
}

.goal-meter span {
  display: block;
  height: 100%;
  border-radius: 999px;
  background: var(--green);
}

.ack-review-form {
  display: grid;
  gap: 10px;
}

.employee-growth-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 240px);
  gap: 18px;
  align-items: center;
  min-height: 260px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  padding: 24px;
  background:
    radial-gradient(circle at 10% 0%, rgba(143, 0, 141, 0.28), transparent 33%),
    radial-gradient(circle at 90% 12%, rgba(22, 133, 107, 0.18), transparent 30%),
    linear-gradient(135deg, rgba(10, 13, 24, 0.96), rgba(64, 12, 74, 0.9));
  color: #fff;
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-growth-hero::after {
  content: "";
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 8px;
  pointer-events: none;
}

.employee-growth-hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.1rem, 5vw, 4.6rem);
  line-height: 0.98;
}

.employee-growth-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.employee-growth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.employee-growth-score {
  display: grid;
  place-items: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(143, 0, 141, 0.42), transparent 62%),
    rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.employee-growth-score span,
.employee-growth-score p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-growth-score strong {
  font-size: 2.5rem;
  line-height: 1;
}

.employee-growth-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.employee-growth-metrics article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 45%),
    var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-growth-metrics span,
.employee-growth-card p,
.employee-growth-action span {
  color: var(--muted);
}

.employee-growth-metrics strong {
  color: var(--ink);
  font-size: 1.35rem;
}

.employee-growth-map-panel,
.employee-career-growth-panel {
  border-color: rgba(143, 0, 141, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 42%),
    var(--panel);
}

.employee-growth-map {
  display: grid;
  grid-template-columns: minmax(160px, 0.32fr) minmax(0, 1fr) minmax(240px, 0.45fr);
  gap: 12px;
  align-items: stretch;
}

.employee-growth-map.compact {
  grid-template-columns: minmax(140px, 0.26fr) minmax(0, 1fr);
}

.employee-growth-map.compact .employee-growth-next-board {
  grid-column: 1 / -1;
}

.employee-growth-map-score,
.employee-growth-lane,
.employee-growth-next-board,
.employee-growth-next {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(145deg, rgba(143, 0, 141, 0.08), transparent 48%),
    var(--input);
  box-shadow: var(--card-shadow);
}

.employee-growth-map-score {
  display: grid;
  place-items: center;
  gap: 6px;
  min-height: 188px;
  padding: 16px;
  text-align: center;
}

.employee-growth-map-score strong {
  color: var(--purple-strong);
  font-size: 2.8rem;
  line-height: 1;
}

.employee-growth-map-score span,
.employee-growth-map-score p,
.employee-growth-lane p,
.employee-growth-lane small,
.employee-growth-next span,
.employee-growth-next-head span {
  color: var(--muted);
}

.employee-growth-map-score span,
.employee-growth-lane small,
.employee-growth-next-head span {
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-growth-lanes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(158px, 1fr));
  gap: 10px;
}

.employee-growth-lane {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 158px;
  padding: 13px;
  overflow-wrap: anywhere;
}

.employee-growth-lane-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}

.employee-growth-lane-head span {
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-growth-lane-head strong {
  color: var(--ink);
  font-size: 1.2rem;
  white-space: nowrap;
}

.employee-growth-lane-meter {
  height: 8px;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.1);
  overflow: hidden;
}

.employee-growth-lane-meter span {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--purple), var(--green));
}

.employee-growth-next-board {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
}

.employee-growth-next-head {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.employee-growth-next {
  display: grid;
  gap: 5px;
  width: 100%;
  padding: 11px;
  color: var(--ink);
  text-align: left;
  cursor: pointer;
}

.employee-growth-next:hover,
.employee-growth-next:focus {
  border-color: rgba(143, 0, 141, 0.44);
  transform: translateY(-1px);
}

.employee-growth-map-score.calm,
.employee-growth-lane.calm,
.employee-growth-next.calm {
  border-color: rgba(22, 133, 107, 0.3);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.28), var(--card-shadow);
}

.employee-growth-map-score.normal,
.employee-growth-lane.normal,
.employee-growth-next.normal {
  border-color: rgba(143, 0, 141, 0.28);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.26), var(--card-shadow);
}

.employee-growth-map-score.urgent,
.employee-growth-lane.urgent,
.employee-growth-next.urgent {
  border-color: rgba(196, 29, 73, 0.34);
  box-shadow: inset 4px 0 0 rgba(196, 29, 73, 0.34), var(--card-shadow);
}

.employee-growth-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(300px, 0.85fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.employee-growth-main {
  border-color: rgba(143, 0, 141, 0.2);
}

.employee-growth-list {
  display: grid;
  gap: 10px;
}

.employee-growth-list.compact {
  gap: 8px;
}

.employee-growth-card,
.employee-growth-action {
  display: grid;
  gap: 10px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--input);
  color: var(--ink);
  text-align: left;
  box-shadow: var(--card-shadow);
}

.employee-growth-card.blocked,
.employee-growth-action.urgent {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.38), var(--card-shadow);
}

.employee-growth-card.in_progress,
.employee-growth-action.normal {
  border-color: rgba(143, 0, 141, 0.24);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.24), var(--card-shadow);
}

.employee-growth-card.done {
  border-color: rgba(22, 133, 107, 0.28);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.28), var(--card-shadow);
}

.employee-growth-action {
  cursor: pointer;
}

.employee-growth-action:hover,
.employee-growth-action:focus {
  border-color: rgba(143, 0, 141, 0.42);
  transform: translateY(-1px);
}

.employee-growth-request-panel {
  margin-top: 14px;
  border-color: rgba(143, 0, 141, 0.2);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 44%),
    var(--panel);
}

.employee-growth-request-form {
  display: grid;
  grid-template-columns: minmax(160px, 0.7fr) minmax(220px, 1.2fr) minmax(120px, 0.4fr);
  gap: 10px;
  align-items: end;
}

.employee-growth-request-form label:nth-of-type(4),
.employee-growth-request-form .notice {
  grid-column: span 2;
}

.employee-growth-request-form button {
  min-height: 42px;
}

.recognition-hero-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border-color: rgba(143, 0, 141, 0.24);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.12), transparent 42%),
    var(--panel);
}

.recognition-hero-panel h2 {
  margin: 0;
  font-size: 2rem;
}

.recognition-orbit {
  display: grid;
  place-items: center;
  width: 104px;
  aspect-ratio: 1;
  border: 1px solid rgba(143, 0, 141, 0.22);
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-size: 2rem;
  font-weight: 950;
}

.recognition-layout {
  align-items: start;
}

.recognition-list,
.employee-reward-list {
  display: grid;
  gap: 10px;
}

.recognition-list.compact,
.employee-reward-list.compact {
  gap: 8px;
}

.recognition-card,
.employee-reward-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--input);
  box-shadow: var(--card-shadow);
}

.recognition-card.reward,
.employee-reward-card.reward {
  border-color: rgba(22, 133, 107, 0.32);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.28), var(--card-shadow);
}

.recognition-card.badge,
.employee-reward-card.badge,
.recognition-card.milestone,
.employee-reward-card.milestone {
  border-color: rgba(143, 0, 141, 0.28);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.24), var(--card-shadow);
}

.recognition-card p,
.employee-reward-card p {
  margin: 5px 0 0;
  overflow-wrap: anywhere;
}

.recognition-card-side,
.employee-reward-score {
  display: grid;
  gap: 5px;
  justify-items: end;
  text-align: right;
  min-width: 76px;
}

.recognition-rank {
  display: grid;
  place-items: center;
  width: 38px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 950;
}

.recognition-card.leaderboard {
  grid-template-columns: auto minmax(0, 1fr);
}

.employee-rewards-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 230px);
  gap: 18px;
  align-items: center;
  min-height: 250px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(10, 13, 24, 0.97), rgba(71, 14, 82, 0.92)),
    var(--panel);
  color: #fff;
  box-shadow: var(--purple-shadow);
  overflow: hidden;
}

.employee-rewards-hero h2 {
  margin: 0;
  max-width: 780px;
  font-size: clamp(2.1rem, 5vw, 4.4rem);
  line-height: 0.98;
}

.employee-rewards-hero p {
  max-width: 680px;
  color: rgba(255, 255, 255, 0.78);
}

.employee-rewards-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.employee-rewards-core {
  display: grid;
  place-items: center;
  gap: 6px;
  aspect-ratio: 1;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 999px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.42), rgba(22, 133, 107, 0.16));
  box-shadow: inset 0 0 0 10px rgba(255, 255, 255, 0.04);
  text-align: center;
}

.employee-rewards-core span,
.employee-rewards-core p {
  margin: 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-rewards-core strong {
  font-size: 2.5rem;
  line-height: 1;
}

.employee-rewards-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.employee-rewards-metrics article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 45%),
    var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-rewards-metrics span,
.employee-badge-card p,
.employee-reward-score span {
  color: var(--muted);
}

.employee-rewards-metrics strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.employee-rewards-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.82fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.employee-badge-wall {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
}

.employee-badge-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(145deg, rgba(143, 0, 141, 0.11), transparent 48%),
    var(--input);
  box-shadow: var(--card-shadow);
}

.employee-badge-card span {
  display: grid;
  place-items: center;
  width: 42px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 950;
}

.employee-reward-score strong {
  color: var(--purple-strong);
  font-size: 1.5rem;
}

.employee-reward-score em {
  color: var(--green);
  font-style: normal;
  font-weight: 900;
}

.wellness-hero-panel,
.employee-wellness-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.16), rgba(22, 133, 107, 0.08) 48%, transparent),
    var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-wellness-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  min-height: 240px;
  padding: 24px;
  background:
    linear-gradient(135deg, rgba(8, 10, 22, 0.98), rgba(83, 12, 90, 0.9)),
    var(--panel);
  color: #fff;
  box-shadow: var(--purple-shadow);
  overflow: hidden;
}

.wellness-hero-panel h2,
.employee-wellness-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.7rem);
  line-height: 1;
}

.wellness-hero-panel p,
.employee-wellness-hero p {
  max-width: 720px;
}

.employee-wellness-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.wellness-orbit,
.employee-wellness-core {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(143, 0, 141, 0.22);
  background:
    radial-gradient(circle, rgba(143, 0, 141, 0.24), rgba(22, 133, 107, 0.12));
  color: var(--purple-strong);
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.employee-wellness-core {
  width: auto;
  min-width: 150px;
  color: #fff;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.04);
}

.employee-wellness-core strong {
  font-size: 3rem;
  line-height: 1;
}

.employee-wellness-core span,
.employee-wellness-core small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.employee-wellness-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.wellness-layout,
.employee-wellness-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.82fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.employee-wellness-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.employee-wellness-metrics article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 45%),
    var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-wellness-metrics span {
  color: var(--muted);
}

.employee-wellness-metrics strong {
  color: var(--ink);
  font-size: 1.25rem;
}

.wellness-focus-list,
.wellness-pulse-list,
.wellness-action-list,
.employee-wellness-tips,
.employee-wellness-pulse-list,
.employee-wellness-action-list {
  display: grid;
  gap: 10px;
}

.wellness-focus-card,
.wellness-pulse-card,
.wellness-action-card,
.employee-wellness-tip,
.employee-wellness-pulse,
.employee-wellness-action {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--input);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

.wellness-focus-card,
.wellness-pulse-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
}

.wellness-focus-card.critical,
.wellness-pulse-card.critical,
.employee-wellness-pulse.critical {
  border-color: rgba(196, 29, 73, 0.34);
  box-shadow: inset 4px 0 0 rgba(196, 29, 73, 0.35), var(--card-shadow);
}

.wellness-focus-card.high,
.wellness-pulse-card.high,
.employee-wellness-pulse.high {
  border-color: rgba(235, 137, 35, 0.34);
  box-shadow: inset 4px 0 0 rgba(235, 137, 35, 0.34), var(--card-shadow);
}

.wellness-focus-card.watch,
.wellness-pulse-card.watch,
.employee-wellness-pulse.watch {
  border-color: rgba(143, 0, 141, 0.28);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.24), var(--card-shadow);
}

.wellness-slider-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.wellness-slider-grid label {
  display: grid;
  gap: 8px;
}

.wellness-slider-grid input[type="range"] {
  width: 100%;
  accent-color: var(--purple);
}

.wellness-checks {
  display: grid;
  gap: 8px;
}

.wellness-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.career-hero-panel,
.employee-career-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.17), rgba(22, 133, 107, 0.08) 46%, transparent),
    var(--panel);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.employee-career-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 220px);
  min-height: 250px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 16%, rgba(255, 255, 255, 0.15), transparent 22%),
    linear-gradient(135deg, rgba(8, 10, 22, 0.98), rgba(83, 12, 90, 0.92) 52%, rgba(16, 80, 76, 0.86)),
    var(--panel);
  box-shadow: var(--purple-shadow);
}

.career-hero-panel h2,
.employee-career-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.employee-career-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.career-orbit,
.employee-career-core {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  background: radial-gradient(circle, rgba(143, 0, 141, 0.28), rgba(22, 133, 107, 0.12));
  color: var(--purple-strong);
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.employee-career-core {
  width: auto;
  min-width: 150px;
  color: #fff;
  box-shadow:
    inset 0 0 0 9px rgba(255, 255, 255, 0.05),
    0 20px 55px rgba(143, 0, 141, 0.28);
}

.employee-career-core strong {
  font-size: 3rem;
  line-height: 1;
}

.employee-career-core span,
.employee-career-core small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.employee-career-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.career-layout,
.employee-career-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.86fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.employee-career-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.employee-career-metrics article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 45%),
    var(--panel);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

.employee-career-metrics span {
  color: var(--muted);
}

.employee-career-metrics strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.career-list,
.employee-career-list {
  display: grid;
  gap: 10px;
}

.career-card,
.employee-career-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.07), transparent 42%),
    var(--input);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

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

.career-card.ready,
.career-card.approved,
.career-card.promoted,
.employee-career-card.ready,
.employee-career-card.approved {
  border-color: rgba(22, 133, 107, 0.34);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.34), var(--card-shadow);
}

.career-card.blocked,
.career-card.rejected,
.employee-career-card.blocked,
.employee-career-card.rejected,
.employee-career-card.urgent {
  border-color: rgba(196, 29, 73, 0.34);
  box-shadow: inset 4px 0 0 rgba(196, 29, 73, 0.34), var(--card-shadow);
}

.career-card.review,
.career-card.interview,
.career-card.matched,
.career-card.in_progress,
.employee-career-card.review,
.employee-career-card.interview,
.employee-career-card.matched,
.employee-career-card.in_progress {
  border-color: rgba(143, 0, 141, 0.36);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.36), var(--card-shadow);
}

.career-score {
  display: grid;
  place-items: center;
  min-width: 84px;
  min-height: 84px;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.1);
  color: var(--purple-strong);
  text-align: center;
}

.career-score strong {
  font-size: 1.4rem;
}

.career-score span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.career-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 8px;
}

.compact-form {
  border-top: 1px solid var(--line);
  margin-top: 12px;
  padding-top: 12px;
}

.voice-hero-panel,
.employee-voice-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.15), rgba(14, 159, 154, 0.1) 48%, transparent),
    var(--panel);
  box-shadow: var(--card-shadow);
  overflow: hidden;
}

.employee-voice-hero {
  grid-template-columns: minmax(0, 1fr) minmax(150px, 210px);
  min-height: 240px;
  padding: 24px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(255, 255, 255, 0.14), transparent 22%),
    linear-gradient(135deg, rgba(8, 10, 22, 0.98), rgba(87, 10, 93, 0.92) 54%, rgba(16, 80, 76, 0.86));
  box-shadow: var(--purple-shadow);
}

.voice-hero-panel h2,
.employee-voice-hero h2 {
  margin: 0;
  font-size: clamp(2rem, 4vw, 3.6rem);
  line-height: 1;
}

.employee-voice-hero p {
  color: rgba(255, 255, 255, 0.76);
}

.voice-orbit,
.employee-voice-core {
  display: grid;
  place-items: center;
  width: 116px;
  aspect-ratio: 1;
  border-radius: 999px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  background: radial-gradient(circle, rgba(143, 0, 141, 0.28), rgba(22, 133, 107, 0.12));
  color: var(--purple-strong);
  font-size: 2rem;
  font-weight: 950;
  text-align: center;
}

.employee-voice-core {
  width: auto;
  min-width: 150px;
  color: #fff;
  box-shadow: inset 0 0 0 9px rgba(255, 255, 255, 0.05);
}

.employee-voice-core strong {
  font-size: 3rem;
  line-height: 1;
}

.employee-voice-core span,
.employee-voice-core small {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
  text-transform: uppercase;
}

.employee-voice-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 16px;
}

.voice-layout,
.employee-voice-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(310px, 0.86fr);
  gap: 14px;
  align-items: start;
  margin-top: 14px;
}

.employee-voice-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 16px 0;
}

.employee-voice-metrics article {
  display: grid;
  gap: 5px;
  min-height: 86px;
  border: 1px solid rgba(143, 0, 141, 0.14);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 45%),
    var(--panel);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

.employee-voice-metrics span {
  color: var(--muted);
}

.employee-voice-metrics strong {
  color: var(--ink);
  font-size: 1.15rem;
}

.voice-list,
.employee-voice-list {
  display: grid;
  gap: 10px;
}

.voice-card,
.voice-update {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.07), transparent 42%),
    var(--input);
  box-shadow: var(--card-shadow);
  overflow-wrap: anywhere;
}

.voice-update {
  grid-template-columns: minmax(0, 1fr);
}

.voice-card.critical {
  border-color: rgba(196, 29, 73, 0.34);
  box-shadow: inset 4px 0 0 rgba(196, 29, 73, 0.34), var(--card-shadow);
}

.voice-card.high,
.voice-card.planned {
  border-color: rgba(143, 0, 141, 0.34);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.34), var(--card-shadow);
}

.voice-card.implemented {
  border-color: rgba(22, 133, 107, 0.34);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.34), var(--card-shadow);
}

.voice-score {
  display: grid;
  gap: 8px;
  justify-items: center;
  min-width: 84px;
}

.voice-score strong {
  display: grid;
  place-items: center;
  width: 58px;
  aspect-ratio: 1;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.1);
  color: var(--purple-strong);
  font-size: 1.35rem;
}

.voice-score span {
  color: var(--muted);
  font-weight: 900;
  text-transform: uppercase;
}

.voice-checks {
  display: grid;
  gap: 8px;
}

.voice-checks label {
  display: flex;
  align-items: center;
  gap: 9px;
}

.profile-grid {
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
}

.profile-field {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
}

.profile-field span {
  display: block;
  margin-bottom: 5px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-field strong {
  overflow-wrap: anywhere;
}

.profile-completion-command,
.profile-completion-self {
  display: grid;
  gap: 12px;
  margin-bottom: 16px;
}

.profile-completion-metrics,
.profile-completion-rings {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(120px, 1fr));
  gap: 10px;
}

.profile-completion-metrics article,
.profile-completion-rings article {
  border: 1px solid rgba(141, 36, 154, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: linear-gradient(135deg, rgba(141, 36, 154, 0.09), rgba(43, 184, 194, 0.08));
}

.profile-completion-metrics span,
.profile-completion-rings span,
.profile-completion-card small,
.profile-completion-actions span {
  display: block;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.profile-completion-metrics strong,
.profile-completion-rings strong {
  display: block;
  margin-top: 4px;
  font-size: 1.28rem;
}

.profile-completion-board {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
  gap: 12px;
}

.profile-completion-card,
.profile-completion-actions button {
  width: 100%;
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.profile-completion-actions button {
  position: relative;
  display: grid;
  grid-template-columns: 1fr;
  gap: 7px 10px;
  align-content: start;
  min-height: 104px;
  padding-right: 38px;
}

.profile-completion-actions button strong,
.profile-completion-actions button span {
  grid-column: 1;
}

.profile-completion-actions button small {
  grid-column: 1;
}

.profile-completion-actions button .help-icon {
  position: absolute;
  top: 14px;
  right: 14px;
}

.profile-completion-card {
  display: grid;
  gap: 8px;
  min-height: 132px;
  align-content: start;
  border-left: 4px solid var(--accent);
}

.profile-completion-card > span {
  width: fit-content;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(141, 36, 154, 0.12);
  color: var(--accent);
  font-weight: 950;
}

.profile-completion-card strong,
.profile-completion-actions strong {
  overflow-wrap: break-word;
  word-break: normal;
  line-height: 1.24;
  hyphens: none;
}

.profile-completion-card small,
.profile-completion-actions span {
  line-height: 1.35;
  overflow-wrap: break-word;
  word-break: normal;
}

.profile-completion-card em {
  color: var(--accent);
  font-style: normal;
  font-weight: 900;
}

.profile-completion-card.critical,
.profile-completion-actions button.urgent {
  border-color: rgba(255, 91, 91, 0.42);
  border-left-color: #ff5b5b;
}

.profile-completion-card.watch {
  border-color: rgba(239, 178, 60, 0.42);
  border-left-color: #efb23c;
}

.profile-completion-card.complete {
  border-color: rgba(43, 184, 194, 0.38);
  border-left-color: #2bb8c2;
}

.profile-completion-card.active {
  outline: 2px solid rgba(141, 36, 154, 0.45);
  background: linear-gradient(135deg, rgba(141, 36, 154, 0.14), rgba(255, 255, 255, 0.9));
}

.profile-completion-hero {
  display: grid;
  grid-template-columns: minmax(180px, 0.9fr) minmax(0, 1.6fr);
  gap: 14px;
  align-items: stretch;
  border: 1px solid rgba(141, 36, 154, 0.2);
  border-radius: 8px;
  padding: 14px;
  background:
    radial-gradient(circle at 12% 20%, rgba(141, 36, 154, 0.18), transparent 34%),
    linear-gradient(135deg, rgba(255, 255, 255, 0.9), rgba(248, 227, 250, 0.84));
}

.profile-completion-hero > div:first-child {
  border-radius: 8px;
  padding: 16px;
  background: linear-gradient(135deg, rgba(21, 14, 36, 0.94), rgba(141, 36, 154, 0.9));
  color: #fff;
}

.profile-completion-hero > div:first-child span {
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.75rem;
  font-weight: 900;
  text-transform: uppercase;
}

.profile-completion-hero > div:first-child strong {
  display: block;
  margin: 5px 0;
  font-size: 2.2rem;
  line-height: 1;
}

.profile-completion-hero > div:first-child p {
  margin: 0;
  color: rgba(255, 255, 255, 0.78);
  font-weight: 800;
}

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

.profile-completion-actions small {
  display: block;
  margin-top: 8px;
  color: var(--accent);
  font-weight: 950;
}

:root[data-theme="dark"] .profile-completion-card.active,
:root[data-theme="dark"] .profile-completion-hero {
  background: linear-gradient(135deg, rgba(141, 36, 154, 0.2), rgba(43, 184, 194, 0.09));
}

fieldset {
  border: 1px solid var(--line);
  border-radius: 7px;
  margin: 0;
  padding: 12px;
}

legend {
  color: var(--muted);
  font-weight: 850;
  padding: 0 4px;
}

fieldset label,
.checkline {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

fieldset input,
.checkline input {
  width: auto;
}

.employee-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 300px);
  gap: 18px;
  align-items: stretch;
  min-height: 280px;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 18%, rgba(68, 214, 255, 0.34), transparent 26%),
    linear-gradient(135deg, rgba(16, 18, 35, 0.96), rgba(78, 12, 91, 0.96) 58%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.08) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px);
  background-size: 42px 42px;
  mask-image: linear-gradient(90deg, rgba(0, 0, 0, 0.8), transparent 78%);
  pointer-events: none;
}

.employee-hero-copy,
.employee-hero-core {
  position: relative;
  z-index: 1;
}

.employee-hero-copy {
  display: grid;
  gap: 14px;
  align-content: center;
}

.employee-hero-copy .eyebrow,
.employee-hero-copy p {
  color: rgba(255, 255, 255, 0.78);
}

.employee-hero-copy h2 {
  margin: 0;
  max-width: 760px;
  font-size: clamp(2.2rem, 4vw, 4.3rem);
  line-height: 0.95;
}

.employee-home-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.employee-hero-core {
  display: grid;
  gap: 10px;
  place-items: center;
  align-content: center;
  border: 1px solid rgba(255, 255, 255, 0.18);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: inset 0 0 40px rgba(255, 255, 255, 0.06);
}

.employee-hero-core img {
  width: 96px;
  height: 96px;
  object-fit: contain;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.96);
  padding: 10px;
  animation: pulseMark 3.8s ease-in-out infinite;
}

.employee-hero-core strong {
  text-transform: capitalize;
  font-size: 1.35rem;
}

.employee-hero-core span {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 800;
}

.employee-home-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(300px, 0.75fr);
  gap: 18px;
}

.employee-welcome-guide {
  border-color: rgba(143, 0, 141, 0.18);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 38%),
    linear-gradient(180deg, rgba(14, 159, 154, 0.06), transparent),
    var(--panel);
}

.employee-guide-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.employee-guide-grid article {
  display: grid;
  align-content: start;
  gap: 10px;
  min-height: 210px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  padding: 15px;
  background: var(--input);
  box-shadow: var(--card-shadow);
}

.employee-guide-grid span {
  color: var(--purple);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-guide-grid strong {
  color: var(--ink);
  font-size: 1.02rem;
  line-height: 1.2;
}

.employee-guide-grid p {
  color: var(--muted);
  font-weight: 750;
}

.employee-guide-grid button {
  align-self: end;
  margin-top: auto;
}

.employee-smart-home,
.employee-next-actions {
  position: relative;
  border-color: rgba(143, 0, 141, 0.22);
  background:
    radial-gradient(circle at 92% 4%, rgba(143, 0, 141, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(14, 159, 154, 0.08), transparent 42%),
    var(--panel);
  overflow: hidden;
}

.employee-smart-home::before,
.employee-next-actions::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--amber), transparent);
}

.employee-smart-now {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.employee-now-card {
  display: grid;
  align-content: start;
  gap: 9px;
  min-height: 158px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  padding: 15px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 44%),
    var(--input);
  box-shadow: var(--card-shadow);
}

.employee-now-card span,
.employee-smart-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-now-card strong {
  color: var(--ink);
  font-size: 1.22rem;
  line-height: 1.1;
  overflow-wrap: anywhere;
}

.employee-now-card p {
  color: var(--muted);
  font-weight: 750;
}

.employee-now-card.urgent,
.employee-smart-card.urgent,
.employee-next-action.urgent,
.employee-next-action.critical {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.78), var(--card-shadow);
}

.employee-now-card.watch,
.employee-smart-card.watch,
.employee-next-action.high {
  border-color: rgba(183, 121, 31, 0.38);
  box-shadow: inset 4px 0 0 rgba(183, 121, 31, 0.76), var(--card-shadow);
}

.employee-now-card.calm,
.employee-smart-card.calm {
  border-color: rgba(22, 133, 107, 0.3);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.58), var(--card-shadow);
}

.employee-smart-cards {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.employee-smart-card {
  display: grid;
  gap: 8px;
  min-height: 126px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 44%),
    var(--input);
  box-shadow: var(--card-shadow);
}

.employee-smart-card strong {
  color: var(--ink);
  font-size: 1.12rem;
  line-height: 1.08;
  overflow-wrap: anywhere;
}

.employee-smart-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.35;
}

.employee-next-action-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.employee-next-action {
  display: grid;
  grid-template-columns: 36px minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  width: 100%;
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  color: var(--ink);
  text-align: left;
  background: var(--input);
  box-shadow: var(--card-shadow);
}

.employee-next-action > span {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: rgba(143, 0, 141, 0.12);
  color: var(--purple-strong);
  font-weight: 950;
}

.employee-next-action strong {
  color: var(--ink);
}

.employee-next-action p {
  margin-top: 4px;
  color: var(--muted);
}

.employee-next-action small {
  color: var(--purple-strong);
  font-weight: 900;
}

.employee-self-service {
  position: relative;
  border-color: rgba(143, 0, 141, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.11), transparent 34%),
    radial-gradient(circle at 96% 8%, rgba(14, 159, 154, 0.16), transparent 25%),
    var(--panel);
  overflow: hidden;
}

.employee-self-service::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 3px;
  background: linear-gradient(90deg, var(--purple), var(--cyan), var(--coral));
}

.employee-service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 11px;
  margin-top: 14px;
}

.employee-service-card {
  position: relative;
  display: grid;
  gap: 8px;
  min-height: 142px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  text-align: left;
  color: var(--ink);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.38);
  transition:
    transform 160ms ease,
    border-color 160ms ease,
    box-shadow 160ms ease;
}

.employee-service-card::after {
  content: "";
  position: absolute;
  inset: auto 12px 10px 12px;
  height: 2px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--purple), transparent);
  opacity: 0.42;
}

.employee-service-card:hover,
.employee-service-card:focus-visible {
  transform: translateY(-2px);
  border-color: rgba(143, 0, 141, 0.52);
  box-shadow:
    0 14px 28px rgba(34, 10, 45, 0.12),
    0 0 0 3px rgba(143, 0, 141, 0.1);
}

.employee-service-card.urgent {
  border-color: rgba(216, 89, 69, 0.42);
}

.employee-service-card span {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(143, 0, 141, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-service-card.urgent span {
  border-color: rgba(216, 89, 69, 0.24);
  color: var(--coral);
}

.employee-service-card strong {
  font-size: 1rem;
  line-height: 1.14;
}

.employee-service-card small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.4;
}

.employee-main-actions-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.employee-main-action {
  display: grid;
  gap: 8px;
  min-height: 136px;
  align-content: start;
  justify-items: start;
  padding: 16px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--purple);
  border-radius: 10px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.055), transparent 58%),
    var(--input);
  color: var(--ink);
  text-align: left;
  box-shadow: 0 12px 28px rgba(24, 33, 47, 0.055);
}

.employee-main-action:hover,
.employee-main-action:focus-visible {
  border-color: rgba(143, 0, 141, 0.36);
  background: var(--purple-soft);
}

.employee-main-action small {
  display: inline-flex;
  max-width: 100%;
  min-height: 24px;
  align-items: center;
  padding: 4px 8px;
  border: 1px solid rgba(143, 0, 141, 0.17);
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-size: 0.72rem;
  font-weight: 950;
  line-height: 1.2;
  overflow-wrap: anywhere;
}

.employee-main-action strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.15;
}

.employee-main-action span {
  color: var(--muted);
  font-size: 0.86rem;
  font-weight: 760;
  line-height: 1.4;
}

.employee-simple-mode #employeeHome .employee-hero,
.employee-simple-mode #employeeHome #employeeHomeMetrics,
.employee-simple-mode #employeeHome .employee-simple-actions,
.employee-simple-mode #employeeHome .employee-welcome-guide,
.employee-simple-mode #employeeHome .employee-smart-home,
.employee-simple-mode #employeeHome .employee-next-actions,
.employee-simple-mode #employeeHome .employee-self-service,
.employee-simple-mode #employeeHome .employee-action-center,
.employee-simple-mode #employeeHome .employee-home-grid {
  display: none;
}

.employee-action-center {
  border-color: rgba(143, 0, 141, 0.24);
  background:
    radial-gradient(circle at 88% 0%, rgba(143, 0, 141, 0.12), transparent 28%),
    linear-gradient(135deg, rgba(14, 159, 154, 0.08), transparent 38%),
    var(--panel);
}

.employee-action-highlights {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.employee-action-highlights article {
  min-height: 82px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  background: var(--input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.44);
}

.employee-action-highlights span {
  display: block;
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 850;
}

.employee-action-highlights strong {
  display: block;
  margin-top: 8px;
  color: var(--ink);
  font-size: 1.35rem;
  line-height: 1.1;
}

.employee-action-center-list {
  display: grid;
  gap: 11px;
}

.employee-action-card {
  position: relative;
  display: grid;
  grid-template-columns: 16px minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--input);
  overflow: hidden;
}

.employee-action-card::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: rgba(143, 0, 141, 0.4);
}

.employee-action-card.critical::before,
.employee-action-card.urgent::before {
  background: var(--coral);
}

.employee-action-card.high::before {
  background: var(--amber);
}

.employee-action-card.info::before {
  background: var(--cyan);
}

.employee-action-pulse {
  width: 12px;
  height: 12px;
  border-radius: 50%;
  background: var(--purple);
  box-shadow: 0 0 0 6px rgba(143, 0, 141, 0.12);
}

.employee-action-card.critical .employee-action-pulse,
.employee-action-card.urgent .employee-action-pulse {
  background: var(--coral);
  box-shadow: 0 0 0 6px rgba(216, 89, 69, 0.14);
}

.employee-action-card.high .employee-action-pulse {
  background: var(--amber);
  box-shadow: 0 0 0 6px rgba(183, 121, 31, 0.14);
}

.employee-action-topline,
.employee-action-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-action-topline > span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 900;
  text-transform: uppercase;
}

.employee-action-card h3 {
  margin: 5px 0;
  font-size: 1.02rem;
}

.employee-action-card p {
  color: var(--muted);
}

.employee-action-meta {
  margin-top: 9px;
}

.employee-action-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 3px 8px;
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.employee-week-list,
.employee-action-inbox {
  display: grid;
  gap: 10px;
}

.employee-week-card,
.employee-inbox-item {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
}

.employee-week-card {
  display: grid;
  grid-template-columns: minmax(130px, 0.55fr) minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.3);
}

.employee-week-card.mode-office {
  box-shadow: inset 4px 0 0 var(--purple);
}

.employee-week-card.mode-home {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.employee-week-card.mode-off {
  box-shadow: inset 4px 0 0 var(--amber);
}

.employee-week-card p {
  margin-top: 5px;
}

.employee-inbox-item {
  display: grid;
  gap: 5px;
  color: var(--ink);
  text-align: left;
  box-shadow: none;
  transform: none;
}

.employee-inbox-item.critical,
.employee-inbox-item.urgent {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.85);
}

.employee-inbox-item.high {
  border-color: rgba(183, 121, 31, 0.38);
  box-shadow: inset 4px 0 0 rgba(183, 121, 31, 0.8);
}

.employee-inbox-item:hover,
.employee-inbox-item:focus {
  border-color: rgba(143, 0, 141, 0.4);
  box-shadow: var(--purple-shadow);
}

.employee-inbox-item span {
  color: var(--muted);
  font-size: 0.9rem;
}

.employee-request-starters {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.employee-request-starters button {
  min-height: 76px;
  justify-content: start;
  border: 1px solid rgba(143, 0, 141, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 54%),
    var(--input);
  color: var(--ink);
  box-shadow: none;
  text-align: left;
}

.employee-request-starters button:hover,
.employee-request-starters button:focus {
  border-color: rgba(143, 0, 141, 0.48);
  box-shadow: var(--purple-shadow);
}

.employee-request-card {
  border-color: rgba(143, 0, 141, 0.18);
}

.employee-request-tracker {
  border-color: rgba(143, 0, 141, 0.24);
  background:
    radial-gradient(circle at 94% 8%, rgba(68, 214, 255, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(143, 0, 141, 0.09), transparent 54%),
    var(--panel);
}

.employee-request-tracker-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 12px 0;
}

.employee-request-tracker-metrics article {
  min-height: 78px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.28);
}

.employee-request-tracker-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.employee-request-tracker-metrics strong {
  display: block;
  margin-top: 7px;
  color: var(--ink);
  font-size: 1.25rem;
}

.employee-request-tracker-filters {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(170px, 0.28fr);
  gap: 10px;
}

.employee-request-card {
  gap: 14px;
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 42%),
    var(--input);
}

.employee-request-card.urgent {
  border-color: rgba(216, 89, 69, 0.42);
}

.employee-request-ticket-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: start;
}

.employee-request-id {
  display: inline-flex;
  width: max-content;
  max-width: 100%;
  margin-bottom: 6px;
  border: 1px solid rgba(143, 0, 141, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-request-state {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: max-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 950;
}

.employee-request-state.responded {
  border-color: rgba(22, 133, 107, 0.28);
  color: var(--green);
}

.employee-request-state.waiting {
  border-color: rgba(183, 121, 31, 0.32);
  color: var(--amber);
}

.employee-request-state.closed {
  color: var(--muted);
}

.employee-request-timeline {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.employee-request-timeline span {
  position: relative;
  display: grid;
  gap: 5px;
  min-height: 76px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
  background: var(--panel);
}

.employee-request-timeline i {
  width: 11px;
  height: 11px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.36);
  box-shadow: 0 0 0 5px rgba(102, 112, 133, 0.08);
}

.employee-request-timeline span.done i {
  background: var(--green);
  box-shadow: 0 0 0 5px rgba(22, 133, 107, 0.12);
}

.employee-request-timeline span.rejected i {
  background: var(--coral);
  box-shadow: 0 0 0 5px rgba(216, 89, 69, 0.12);
}

.employee-request-timeline strong {
  color: var(--ink);
  font-size: 0.88rem;
}

.employee-request-timeline small {
  color: var(--muted);
  font-weight: 760;
  overflow-wrap: anywhere;
}

.employee-request-ticket-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employee-request-ticket-body section {
  display: grid;
  gap: 7px;
  min-height: 118px;
  align-content: start;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.employee-request-ticket-body section.has-response {
  border-color: rgba(22, 133, 107, 0.3);
  box-shadow: inset 4px 0 0 rgba(22, 133, 107, 0.24);
}

.employee-request-ticket-body small {
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-request-ticket-body p {
  color: var(--ink);
  line-height: 1.45;
}

.employee-request-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-request-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  background: var(--panel);
  font-size: 0.78rem;
  font-weight: 850;
}

.employee-request-activity {
  display: grid;
  gap: 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 45%),
    var(--panel);
}

.employee-request-activity-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--ink);
  font-weight: 950;
}

.employee-request-activity-head span {
  color: var(--muted);
  font-size: 0.78rem;
}

.employee-request-update {
  display: grid;
  gap: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--input);
}

.employee-request-update.needs_info {
  border-color: rgba(216, 89, 69, 0.34);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.22);
}

.employee-request-update.attachment {
  border-color: rgba(143, 0, 141, 0.26);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.18);
}

.employee-request-update > div {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: start;
}

.employee-request-update strong {
  color: var(--ink);
}

.employee-request-update p {
  color: var(--ink);
  line-height: 1.45;
}

.request-attachment-link {
  width: max-content;
  max-width: 100%;
  border: 1px solid rgba(143, 0, 141, 0.25);
  border-radius: 8px;
  padding: 7px 9px;
  color: var(--purple);
  background: rgba(143, 0, 141, 0.08);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.request-update-form {
  display: grid;
  gap: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.request-update-form > div {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.26fr) minmax(190px, 0.32fr);
  gap: 9px;
  align-items: end;
}

.request-update-form input[type="file"] {
  min-height: 42px;
  padding: 9px;
}

.request-closed-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: var(--panel);
}

.request-progress {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.request-progress span {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 7px;
  align-items: center;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.request-progress i {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: rgba(102, 112, 133, 0.35);
  box-shadow: 0 0 0 4px rgba(102, 112, 133, 0.08);
}

.request-progress .done {
  color: var(--ink);
}

.request-progress .done i {
  background: var(--green);
  box-shadow: 0 0 0 4px rgba(22, 133, 107, 0.12);
}

.request-progress .rejected i {
  background: var(--coral);
  box-shadow: 0 0 0 4px rgba(216, 89, 69, 0.12);
}

.employee-leave-brief {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 14px;
}

.employee-leave-brief article {
  display: grid;
  gap: 5px;
  min-height: 82px;
  align-content: center;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  padding: 12px;
  background:
    linear-gradient(135deg, rgba(68, 214, 255, 0.08), transparent 52%),
    var(--input);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.28);
}

.employee-leave-brief strong {
  color: var(--ink);
  overflow-wrap: anywhere;
}

.employee-leave-brief span {
  color: var(--muted);
  font-size: 0.88rem;
  font-weight: 760;
}

.employee-profile-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.9fr);
  gap: 18px;
  align-items: stretch;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 86% 20%, rgba(68, 214, 255, 0.28), transparent 25%),
    linear-gradient(135deg, rgba(9, 12, 26, 0.96), rgba(55, 16, 76, 0.96) 56%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-profile-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px);
  background-size: 44px 44px;
  pointer-events: none;
  opacity: 0.55;
}

.employee-profile-hero > * {
  position: relative;
  z-index: 1;
}

.employee-profile-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.8vw, 3.8rem);
  line-height: 1;
}

.employee-profile-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-profile-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.employee-profile-stats,
.employee-compliance-stats {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.employee-profile-stats article,
.employee-compliance-stats article {
  display: grid;
  gap: 5px;
  align-content: center;
  min-height: 88px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 13px;
  background: rgba(255, 255, 255, 0.08);
}

.employee-profile-stats strong,
.employee-compliance-stats strong {
  color: inherit;
  font-size: 1.55rem;
}

.employee-profile-stats span,
.employee-compliance-stats span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 800;
  font-size: 0.84rem;
}

.employee-compliance-brief {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(280px, 0.8fr);
  gap: 18px;
  align-items: center;
  background:
    radial-gradient(circle at 92% 12%, rgba(143, 0, 141, 0.16), transparent 28%),
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 60%),
    var(--panel);
}

.employee-compliance-brief h2 {
  margin: 4px 0 8px;
}

.employee-compliance-brief .employee-compliance-stats article {
  border-color: var(--line);
  background: var(--input);
  color: var(--ink);
}

.employee-compliance-brief .employee-compliance-stats span {
  color: var(--muted);
}

.employee-knowledge-center {
  display: grid;
  gap: 14px;
  scroll-margin-top: 110px;
  border: 1px solid rgba(143, 0, 141, 0.24);
  border-radius: 8px;
  padding: 18px;
  background:
    radial-gradient(circle at 93% 4%, rgba(68, 214, 255, 0.18), transparent 28%),
    linear-gradient(135deg, rgba(143, 0, 141, 0.1), transparent 52%),
    var(--panel);
  box-shadow: var(--purple-shadow);
}

.employee-knowledge-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 18px;
  align-items: end;
}

.employee-knowledge-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(1.8rem, 3vw, 3.2rem);
  line-height: 1;
}

.employee-knowledge-hero p:not(.eyebrow) {
  color: var(--muted);
  max-width: 760px;
}

.employee-knowledge-search {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(150px, 0.42fr);
  gap: 10px;
}

.employee-knowledge-metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
}

.employee-knowledge-metrics article {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.26);
}

.employee-knowledge-metrics span {
  display: block;
  color: var(--muted);
  font-size: 0.8rem;
  font-weight: 850;
}

.employee-knowledge-metrics strong {
  display: block;
  margin-top: 6px;
  color: var(--ink);
  font-size: 1.25rem;
}

.employee-knowledge-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.employee-knowledge-chips button {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 8px 11px;
  color: var(--ink);
  background: var(--input);
  font-size: 0.82rem;
}

.employee-knowledge-chips button.active {
  border-color: rgba(143, 0, 141, 0.45);
  color: #fff;
  background: linear-gradient(135deg, var(--purple), #4a124f);
}

.employee-knowledge-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(220px, 0.26fr);
  gap: 14px;
  align-items: start;
}

.employee-knowledge-results {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 11px;
}

.employee-knowledge-card {
  display: grid;
  gap: 10px;
  min-height: 178px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.08), transparent),
    var(--input);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.34);
}

.knowledge-admin-panel {
  border-color: rgba(143, 0, 141, 0.18);
}

.knowledge-admin-list {
  margin-top: 8px;
}

.knowledge-admin-card {
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.12), transparent 44%),
    var(--input);
}

.employee-knowledge-card > div:first-child,
.employee-knowledge-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-knowledge-card > div:first-child span {
  border: 1px solid rgba(143, 0, 141, 0.2);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
  text-transform: uppercase;
}

.employee-knowledge-card strong {
  color: var(--ink);
  font-size: 1.05rem;
  line-height: 1.2;
}

.employee-knowledge-card p {
  color: var(--muted);
  line-height: 1.45;
}

.employee-knowledge-actions {
  margin-top: auto;
}

.employee-knowledge-actions small {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  color: var(--muted);
  font-weight: 850;
}

.employee-knowledge-actions button {
  margin-left: auto;
}

.employee-knowledge-side {
  position: sticky;
  top: 18px;
  display: grid;
  gap: 9px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 12px;
  background: var(--input);
}

.employee-knowledge-side strong {
  color: var(--ink);
}

.employee-knowledge-side button {
  justify-content: start;
  min-height: 38px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 9px 10px;
  color: var(--ink);
  background: var(--panel);
  text-align: left;
}

.employee-security-center {
  display: grid;
  gap: 18px;
}

.employee-security-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 160px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 88% 18%, rgba(68, 214, 255, 0.24), transparent 26%),
    linear-gradient(135deg, rgba(9, 12, 26, 0.98), rgba(44, 18, 74, 0.96) 54%, rgba(143, 0, 141, 0.88));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-security-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.52;
}

.employee-security-hero > * {
  position: relative;
  z-index: 1;
}

.employee-security-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1;
}

.employee-security-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-security-score {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-security-score strong {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.employee-security-score span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.employee-security-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.employee-security-metrics article {
  display: grid;
  gap: 8px;
  min-height: 98px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-security-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.employee-security-metrics strong {
  color: var(--ink);
  font-size: 1.2rem;
}

.employee-calendar-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.3);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 78% 20%, rgba(18, 189, 184, 0.24), transparent 28%),
    radial-gradient(circle at 20% 0%, rgba(143, 0, 141, 0.5), transparent 34%),
    linear-gradient(135deg, rgba(6, 9, 22, 0.98), rgba(37, 19, 64, 0.96) 58%, rgba(143, 0, 141, 0.9));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-calendar-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  mask-image: linear-gradient(90deg, transparent, #000 18%, #000 82%, transparent);
  pointer-events: none;
  opacity: 0.58;
}

.employee-calendar-hero > * {
  position: relative;
  z-index: 1;
}

.employee-calendar-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-calendar-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-calendar-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.employee-calendar-filters label {
  min-width: 150px;
  color: rgba(255, 255, 255, 0.78);
}

.employee-calendar-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-calendar-core strong {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
}

.employee-calendar-core span,
.employee-calendar-core small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.employee-calendar-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-calendar-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-calendar-metrics span,
.employee-calendar-shift span,
.employee-calendar-focus-card span {
  color: var(--muted);
  font-weight: 800;
}

.employee-calendar-metrics strong,
.employee-calendar-shift strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.employee-calendar-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(300px, 0.55fr);
  gap: 14px;
  align-items: start;
}

.employee-calendar-grid,
.employee-calendar-focus {
  display: grid;
  gap: 10px;
}

.employee-calendar-day,
.employee-calendar-focus-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-calendar-day {
  border-left: 5px solid var(--line);
}

.employee-calendar-day.office {
  border-left-color: var(--purple);
}

.employee-calendar-day.home {
  border-left-color: var(--cyan);
}

.employee-calendar-day.holiday {
  border-left-color: var(--success);
}

.employee-calendar-day.leave {
  border-left-color: #6d5dfc;
}

.employee-calendar-day.watch {
  border-left-color: #d6a528;
}

.employee-calendar-day.danger {
  border-left-color: var(--danger);
  box-shadow: 0 14px 34px rgba(225, 88, 64, 0.12);
}

.employee-calendar-date {
  display: grid;
  grid-template-columns: minmax(0, 1fr) max-content;
  gap: 10px;
  align-items: start;
}

.employee-calendar-date strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.employee-calendar-date span {
  color: var(--muted);
  font-weight: 900;
  text-transform: capitalize;
}

.employee-calendar-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.employee-calendar-shift {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.employee-calendar-shift article {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 10px;
  background: var(--input);
}

.employee-calendar-note {
  margin: 0;
  color: var(--muted);
  font-weight: 750;
}

.employee-calendar-focus-card.high,
.employee-calendar-focus-card.critical {
  border-color: rgba(225, 88, 64, 0.5);
}

.employee-calendar-focus-card.info {
  border-color: rgba(18, 189, 184, 0.45);
}

.employee-helpdesk-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.34);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 10%, rgba(18, 189, 184, 0.26), transparent 30%),
    radial-gradient(circle at 12% 8%, rgba(255, 255, 255, 0.16), transparent 25%),
    linear-gradient(135deg, rgba(6, 8, 22, 0.98), rgba(35, 18, 78, 0.97) 52%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-helpdesk-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 38px 38px;
  opacity: 0.52;
  pointer-events: none;
}

.employee-helpdesk-hero > * {
  position: relative;
  z-index: 1;
}

.employee-helpdesk-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-helpdesk-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.employee-helpdesk-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.employee-helpdesk-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-helpdesk-core strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
}

.employee-helpdesk-core span,
.employee-helpdesk-core small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.employee-helpdesk-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-helpdesk-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-helpdesk-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.employee-helpdesk-metrics strong {
  color: var(--ink);
}

.employee-helpdesk-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.employee-helpdesk-form,
.employee-helpdesk-focus,
.employee-helpdesk-ticket-list,
.employee-helpdesk-replies {
  display: grid;
  gap: 10px;
}

.employee-helpdesk-form textarea {
  min-height: 150px;
}

.employee-helpdesk-ticket,
.employee-helpdesk-reply,
.employee-helpdesk-focus-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-helpdesk-ticket.urgent,
.employee-helpdesk-focus-card.urgent,
.employee-helpdesk-focus-card.high {
  border-left-color: var(--coral);
  box-shadow: 0 14px 34px rgba(216, 89, 69, 0.12);
}

.employee-helpdesk-ticket > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.employee-timeline-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.34);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(18, 189, 184, 0.28), transparent 30%),
    radial-gradient(circle at 16% 8%, rgba(255, 255, 255, 0.14), transparent 26%),
    linear-gradient(135deg, rgba(4, 7, 18, 0.98), rgba(32, 19, 77, 0.97) 52%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-timeline-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.52;
  pointer-events: none;
}

.employee-timeline-hero > * {
  position: relative;
  z-index: 1;
}

.employee-timeline-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-timeline-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.78);
}

.employee-timeline-filters {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
  align-items: end;
}

.employee-timeline-filters label {
  color: rgba(255, 255, 255, 0.72);
}

.employee-timeline-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-timeline-core strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
}

.employee-timeline-core span,
.employee-timeline-core small {
  color: rgba(255, 255, 255, 0.78);
  font-weight: 900;
}

.employee-timeline-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.employee-timeline-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-timeline-metrics span,
.employee-timeline-topline span,
.employee-timeline-meta span {
  color: var(--muted);
  font-weight: 800;
}

.employee-timeline-metrics strong {
  color: var(--ink);
}

.employee-timeline-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 0.42fr);
  gap: 14px;
  align-items: start;
}

.employee-timeline-list {
  position: relative;
  display: grid;
  gap: 12px;
}

.employee-timeline-list::before {
  content: "";
  position: absolute;
  top: 8px;
  bottom: 8px;
  left: 12px;
  width: 2px;
  background: linear-gradient(180deg, var(--purple), var(--cyan), transparent);
  opacity: 0.38;
}

.employee-timeline-event {
  position: relative;
  display: grid;
  grid-template-columns: 28px minmax(0, 1fr);
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-timeline-event.urgent,
.employee-timeline-event.critical {
  border-color: rgba(216, 89, 69, 0.38);
  box-shadow: 0 14px 34px rgba(216, 89, 69, 0.12);
}

.employee-timeline-event.high {
  border-color: rgba(183, 121, 31, 0.38);
}

.employee-timeline-dot {
  position: relative;
  z-index: 1;
  width: 16px;
  height: 16px;
  margin: 4px auto 0;
  border: 3px solid var(--panel);
  border-radius: 50%;
  background: linear-gradient(135deg, var(--purple), var(--cyan));
  box-shadow: 0 0 0 3px rgba(143, 0, 141, 0.18);
}

.employee-timeline-topline,
.employee-timeline-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.employee-timeline-event strong {
  display: block;
  margin: 8px 0 6px;
  color: var(--ink);
  font-size: 1.03rem;
}

.employee-timeline-event p {
  color: var(--ink);
  line-height: 1.45;
}

.employee-timeline-meta {
  margin-top: 10px;
}

.employee-timeline-meta span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 4px 8px;
  background: var(--input);
  font-size: 0.78rem;
}

.employee-timeline-map {
  display: grid;
  gap: 9px;
}

.employee-timeline-type {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-height: 44px;
  border: 1px solid var(--line);
  background: var(--panel);
  color: var(--ink);
  box-shadow: none;
}

.employee-timeline-type.has-records {
  border-color: rgba(143, 0, 141, 0.32);
  background: linear-gradient(135deg, rgba(143, 0, 141, 0.08), rgba(18, 189, 184, 0.06));
}

.employee-timeline-type strong {
  color: var(--purple);
}

.employee-documents-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 210px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.3);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 80% 12%, rgba(18, 189, 184, 0.24), transparent 30%),
    linear-gradient(135deg, rgba(7, 9, 22, 0.98), rgba(48, 18, 76, 0.97) 56%, rgba(143, 0, 141, 0.9));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-documents-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.5;
}

.employee-documents-hero > * {
  position: relative;
  z-index: 1;
}

.employee-documents-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-documents-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-documents-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.employee-documents-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-documents-core strong {
  color: #fff;
  font-size: 2.8rem;
  line-height: 1;
}

.employee-documents-core span,
.employee-documents-core small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.employee-documents-metrics {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(132px, 1fr));
  gap: 12px;
}

.employee-documents-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-documents-metrics span,
.employee-document-focus-card span {
  color: var(--muted);
  font-weight: 800;
}

.employee-documents-metrics strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.employee-documents-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.employee-documents-list,
.employee-document-requests,
.employee-document-focus {
  display: grid;
  gap: 10px;
}

.employee-document-upload-panel {
  border-color: rgba(143, 0, 141, 0.22);
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 44%),
    var(--panel);
}

.employee-document-checklist,
.document-requirement-list,
.document-requirement-checks {
  display: grid;
  gap: 10px;
}

.employee-document-check,
.document-requirement-rule,
.document-requirement-check {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-document-check.missing,
.document-requirement-check.missing {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.28), var(--card-shadow);
}

.employee-document-check.needs_update,
.document-requirement-check.needs_update,
.employee-document-check.rejected,
.document-requirement-check.rejected,
.employee-document-check.expired,
.document-requirement-check.expired {
  border-color: rgba(183, 121, 31, 0.38);
  box-shadow: inset 4px 0 0 rgba(183, 121, 31, 0.26), var(--card-shadow);
}

.employee-document-check.pending_review,
.document-requirement-check.pending_review {
  border-color: rgba(143, 0, 141, 0.28);
}

.employee-document-check.approved,
.document-requirement-check.approved {
  border-color: rgba(22, 133, 107, 0.28);
}

.document-requirement-rule.inactive {
  opacity: 0.68;
}

.document-requirement-form {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  align-items: end;
}

.document-requirement-form label:nth-of-type(5),
.document-requirement-form .notice {
  grid-column: span 2;
}

.employee-document-upload-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(140px, 0.28fr) minmax(150px, 0.28fr);
  gap: 10px;
  align-items: end;
}

.employee-document-upload-form label:nth-of-type(4),
.employee-document-upload-form label:nth-of-type(5) {
  grid-column: span 2;
}

.employee-document-upload-form button {
  min-height: 42px;
}

.employee-document-request,
.employee-document-focus-card {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-document-request.urgent,
.employee-document-focus-card.high {
  border-color: rgba(225, 88, 64, 0.5);
  box-shadow: 0 14px 34px rgba(225, 88, 64, 0.12);
}

.employee-document-focus-card.info {
  border-color: rgba(18, 189, 184, 0.45);
}

.document-card.employee-submitted {
  border-color: rgba(143, 0, 141, 0.24);
}

.document-card.pending_review {
  box-shadow: inset 4px 0 0 rgba(183, 121, 31, 0.25), var(--card-shadow);
}

.document-card.needs_update {
  border-color: rgba(216, 89, 69, 0.42);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.28), var(--card-shadow);
}

.document-card.rejected,
.document-card.expired {
  border-color: rgba(216, 89, 69, 0.48);
  box-shadow: inset 4px 0 0 rgba(216, 89, 69, 0.3), var(--card-shadow);
}

.document-card.expiring_soon {
  border-color: rgba(183, 121, 31, 0.42);
}

.document-status-note {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px 10px;
  background: var(--input);
  color: var(--muted);
  font-weight: 800;
}

.document-status-note.action {
  border-color: rgba(216, 89, 69, 0.34);
  background: rgba(216, 89, 69, 0.08);
  color: var(--ink);
}

.document-review-form {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(120px, 0.22fr) minmax(150px, 0.24fr) minmax(130px, 0.18fr) minmax(0, 1fr) auto auto;
  gap: 9px;
  align-items: end;
  border-top: 1px solid var(--line);
  padding-top: 10px;
}

.document-review-form .notice {
  align-self: center;
}

.employee-payroll-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.3);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 14%, rgba(18, 189, 184, 0.24), transparent 30%),
    radial-gradient(circle at 12% 0%, rgba(143, 0, 141, 0.45), transparent 34%),
    linear-gradient(135deg, rgba(6, 9, 22, 0.98), rgba(39, 18, 70, 0.97) 56%, rgba(143, 0, 141, 0.9));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-payroll-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 42px 42px;
  pointer-events: none;
  opacity: 0.52;
}

.employee-payroll-hero > * {
  position: relative;
  z-index: 1;
}

.employee-payroll-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-payroll-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-payroll-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.employee-payroll-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-payroll-core strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
}

.employee-payroll-core span,
.employee-payroll-core small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.employee-payroll-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-payroll-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-payroll-metrics span,
.employee-payroll-row span {
  color: var(--muted);
  font-weight: 800;
}

.employee-payroll-metrics strong,
.employee-payroll-row strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.employee-payroll-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.75fr);
  gap: 14px;
  align-items: start;
}

.employee-payslip-list,
.employee-salary-history,
.employee-bonus-list,
.employee-compensation-list {
  display: grid;
  gap: 10px;
}

.employee-payslip-card,
.employee-payroll-event {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-payslip-card {
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  border-left: 5px solid var(--purple);
}

.employee-payroll-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin-top: 10px;
}

.employee-payroll-row article {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 10px;
  background: var(--input);
}

.employee-payroll-event {
  border-left: 5px solid var(--cyan);
}

.employee-assets-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.32);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    linear-gradient(135deg, rgba(5, 9, 20, 0.52), rgba(84, 5, 88, 0.4)),
    radial-gradient(circle at 82% 18%, rgba(18, 189, 184, 0.28), transparent 28%),
    radial-gradient(circle at 20% 4%, rgba(255, 255, 255, 0.15), transparent 24%),
    linear-gradient(135deg, rgba(5, 9, 20, 0.98), rgba(24, 34, 61, 0.96) 44%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-assets-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.07) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  opacity: 0.54;
  pointer-events: none;
}

.employee-assets-hero > * {
  position: relative;
  z-index: 1;
}

.employee-assets-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-assets-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.86);
}

.employee-assets-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.employee-assets-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-assets-core strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
}

.employee-assets-core span,
.employee-assets-core small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.employee-assets-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-assets-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-assets-metrics span,
.employee-asset-meta span {
  color: var(--muted);
  font-weight: 800;
}

.employee-assets-metrics strong,
.employee-asset-meta b {
  color: var(--ink);
}

.employee-assets-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.employee-asset-list,
.employee-asset-request-list,
.employee-asset-focus {
  display: grid;
  gap: 10px;
}

.employee-asset-card,
.employee-asset-request,
.employee-asset-focus-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-asset-card.urgent,
.employee-asset-focus-card.urgent {
  border-left-color: var(--coral);
  box-shadow: 0 14px 34px rgba(216, 89, 69, 0.12);
}

.employee-asset-card > div,
.employee-asset-request > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.employee-asset-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.employee-asset-form {
  display: grid;
  gap: 12px;
}

.employee-asset-form textarea {
  min-height: 130px;
}

.employee-benefits-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 230px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.32);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 82% 16%, rgba(255, 255, 255, 0.18), transparent 24%),
    radial-gradient(circle at 16% 6%, rgba(18, 189, 184, 0.28), transparent 28%),
    linear-gradient(135deg, rgba(6, 9, 22, 0.98), rgba(58, 16, 76, 0.96) 58%, rgba(143, 0, 141, 0.92));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-benefits-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(120deg, rgba(255, 255, 255, 0.08), transparent 32%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 42px);
  pointer-events: none;
  opacity: 0.58;
}

.employee-benefits-hero > * {
  position: relative;
  z-index: 1;
}

.employee-benefits-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3vw, 3.25rem);
  line-height: 1;
}

.employee-benefits-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-benefits-core {
  display: grid;
  place-items: center;
  gap: 8px;
  min-height: 150px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  padding: 18px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-benefits-core strong {
  color: #fff;
  font-size: 2rem;
  line-height: 1.05;
}

.employee-benefits-core span,
.employee-benefits-core small {
  color: rgba(255, 255, 255, 0.76);
  font-weight: 900;
}

.employee-benefits-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-benefits-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-benefits-metrics span {
  color: var(--muted);
  font-weight: 800;
}

.employee-benefits-metrics strong {
  color: var(--ink);
  font-size: 1.05rem;
}

.employee-benefits-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(320px, 0.78fr);
  gap: 14px;
  align-items: start;
}

.employee-benefit-list,
.employee-reimbursement-list,
.employee-benefit-compensation-list {
  display: grid;
  gap: 10px;
}

.employee-benefit-card {
  display: grid;
  gap: 10px;
  border: 1px solid var(--line);
  border-left: 5px solid var(--purple);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-benefit-card > div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px 12px;
  align-items: flex-start;
  justify-content: space-between;
}

.employee-benefit-card strong {
  color: var(--ink);
}

.employee-benefit-form {
  display: grid;
  gap: 12px;
}

.employee-benefit-form textarea {
  min-height: 118px;
}

.employee-attendance-hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 170px;
  gap: 18px;
  align-items: center;
  border: 1px solid rgba(143, 0, 141, 0.28);
  border-radius: 8px;
  padding: 22px;
  color: #fff;
  background:
    radial-gradient(circle at 84% 12%, rgba(68, 214, 255, 0.24), transparent 28%),
    linear-gradient(135deg, rgba(9, 12, 26, 0.98), rgba(47, 18, 76, 0.96) 54%, rgba(143, 0, 141, 0.88));
  box-shadow: var(--purple-shadow);
  overflow: hidden;
  position: relative;
}

.employee-attendance-hero::before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, rgba(255, 255, 255, 0.06) 1px, transparent 1px),
    linear-gradient(180deg, rgba(255, 255, 255, 0.05) 1px, transparent 1px);
  background-size: 40px 40px;
  pointer-events: none;
  opacity: 0.52;
}

.employee-attendance-hero > * {
  position: relative;
  z-index: 1;
}

.employee-attendance-hero h2 {
  margin: 4px 0 8px;
  font-size: clamp(2rem, 3.2vw, 3.4rem);
  line-height: 1;
}

.employee-attendance-hero p:not(.eyebrow) {
  color: rgba(255, 255, 255, 0.76);
}

.employee-attendance-filters {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, max-content));
  gap: 10px;
  align-items: end;
  margin-top: 18px;
}

.employee-attendance-filters label {
  min-width: 150px;
  color: rgba(255, 255, 255, 0.78);
}

.employee-attendance-score {
  display: grid;
  place-items: center;
  min-height: 140px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  text-align: center;
}

.employee-attendance-score strong {
  color: #fff;
  font-size: 2.5rem;
  line-height: 1;
}

.employee-attendance-score span {
  color: rgba(255, 255, 255, 0.72);
  font-weight: 900;
}

.employee-attendance-metrics {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
}

.employee-attendance-metrics article {
  display: grid;
  gap: 8px;
  min-height: 96px;
  align-content: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-attendance-metrics span,
.employee-attendance-times span {
  color: var(--muted);
  font-weight: 800;
}

.employee-attendance-metrics strong,
.employee-attendance-times strong {
  color: var(--ink);
  font-size: 1.1rem;
}

.employee-attendance-list,
.employee-attendance-events {
  display: grid;
  gap: 10px;
}

.employee-attendance-card,
.employee-attendance-event {
  display: grid;
  gap: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--panel);
}

.employee-attendance-card.needs-attention {
  border-color: rgba(225, 88, 64, 0.55);
  box-shadow: 0 14px 34px rgba(225, 88, 64, 0.12);
}

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

.employee-attendance-times article {
  display: grid;
  gap: 5px;
  border-left: 4px solid var(--cyan);
  border-radius: 8px;
  padding: 10px;
  background: var(--input);
}

.employee-attendance-event {
  grid-template-columns: minmax(0, 1fr) max-content;
  align-items: start;
}

.employee-attendance-event.checkin {
  border-left: 4px solid var(--success);
}

.employee-attendance-event.checkout {
  border-left: 4px solid var(--purple);
}

.schedule-overview {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  margin-bottom: 14px;
  border: 1px solid rgba(143, 0, 141, 0.18);
  border-radius: 8px;
  padding: 14px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 54%),
    var(--input);
}

.schedule-overview p {
  margin-top: 5px;
  color: var(--muted);
  font-weight: 750;
}

.schedule-lock-copy .notice {
  border-left: 4px solid var(--purple);
  background: rgba(143, 0, 141, 0.1);
}

.schedule-week-nav {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: end;
}

.schedule-tools {
  display: grid;
  grid-template-columns: 1fr 180px;
  gap: 12px;
}

.schedule-days {
  display: grid;
  gap: 10px;
}

.team-schedule-week {
  display: grid;
  gap: 14px;
  margin: 14px 0 18px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.team-schedule-days {
  display: grid;
  gap: 14px;
}

.team-schedule-day {
  display: grid;
  gap: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--input);
}

.team-schedule-day-head,
.team-schedule-group-head,
.team-schedule-person {
  display: flex;
  gap: 12px;
  align-items: center;
  justify-content: space-between;
}

.team-schedule-day-head p,
.team-schedule-person p,
.team-schedule-person small {
  color: var(--muted);
  font-weight: 750;
}

.team-schedule-counts,
.team-schedule-group-head span {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.team-schedule-counts span,
.team-schedule-group-head span {
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(110, 128, 163, 0.12);
  color: var(--muted);
  font-size: 0.76rem;
  font-weight: 900;
}

.team-schedule-counts .danger {
  background: rgba(225, 88, 64, 0.15);
  color: var(--coral);
}

.team-schedule-groups {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 12px;
}

.team-schedule-group {
  display: grid;
  align-content: start;
  gap: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.team-schedule-group.office {
  box-shadow: inset 4px 0 0 var(--purple);
}

.team-schedule-group.home {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.team-schedule-group.off {
  box-shadow: inset 4px 0 0 var(--amber);
}

.team-schedule-group.missing {
  box-shadow: inset 4px 0 0 var(--coral);
}

.team-schedule-people {
  display: grid;
  gap: 8px;
}

.team-schedule-person {
  align-items: start;
  border: 1px solid rgba(110, 128, 163, 0.18);
  border-radius: 7px;
  padding: 10px;
  background: var(--input);
}

.team-schedule-date {
  display: inline-flex;
  width: fit-content;
  margin-bottom: 6px;
  border-radius: 999px;
  padding: 4px 8px;
  background: rgba(139, 0, 139, 0.14);
  color: var(--purple);
  font-size: 0.72rem;
  font-weight: 950;
}

.team-schedule-person > div:last-child {
  text-align: right;
}

.team-schedule-person span {
  display: block;
  color: var(--ink);
  font-weight: 900;
}

.team-schedule-person.warning,
.team-schedule-person.missing {
  border-color: rgba(225, 88, 64, 0.35);
}

.schedule-day {
  display: grid;
  grid-template-columns: minmax(140px, 0.75fr) 1fr 1fr 1fr;
  gap: 12px;
  align-items: end;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 12px;
  background: var(--input);
  box-shadow: inset 4px 0 0 rgba(143, 0, 141, 0.26);
}

.schedule-day.mode-office {
  box-shadow: inset 4px 0 0 var(--purple);
}

.schedule-day.mode-home {
  box-shadow: inset 4px 0 0 var(--cyan);
}

.schedule-day.mode-off {
  box-shadow: inset 4px 0 0 var(--amber);
}

.schedule-day.has-holiday {
  border-color: rgba(183, 121, 31, 0.36);
  background: rgba(183, 121, 31, 0.08);
}

.schedule-day.locked {
  opacity: 0.92;
  background:
    linear-gradient(135deg, rgba(110, 128, 163, 0.08), transparent 58%),
    var(--input);
}

.employee-schedule-history-panel {
  display: grid;
  gap: 12px;
  margin-top: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
  box-shadow: var(--card-shadow);
}

.employee-schedule-history {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.employee-schedule-history-card {
  display: grid;
  gap: 6px;
  min-height: auto;
  padding: 13px;
  color: var(--ink);
  text-align: left;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  box-shadow: none;
}

.employee-schedule-history-card:hover,
.employee-schedule-history-card:focus,
.employee-schedule-history-card.active {
  border-color: rgba(143, 0, 141, 0.42);
  box-shadow: var(--purple-shadow);
  transform: translateY(-1px);
}

.employee-schedule-history-card span,
.employee-schedule-history-card small {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
}

.holiday-chip {
  display: inline-flex;
  width: fit-content;
  margin-top: 7px;
  border-radius: 999px;
  padding: 5px 9px;
  background: rgba(183, 121, 31, 0.16);
  color: var(--amber);
  font-size: 0.76rem;
  font-weight: 850;
}

.security-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.8fr) minmax(320px, 1.2fr);
  gap: 18px;
}

.security-health,
.system-health-panel,
.permission-list,
.audit-list,
.health-events,
.account-list {
  display: grid;
  gap: 10px;
}

.system-health-summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 52%),
    var(--panel);
}

.system-health-summary.healthy {
  border-color: rgba(22, 133, 107, 0.35);
  box-shadow: inset 5px 0 0 var(--green);
}

.system-health-summary.warning {
  border-color: rgba(183, 121, 31, 0.42);
  box-shadow: inset 5px 0 0 var(--amber);
}

.system-health-summary.critical {
  border-color: rgba(216, 89, 69, 0.52);
  box-shadow: inset 5px 0 0 var(--coral);
}

.system-health-summary h3 {
  margin: 0 0 6px;
  font-size: 1.45rem;
}

.system-health-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.system-health-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  background: var(--input);
}

.system-health-card.healthy {
  border-color: rgba(22, 133, 107, 0.32);
}

.system-health-card.warning {
  border-color: rgba(183, 121, 31, 0.38);
}

.system-health-card.critical {
  border-color: rgba(216, 89, 69, 0.48);
}

.system-health-card span {
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 850;
  text-transform: uppercase;
}

.system-health-card strong {
  overflow-wrap: anywhere;
  font-size: 1.02rem;
}

.system-health-card p {
  color: var(--muted);
  font-size: 0.84rem;
}

.system-health-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.system-health-notes span {
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.78rem;
  font-weight: 750;
}

.health-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 16px;
  background: var(--input);
}

.health-card.critical {
  border-color: rgba(216, 89, 69, 0.55);
  box-shadow: inset 5px 0 0 var(--coral);
}

.health-card.healthy {
  border-color: rgba(22, 133, 107, 0.35);
  box-shadow: inset 5px 0 0 var(--green);
}

.health-card h3 {
  margin: 0 0 6px;
  font-size: 1.35rem;
}

.bridge-watchdog {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 0, 141, 0.16);
  border-radius: 8px;
  padding: 16px;
  background:
    linear-gradient(135deg, rgba(143, 0, 141, 0.08), transparent 46%),
    var(--input);
  box-shadow: var(--purple-shadow);
}

.bridge-stop-flow {
  display: grid;
  gap: 14px;
  border: 1px solid rgba(143, 0, 141, 0.2);
  border-radius: 8px;
  padding: 16px;
  background: var(--panel);
}

.bridge-stop-flow.active {
  border-color: rgba(216, 89, 69, 0.48);
  box-shadow: inset 5px 0 0 var(--coral), var(--purple-shadow);
}

.bridge-stop-flow.calm {
  box-shadow: inset 5px 0 0 var(--green);
}

.bridge-flow-steps {
  display: grid;
  gap: 10px;
  margin: 0;
  padding: 0;
  list-style: none;
  counter-reset: bridge-flow;
}

.bridge-flow-steps li {
  position: relative;
  display: grid;
  gap: 4px;
  min-height: 52px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px 12px 12px 54px;
  background: var(--input);
}

.bridge-flow-steps li::before {
  counter-increment: bridge-flow;
  content: counter(bridge-flow);
  position: absolute;
  top: 12px;
  left: 12px;
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  background: var(--purple);
  color: #fff;
  font-weight: 900;
}

.bridge-flow-steps strong {
  color: var(--text);
}

.bridge-flow-steps span {
  color: var(--muted);
  line-height: 1.45;
}

.bridge-flow-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.bridge-recovery-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.bridge-recovery-strip span {
  width: fit-content;
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 6px 10px;
  background: var(--panel);
  color: var(--muted);
  font-size: 0.82rem;
  font-weight: 800;
}

.bridge-incident-list {
  display: grid;
  gap: 10px;
}

.bridge-incident {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: var(--panel);
}

.bridge-incident.open {
  border-color: rgba(216, 89, 69, 0.48);
  box-shadow: inset 4px 0 0 var(--coral);
}

.bridge-incident.recovered {
  border-color: rgba(22, 133, 107, 0.3);
  box-shadow: inset 4px 0 0 var(--green);
}

.bridge-incident p {
  margin-top: 5px;
  overflow-wrap: anywhere;
}

.bridge-duration {
  display: inline-grid;
  place-items: center;
  min-width: 72px;
  border-radius: 999px;
  padding: 7px 10px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-weight: 900;
}

.account-list {
  margin-top: 14px;
}

.account-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 14px;
  background: var(--input);
}

.account-card p {
  margin: 6px 0 0;
}

.account-actions {
  display: inline-flex;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: end;
}

.health-events span,
.permission-card,
.audit-row {
  border: 1px solid var(--line);
  border-radius: 7px;
  padding: 10px;
  background: var(--input);
}

.health-events span,
.permission-card p,
.audit-row {
  color: var(--muted);
  font-size: 0.86rem;
}

.permission-card strong,
.audit-row strong {
  color: var(--ink);
  text-transform: capitalize;
}

.audit-row {
  display: grid;
  grid-template-columns: 1fr 1fr 1fr;
  gap: 6px 10px;
}

.audit-row p {
  grid-column: 1 / -1;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(180px, 0.8fr) minmax(280px, 1fr);
    align-items: end;
  }

  .topbar > .global-search,
  .topbar > .notification-bell {
    grid-column: span 1;
    width: 100%;
    min-width: 0;
  }

  .notification-bell {
    justify-content: center;
  }

  .sidebar {
    position: sticky;
    z-index: 20;
    height: auto;
    top: 0;
    gap: 14px;
    padding: 18px;
    padding-bottom: 14px;
    overflow: visible;
  }

  .tabs {
    display: flex;
    gap: 8px;
    width: 100%;
    max-width: 100%;
    min-width: 0;
    margin: 0 -4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 8px;
    scrollbar-width: none;
  }

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

  .tab {
    flex: 0 0 auto;
    width: auto;
    min-width: 142px;
    min-height: 40px;
    white-space: nowrap;
    justify-content: center;
    text-align: center;
  }

  .section-tabs {
    top: 128px;
    margin-top: -4px;
    padding-bottom: 10px;
    scrollbar-width: none;
  }

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

  .section-tab {
    min-width: max-content;
  }

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

  .metric-grid,
  .command-hero,
  .command-grid,
  .owner-desk-hero,
  .owner-desk-layout,
  .owner-pay-visibility,
  .mission-hero,
  .mission-layout,
  .intel-hero,
  .people-intel-layout,
  .employee-profile-layout,
  .device-monitor-grid,
  .device-card,
  .device-health-card,
  .weekly-device-report-head,
  .weekly-compare,
  .weekly-device-kpis,
  .weekly-device-lists,
  .employee-profile-week,
  .profile-detail-grid,
  .employee-document-summary,
  .service-hero,
  .service-layout,
  .compliance-hero,
  .compliance-layout,
  .document-hero,
  .document-command-layout,
  .calendar-hero,
  .calendar-layout,
  .sla-hero,
  .sla-layout,
  .workforce-hero,
  .workforce-layout,
  .relations-hero,
  .relations-layout,
  .lifecycle-hero,
  .lifecycle-layout,
  .lifecycle-command-card,
  .lifecycle-task,
  .employee-hero,
  .employee-home-grid,
  .employee-smart-now,
  .employee-smart-cards,
  .employee-action-highlights,
  .payroll-risk-report-grid,
  .employee-leave-brief,
  .employee-calendar-hero,
  .employee-calendar-filters,
  .employee-calendar-metrics,
  .employee-calendar-layout,
  .employee-calendar-shift,
  .employee-helpdesk-hero,
  .employee-helpdesk-metrics,
  .employee-helpdesk-layout,
  .employee-timeline-hero,
  .employee-timeline-filters,
  .employee-timeline-metrics,
  .employee-timeline-layout,
  .employee-documents-hero,
  .employee-documents-metrics,
  .employee-documents-layout,
  .employee-document-check,
  .document-requirement-rule,
  .document-requirement-check,
  .document-requirement-form,
  .employee-document-upload-form,
  .document-review-form,
  .document-card,
  .employee-assets-hero,
  .employee-assets-metrics,
  .employee-assets-layout,
  .employee-asset-meta,
  .employee-payroll-hero,
  .employee-payroll-metrics,
  .employee-payroll-layout,
  .employee-payslip-card,
  .employee-payroll-row,
  .payroll-dispute-main,
  .payroll-dispute-form,
  .employee-benefits-hero,
  .employee-benefits-metrics,
  .employee-benefits-layout,
  .employee-growth-hero,
  .employee-growth-metrics,
  .employee-growth-map,
  .employee-growth-layout,
  .employee-growth-request-form,
  .career-hero-panel,
  .career-layout,
  .employee-career-hero,
  .employee-career-metrics,
  .employee-growth-map.compact,
  .employee-career-layout,
  .voice-hero-panel,
  .voice-layout,
  .employee-voice-hero,
  .employee-voice-metrics,
  .employee-voice-layout,
  .employee-rewards-hero,
  .employee-rewards-metrics,
  .employee-rewards-layout,
  .recognition-hero-panel,
  .wellness-hero-panel,
  .wellness-layout,
  .employee-wellness-hero,
  .employee-wellness-metrics,
  .employee-wellness-layout,
  .employee-attendance-hero,
  .employee-attendance-filters,
  .employee-attendance-metrics,
  .employee-attendance-times,
  .employee-attendance-event,
  .employee-profile-hero,
  .profile-completion-hero,
  .profile-completion-board,
  .profile-completion-actions,
  .employee-security-hero,
  .employee-security-metrics,
  .employee-compliance-brief,
  .employee-knowledge-hero,
  .employee-knowledge-layout,
  .employee-knowledge-results,
  .employee-knowledge-search,
  .employee-knowledge-metrics,
  .employee-request-tracker-metrics,
  .employee-request-tracker-filters,
  .employee-login-grid,
  .employee-request-ticket-body,
  .employee-request-timeline,
  .request-update-form > div,
  .import-grid,
  .employee-grid,
  .payroll-grid,
  .performance-layout,
  .training-layout,
  .recruiting-layout,
  .recruiting-detail,
  .enterprise-layout,
  .attendance-ops-grid,
  .payroll-cycle-layout,
  .metric-grid.compact,
  .filter-grid,
  .notification-filter-form,
  .chart-grid,
  .security-grid,
  .two-col,
  .schedule-overview,
  .schedule-tools,
  .team-schedule-groups,
  .schedule-day {
    grid-template-columns: 1fr;
  }

  .team-schedule-day-head,
  .team-schedule-person {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-grid > [data-list-control="employees"],
  .employee-grid > #employeeList,
  .employee-grid > .employee-detail-column {
    grid-column: 1;
    grid-row: auto;
  }

  .team-schedule-person > div:last-child {
    text-align: left;
  }

  .employee-profile-head,
  .employee-profile-list article {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-profile-actions {
    justify-content: flex-start;
  }

  .employee-document-upload-form label:nth-of-type(4),
  .employee-document-upload-form label:nth-of-type(5),
  .document-requirement-form label:nth-of-type(5),
  .document-requirement-form .notice {
    grid-column: auto;
  }

  .employee-hero {
    min-height: 0;
  }

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

  .employee-smart-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-knowledge-side {
    position: static;
  }

  .employee-hero-core {
    justify-items: start;
    place-items: start;
  }

  .schedule-week-nav {
    justify-content: start;
  }

  .command-core {
    justify-self: stretch;
    width: 100%;
  }

  .command-status-grid,
  .command-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .import-side {
    border-left: 0;
    border-top: 1px solid var(--line);
    padding-left: 0;
    padding-top: 18px;
  }

  .feed-item,
  .feed-item.compact,
  .approval-card,
  .exception-row,
  .notification-card,
  .employee-notification-command,
  .urgent-popup,
  .urgent-notification-panel,
  .urgent-notification-stack article,
  .recognition-card,
  .employee-reward-card,
  .wellness-focus-card,
  .wellness-pulse-card,
  .holiday-card,
  .template-apply,
  .health-card,
  .bridge-incident,
  .account-card,
  .audit-row,
  .document-card,
  .mission-card,
  .service-card,
  .compliance-profile,
  .document-command-profile,
  .calendar-profile,
  .sla-profile,
  .workforce-profile,
  .relations-profile,
  .intel-profile,
  .payslip-card {
    grid-template-columns: 1fr;
  }

  .notification-actions,
  .employee-notification-actions,
  .urgent-popup-actions {
    justify-content: start;
  }

  .notification-metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .holiday-actions,
  .approval-actions,
  .account-actions,
  .mission-source,
  .document-actions {
    justify-content: start;
  }

  .owner-score {
    justify-self: start;
  }
}

@media (max-width: 620px) {
  .content,
  .sidebar {
    padding: 16px;
  }

  .sidebar {
    gap: 12px;
    position: relative;
  }

  .sidebar > div:first-child {
    display: grid;
    grid-template-columns: 44px minmax(0, 1fr);
    gap: 4px 12px;
    align-items: center;
  }

  .sidebar .brand-logo {
    grid-row: 1 / 4;
    width: 40px;
    height: 40px;
    margin: 0;
  }

  .sidebar .eyebrow {
    align-self: end;
    font-size: 0.68rem;
  }

  .sidebar h2 {
    margin: 0;
    font-size: 1.4rem;
    line-height: 1.05;
  }

  .sidebar .role-label {
    margin: 0;
    font-size: 0.78rem;
  }

  .tab,
  .ghost {
    min-height: 38px;
    padding-inline: 12px;
    font-size: 0.9rem;
  }

  .tab {
    width: auto;
    min-width: 126px;
    white-space: nowrap;
  }

  .tabs {
    display: flex;
    gap: 8px;
    overflow-x: auto;
    overflow-y: hidden;
    margin: 0 -4px;
    padding: 2px 4px 8px;
    scroll-snap-type: x proximity;
    scrollbar-width: none;
  }

  .side-actions {
    gap: 8px;
  }

  .login-panel {
    padding: 24px;
  }

  .topbar {
    grid-template-columns: 1fr;
    align-items: stretch;
    flex-direction: column;
  }

  .date-range {
    grid-template-columns: 1fr;
    min-width: 0;
    width: 100%;
  }

  .global-search {
    width: 100%;
    min-width: 0;
  }

  .global-search-panel {
    left: 0;
    right: auto;
    width: min(100%, calc(100vw - 32px));
    max-height: 70vh;
  }

  .role-employee .tabs {
    display: flex;
    margin: 0 -4px;
    overflow-x: auto;
    overflow-y: hidden;
    padding: 2px 4px 8px;
  }

  .role-employee .tab {
    min-width: 126px;
    width: auto;
    white-space: nowrap;
    scroll-snap-align: start;
  }

  .employee-smart-cards,
  .employee-service-grid {
    grid-template-columns: 1fr;
  }

  .employee-next-action {
    grid-template-columns: 30px minmax(0, 1fr);
  }

  .employee-next-action small {
    grid-column: 2;
  }

  .employee-security-hero {
    padding: 18px;
  }

  .employee-security-score {
    min-height: 112px;
  }

  .employee-security-score strong {
    font-size: 2rem;
  }

  .employee-calendar-hero {
    padding: 18px;
  }

  .employee-calendar-core {
    min-height: 112px;
  }

  .employee-helpdesk-hero {
    padding: 18px;
  }

  .employee-helpdesk-core {
    min-height: 112px;
  }

  .employee-helpdesk-core strong {
    font-size: 1.55rem;
  }

  .employee-timeline-hero {
    padding: 18px;
  }

  .employee-timeline-core {
    min-height: 112px;
  }

  .employee-timeline-core strong {
    font-size: 1.55rem;
  }

  .employee-calendar-core strong {
    font-size: 2rem;
  }

  .employee-calendar-filters label {
    min-width: 0;
  }

  .employee-documents-hero {
    padding: 18px;
  }

  .employee-documents-core {
    min-height: 112px;
  }

  .employee-documents-core strong {
    font-size: 2rem;
  }

  .employee-payroll-hero {
    padding: 18px;
  }

  .employee-payroll-core {
    min-height: 112px;
  }

  .employee-payroll-core strong {
    font-size: 1.55rem;
  }

  .employee-assets-hero {
    padding: 18px;
  }

  .employee-assets-core {
    min-height: 112px;
  }

  .employee-assets-core strong {
    font-size: 1.55rem;
  }

  .employee-benefits-hero {
    padding: 18px;
  }

  .employee-benefits-core {
    min-height: 112px;
  }

  .employee-benefits-core strong {
    font-size: 1.55rem;
  }

  .employee-growth-hero {
    padding: 18px;
  }

  .employee-growth-score {
    width: min(180px, 100%);
    justify-self: center;
  }

  .employee-career-hero {
    padding: 18px;
  }

  .employee-career-core {
    width: min(180px, 100%);
    justify-self: center;
  }

  .employee-voice-hero {
    padding: 18px;
  }

  .employee-voice-core {
    width: min(180px, 100%);
    justify-self: center;
  }

  .employee-rewards-hero {
    padding: 18px;
  }

  .employee-wellness-hero {
    padding: 18px;
  }

  .employee-rewards-core {
    width: min(180px, 100%);
    justify-self: center;
  }

  .employee-wellness-core {
    width: min(180px, 100%);
    justify-self: center;
  }

  .recognition-orbit,
  .career-orbit,
  .voice-orbit,
  .wellness-orbit {
    justify-self: start;
  }

  .employee-attendance-hero {
    padding: 18px;
  }

  .employee-attendance-score {
    min-height: 112px;
  }

  .employee-attendance-score strong {
    font-size: 2rem;
  }

  .employee-attendance-filters label {
    min-width: 0;
  }

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

  .notification-metrics,
  .notification-filter-form,
  .employee-growth-metrics,
  .employee-growth-request-form,
  .employee-career-metrics,
  .employee-voice-metrics,
  .employee-rewards-metrics,
  .employee-wellness-metrics,
  .wellness-slider-grid {
    grid-template-columns: 1fr;
  }

  .employee-growth-request-form label:nth-of-type(4),
  .employee-growth-request-form .notice {
    grid-column: auto;
  }

  .notification-group-head,
  .notification-title-row {
    align-items: flex-start;
    flex-direction: column;
  }

  .bulk-actions {
    grid-template-columns: 1fr;
  }

  .bulk-actions label,
  .bulk-actions button {
    width: 100%;
    justify-content: center;
  }

  .recognition-card-side,
  .employee-reward-score {
    justify-items: start;
    text-align: left;
  }

  .panel-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .command-hero {
    padding: 18px;
  }

  .owner-desk-hero {
    grid-template-columns: 1fr;
    min-height: 0;
    padding: 18px;
  }

  .owner-desk-hero h2 {
    font-size: 2.15rem;
  }

  .employee-hero {
    padding: 18px;
  }

  .employee-hero-copy h2 {
    font-size: 2.15rem;
    line-height: 1;
  }

  .employee-home-actions,
  .employee-profile-actions,
  .schedule-week-nav {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .employee-home-actions button,
  .employee-profile-actions button,
  .schedule-week-nav button {
    width: 100%;
  }

  .employee-service-grid {
    grid-template-columns: 1fr;
  }

  .employee-service-card {
    min-height: 118px;
  }

  .employee-knowledge-center {
    padding: 14px;
  }

  .employee-knowledge-chips {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-knowledge-chips button,
  .employee-knowledge-actions button,
  .employee-knowledge-side button {
    width: 100%;
  }

  .employee-knowledge-actions button {
    margin-left: 0;
  }

  .employee-request-ticket-head {
    grid-template-columns: 1fr;
  }

  .employee-request-state {
    justify-self: start;
  }

  .employee-week-card,
  .employee-action-card,
  .employee-profile-stats,
  .employee-compliance-stats {
    grid-template-columns: 1fr;
  }

  .employee-action-card button {
    width: 100%;
  }

  .request-progress {
    grid-template-columns: 1fr;
  }

  .search-result {
    grid-template-columns: 1fr;
  }

  .search-result-type,
  .search-result p,
  .search-result .status {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  .search-result-type {
    min-width: 0;
    width: max-content;
  }

  .owner-score {
    width: 150px;
  }

  .owner-profile,
  .owner-decision-box,
  .owner-signal-grid {
    grid-template-columns: 1fr;
  }

  .owner-profile div:last-child {
    text-align: left;
  }

  .owner-decision-actions {
    justify-content: start;
  }

  .empty-state,
  .table-empty {
    min-height: 98px;
    padding: 16px;
  }

  .notification-actions,
  .holiday-actions,
  .approval-actions,
  .account-actions,
  .document-actions,
  .template-card-actions,
  .owner-decision-actions,
  .urgent-popup-actions,
  .command-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

  .notification-actions button,
  .holiday-actions button,
  .approval-actions button,
  .account-actions button,
  .document-actions button,
  .template-card-actions button,
  .owner-decision-actions button,
  .urgent-popup-actions button,
  .command-actions button {
    width: 100%;
    justify-content: center;
    text-align: center;
    white-space: normal;
  }

  .command-hero-copy h2 {
    font-size: 1.75rem;
  }

  .command-core,
  .command-status-grid,
  .command-metrics {
    grid-template-columns: 1fr;
  }

  .command-radar {
    justify-self: center;
  }

  .command-bar {
    grid-template-columns: 1fr;
  }

  .command-priority {
    grid-template-columns: 1fr;
  }

  .notification-quick-filters {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .notification-quick-filters button,
  .employee-notification-actions button {
    width: 100%;
    justify-content: center;
  }

  .employee-notification-actions {
    display: grid;
    grid-template-columns: 1fr;
    width: 100%;
  }

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

  .mission-hero {
    padding: 18px;
  }

  .mission-hero h2 {
    font-size: 1.75rem;
  }

  .mission-pulse {
    width: 112px;
    justify-self: center;
  }

  .mission-card {
    align-items: stretch;
  }

  .mission-source {
    width: 100%;
    white-space: normal;
  }

  .intel-hero {
    padding: 18px;
  }

  .intel-hero h2 {
    font-size: 1.75rem;
  }

  .intel-score {
    width: 116px;
    justify-self: center;
  }

  .intel-signal-grid {
    grid-template-columns: 1fr;
  }

  .intel-actions button {
    width: 100%;
  }

  .service-hero {
    padding: 18px;
  }

  .service-hero h2 {
    font-size: 1.75rem;
  }

  .service-core {
    width: 116px;
    justify-self: center;
  }

  .service-source {
    justify-content: start;
    width: 100%;
    white-space: normal;
  }

  .compliance-hero {
    padding: 18px;
  }

  .compliance-hero h2 {
    font-size: 1.75rem;
  }

  .compliance-core {
    width: 116px;
    justify-self: center;
  }

  .compliance-gap-grid {
    grid-template-columns: 1fr;
  }

  .document-hero {
    padding: 18px;
  }

  .document-hero h2 {
    font-size: 1.75rem;
  }

  .document-core {
    width: 116px;
    justify-self: center;
  }

  .document-command-grid {
    grid-template-columns: 1fr;
  }

  .calendar-hero {
    padding: 18px;
  }

  .calendar-hero h2 {
    font-size: 1.75rem;
  }

  .calendar-core {
    width: 116px;
    justify-self: center;
  }

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

  .sla-hero {
    padding: 18px;
  }

  .sla-hero h2 {
    font-size: 1.75rem;
  }

  .sla-core {
    width: 116px;
    justify-self: center;
  }

  .sla-signal-grid {
    grid-template-columns: 1fr;
  }

  .workforce-hero {
    padding: 18px;
  }

  .workforce-hero h2 {
    font-size: 1.75rem;
  }

  .workforce-core {
    width: 116px;
    justify-self: center;
  }

  .workforce-signal-grid {
    grid-template-columns: 1fr;
  }

  .relations-hero {
    padding: 18px;
  }

  .relations-hero h2 {
    font-size: 1.75rem;
  }

  .relations-core {
    width: 116px;
    justify-self: center;
  }

  .relations-signal-grid {
    grid-template-columns: 1fr;
  }

  .lifecycle-hero {
    padding: 18px;
  }

  .lifecycle-hero h2 {
    font-size: 1.75rem;
  }

  .lifecycle-orbit {
    width: 116px;
    justify-self: center;
  }

  .lifecycle-task-controls {
    grid-template-columns: 1fr;
  }

  .profile-completion-hero,
  .profile-completion-card,
  .profile-completion-actions button {
    padding: 12px;
  }

  .profile-completion-hero > div:first-child strong {
    font-size: 1.85rem;
  }

  .profile-completion-metrics,
  .profile-completion-rings {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Clean visual lift: lighter surfaces, calmer purple, and simpler spacing. */
:root {
  --ink: #172033;
  --muted: #697386;
  --line: #e7ebf2;
  --paper: #fbfcff;
  --panel: #ffffff;
  --input: #ffffff;
  --purple: #97008f;
  --purple-strong: #721178;
  --purple-soft: rgba(151, 0, 143, 0.08);
  --cyan: #149c98;
  --nav: #ffffff;
  --shadow: 0 10px 28px rgba(24, 33, 47, 0.055);
  --purple-shadow: 0 14px 32px rgba(151, 0, 143, 0.12);
  --panel-glow: linear-gradient(90deg, rgba(151, 0, 143, 0.16), rgba(20, 156, 152, 0.12), transparent 76%);
  --surface-line: rgba(151, 0, 143, 0.08);
}

:root[data-theme="dark"] {
  --ink: #eef3fb;
  --muted: #aeb8ca;
  --line: #283447;
  --paper: #0f141d;
  --panel: #161d29;
  --input: #111824;
  --purple-soft: rgba(212, 91, 210, 0.11);
  --nav: #111824;
  --shadow: 0 12px 32px rgba(0, 0, 0, 0.24);
  --purple-shadow: 0 14px 34px rgba(212, 91, 210, 0.1);
}

body {
  background:
    radial-gradient(circle at 6% 0%, rgba(151, 0, 143, 0.075), transparent 31%),
    linear-gradient(180deg, #ffffff 0%, var(--paper) 45%, #f8fafc 100%);
}

:root[data-theme="dark"] body {
  background:
    radial-gradient(circle at 6% 0%, rgba(212, 91, 210, 0.1), transparent 31%),
    linear-gradient(180deg, #0f141d 0%, var(--paper) 100%);
}

button {
  min-height: 40px;
  border-radius: 8px;
  box-shadow: 0 10px 22px rgba(151, 0, 143, 0.11);
}

button:hover {
  box-shadow: 0 14px 26px rgba(151, 0, 143, 0.14);
}

input,
select,
textarea {
  border-color: var(--line);
  border-radius: 8px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.7), transparent),
    var(--input);
}

input[type="date"],
input[type="month"],
input[type="datetime-local"] {
  min-height: 42px;
  padding-right: 46px;
  color: var(--ink);
  color-scheme: light;
  cursor: pointer;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%2397008f' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='4'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E") right 13px center / 18px 18px no-repeat,
    linear-gradient(135deg, rgba(151, 0, 143, 0.08), rgba(20, 156, 152, 0.05)),
    var(--input);
  border-color: rgba(151, 0, 143, 0.22);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.62), 0 8px 20px rgba(151, 0, 143, 0.055);
}

input[type="date"]:hover,
input[type="month"]:hover,
input[type="datetime-local"]:hover {
  border-color: rgba(151, 0, 143, 0.38);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.72), 0 12px 24px rgba(151, 0, 143, 0.09);
}

input[type="date"]:focus-visible,
input[type="month"]:focus-visible,
input[type="datetime-local"]:focus-visible {
  border-color: var(--purple);
  outline-color: rgba(151, 0, 143, 0.24);
  box-shadow: 0 0 0 4px rgba(151, 0, 143, 0.1), 0 14px 28px rgba(151, 0, 143, 0.1);
}

input[type="date"]::-webkit-calendar-picker-indicator,
input[type="month"]::-webkit-calendar-picker-indicator,
input[type="datetime-local"]::-webkit-calendar-picker-indicator {
  width: 42px;
  height: 100%;
  margin: 0 -12px 0 0;
  cursor: pointer;
  opacity: 0;
}

:root[data-theme="dark"] input[type="date"],
:root[data-theme="dark"] input[type="month"],
:root[data-theme="dark"] input[type="datetime-local"] {
  color-scheme: dark;
  background:
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='20' height='20' viewBox='0 0 24 24' fill='none' stroke='%23d45bd2' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M8 2v4M16 2v4M3 10h18'/%3E%3Crect x='3' y='4' width='18' height='18' rx='4'/%3E%3Cpath d='M8 14h.01M12 14h.01M16 14h.01M8 18h.01M12 18h.01'/%3E%3C/svg%3E") right 13px center / 18px 18px no-repeat,
    linear-gradient(135deg, rgba(212, 91, 210, 0.11), rgba(73, 212, 206, 0.06)),
    var(--input);
  border-color: rgba(212, 91, 210, 0.24);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04), 0 10px 24px rgba(0, 0, 0, 0.18);
}

.app-shell {
  grid-template-columns: 252px minmax(0, 1fr);
}

.sidebar {
  gap: 20px;
  padding: 24px 18px;
  background:
    linear-gradient(180deg, rgba(151, 0, 143, 0.045), transparent 34%),
    var(--nav);
  color: var(--ink);
  border-right: 1px solid var(--line);
  box-shadow: 8px 0 30px rgba(24, 33, 47, 0.035);
}

:root[data-theme="dark"] .sidebar {
  background:
    linear-gradient(180deg, rgba(212, 91, 210, 0.08), transparent 34%),
    var(--nav);
  color: var(--ink);
  border-color: var(--line);
}

.sidebar .eyebrow {
  color: var(--purple-strong);
}

.role-label {
  color: var(--muted);
}

.sidebar .brand-logo {
  width: 44px;
  height: 44px;
  margin-bottom: 8px;
  filter: drop-shadow(0 8px 14px rgba(151, 0, 143, 0.13));
}

.tabs,
.side-actions {
  gap: 8px;
}

.sidebar .tab,
.sidebar .ghost {
  min-height: 40px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.62);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="dark"] .sidebar .tab,
:root[data-theme="dark"] .sidebar .ghost {
  background: rgba(255, 255, 255, 0.025);
  border-color: rgba(255, 255, 255, 0.11);
  color: var(--ink);
}

.sidebar .tab.active {
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.13), rgba(20, 156, 152, 0.07)),
    #fff;
  color: #520b58;
  border-color: rgba(151, 0, 143, 0.22);
  box-shadow: 0 12px 28px rgba(151, 0, 143, 0.12);
}

.sidebar .ghost.active {
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.13), rgba(20, 156, 152, 0.07)),
    #fff;
  color: #520b58;
  border-color: rgba(151, 0, 143, 0.22);
  box-shadow: 0 12px 28px rgba(151, 0, 143, 0.12);
}

:root[data-theme="dark"] .sidebar .ghost.active {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.18), rgba(73, 212, 206, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
}

.guide-page-grid {
  display: grid;
  grid-template-columns: minmax(280px, 0.85fr) minmax(0, 1.15fr);
  gap: 18px;
  align-items: start;
}

.guide-page-steps,
.guide-page-list {
  display: grid;
  gap: 12px;
}

.guide-page-step,
.guide-page-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--input);
  box-shadow: var(--card-shadow);
}

.guide-page-step {
  display: grid;
  grid-template-columns: 34px minmax(0, 1fr);
  gap: 12px;
  padding: 14px;
}

.guide-page-step > span {
  display: inline-grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--purple), var(--purple-strong));
  color: #fff;
  font-weight: 950;
}

.guide-page-step strong,
.guide-page-item strong {
  color: var(--ink);
  font-size: 1rem;
}

.guide-page-step p,
.guide-page-item p,
.guide-page-item small {
  color: var(--muted);
  font-weight: 750;
  line-height: 1.45;
}

.guide-page-item {
  display: grid;
  gap: 8px;
  width: 100%;
  padding: 15px;
  color: var(--ink);
  text-align: left;
}

.guide-page-item:hover,
.guide-page-item:focus-visible {
  border-color: rgba(143, 0, 141, 0.36);
  background: var(--purple-soft);
}

.guide-page-item span {
  width: max-content;
  max-width: 100%;
  padding: 4px 8px;
  border-radius: 999px;
  background: var(--purple-soft);
  color: var(--purple-strong);
  font-size: 0.74rem;
  font-weight: 950;
  text-transform: uppercase;
}

:root[data-theme="dark"] .sidebar .tab.active {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.18), rgba(73, 212, 206, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
}

.sidebar .tab:not(.active):hover,
.sidebar .ghost:hover {
  border-color: rgba(151, 0, 143, 0.24);
  background: var(--purple-soft);
}

.content {
  padding: 28px clamp(22px, 3vw, 42px) 42px;
}

.topbar {
  margin-bottom: 14px;
  padding: 8px 0 14px;
  background: transparent;
}

.topbar h1 {
  font-size: clamp(1.55rem, 2vw, 2rem);
  letter-spacing: 0;
}

.section-tabs {
  top: 0;
  gap: 10px;
  margin: 0 0 22px;
  padding: 8px 0 14px;
  border-bottom-color: rgba(151, 0, 143, 0.075);
  background:
    linear-gradient(180deg, rgba(251, 252, 255, 0.96), rgba(251, 252, 255, 0.88)),
    var(--paper);
  backdrop-filter: blur(12px);
}

:root[data-theme="dark"] .section-tabs {
  background:
    linear-gradient(180deg, rgba(15, 20, 29, 0.96), rgba(15, 20, 29, 0.88)),
    var(--paper);
}

.section-tab {
  min-height: 34px;
  border-color: var(--line);
  background: rgba(255, 255, 255, 0.86);
  font-size: 0.8rem;
  box-shadow: none;
}

:root[data-theme="dark"] .section-tab {
  background: rgba(255, 255, 255, 0.035);
}

.section-tab.active {
  background:
    linear-gradient(135deg, var(--purple), var(--purple-strong));
  box-shadow: 0 12px 26px rgba(151, 0, 143, 0.12);
}

.section-tab.advanced-toggle {
  margin-left: auto;
  border-style: dashed;
  color: var(--purple-strong);
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.07), rgba(20, 156, 152, 0.05)),
    rgba(255, 255, 255, 0.88);
}

.section-more {
  position: relative;
  flex: 0 0 auto;
  margin-left: auto;
}

.section-more-menu {
  position: absolute;
  top: calc(100% + 8px);
  right: 0;
  z-index: 40;
  display: none;
  min-width: 190px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: 0 18px 45px rgba(18, 24, 38, 0.16);
}

.section-more.open .section-more-menu {
  display: grid;
  gap: 6px;
}

.section-more-item {
  width: 100%;
  min-height: 36px;
  padding: 8px 10px;
  border: 1px solid transparent;
  border-radius: 8px;
  background: transparent;
  color: var(--ink);
  font-size: 0.82rem;
  font-weight: 800;
  text-align: left;
  box-shadow: none;
}

.section-more-item:hover,
.section-more-item.active {
  border-color: rgba(143, 0, 141, 0.18);
  background: var(--purple-soft);
}

:root[data-theme="dark"] .section-more-menu {
  background: #111827;
}

:root[data-theme="dark"] .section-tab.advanced-toggle {
  color: #f6d9ff;
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.13), rgba(73, 212, 206, 0.06)),
    rgba(255, 255, 255, 0.035);
}

.section-tab.advanced-toggle.active {
  border-style: solid;
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.16), rgba(20, 156, 152, 0.08)),
    #fff;
  color: #520b58;
}

:root[data-theme="dark"] .section-tab.advanced-toggle.active {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.18), rgba(73, 212, 206, 0.08)),
    rgba(255, 255, 255, 0.06);
  color: #fff;
}

.view.active {
  gap: 22px;
}

.metric-grid {
  gap: 16px;
}

.metric,
.panel,
.search-result,
.notification-bell,
.table-wrap,
.empty-state,
.table-empty,
.enterprise-list article,
.mini-card,
.timeline-item,
.request-card,
.document-card,
.employee-payslip-card,
.employee-asset-card,
.employee-benefit-card,
.employee-growth-card {
  border-color: var(--line);
  border-radius: 10px;
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.72), transparent 42%),
    var(--panel);
  box-shadow: var(--shadow);
}

.panel,
.metric {
  padding: 20px;
}

.panel::before {
  height: 1px;
  opacity: 0.55;
}

.metric {
  min-height: 112px;
}

.metric::before {
  width: 3px;
  opacity: 0.65;
}

.metric strong {
  font-size: clamp(1.55rem, 2.5vw, 2rem);
}

.global-search-panel {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--panel);
  box-shadow: 0 20px 50px rgba(24, 33, 47, 0.13);
}

.search-box {
  border-color: var(--line);
  border-radius: 10px;
  background: var(--input);
  box-shadow: none;
}

.notification-bell.has-unread {
  box-shadow: 0 10px 24px rgba(151, 0, 143, 0.09);
}

.pill,
.status {
  border-radius: 999px;
  box-shadow: none;
}

.table-wrap {
  overflow: auto;
  overflow-y: hidden;
}

table {
  border-collapse: separate;
  border-spacing: 0;
}

.table-wrap::after {
  content: "";
  position: sticky;
  right: 0;
  display: block;
  width: 34px;
  min-height: 1px;
  margin-left: auto;
  pointer-events: none;
  background: linear-gradient(90deg, transparent, rgba(151, 0, 143, 0.08));
}

th {
  background: rgba(151, 0, 143, 0.045);
  color: var(--muted);
}

td,
th {
  border-color: var(--line);
}

:is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero) {
  border: 1px solid var(--line);
  border-radius: 12px;
  background:
    linear-gradient(135deg, rgba(151, 0, 143, 0.075), transparent 38%),
    linear-gradient(315deg, rgba(20, 156, 152, 0.07), transparent 36%),
    var(--panel);
  color: var(--ink);
  box-shadow: var(--shadow);
}

:is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero)::before,
:is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero)::after {
  opacity: 0.18;
}

:is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero) h2,
:is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero) p:not(.eyebrow),
:is(.command-core, .command-radar span, .command-core .muted, .command-core .eyebrow, .employee-hero-copy p, .employee-hero-core span) {
  color: var(--ink);
}

:is(.command-core, .command-status-card, .command-priority, .command-clear, .owner-desk-core, .mission-core, .intel-score, .service-core, .compliance-core, .document-core, .calendar-core, .sla-core, .workforce-core, .relations-core, .lifecycle-orbit, .employee-hero-core) {
  border: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.72);
  color: var(--ink);
  box-shadow: none;
}

:root[data-theme="dark"] :is(.command-core, .command-status-card, .command-priority, .command-clear, .owner-desk-core, .mission-core, .intel-score, .service-core, .compliance-core, .document-core, .calendar-core, .sla-core, .workforce-core, .relations-core, .lifecycle-orbit, .employee-hero-core) {
  background: rgba(255, 255, 255, 0.045);
}

.command-status-card span,
.command-status-card p,
.command-status-card strong,
.command-priority span,
.command-priority p,
.command-priority strong,
.command-clear span,
.command-clear p,
.command-clear strong,
.command-radar strong,
.command-radar span,
.command-load {
  color: var(--ink);
  text-shadow: none;
}

.command-status-card span,
.command-priority span,
.command-clear span {
  color: var(--muted);
}

.command-actions .ghost,
.light-text {
  color: var(--ink);
  border-color: var(--line);
}

:root[data-theme="dark"] .command-actions .ghost,
:root[data-theme="dark"] .light-text {
  color: var(--ink);
}

.empty-state,
.table-empty {
  border-color: rgba(151, 0, 143, 0.18);
  background: rgba(255, 255, 255, 0.5);
}

:root[data-theme="dark"] input,
:root[data-theme="dark"] select,
:root[data-theme="dark"] textarea {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 44%),
    #0d1420;
  color: #eef3fb;
  border-color: rgba(174, 184, 202, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.035);
}

:root[data-theme="dark"] input::placeholder,
:root[data-theme="dark"] textarea::placeholder {
  color: rgba(174, 184, 202, 0.58);
}

:root[data-theme="dark"] .metric,
:root[data-theme="dark"] .panel,
:root[data-theme="dark"] .search-result,
:root[data-theme="dark"] .notification-bell,
:root[data-theme="dark"] .table-wrap,
:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .table-empty,
:root[data-theme="dark"] .enterprise-list article,
:root[data-theme="dark"] .mini-card,
:root[data-theme="dark"] .timeline-item,
:root[data-theme="dark"] .request-card,
:root[data-theme="dark"] .document-card,
:root[data-theme="dark"] .employee-payslip-card,
:root[data-theme="dark"] .employee-asset-card,
:root[data-theme="dark"] .employee-benefit-card,
:root[data-theme="dark"] .employee-growth-card {
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.035), transparent 42%),
    #151d29;
  color: #eef3fb;
  border-color: rgba(174, 184, 202, 0.18);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.3);
}

:root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .table-empty {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.08), transparent 44%),
    #121a25;
  border-color: rgba(212, 91, 210, 0.22);
}

:root[data-theme="dark"] table {
  color: #eef3fb;
}

:root[data-theme="dark"] th {
  background: rgba(212, 91, 210, 0.09);
  color: #b9c4d6;
}

:root[data-theme="dark"] td,
:root[data-theme="dark"] th {
  border-color: rgba(174, 184, 202, 0.18);
}

:root[data-theme="dark"] tr {
  background: transparent;
}

:root[data-theme="dark"] tbody tr:hover {
  background: rgba(212, 91, 210, 0.045);
}

:root[data-theme="dark"] :is(.command-hero, .owner-desk-hero, .mission-hero, .intel-hero, .service-hero, .compliance-hero, .document-hero, .calendar-hero, .sla-hero, .workforce-hero, .relations-hero, .lifecycle-hero, .employee-hero, .employee-calendar-hero, .employee-helpdesk-hero, .employee-timeline-hero, .employee-documents-hero, .employee-assets-hero, .employee-payroll-hero, .employee-profile-hero, .employee-growth-hero, .employee-benefits-hero, .employee-security-hero) {
  background:
    linear-gradient(135deg, rgba(212, 91, 210, 0.1), transparent 38%),
    linear-gradient(315deg, rgba(73, 212, 206, 0.055), transparent 36%),
    #151d29;
  border-color: rgba(174, 184, 202, 0.18);
}

:root[data-theme="dark"] :is(.command-core, .command-status-card, .command-priority, .command-clear, .owner-desk-core, .mission-core, .intel-score, .service-core, .compliance-core, .document-core, .calendar-core, .sla-core, .workforce-core, .relations-core, .lifecycle-orbit, .employee-hero-core) {
  background: #101824;
  border-color: rgba(174, 184, 202, 0.16);
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 1fr;
    overflow-x: hidden;
  }

  .sidebar {
    width: 100%;
    max-width: 100vw;
    box-shadow: 0 8px 24px rgba(24, 33, 47, 0.06);
  }

  .tabs,
  .side-actions {
    width: 100%;
  }

  .sidebar .tab,
  .sidebar .ghost {
    max-width: 100%;
  }

  .section-tabs {
    top: 118px;
  }

  .page-use-box {
    grid-template-columns: 1fr;
  }

  .guide-page-grid {
    grid-template-columns: 1fr;
  }

  .list-controls {
    grid-template-columns: minmax(0, 1fr) minmax(96px, 0.35fr);
  }

  .list-page-actions {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .manager-request-head {
    grid-template-columns: 1fr;
  }

  .workflow-guide,
  .workflow-guide-wide {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .panel-head-actions,
  .manager-request-actions {
    justify-content: flex-start;
  }

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

  .morning-checklist-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

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

  .owner-home-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

@media (max-width: 620px) {
  .content,
  .sidebar {
    padding-inline: 14px;
  }

  .sidebar {
    overflow-x: hidden;
  }

  .content {
    padding-bottom: 28px;
  }

  .topbar {
    gap: 12px;
  }

  .section-tabs {
    top: 132px;
    margin-bottom: 16px;
  }

  .page-use-box {
    margin-top: -4px;
    padding: 13px 14px;
  }

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

  .list-page-actions {
    width: 100%;
  }

  .list-page-actions button {
    flex: 1 1 0;
  }

  .owner-home-actions {
    grid-template-columns: 1fr;
  }

  .workflow-guide,
  .workflow-guide-wide,
  .workflow-guide.compact {
    grid-template-columns: 1fr;
  }

  .workflow-step {
    min-height: auto;
  }

  .panel-head-actions,
  .manager-request-actions {
    width: 100%;
  }

  .panel-head-actions button,
  .manager-request-actions button {
    flex: 1 1 148px;
  }

  .start-here-head {
    display: grid;
  }

  .morning-checklist-head {
    display: grid;
  }

  .start-here-grid {
    grid-template-columns: 1fr;
  }

  .morning-checklist-grid {
    grid-template-columns: 1fr;
  }

  .start-here-card {
    min-height: 112px;
  }

  .morning-check-item {
    min-height: auto;
  }

  .quick-actions-head {
    display: grid;
  }

  .quick-actions-grid {
    grid-template-columns: 1fr;
  }

  .quick-action-button {
    min-height: 86px;
  }

  .employee-main-actions-grid {
    grid-template-columns: 1fr;
  }

  .employee-main-action {
    min-height: 118px;
  }

  .guide-overlay {
    padding: 12px;
    align-items: end;
  }

  .guide-card {
    max-height: calc(100vh - 24px);
    padding: 22px 16px 16px;
    border-radius: 12px;
  }

  .guide-close {
    position: static;
    justify-self: end;
    order: -1;
  }

  .guide-steps {
    grid-template-columns: 1fr;
  }

  .guide-step {
    min-height: 0;
  }

  .guide-actions {
    display: grid;
  }

  .panel,
  .metric {
    padding: 16px;
  }
}

@media (max-width: 700px) {
  .content {
    overflow-x: hidden;
  }

  .content :is(.panel, .metric, .card, .enterprise-card, .table-wrap, .list-controls, .filter-grid, form, fieldset) {
    min-width: 0;
    max-width: 100%;
  }

  .content .table-wrap {
    display: block;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scroll-snap-type: x proximity;
  }

  .content .table-wrap table {
    min-width: 760px;
  }

  .content .table-wrap::before {
    content: "Swipe to see more";
    display: block;
    width: max-content;
    margin: 0 0 8px auto;
    padding: 4px 9px;
    border-radius: 999px;
    background: rgba(151, 0, 143, 0.09);
    color: var(--purple-strong);
    font-size: 0.72rem;
    font-weight: 850;
  }

  .content :is(input, select, textarea, button) {
    max-width: 100%;
  }

  .content :is(
    .attendance-ops-grid,
    .payroll-grid,
    .payroll-cycle-layout,
    .filter-grid,
    .manager-request-head,
    .request-review-form .filter-grid,
    .employee-calendar-filters,
    .employee-calendar-layout,
    .employee-calendar-grid,
    .employee-calendar-shift,
    .employee-helpdesk-layout,
    .employee-payroll-layout,
    .employee-request-tracker-filters,
    .request-update-form > div,
    .schedule-overview,
    .schedule-tools,
    .schedule-day
  ) {
    grid-template-columns: minmax(0, 1fr) !important;
  }

  .list-controls {
    width: 100%;
  }

  .list-controls > *,
  .filter-grid > *,
  .manager-request-actions > * {
    min-width: 0;
  }

  .list-page-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    align-items: center;
  }

  .list-page-actions button {
    width: 100%;
  }

  .manager-request-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .exception-row,
  .employee-row,
  .manager-request-card,
  .employee-request-card {
    max-width: 100%;
  }

  .employee-calendar-grid {
    display: grid;
    gap: 10px;
  }

  .employee-calendar-day {
    min-height: 0;
    padding: 12px;
  }

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

  .det-calendar-month {
    overflow-x: hidden;
  }

  .det-calendar-weekdays,
  .det-calendar-days {
    min-width: 0;
    width: 100%;
  }

  .det-calendar-weekdays span {
    padding: 7px 3px;
    text-align: center;
    font-size: 0.58rem;
  }

  .det-calendar-day {
    min-height: 78px;
    gap: 4px;
    padding: 5px 3px;
  }

  .det-calendar-day-head {
    display: grid;
    justify-items: center;
    gap: 2px;
  }

  .det-calendar-day-head strong {
    font-size: 0.72rem;
  }

  .det-calendar-day-head span {
    max-width: 100%;
    padding: 2px 4px;
    font-size: 0.5rem;
  }

  .det-calendar-chips {
    gap: 3px;
  }

  .det-calendar-chip {
    grid-template-columns: minmax(0, 1fr);
    min-height: 22px;
    padding: 3px;
    text-align: center;
  }

  .det-calendar-chip span {
    font-size: 0.5rem;
    white-space: normal;
  }

  .det-calendar-chip strong {
    display: none;
  }
}

html {
  scroll-behavior: smooth;
}

.view.active.page-entering {
  animation: detPageOpen 420ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.scroll-reveal {
  opacity: 0;
  transform: translateY(18px) scale(0.992);
  filter: saturate(0.96);
  transition:
    opacity 520ms cubic-bezier(0.2, 0.72, 0.18, 1),
    transform 520ms cubic-bezier(0.2, 0.72, 0.18, 1),
    filter 520ms ease;
  transition-delay: var(--reveal-delay, 0ms);
  will-change: opacity, transform;
}

.scroll-reveal.is-visible {
  opacity: 1;
  transform: translateY(0) scale(1);
  filter: saturate(1);
}

.view.active.page-entering > * {
  animation: detSectionOpen 460ms cubic-bezier(0.2, 0.72, 0.18, 1) both;
}

.view.active.page-entering > *:nth-child(1) {
  animation-delay: 20ms;
}

.view.active.page-entering > *:nth-child(2) {
  animation-delay: 60ms;
}

.view.active.page-entering > *:nth-child(3) {
  animation-delay: 100ms;
}

.view.active.page-entering > *:nth-child(4) {
  animation-delay: 130ms;
}

.view.active.page-entering > *:nth-child(n + 5) {
  animation-delay: 155ms;
}

:is(.panel, .metric, .enterprise-card, .mini-card, .employee-row, .exception-row, .request-card, .document-card, .employee-payslip-card, .employee-calendar-day, .employee-request-card) {
  transition:
    border-color 220ms ease,
    box-shadow 220ms ease,
    transform 220ms ease,
    background-color 220ms ease;
}

:is(.panel, .metric, .enterprise-card, .mini-card, .employee-row, .exception-row, .request-card, .document-card, .employee-payslip-card, .employee-calendar-day, .employee-request-card):hover {
  transition-duration: 180ms;
}

button,
.section-tab,
.tab,
.notification-bell,
.button-link {
  transition:
    transform 180ms cubic-bezier(0.2, 0.72, 0.18, 1),
    box-shadow 180ms ease,
    border-color 180ms ease,
    background-color 180ms ease,
    color 180ms ease,
    opacity 180ms ease;
}

@media (max-width: 1180px) {
  .pay-profile-grid,
  .pay-rule-switches {
    grid-template-columns: minmax(0, 1fr);
  }

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

  .device-monitor-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}

@media (max-width: 620px) {
  .agent-purpose {
    align-items: stretch;
  }

  .agent-purpose .inline-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: 100%;
  }

  .agent-purpose .inline-actions > * {
    width: 100%;
    justify-content: center;
  }

  .agent-start-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .agent-start-card {
    min-height: 116px;
  }
}

@media (max-width: 1100px) {
  .live-whatsapp-row {
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .whatsapp-match-metrics {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .whatsapp-match-grid {
    grid-template-columns: 1fr;
  }

  .whatsapp-match-row {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .live-whatsapp-row {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .live-whatsapp-row time {
    white-space: normal;
  }

  .whatsapp-match-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@keyframes detPageOpen {
  from {
    opacity: 0;
    transform: translateY(10px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes detSectionOpen {
  from {
    opacity: 0;
    transform: translateY(14px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }

  *,
  *::before,
  *::after {
    animation-duration: 0.001ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.001ms !important;
  }

  .scroll-reveal {
    opacity: 1 !important;
    transform: none !important;
    filter: none !important;
  }
}
