.authenticated .workspace-switcher {
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease;
}

.authenticated .workspace-switcher:hover {
  border-radius: 12px;
  background: #f5f8f3;
}

.authenticated .workspace-switcher:focus-visible,
.authenticated .icon-button:focus-visible,
.authenticated .user-avatar:focus-visible {
  outline: 3px solid #82b99780;
  outline-offset: 3px;
}

.authenticated .sidebar .side-link {
  position: relative;
  gap: 11px;
}

.authenticated .sidebar .side-link .side-icon {
  display: grid;
  width: 31px;
  height: 31px;
  flex: 0 0 31px;
  place-items: center;
  border: 1px solid color-mix(in srgb, var(--side-accent, #52816a) 12%, white);
  border-radius: 10px;
  background: color-mix(in srgb, var(--side-soft, #edf4ed) 72%, white);
  color: var(--side-accent, #52816a);
  transition: transform .18s ease, background .18s ease, color .18s ease;
}

.authenticated .sidebar .side-link .side-icon svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.65;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.authenticated .sidebar .side-link:hover .side-icon {
  transform: translateY(-1px) scale(1.05);
}

.authenticated .sidebar .side-link.active .side-icon {
  border-color: var(--side-accent, #52816a);
  background: var(--side-accent, #52816a);
  color: #fff;
  box-shadow: 0 4px 9px color-mix(in srgb, var(--side-accent, #52816a) 22%, transparent);
}

.authenticated .sidebar .side-link[data-view="overview"] { --side-accent: #388365; --side-soft: #e7f2e8; }
.authenticated .sidebar .side-link[data-view="positions"] { --side-accent: #bf7654; --side-soft: #fbefe8; }
.authenticated .sidebar .side-link[data-view="candidates"] { --side-accent: #517eae; --side-soft: #eaf1f8; }
.authenticated .sidebar .side-link[data-view="applications"] { --side-accent: #836db4; --side-soft: #f1edfa; }
.authenticated .sidebar .side-link[data-view="interviews"] { --side-accent: #b77854; --side-soft: #f8efe7; }
.authenticated .sidebar .side-link[data-view="tasks"] { --side-accent: #4d927e; --side-soft: #e9f4f0; }
.authenticated .sidebar .side-link[data-view="employees"] { --side-accent: #538a76; --side-soft: #e9f3ed; }
.authenticated .sidebar .side-link[data-view="onboarding"] { --side-accent: #a77a4f; --side-soft: #f6f0e5; }
.authenticated .sidebar .side-link[data-view="attendance"] { --side-accent: #438c9a; --side-soft: #e9f4f6; }
.authenticated .sidebar .side-link[data-view="leave"] { --side-accent: #c67568; --side-soft: #fbefec; }
.authenticated .sidebar .side-link[data-view="payroll"] { --side-accent: #4e906e; --side-soft: #eaf4ed; }
.authenticated .sidebar .side-link[data-view="talent"] { --side-accent: #836db4; --side-soft: #f1edfa; }
.authenticated .sidebar .side-link[data-view="reports"] { --side-accent: #507eaa; --side-soft: #eaf1f8; }
.authenticated .sidebar .side-link[data-view="settings"] { --side-accent: #77818a; --side-soft: #eff1f1; }

.authenticated .header-tools {
  position: relative;
}

.authenticated .header-tools .icon-button {
  display: grid;
  width: 38px;
  height: 38px;
  place-items: center;
  border: 1px solid #e8ede7;
  border-radius: 12px;
  background: #fffefa;
  color: #65796e;
  cursor: pointer;
  transition: background .18s ease, border-color .18s ease, color .18s ease, transform .18s ease;
}

.authenticated .header-tools .icon-button:hover {
  transform: translateY(-1px);
  border-color: #ccddcc;
  background: #f4f8f2;
  color: #2f7457;
}

.authenticated .header-tools .icon-button svg {
  width: 18px;
  height: 18px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.authenticated .header-tools .icon-button i[hidden] {
  display: none;
}

.authenticated .user-avatar {
  width: 38px;
  height: 38px;
  cursor: pointer;
}

.account-menu,
.notifications-panel {
  position: absolute;
  z-index: 30;
  width: min(300px, calc(100vw - 24px));
  padding: 9px;
  border: 1px solid #e5ebe3;
  border-radius: 16px;
  background: #fffefa;
  box-shadow: 0 18px 48px #243d3224;
}

.account-menu[hidden],
.notifications-panel[hidden] {
  display: none !important;
}

.account-menu {
  top: 62px;
  right: 12px;
}

.account-menu-identity {
  display: grid;
  gap: 4px;
  padding: 11px 12px 13px;
  border-bottom: 1px solid #edf0ea;
}

.account-menu-identity b,
.popover-heading b {
  color: #2f473b;
  font-size: 13px;
}

.account-menu-identity small,
.popover-heading small {
  overflow: hidden;
  color: #8a968e;
  font-size: 10px;
  text-overflow: ellipsis;
}

.account-menu > button {
  display: flex;
  width: 100%;
  min-height: 40px;
  align-items: center;
  gap: 10px;
  padding: 0 11px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: #506258;
  font: 600 11px "DM Sans", "Segoe UI", sans-serif;
  text-align: left;
  cursor: pointer;
}

.account-menu > button:hover {
  background: #f2f6f0;
  color: #2d7455;
}

.account-menu > button:last-child {
  color: #a35b4b;
}

.account-menu > button svg {
  width: 16px;
  height: 16px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.notifications-panel {
  top: 49px;
  right: 46px;
  width: min(340px, calc(100vw - 24px));
}

.popover-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 9px 10px 12px;
  border-bottom: 1px solid #edf0ea;
}

.popover-heading > div {
  display: grid;
  gap: 4px;
}

.popover-heading > button {
  width: 28px;
  height: 28px;
  border: 0;
  border-radius: 8px;
  background: #f2f5ef;
  color: #758178;
  font-size: 19px;
  cursor: pointer;
}

.notification-item {
  display: grid;
  width: 100%;
  grid-template-columns: 9px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 12px 9px;
  border: 0;
  border-bottom: 1px solid #f0f2ed;
  background: transparent;
  color: #6d7d73;
  text-align: left;
  cursor: pointer;
}

.notification-item:hover {
  border-radius: 9px;
  background: #f5f8f3;
}

.notification-item > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.notification-item b {
  color: #3a5145;
  font-size: 11px;
}

.notification-item small,
.notifications-empty {
  color: #89958c;
  font-size: 10px;
  line-height: 1.5;
}

.notification-dot {
  width: 7px;
  height: 7px;
  margin-top: 4px;
  border-radius: 50%;
  background: #72a881;
}

.notifications-empty {
  margin: 0;
  padding: 20px 11px;
}

.global-search-dialog {
  padding: 3px;
}

.global-search-input {
  display: flex;
  min-height: 54px;
  align-items: center;
  gap: 12px;
  padding: 0 14px;
  border: 1px solid #dfe8de;
  border-radius: 13px;
  background: #f8faf6;
}

.global-search-input svg {
  width: 19px;
  height: 19px;
  flex: 0 0 auto;
  fill: none;
  stroke: #769080;
  stroke-width: 1.8;
  stroke-linecap: round;
}

.global-search-input input {
  width: 100%;
  min-width: 0;
  border: 0;
  outline: 0;
  background: transparent;
  color: #2d4539;
  font: 14px "DM Sans", "Segoe UI", sans-serif;
}

.global-search-input input::placeholder {
  color: #9aa59c;
}

.global-search-dialog kbd {
  padding: 3px 6px;
  border: 1px solid #e2e8e0;
  border-radius: 5px;
  background: white;
  color: #819087;
  font: 9px "DM Sans", "Segoe UI", sans-serif;
  white-space: nowrap;
}

.global-search-results {
  max-height: min(52vh, 430px);
  overflow-y: auto;
  padding: 7px 0;
}

.search-hint {
  margin: 0;
  padding: 18px 12px;
  color: #87948b;
  font-size: 11px;
  line-height: 1.6;
}

.search-result {
  display: grid;
  width: 100%;
  grid-template-columns: 34px minmax(0, 1fr) auto;
  align-items: center;
  gap: 10px;
  padding: 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: #6e7c72;
  text-align: left;
  cursor: pointer;
}

.search-result:hover,
.search-result:focus-visible {
  outline: 0;
  background: #f2f7f0;
}

.search-result-icon {
  display: grid;
  width: 32px;
  height: 32px;
  place-items: center;
  border: 1px solid #e3ebe1;
  border-radius: 10px;
  background: #fff;
  color: #56846b;
  font-size: 14px;
}

.search-result > span:nth-child(2) {
  display: grid;
  min-width: 0;
  gap: 3px;
}

.search-result b {
  overflow: hidden;
  color: #344b3e;
  font-size: 11px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result small {
  overflow: hidden;
  color: #8a968d;
  font-size: 9px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.search-result em {
  color: #91a096;
  font-size: 9px;
  font-style: normal;
  text-transform: capitalize;
}

.global-search-dialog footer {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 5px 2px;
  border-top: 1px solid #edf0ea;
  color: #98a198;
  font-size: 9px;
}

.settings-panel {
  margin-bottom: 16px;
}

.settings-section-heading {
  display: flex;
  align-items: center;
  gap: 13px;
  margin-bottom: 22px;
}

.settings-section-heading > div {
  flex: 1;
}

.settings-section-heading h2 {
  margin: 0 0 5px;
  color: #2d4539;
  font-size: 15px;
}

.settings-section-heading p {
  margin: 0;
  color: #849188;
  font-size: 11px;
}

.settings-avatar {
  display: grid;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  place-items: center;
  border: 1px solid #dce8da;
  border-radius: 14px;
  background: linear-gradient(145deg, #e6f1e4, #f8eee3);
  color: #47765c;
  font-size: 12px;
  font-weight: 800;
}

.settings-panel .form-field input[readonly] {
  background: #f1f3ef;
  color: #839087;
}

.settings-panel .settings-note {
  color: #8c978e;
  font-size: 10px;
  line-height: 1.5;
}

.settings-panel .settings-note.full {
  grid-column: 1 / -1;
  margin-top: -8px;
}

.settings-check {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #56695d;
}

.settings-check input {
  width: 16px;
  height: 16px;
  accent-color: #397956;
}

.hero-insight-card {
  position: absolute;
  right: -14px;
  bottom: 56px;
  z-index: 2;
  display: flex;
  min-width: 225px;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  border: 1px solid #e5e9dd;
  border-radius: 15px;
  background: #fffefa;
  box-shadow: 0 16px 38px #30473a20;
  transform: rotate(-2deg);
}

.hero-insight-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 11px;
  background: #e7f2e7;
  color: #568b69;
  font-size: 17px;
}

.hero-insight-card > span:nth-child(2) {
  display: grid;
  gap: 4px;
}

.hero-insight-card b {
  color: #31483b;
  font-size: 10px;
}

.hero-insight-card small {
  color: #849188;
  font-size: 8px;
}

.hero-insight-arrow {
  margin-left: auto;
  color: #5e9a72;
  font-size: 16px;
}

.metric-icon svg {
  width: 17px;
  height: 17px;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

@media (max-width: 900px) {
  .authenticated .header-tools .icon-button {
    display: grid;
  }
}

@media (max-width: 560px) {
  .authenticated .header-tools {
    gap: 5px;
  }

  .authenticated .header-tools .language-picker {
    display: none;
  }

  .authenticated .header-tools .icon-button {
    width: 32px;
    height: 32px;
  }

  .authenticated .header-tools .icon-button svg {
    width: 16px;
    height: 16px;
  }

  .authenticated .user-avatar {
    width: 32px;
    height: 32px;
  }

  .authenticated .app-header .workspace-switcher > span:nth-child(2),
  .authenticated .app-header .workspace-switcher > span:nth-child(3) {
    display: none;
  }

  .authenticated .app-header .workspace-switcher {
    padding-left: 0;
  }

  .account-menu {
    top: 54px;
    right: 6px;
  }

  .notifications-panel {
    top: 43px;
    right: 42px;
  }

  .hero-insight-card {
    right: 2px;
    bottom: 31px;
    min-width: 190px;
    padding: 9px 10px;
  }

  .global-search-dialog footer span:last-child {
    display: none;
  }

  .settings-section-heading {
    flex-wrap: wrap;
  }

  .settings-section-heading > div {
    min-width: calc(100% - 65px);
  }
}
