:root {
  --bg: #f7f6f3;
  --surface: #ffffff;
  --surface-soft: #fbfaf8;
  --surface-muted: #f2f0ec;
  --text: #1b1a18;
  --muted: #716e69;
  --subtle: #9a9690;
  --line: #e6e3dd;
  --line-strong: #d3cfc7;
  --black: #1f1d1b;
  --purple: #4c9dff;
  --purple-soft: #e6f2ff;
  --purple-wash: #f3f9ff;
  --coral: #ff7557;
  --coral-soft: #fff0ec;
  --green: #30a46c;
  --green-soft: #e9f7ef;
  --yellow: #d7a800;
  --yellow-soft: #fff6d8;
  --blue: #3d76e5;
  --blue-soft: #eaf1ff;
  --pink: #d94a8c;
  --pink-soft: #fdebf4;
  --shadow: 0 8px 28px rgba(42, 34, 23, 0.06);
  --shadow-float: 0 18px 55px rgba(42, 34, 23, 0.16);
  --radius: 16px;
  --font-heading: "Outfit", Arial, sans-serif;
  --font-body: "Poppins", Arial, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  font-family: var(--font-body);
  color: var(--text);
  background: var(--bg);
  font-size: 14px;
}

button,
input {
  font: inherit;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  cursor: pointer;
}

a {
  color: inherit;
  text-decoration: none;
}

.hidden {
  display: none !important;
}

/* Login */
.login-view {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 40px;
  background: radial-gradient(circle at 85% 15%, #dff0ff 0, transparent 30%), linear-gradient(135deg, #f8f6f1, #f2efe9);
}

.login-shell {
  width: min(1180px, 100%);
  min-height: 720px;
  display: grid;
  grid-template-columns: 46% 54%;
  border: 1px solid rgba(31, 29, 27, .08);
  background: var(--surface);
  border-radius: 24px;
  overflow: hidden;
  box-shadow: var(--shadow-float);
}

.login-form-panel {
  padding: 54px 64px 34px;
  display: flex;
  flex-direction: column;
}

.brand-lockup,
.app-brand {
  display: inline-flex;
  align-items: center;
  gap: 11px;
  width: fit-content;
}

.brand-lockup>span:last-child {
  display: grid;
}

.brand-lockup small {
  font-size: 11px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

.ability-mark {
  width: 38px;
  height: 38px;
  border-radius: 11px;
  display: grid;
  place-items: center;
  color: white;
  background: var(--black);
  font-family: var(--font-heading);
  font-size: 21px;
  font-weight: 700;
  position: relative;
  overflow: hidden;
}

.ability-mark::after {
  content: "";
  position: absolute;
  width: 22px;
  height: 22px;
  border: 5px solid var(--purple-soft);
  transform: rotate(45deg);
  border-radius: 5px;
  opacity: .9;
}

.ability-mark.small {
  width: 34px;
  height: 34px;
  font-size: 0;
  border-radius: 9px;
}

.ability-logo {
  height: 36px;
  width: auto;
  flex-shrink: 0;
  display: block;
}

.ability-logo.small {
  height: 30px;
  width: auto;
}

.login-copy {
  margin-top: 78px;
}

.eyebrow {
  font-size: 12px;
  font-weight: 600;
  letter-spacing: .08em;
  text-transform: uppercase;
  color: var(--purple);
}

h1,
h2,
h3 {
  font-family: var(--font-heading);
  margin: 0;
}

.login-copy h1 {
  margin-top: 10px;
  font-size: 38px;
  line-height: 1.12;
}

.login-copy p {
  margin: 12px 0 0;
  color: var(--muted);
}

.login-form {
  margin-top: 34px;
  display: grid;
  gap: 18px;
}

.login-form label {
  display: grid;
  gap: 8px;
  font-weight: 500;
}

.login-form input {
  width: 100%;
  height: 48px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  padding: 0 14px;
  outline: none;
  background: white;
}

.login-form input:focus {
  border-color: var(--purple);
  box-shadow: 0 0 0 4px rgba(76, 157, 255, .12);
}

.password-wrap {
  position: relative;
  display: block;
}

.password-wrap input {
  padding-right: 50px;
}

.password-wrap .icon-button {
  position: absolute;
  right: 6px;
  top: 6px;
}

.form-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.checkbox-row {
  display: inline-flex !important;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 8px !important;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.text-link {
  color: var(--purple);
  font-size: 12px;
  font-weight: 600;
}

.button {
  min-height: 40px;
  border: 1px solid transparent;
  border-radius: 9px;
  padding: 0 16px;
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  transition: .16s ease;
}

.button:hover {
  transform: translateY(-1px);
}

.button.primary {
  background: var(--purple);
  color: white;
}

.button.dark {
  background: var(--black);
  color: white;
}

.button.secondary {
  background: white;
  color: var(--text);
  border-color: var(--line-strong);
}

.button.ghost {
  background: var(--surface-muted);
  color: var(--text);
}

.button.wide {
  width: 100%;
  min-height: 48px;
}

.small-button {
  min-height: 34px;
  font-size: 12px;
  padding: 0 12px;
}

.divider {
  display: flex;
  align-items: center;
  gap: 12px;
  color: var(--subtle);
  font-size: 11px;
}

.divider::before,
.divider::after {
  content: "";
  height: 1px;
  flex: 1;
  background: var(--line);
}

.login-footer {
  margin-top: auto;
  padding-top: 32px;
  border-top: 1px solid var(--line);
  display: flex;
  justify-content: space-between;
  color: var(--muted);
  font-size: 11px;
}

.login-visual-panel {
  position: relative;
  overflow: hidden;
  background: linear-gradient(145deg, #dff0ff 0%, #b8dcff 45%, #7ebcff 100%);
  padding: 54px;
  display: flex;
  align-items: center;
}

.visual-orb {
  position: absolute;
  border-radius: 999px;
  filter: blur(2px);
  opacity: .4;
}

.orb-one {
  width: 320px;
  height: 320px;
  right: -80px;
  top: -80px;
  background: #fff4c4;
}

.orb-two {
  width: 260px;
  height: 260px;
  left: -120px;
  bottom: -100px;
  background: #ffb9aa;
}

.visual-content {
  position: relative;
  z-index: 1;
  color: #1f1832;
  max-width: 540px;
}

.visual-badge {
  display: inline-flex;
  padding: 8px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, .54);
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: .07em;
}

.visual-content h2 {
  margin-top: 22px;
  font-size: 42px;
  line-height: 1.08;
  max-width: 520px;
}

.visual-content>p {
  font-size: 15px;
  line-height: 1.7;
  max-width: 510px;
}

.visual-mockup {
  margin-top: 34px;
  padding: 14px;
  background: rgba(255, 255, 255, .82);
  border: 1px solid rgba(255, 255, 255, .8);
  border-radius: 18px;
  box-shadow: 0 22px 65px rgba(56, 110, 180, .18);
  transform: rotate(-1deg);
}

.mini-top {
  height: 26px;
  display: flex;
  gap: 6px;
  align-items: center;
}

.mini-top span {
  width: 7px;
  height: 7px;
  background: #c8c2d2;
  border-radius: 99px;
}

.mini-grid {
  display: grid;
  grid-template-columns: 1.2fr 1fr 1fr;
  gap: 10px;
}

.mini-card {
  background: white;
  border: 1px solid #ece8f4;
  border-radius: 12px;
  padding: 14px;
  display: grid;
  gap: 5px;
  min-height: 90px;
}

.mini-card.tall {
  grid-row: span 2;
  min-height: 192px;
  align-content: center;
}

.mini-card small {
  color: #827b8f;
}

.mini-card strong {
  font: 700 26px var(--font-heading);
}

.chart-card {
  grid-column: span 2;
  display: flex;
  align-items: end;
  gap: 8px;
}

.chart-card i {
  flex: 1;
  background: #74b6ff;
  border-radius: 4px 4px 0 0;
}

.chart-card i:nth-child(1) {
  height: 28%;
}

.chart-card i:nth-child(2) {
  height: 55%;
}

.chart-card i:nth-child(3) {
  height: 42%;
}

.chart-card i:nth-child(4) {
  height: 78%;
}

.chart-card i:nth-child(5) {
  height: 64%;
}

.trust-row {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin-top: 26px;
}

.trust-row div {
  display: grid;
  gap: 4px;
  border-left: 1px solid rgba(31, 24, 50, .24);
  padding-left: 14px;
}

.trust-row div:first-child {
  border-left: 0;
  padding-left: 0;
}

.trust-row strong {
  font: 700 20px var(--font-heading);
}

.trust-row span {
  font-size: 11px;
}

/* Application shell */
.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
  background: linear-gradient(180deg, #e9f4ff 0, #f5faff 100%);
  border-bottom: 1px solid rgba(61, 118, 229, .12);
}

.header-main {
  min-height: 64px;
  display: flex;
  align-items: center;
  gap: 18px;
  padding: 0 24px;
}

.app-brand strong {
  font: 700 23px var(--font-heading);
  letter-spacing: -.02em;
}

.group-switcher {
  display: flex;
  align-items: center;
  gap: 9px;
  border: 0;
  background: transparent;
  padding: 5px 8px;
  border-radius: 10px;
  transition: background .15s;
  cursor: pointer;
}

.group-switcher:hover {
  background: rgba(255, 255, 255, .48);
}

.group-switcher>span:nth-child(2),
.user-chip>span:nth-child(2) {
  display: grid;
  text-align: left;
}

.group-switcher small,
.user-chip small {
  color: var(--muted);
  font-size: 9px;
}

.chevron-icon {
  color: var(--muted);
  flex-shrink: 0;
}

.org-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #6db8ff, #4c9dff);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 600;
  font-size: 13px;
}

.primary-nav {
  display: flex;
  align-items: center;
  gap: 4px;
  margin-left: 8px;
}

.primary-nav a,
.plain-nav {
  min-height: 36px;
  display: flex;
  align-items: center;
  padding: 0 12px;
  border-radius: 999px;
  border: 0;
  background: transparent;
  color: #4f4a55;
  font-size: 12px;
  gap: 6px;
}

.primary-nav a:hover,
.plain-nav:hover {
  background: rgba(255, 255, 255, .54);
}

.primary-nav a.active {
  color: #111;
  background: white;
  box-shadow: 0 1px 4px rgba(60, 40, 90, .08);
  font-weight: 600;
}

.header-actions {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 6px;
}

.search-command {
  min-height: 36px;
  border: none;
  border-radius: 999px;
  padding: 0 14px;
  background: rgba(76, 157, 255, .08);
  display: flex;
  align-items: center;
  gap: 8px;
  color: #6b6378;
  font-size: 13px;
  transition: all .15s;
  cursor: pointer;
  outline: none;
}

.search-command:hover {
  background: rgba(76, 157, 255, .16);
}

.search-command svg {
  color: #7b95b8;
  flex-shrink: 0;
}

.search-command kbd {
  font: 500 10px var(--font-body);
  padding: 2px 6px;
  background: rgba(255, 255, 255, .65);
  border: 1px solid rgba(76, 157, 255, .1);
  border-radius: 5px;
  color: #8a839a;
}

.round-action,
.icon-button {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  border: 1px solid rgba(76, 157, 255, .1);
  background: rgba(76, 157, 255, .08);
  display: grid;
  place-items: center;
  position: relative;
  color: #6b6378;
  transition: all .15s;
  cursor: pointer;
}

.round-action:hover {
  background: rgba(76, 157, 255, .18);
  border-color: rgba(76, 157, 255, .22);
}

.notification b {
  position: absolute;
  top: -3px;
  right: -2px;
  background: var(--coral);
  color: white;
  font-size: 8px;
  min-width: 17px;
  height: 17px;
  border-radius: 999px;
  display: grid;
  place-items: center;
}

.user-chip {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 4px 6px;
  border-radius: 10px;
  transition: background .15s;
  cursor: pointer;
}

.user-chip:hover {
  background: rgba(255, 255, 255, .46);
}

.user-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d9ecff;
  font-size: 11px;
  font-weight: 600;
}

.context-nav {
  min-height: 46px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 0 126px;
  overflow-x: auto;
}

.context-nav a {
  white-space: nowrap;
  font-size: 12px;
  color: #57515e;
  padding: 8px 11px;
  border-radius: 7px;
}

.context-nav a:hover {
  background: rgba(255, 255, 255, .5);
}

.context-nav a.active {
  background: rgba(255, 255, 255, .72);
  color: #18151c;
  font-weight: 600;
}

.main-content {
  min-height: calc(100vh - 110px);
}

.page-wrap,
.page-wrap.wide-page {
  width: min(1680px, calc(100% - 42px));
  margin: 0 auto;
  padding: 30px 0 70px;
}

.page-heading {
  display: flex;
  justify-content: space-between;
  align-items: end;
  gap: 24px;
  margin-bottom: 20px;
}

.compact-heading {
  align-items: center;
}

.page-heading h1 {
  font-size: 31px;
  letter-spacing: -.02em;
}

.page-heading p {
  margin: 6px 0 0;
  color: var(--muted);
}

.heading-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.dashboard-grid {
  display: grid;
  gap: 16px;
}

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

.card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 18px;
  box-shadow: 0 1px 0 rgba(0, 0, 0, .01);
}

.large-card {
  min-height: 460px;
}

.card-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.card-heading>div {
  display: flex;
  align-items: center;
  gap: 9px;
}

.card-heading h2 {
  font-size: 17px;
}

.card-icon {
  width: 28px;
  height: 28px;
  border-radius: 8px;
  background: var(--surface-muted);
  display: grid;
  place-items: center;
  font-size: 13px;
}

.card-icon svg {
  width: 16px;
  height: 16px;
}

.quiet-button {
  border: 0;
  background: var(--surface-muted);
  border-radius: 8px;
  min-height: 30px;
  padding: 0 10px;
  font-size: 11px;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.card-subtitle {
  margin: 5px 0 16px;
  color: var(--muted);
  font-size: 11px;
}

.task-list {
  display: grid;
  gap: 10px;
}

.task-item {
  width: 100%;
  border: 1px solid var(--line);
  background: white;
  border-radius: 12px;
  min-height: 68px;
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  text-align: left;
}

.task-item:hover {
  border-color: #c9c0e6;
  background: #fdfcff;
}

.task-item>span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.task-item small {
  color: var(--muted);
}

.task-item b {
  border: 1px solid var(--line-strong);
  padding: 6px 9px;
  border-radius: 7px;
  font-size: 10px;
}

.task-icon {
  width: 32px;
  height: 32px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  font-weight: 700;
}

.task-icon svg {
  width: 18px;
  height: 18px;
}

.task-icon.orange {
  background: var(--coral-soft);
  color: var(--coral);
}

.task-icon.red {
  background: #feecec;
  color: #e24b4b;
}

.task-icon.blue {
  background: var(--blue-soft);
  color: var(--blue);
}

.experience-banner {
  margin-top: 14px;
  background: var(--purple-soft);
  padding: 14px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.experience-banner>div {
  display: grid;
  gap: 4px;
}

.experience-banner small {
  color: #5d5375;
}

.mini-label {
  font-size: 10px;
  color: #675c80;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 600;
}

.metric-strip {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
}

.metric-strip>div {
  min-height: 92px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 13px;
  display: grid;
  align-content: center;
  gap: 2px;
}

.metric-strip small,
.metric-strip span {
  color: var(--muted);
  font-size: 10px;
}

.metric-strip strong {
  font: 700 26px var(--font-heading);
}

.metric-strip .negative {
  color: var(--coral);
}

.line-chart {
  margin-top: 14px;
  height: 230px;
}

.line-chart svg {
  width: 100%;
  height: 100%;
  overflow: visible;
}

.grid-lines line {
  stroke: #ece9e3;
  stroke-width: 1;
  stroke-dasharray: 4 4;
}

.chart-fill {
  fill: rgba(76, 157, 255, .12);
}

.chart-line {
  fill: none;
  stroke: var(--purple);
  stroke-width: 4;
  stroke-linecap: round;
}

.chart-labels text {
  font: 10px var(--font-body);
  fill: #8b867f;
}

.journey-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.journey-card {
  border: 1px solid;
  border-radius: 12px;
  padding: 18px;
  min-height: 108px;
  display: grid;
  text-align: left;
  gap: 2px;
  align-content: center;
}

.journey-card.green {
  background: #e5f8f1;
  border-color: #b9ead8;
}

.journey-card.coral {
  background: #fff0ec;
  border-color: #ffd0c6;
}

.journey-card strong {
  font: 700 29px var(--font-heading);
}

.journey-card span {
  font-size: 11px;
}

.milestone-list {
  display: grid;
}

.milestone-list>div {
  min-height: 72px;
  border-top: 1px solid var(--line);
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
}

.milestone-list>div:first-child {
  border-top: 0;
}

.milestone-list>div>span:nth-child(2) {
  display: grid;
  gap: 3px;
}

.milestone-list small {
  color: var(--muted);
}

.milestone-icon {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  display: grid;
  place-items: center;
}

.milestone-icon svg {
  width: 18px;
  height: 18px;
}

.milestone-icon.pink {
  background: var(--pink-soft);
  color: var(--pink);
}

.milestone-icon.mint {
  background: var(--green-soft);
  color: var(--green);
}

.milestone-icon.yellow {
  background: var(--yellow-soft);
  color: var(--yellow);
}

.avatar-stack {
  display: flex;
  align-items: center;
}

.avatar-stack i {
  width: 30px;
  height: 30px;
  margin-left: -7px;
  border: 2px solid white;
  border-radius: 50%;
  background: #efe9ff;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
}

.avatar-stack i:first-child {
  margin-left: 0;
}

.avatar-stack b {
  font-size: 10px;
  margin-left: 6px;
  color: var(--muted);
}

.tabs-line {
  display: flex;
  align-items: center;
  gap: 4px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 16px;
  overflow-x: auto;
}

.tabs-line button,
.sub-tabs button {
  border: 0;
  background: transparent;
  min-height: 43px;
  padding: 0 14px;
  color: var(--muted);
  border-bottom: 2px solid transparent;
  white-space: nowrap;
}

.tabs-line button.active,
.sub-tabs button.active {
  color: var(--text);
  border-bottom-color: var(--black);
  font-weight: 600;
}

.tabs-line span,
.sub-tabs span {
  background: var(--surface-muted);
  padding: 2px 6px;
  border-radius: 999px;
  font-size: 9px;
}

.sub-tabs {
  display: flex;
  border-bottom: 1px solid var(--line);
  margin-bottom: 14px;
}

.filter-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 14px;
}

.filter-bar.wrap {
  flex-wrap: wrap;
}

.search-field {
  min-width: 310px;
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 999px;
  padding: 0 12px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.search-field.compact {
  min-width: 170px;
}

.search-field input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
}

.search-icon {
  width: 16px;
  height: 16px;
  color: var(--muted);
  flex-shrink: 0;
  transition: color 0.15s ease;
}

.search-field:focus-within .search-icon,
.input-like:focus-within .search-icon {
  color: var(--black);
}

.filter-chip {
  min-height: 40px;
  border: 1px solid var(--line-strong);
  background: white;
  border-radius: 999px;
  padding: 0 13px;
  color: #4f4a44;
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.flex-spacer {
  flex: 1;
}

.split-review-layout {
  display: grid;
  grid-template-columns: minmax(540px, 1.1fr) minmax(400px, .9fr);
  gap: 16px;
  align-items: start;
}

.request-list-card {
  padding: 0;
  overflow: hidden;
}

.list-summary {
  min-height: 64px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.list-summary>span {
  display: grid;
  gap: 3px;
}

.list-summary small {
  color: var(--muted);
}

.approval-list {
  max-height: 680px;
  overflow: auto;
}

.approval-row {
  border: 0;
  outline: 0;
  display: flex;
  width: 100%;
  justify-content: flex-start;
  text-align: left;
}

.approval-row {
  display: grid;
  grid-template-columns: auto auto 1fr auto;
  gap: 11px;
  align-items: center;
  min-height: 72px;
  padding: 12px 14px;
  border-bottom: 1px solid var(--line);
  background: white;
  cursor: pointer;
  transition: background .15s ease, box-shadow .15s ease;
}

.approval-row:last-child {
  border-bottom: none;
}

.approval-row:hover,
.approval-row.active {
  background: #f4f9ff;
}

.approval-row.active {
  box-shadow: inset 3px 0 var(--purple);
}

.approval-row input {
  width: 16px;
  height: 16px;
  accent-color: var(--blue);
}

.person-avatar {
  width: 38px;
  height: 38px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #e9f3ff;
  color: #2f79c6;
  font-size: 11px;
  font-weight: 600;
}

.approval-row>span:nth-child(3) {
  display: grid;
  gap: 4px;
  min-width: 0;
}

.approval-row strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.approval-row small {
  color: var(--muted);
}

.approval-meta {
  text-align: right;
  display: grid;
  gap: 5px;
}

.status-badge {
  width: fit-content;
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  font-size: 10px;
  font-weight: 600;
}

.status-badge.pending {
  background: var(--yellow-soft);
  color: #8b6900;
}

.status-badge.step {
  background: var(--surface-muted);
  color: #5d5953;
}

.status-badge.approved {
  background: var(--green-soft);
  color: #19794a;
}

.status-badge.rejected {
  background: #feecec;
  color: #c13b3b;
}

.approval-detail {
  position: sticky;
  top: 130px;
  min-height: 520px;
}

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

.detail-header>div:first-child {
  display: flex;
  gap: 11px;
}

.detail-header h2 {
  font-size: 20px;
}

.detail-header p {
  margin: 4px 0 0;
  color: var(--muted);
}

.detail-section {
  padding: 16px 0;
  border-bottom: 1px solid var(--line);
}

.detail-section:last-of-type {
  border-bottom: 0;
}

.detail-section h3 {
  font-size: 13px;
  margin-bottom: 10px;
}

.detail-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
}

.detail-field {
  display: grid;
  gap: 4px;
}

.detail-field small {
  color: var(--muted);
}

.detail-field strong {
  font-size: 13px;
}

.reason-box {
  background: var(--surface-soft);
  border: 1px solid var(--line);
  padding: 12px;
  border-radius: 10px;
  line-height: 1.55;
}

.timeline {
  display: grid;
  gap: 12px;
}

.timeline-row {
  display: grid;
  grid-template-columns: 18px 1fr;
  gap: 8px;
  align-items: start;
  position: relative;
}

.timeline-row::before {
  content: "";
  position: absolute;
  left: 8px;
  top: 17px;
  bottom: -12px;
  width: 1px;
  background: var(--line);
}

.timeline-row:last-child::before {
  display: none;
}

.timeline-dot {
  width: 17px;
  height: 17px;
  border-radius: 50%;
  background: var(--surface-muted);
  border: 4px solid white;
  box-shadow: 0 0 0 1px var(--line);
}

.timeline-dot.done {
  background: var(--green);
}

.timeline-dot.current {
  background: var(--purple);
}

.timeline-row span:last-child {
  display: grid;
  gap: 2px;
}

.timeline-row small {
  color: var(--muted);
}

.detail-actions {
  position: sticky;
  bottom: 0;
  background: white;
  border-top: 1px solid var(--line);
  padding-top: 14px;
  display: flex;
  justify-content: flex-end;
  gap: 9px;
}

.danger-action {
  background: white;
  color: #bf3c3c;
  border: 1px solid #e9b7b7;
}

.attendance-overview-card {
  padding: 20px;
}

.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
}

.section-heading h2 {
  font-size: 22px;
}

.section-heading p {
  margin: 3px 0 0;
  color: var(--muted);
}

.status-dot-text {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
  font-size: 11px;
}

.status-dot-text i {
  width: 8px;
  height: 8px;
  background: var(--green);
  border-radius: 99px;
}

.filter-grid {
  display: grid;
  grid-template-columns: 1.3fr 1.2fr .9fr .8fr .6fr;
  gap: 10px;
  margin: 18px 0;
}

.filter-grid label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  font-weight: 500;
}

.input-like,
.select-like {
  min-height: 42px;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  background: white;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 11px;
  color: var(--muted);
}

.input-like input {
  border: 0;
  outline: 0;
  flex: 1;
  min-width: 0;
}

.select-like {
  width: 100%;
  justify-content: space-between;
}

.chevron-down {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  opacity: .55;
}

.attendance-summary-row {
  display: flex;
  align-items: stretch;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 14px;
}

.small-stat {
  min-width: 130px;
  background: var(--surface-soft);
  border: 1px solid var(--line);
  border-radius: 11px;
  padding: 12px;
  display: grid;
  gap: 2px;
}

.small-stat small {
  color: var(--muted);
}

.small-stat strong {
  font: 700 22px var(--font-heading);
}

.legend-row {
  flex: 1;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px 12px;
  padding: 8px 0;
}

.legend-row span {
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
}

.legend {
  min-width: 25px;
  height: 25px;
  padding: 0 5px;
  border-radius: 7px;
  display: grid;
  place-items: center;
  font-style: normal;
  font-size: 9px;
  font-weight: 600;
}

.legend.p {
  background: var(--green-soft);
  color: var(--green);
}

.legend.a {
  background: #feecec;
  color: #e04d4d;
}

.legend.l {
  background: var(--yellow-soft);
  color: #a57600;
}

.legend.hd {
  background: var(--blue-soft);
  color: var(--blue);
}

.legend.of {
  background: var(--surface-muted);
  color: var(--muted);
}

.legend.sl {
  background: var(--purple-wash);
  color: var(--purple);
}

.table-scroll {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

table {
  border-collapse: separate;
  border-spacing: 0;
  width: 100%;
}

.attendance-table {
  min-width: 1320px;
}

th {
  position: sticky;
  top: 0;
  z-index: 1;
  background: #fbfaf8;
  color: #5f5b55;
  font-size: 10px;
  text-align: left;
  font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  white-space: nowrap;
}

td {
  border-bottom: 1px solid var(--line);
  padding: 10px 11px;
  font-size: 11px;
  white-space: nowrap;
}

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

.attendance-table th:nth-child(n+4),
.attendance-table td:nth-child(n+4) {
  text-align: center;
  min-width: 58px;
}

.day-state {
  display: inline-grid;
  place-items: center;
  min-width: 27px;
  height: 25px;
  border-radius: 7px;
  font-size: 9px;
  font-weight: 600;
}

.day-state.p {
  background: var(--green-soft);
  color: var(--green);
}

.day-state.a {
  background: #feecec;
  color: #e04d4d;
}

.day-state.l {
  background: var(--yellow-soft);
  color: #a57600;
}

.day-state.hd {
  background: var(--blue-soft);
  color: var(--blue);
}

.day-state.of {
  background: var(--surface-muted);
  color: var(--muted);
}

.day-state.empty {
  color: #aaa59e;
}

.people-table-card {
  padding: 0;
  overflow: hidden;
}

.people-table {
  min-width: 1100px;
}

.people-table td {
  height: 62px;
}

.person-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.person-cell>span:last-child {
  display: grid;
  gap: 2px;
}

.person-cell small {
  color: var(--muted);
}

.country-cell {
  display: flex;
  gap: 7px;
  align-items: center;
}

.country-dot {
  width: 20px;
  height: 20px;
  background: var(--surface-muted);
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 10px;
}

.empty-card {
  min-height: 420px;
  display: grid;
  place-items: center;
  align-content: center;
  text-align: center;
  gap: 10px;
}

.empty-card p {
  color: var(--muted);
  max-width: 520px;
}

.empty-icon {
  width: 62px;
  height: 62px;
  border-radius: 18px;
  background: var(--purple-soft);
  color: var(--purple);
  display: grid;
  place-items: center;
  font-size: 26px;
}

.help-fab {
  position: fixed;
  right: 22px;
  bottom: 22px;
  width: 46px;
  height: 46px;
  border-radius: 50%;
  border: 0;
  color: white;
  background: var(--black);
  box-shadow: var(--shadow-float);
  font-size: 18px;
}

.toast {
  position: fixed;
  z-index: 10000;
  top: 18px;
  left: 50%;
  transform: translate(-50%, -120px);
  min-width: 280px;
  max-width: 460px;
  padding: 12px 18px;
  border-radius: 12px;
  background: var(--black);
  color: white;
  box-shadow: var(--shadow-float);
  transition: transform 0.22s cubic-bezier(0.16, 1, 0.3, 1), opacity 0.2s ease;
  text-align: center;
  cursor: pointer;
  user-select: none;
}

.toast.show {
  transform: translate(-50%, 0);
}



/* ======================================
   Sidebar — Module-based accordion nav
   ====================================== */
.app-view {
  min-height: 100vh;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
}

.sidebar {
  background: linear-gradient(180deg, #e9f4ff 0%, #f0f7ff 40%, #f5faff 100%);
  border-right: 1px solid rgba(61, 118, 229, .12);
  padding: 0;
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: hidden;
  z-index: 60;
}

/* Brand block — fixed top */
.sidebar-brand-block {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  padding: 0 20px;
  border-bottom: 1px solid rgba(61, 118, 229, .12);
  box-sizing: border-box;
  background: rgba(255, 255, 255, .25);
}

.sidebar-brand {
  display: inline-flex;
  align-items: center;
  gap: 12px;
  transition: opacity .2s;
}

.sidebar-brand:hover {
  opacity: .85;
}

.sidebar-brand>span:last-child {
  display: grid;
}

.sidebar-brand strong {
  font: 700 21px var(--font-heading);
  letter-spacing: -.02em;
  color: var(--text);
}

.sidebar-brand small {
  font-size: 10px;
  color: var(--muted);
  letter-spacing: .08em;
  text-transform: uppercase;
}

/* Scrollable nav area */
.sidebar-nav {
  padding: 10px 12px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  overflow-y: auto;
  flex: 1;
  scrollbar-width: thin;
  scrollbar-color: rgba(61, 118, 229, .15) transparent;
}

.sidebar-nav::-webkit-scrollbar {
  width: 5px;
}

.sidebar-nav::-webkit-scrollbar-track {
  background: transparent;
}

.sidebar-nav::-webkit-scrollbar-thumb {
  background: rgba(61, 118, 229, .18);
  border-radius: 10px;
}

/* Icons */
.sidebar-icon {
  width: 19px;
  height: 19px;
  flex-shrink: 0;
  color: #7b95b8;
  transition: color .2s ease;
}

/* Top-level standalone links (e.g. Home, Services) */
.sidebar-link {
  min-height: 40px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  color: #3d4f6a;
  font-size: 13px;
  font-weight: 500;
  transition: all .2s ease;
  border: 1px solid transparent;
  text-decoration: none;
}

.sidebar-link:hover {
  background: rgba(255, 255, 255, .55);
  color: #1a2e4a;
  border-color: rgba(255, 255, 255, .7);
}

.sidebar-link:hover .sidebar-icon {
  color: #3d76e5;
}

.sidebar-link.active {
  background: white;
  color: #3d76e5;
  font-weight: 600;
  box-shadow: 0 2px 12px rgba(61, 118, 229, .10), 0 1px 3px rgba(61, 118, 229, .06);
  border: 1px solid rgba(61, 118, 229, .12);
}

.sidebar-link.active .sidebar-icon {
  color: #3d76e5;
}

/* =====================
   Accordion Groups
   ===================== */
.sidebar-group {
  border-radius: 10px;
  transition: background .2s ease;
}

/* Group header (clickable accordion trigger) */
.sidebar-group-header {
  width: 100%;
  min-height: 40px;
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 0 12px;
  border: none;
  background: transparent;
  color: #3d4f6a;
  font-size: 13px;
  font-weight: 500;
  cursor: pointer;
  border-radius: 10px;
  transition: all .2s ease;
  outline: none;
  text-align: left;
  font-family: inherit;
}

.sidebar-group-header span {
  flex: 1;
  min-width: 0;
}

.sidebar-group-header:hover {
  background: rgba(255, 255, 255, .50);
  color: #1a2e4a;
}

.sidebar-group-header:hover .sidebar-icon {
  color: #3d76e5;
}

/* Chevron arrow in group header */
.sidebar-group-header .chevron-icon {
  width: 14px;
  height: 14px;
  flex-shrink: 0;
  color: #94adc8;
  transition: transform .25s cubic-bezier(0.4, 0, 0.2, 1), color .2s;
}

.sidebar-group.expanded .sidebar-group-header .chevron-icon {
  transform: rotate(180deg);
  color: #3d76e5;
}

/* Expanded group gets a subtle bg tint */
.sidebar-group.expanded .sidebar-group-header {
  color: #3d76e5;
  font-weight: 600;
}

.sidebar-group.expanded .sidebar-group-header .sidebar-icon {
  color: #3d76e5;
}

/* Accordion sub-items container (collapsed by default) */
.sidebar-group-items {
  max-height: 0;
  overflow: hidden;
  transition: max-height .3s cubic-bezier(0.4, 0, 0.2, 1), opacity .25s ease;
  opacity: 0;
}

.sidebar-group.expanded .sidebar-group-items {
  max-height: 300px;
  opacity: 1;
}

/* Sub-links inside accordion */
.sidebar-sublink {
  display: block;
  padding: 7px 12px 7px 43px;
  font-size: 12.5px;
  font-weight: 450;
  color: #5a6f8a;
  border-radius: 8px;
  transition: all .18s ease;
  text-decoration: none;
  position: relative;
}

/* Left accent dot for sublinks */
.sidebar-sublink::before {
  content: '';
  position: absolute;
  left: 28px;
  top: 50%;
  transform: translateY(-50%);
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a8c4e0;
  transition: background .2s ease, transform .2s ease;
}

.sidebar-sublink:hover {
  background: rgba(255, 255, 255, .50);
  color: #1e3a5f;
}

.sidebar-sublink:hover::before {
  background: #3d76e5;
  transform: translateY(-50%) scale(1.4);
}

.sidebar-sublink.active {
  background: rgba(255, 255, 255, .75);
  color: #3d76e5;
  font-weight: 600;
}

.sidebar-sublink.active::before {
  background: #3d76e5;
  width: 6px;
  height: 6px;
  transform: translateY(-50%);
}

/* Section label (if used) */
.sidebar-group-label {
  padding: 16px 12px 6px;
  color: #94adc8;
  text-transform: uppercase;
  letter-spacing: .12em;
  font-size: 10px;
  font-weight: 600;
}

/* Footer — fixed bottom */
.sidebar-footer {
  padding: 10px 12px;
  border-top: 1px solid rgba(61, 118, 229, .12);
  background: rgba(255, 255, 255, .15);
}

.logout-link {
  color: #d04444;
}

.logout-link .sidebar-icon {
  color: #d04444;
}

.logout-link:hover {
  background: #feecec;
  color: #c13b3b;
  border-color: transparent;
  box-shadow: none;
}

.logout-link:hover .sidebar-icon {
  color: #c13b3b;
}

.app-content-shell {
  min-width: 0;
}

.global-header {
  position: sticky;
  top: 0;
  z-index: 50;
}

.header-main {
  height: 64px;
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 0 24px;
  border-bottom: 1px solid rgba(61, 118, 229, .12);
  box-sizing: border-box;
}

.header-left-tools {
  display: flex;
  align-items: center;
  gap: 12px;
  flex: 1;
}

.header-actions {
  margin-left: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.context-nav {
  height: 46px;
  min-height: 46px;
  padding: 0 24px;
  box-sizing: border-box;
}

.primary-nav,
.plain-nav {
  display: none !important;
}

.search-command {
  min-width: 160px;
}

.approval-row.active {
  box-shadow: inset 3px 0 var(--blue);
}

.detail-actions .button.dark,
.button.primary {
  background: var(--blue);
}

.text-link,
.eyebrow {
  color: var(--blue);
}

.experience-banner {
  background: var(--blue-soft);
}

.chart-fill {
  fill: rgba(76, 157, 255, .14);
}

.chart-line {
  stroke: var(--blue);
}

.timeline-dot.current {
  background: var(--blue);
}

.legend.sl {
  background: var(--purple-wash);
  color: var(--blue);
}

.empty-icon {
  background: var(--purple-soft);
  color: var(--blue);
}

.person-avatar {
  background: #e8f2ff;
  color: #2f79c6;
}

.user-avatar {
  background: #d9ecff;
}

.login-form input:focus {
  border-color: var(--blue);
  box-shadow: 0 0 0 4px rgba(76, 157, 255, .12);
}

/* Mobile Menu Drawer & Overlay Base Styles */
.mobile-menu-btn {
  display: none;
}

.mobile-close-btn {
  display: none;
  background: transparent;
  border: 0;
  padding: 8px;
  color: #7b95b8;
  cursor: pointer;
  border-radius: 8px;
  margin-left: auto;
}

.mobile-close-btn:hover {
  background: rgba(61, 118, 229, 0.08);
  color: #3d76e5;
}

.mobile-close-btn svg {
  width: 20px;
  height: 20px;
}

.sidebar-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 12, 22, 0.45);
  backdrop-filter: blur(4px);
  -webkit-backdrop-filter: blur(4px);
  z-index: 998;
  opacity: 0;
  pointer-events: none;
  transition: opacity 0.25s ease;
}

.sidebar-backdrop.active {
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1180px) {
  .app-shell {
    grid-template-columns: 240px 1fr;
  }

  .search-command span:nth-child(2),
  .search-command kbd,
  .user-chip>span:nth-child(2),
  .user-chip>span:last-child {
    display: none;
  }

  .context-nav {
    padding-left: 22px;
  }

  .filter-grid {
    grid-template-columns: repeat(3, 1fr);
  }

  .dashboard-grid.two-col {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 860px) {
  .mobile-menu-btn {
    display: grid !important;
  }

  .mobile-close-btn {
    display: flex;
    align-items: center;
    justify-content: center;
  }

  .sidebar {
    display: flex !important;
    position: fixed;
    top: 0;
    left: 0;
    bottom: 0;
    width: 270px;
    height: 100vh;
    height: 100dvh;
    z-index: 999;
    background: #ffffff;
    box-shadow: 6px 0 28px rgba(0, 0, 0, 0.16);
    transform: translateX(-100%);
    transition: transform 0.3s cubic-bezier(0.16, 1, 0.3, 1);
    overflow-y: auto;
    border-right: 1px solid var(--line);
  }

  .sidebar.open,
  .sidebar.mobile-show {
    transform: translateX(0);
  }

  .login-shell {
    grid-template-columns: 1fr;
  }

  .login-visual-panel {
    display: none;
  }

  .login-form-panel {
    min-height: 100vh;
    padding: 42px 24px 28px;
    max-width: 480px;
    margin: 0 auto;
  }

  .app-shell {
    grid-template-columns: 1fr;
  }

  .header-main {
    padding: 0 14px;
    gap: 8px;
  }

  .page-wrap,
  .page-wrap.wide-page {
    width: calc(100% - 24px);
    padding: 20px 0 50px;
  }

  .page-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 12px;
  }

  .split-review-layout {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .approval-detail {
    position: static;
    min-height: auto;
  }

  .filter-grid {
    grid-template-columns: 1fr 1fr;
  }

  .table-scroll {
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
  }

  .experience-banner {
    flex-direction: column;
    align-items: flex-start;
    gap: 12px;
  }

  .experience-banner button {
    width: 100%;
  }
}

@media (max-width: 600px) {
  .login-view {
    padding: 0;
  }

  .login-shell {
    border-radius: 0;
    min-height: 100vh;
  }

  .login-form-panel {
    padding: 32px 18px;
  }

  .context-nav {
    padding: 0 12px;
    gap: 4px;
    -webkit-overflow-scrolling: touch;
  }

  .context-nav a {
    padding: 6px 10px;
    font-size: 12px;
  }

  .header-actions {
    gap: 4px;
  }

  .round-action {
    width: 34px;
    height: 34px;
  }

  .user-avatar {
    width: 30px;
    height: 30px;
  }

  .user-chip {
    padding: 2px 4px;
  }

  .page-heading h1 {
    font-size: 24px;
  }

  .heading-actions {
    width: 100%;
    flex-direction: row;
    flex-wrap: wrap;
    gap: 8px;
  }

  .heading-actions .button {
    flex: 1;
    min-width: 120px;
    justify-content: center;
  }

  .metric-strip,
  .journey-grid {
    grid-template-columns: 1fr;
  }

  .filter-bar {
    flex-wrap: wrap;
    gap: 8px;
  }

  .filter-bar .search-field {
    width: 100%;
    min-width: 100%;
    flex: 1 1 100%;
  }

  .filter-chip {
    flex: 1 1 auto;
    justify-content: center;
  }

  .filter-grid {
    grid-template-columns: 1fr;
  }

  .approval-row {
    grid-template-columns: auto auto 1fr;
    gap: 8px;
    padding: 10px 12px;
  }

  .approval-meta {
    display: flex;
    flex-direction: column;
    align-items: flex-end;
    gap: 2px;
    font-size: 11px;
  }

  .detail-grid {
    grid-template-columns: 1fr;
  }

  .detail-header {
    flex-direction: column;
    align-items: flex-start;
    gap: 10px;
  }

  .detail-actions {
    flex-direction: column-reverse;
    gap: 8px;
  }

  .detail-actions .button {
    width: 100%;
  }

  .toast {
    top: 14px;
    bottom: auto;
    left: 16px;
    right: 16px;
    margin: 0 auto;
    width: auto;
    max-width: calc(100% - 32px);
    transform: translateY(-100px);
    z-index: 10000;
    text-align: center;
    padding: 11px 14px;
    font-size: 13px;
  }

  .toast.show {
    transform: translateY(0);
  }
}