html {
  font-size: 14px;
}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

.validation-summary-valid {
  display: none;
}

a.navbar-brand {
  white-space: normal;
  text-align: center;
  word-break: break-all;
}

a {
  color: #0077cc;
}

.btn-primary {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.nav-pills .nav-link.active,
.nav-pills .show > .nav-link {
  color: #fff;
  background-color: #1b6ec2;
  border-color: #1861ac;
}

.border-top {
  border-top: 1px solid #e5e5e5;
}

.border-bottom {
  border-bottom: 1px solid #e5e5e5;
}

.box-shadow {
  box-shadow: 0 .25rem .75rem rgba(0, 0, 0, .05);
}

button.accept-policy {
  font-size: 1rem;
  line-height: inherit;
}

.footer {
  position: absolute;
  bottom: 0;
  width: 100%;
  white-space: nowrap;
  line-height: 60px;
}

.language-switcher {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.language-switcher__label {
  font-size: 0.8rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: #5f6f89;
}

.language-switcher__select {
  min-width: 7rem;
  padding: 0.4rem 2rem 0.4rem 0.75rem;
  border: 1px solid rgba(20, 33, 61, 0.12);
  border-radius: 999px;
  background-color: #ffffff;
  color: #14213d;
  font-size: 0.92rem;
}

.language-switcher--dark .language-switcher__label {
  color: rgba(233, 239, 249, 0.72);
}

.language-switcher--dark .language-switcher__select {
  border-color: rgba(244, 211, 123, 0.25);
  background: rgba(255, 255, 255, 0.08);
  color: #f8fbff;
}

.language-switcher--dark .language-switcher__select option {
  color: #14213d;
}

.auth-shell {
  background: #eef2f8;
  color: #14213d;
  --app-sidebar-width: 280px;
}

.app-topbar {
  position: sticky;
  top: 0;
  z-index: 1040;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 1rem 1.25rem;
  background: rgba(10, 20, 38, 0.94);
  color: #f8fbff;
  backdrop-filter: blur(18px);
}

.app-topbar__brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.app-topbar__brand strong,
.sidebar-brand__text strong {
  display: block;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.app-topbar__brand small,
.sidebar-brand__text small {
  display: block;
  color: rgba(231, 239, 255, 0.72);
  font-size: 0.72rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.app-topbar__mark,
.sidebar-brand__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  background: linear-gradient(135deg, #f4d37b, #c58e2b);
  color: #10213f;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  box-shadow: 0 12px 24px rgba(197, 142, 43, 0.32);
}

.app-menu-toggle {
  border: 1px solid rgba(244, 211, 123, 0.4);
  color: #f8fbff;
}

.app-menu-toggle:hover,
.app-menu-toggle:focus {
  color: #f8fbff;
  background: rgba(255, 255, 255, 0.08);
}

.app-sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  z-index: 1030;
  width: var(--app-sidebar-width);
  overflow-y: auto;
  background: linear-gradient(180deg, #10213f 0%, #0a1426 100%);
  box-shadow: 22px 0 40px rgba(9, 20, 39, 0.18);
  transition: transform 0.22s ease, box-shadow 0.22s ease;
}

.app-sidebar .position-sticky {
  min-height: 100vh;
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 1.25rem 1rem 1rem;
}

.sidebar-brand__link {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  text-decoration: none;
  min-width: 0;
}

.sidebar-brand__text {
  min-width: 0;
}

.app-topbar__logo,
.sidebar-brand__logo {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: 0.9rem;
  object-fit: contain;
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(244, 211, 123, 0.28);
  padding: 0.2rem;
  box-shadow: 0 10px 24px rgba(9, 20, 39, 0.18);
}

.app-nav-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.15rem;
  min-width: 1.15rem;
  height: 1.15rem;
  color: currentColor;
  flex-shrink: 0;
}

.app-nav-icon svg {
  width: 100%;
  height: 100%;
  stroke: currentColor;
  fill: none;
  stroke-width: 1.8;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.auth-shell #sidebar .nav-link {
  display: flex;
  align-items: center;
  gap: 0.7rem;
  margin-bottom: 0.3rem;
  padding: 0.68rem 0.8rem;
  border-radius: 0.88rem;
  color: rgba(233, 239, 249, 0.78);
  font-weight: 600;
  font-size: 0.96rem;
  letter-spacing: 0.01em;
  text-transform: Capitalize;
  overflow-wrap: anywhere;
  transition: background-color 0.2s ease, color 0.2s ease, transform 0.2s ease;
}

.auth-shell #sidebar .nav-link .app-nav-icon {
  width: 1.2rem;
  min-width: 1.2rem;
}

.app-menu-toggle .app-nav-icon {
  width: 1.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
}

.app-sidebar-collapse-toggle,
.app-sidebar-reopen {
  align-items: center;
  justify-content: center;
  width: 2.25rem;
  min-width: 2.25rem;
  height: 2.25rem;
  border: 1px solid rgba(244, 211, 123, 0.35);
  border-radius: 0.78rem;
  color: #28e1a6;
  background: rgba(255, 255, 255, 0.13);
  box-shadow: none;
}

.app-sidebar-collapse-toggle:hover,
.app-sidebar-collapse-toggle:focus,
.app-sidebar-reopen:hover,
.app-sidebar-reopen:focus {
  color: #28e1a6;
  background: rgba(255, 255, 255, 0.13);
  border-color: rgba(249, 206, 88, 0.58);
}

.app-sidebar-collapse-toggle .app-nav-icon,
.app-sidebar-reopen .app-nav-icon {
  width: 1.05rem;
  min-width: 1.05rem;
  height: 1.05rem;
}

.auth-shell #sidebar .btn .app-nav-icon {
  margin-right: 0.5rem;
  vertical-align: text-bottom;
}

.auth-shell #sidebar .app-sidebar-collapse-toggle .app-nav-icon {
  margin-right: 0;
}

.auth-shell #sidebar .nav-link:hover,
.auth-shell #sidebar .nav-link:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.13);
  transform: translateX(2px);
}

.auth-shell #sidebar .nav-link.active {
  color: #ffffff;
  background: linear-gradient(135deg, rgba(249, 206, 88, 0.24), rgba(255, 255, 255, 0.12));
  box-shadow: inset 0 0 0 1px rgba(249, 206, 88, 0.28);
}

.sidebar-nav {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}

.sidebar-dashboard-link {
  margin-bottom: 0;
}

.sidebar-accordion {
  display: flex;
  flex-direction: column;
  gap: 0.7rem;
}

.sidebar-accordion__item {
  border: 0;
  background: transparent;
}

.sidebar-accordion__button {
  padding: 0.75rem 0.85rem;
  border-radius: 0.88rem !important;
  border: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.04);
  color: rgba(233, 239, 249, 0.88);
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
  box-shadow: none !important;
}

.sidebar-accordion__button:hover,
.sidebar-accordion__button:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none !important;
}

.sidebar-accordion__button:not(.collapsed) {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.06);
  border-color: rgba(255, 255, 255, 0.14);
  box-shadow: none !important;
}

.sidebar-accordion__button::after {
  filter: brightness(0) invert(1);
  opacity: 0.72;
}

.sidebar-accordion__button:not(.collapsed)::after {
  opacity: 0.95;
}

.sidebar-accordion__collapse {
  margin-top: 0.45rem;
}

.sidebar-accordion__body {
  padding: 0;
}

.auth-shell #sidebar .sidebar-section-label {
  margin: 1rem 0 0.45rem;
  padding: 0 0.8rem;
  color: rgba(244, 211, 123, 0.72);
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.14em;
  text-transform: uppercase;
}

.auth-shell #sidebar .sidebar-section-label:first-child {
  margin-top: 0.2rem;
}

.auth-shell .app-main {
  margin-left: var(--app-sidebar-width);
  padding: 2rem 1.5rem 5rem;
  transition: margin-left 0.22s ease, padding-left 0.22s ease;
}

.auth-shell .app-footer {
  margin-left: var(--app-sidebar-width);
  width: calc(100% - var(--app-sidebar-width));
  background: transparent;
  transition: margin-left 0.22s ease;
}

.app-sidebar-reopen {
  position: fixed;
  top: 1rem;
  left: 1rem;
  z-index: 1031;
  opacity: 0;
  pointer-events: none;
  transform: translateX(-0.35rem);
  transition: opacity 0.18s ease, transform 0.18s ease, background-color 0.18s ease, border-color 0.18s ease;
}

@media (min-width: 768px) {
  .auth-shell.sidebar-collapsed .app-sidebar {
    transform: translateX(calc(-1 * var(--app-sidebar-width)));
    box-shadow: none;
  }

  .auth-shell.sidebar-collapsed .app-main,
  .auth-shell.sidebar-collapsed .app-footer {
    margin-left: 0;
  }

  .auth-shell.sidebar-collapsed .app-footer {
    width: 100%;
  }

  .auth-shell.sidebar-collapsed .app-main {
    padding-left: 4.5rem;
  }

  .auth-shell.sidebar-collapsed .app-sidebar-reopen {
    opacity: 1;
    pointer-events: auto;
    transform: translateX(0);
  }
}

@media (max-width: 767.98px) {
  .auth-shell .app-main,
  .auth-shell .app-footer {
    margin-left: 0;
  }

  .auth-shell .app-footer {
    width: 100%;
  }

  .app-sidebar {
    width: min(82vw, 280px);
    box-shadow: 28px 0 50px rgba(9, 20, 39, 0.28);
    transition: none;
  }

  .language-switcher {
    width: 100%;
  }

  .language-switcher__select {
    width: 100%;
  }
}

.table-autofit {
  table-layout: auto;
  width: max-content;
  min-width: 100%;
  font-size: 0.84rem;
}

.table-autofit th,
.table-autofit td {
  width: auto !important;
  max-width: 12rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  vertical-align: middle;
}

.table-autofit .btn {
  padding: 0.24rem 0.48rem;
  font-size: 0.76rem;
}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}

body.public-shell.login-page {
  margin-bottom: 0;
  min-height: 100vh;
  color: #102347;
  background:
    radial-gradient(circle at 8% 12%, rgba(70, 183, 255, 0.28), transparent 26%),
    radial-gradient(circle at 92% 88%, rgba(46, 204, 113, 0.22), transparent 24%),
    linear-gradient(135deg, #e9f5ff 0%, #f7fbff 46%, #eafcf0 100%);
}

body.public-shell.login-page header .navbar {
  margin-bottom: 0 !important;
  background: rgba(255, 255, 255, 0.72) !important;
  border-bottom: 1px solid rgba(21, 94, 239, 0.08) !important;
  box-shadow: none !important;
  backdrop-filter: blur(18px);
}

body.public-shell.login-page .container > main {
  position: relative;
  z-index: 1;
}

.public-shell.login-page .container-fluid {
  padding-inline: 0;
}

.public-shell.login-page .container-fluid > main {
  position: relative;
  z-index: 1;
}

.login-page__stage {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: calc(100vh - 10rem);
  padding: clamp(1.25rem, 3vw, 3rem) clamp(1rem, 4vw, 3rem);
}

.login-page__stage--compact {
  min-height: calc(100vh - 9rem);
}

.login-page__row {
  position: relative;
  z-index: 1;
  width: min(100%, 88rem);
  margin: 0 auto;
}

.login-page__orb {
  position: fixed;
  z-index: 0;
  pointer-events: none;
  border-radius: 999px;
  filter: blur(18px);
  opacity: 0.8;
}

.login-page__orb--blue {
  top: 14%;
  left: -4rem;
  width: 14rem;
  height: 14rem;
  background: rgba(70, 183, 255, 0.24);
}

.login-page__orb--green {
  right: -3rem;
  bottom: 10%;
  width: 16rem;
  height: 16rem;
  background: rgba(46, 204, 113, 0.18);
}

.login-card {
  position: relative;
  overflow: hidden;
  width: 100%;
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 2rem;
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 28px 72px rgba(8, 23, 63, 0.16);
  backdrop-filter: blur(20px);
}

.login-card::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 0.5rem;
  background: linear-gradient(90deg, #155eef 0%, #46b7ff 48%, #2ecc71 100%);
}

.login-card__brand {
  padding: clamp(2rem, 4vw, 3rem) clamp(1.25rem, 4vw, 3rem) 1.5rem;
  text-align: center;
}

.login-card__logo-frame {
  display: flex;
  align-items: center;
  justify-content: center;
  margin-bottom: 1.15rem;
}

.login-card__logo {
  display: block;
  max-width: min(100%, 14rem);
  max-height: 5.5rem;
  width: auto;
  height: auto;
  padding: 0.75rem 1.1rem;
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.96);
  object-fit: contain;
  box-shadow: 0 16px 30px rgba(8, 23, 63, 0.12);
}

.login-card__logo--fallback {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5.5rem;
  height: 5.5rem;
  padding: 0;
  border-radius: 1.55rem;
  background: linear-gradient(135deg, #155eef 0%, #46b7ff 52%, #2ecc71 120%);
  color: #ffffff;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 2rem;
  font-weight: 700;
  box-shadow: 0 18px 32px rgba(21, 94, 239, 0.24);
}

.login-card__eyebrow,
.login-rules__eyebrow,
.login-business-picker__label {
  color: #1f5fd0;
  font-size: 0.75rem;
  font-weight: 800;
  letter-spacing: 0.16em;
  text-transform: uppercase;
}

.login-card__title {
  margin-bottom: 0.45rem;
  color: #102347;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 3.5vw, 2.9rem);
  font-weight: 700;
  line-height: 1.05;
}

.login-card__subtitle {
  color: #5a6b88;
  font-size: 1rem;
  line-height: 1.6;
}

.login-business-picker {
  max-width: 28rem;
  margin: 1.5rem auto 0;
}

.login-business-picker__label {
  margin-bottom: 0.55rem;
}

.login-business-picker__select {
  border-radius: 1rem;
  border-color: rgba(21, 94, 239, 0.16);
  background-color: rgba(255, 255, 255, 0.96);
  box-shadow: 0 6px 18px rgba(13, 76, 204, 0.05);
}

.login-business-picker__select:focus,
.login-card .form-control:focus,
.login-card .form-select:focus {
  border-color: rgba(70, 183, 255, 0.65);
  box-shadow: 0 0 0 0.25rem rgba(70, 183, 255, 0.18);
}

.login-card__body {
  padding: 0 clamp(1.25rem, 4vw, 3rem) clamp(1.5rem, 4vw, 2.5rem);
}

.login-card__body--compact {
  padding-top: 0;
}

.login-message,
.login-form__validation,
.login-rules__empty {
  border-radius: 1rem;
}

.login-form {
  max-width: 32rem;
  margin: 0 auto;
}

.login-form .form-control,
.login-form .form-select {
  border-radius: 1rem;
  border-color: rgba(21, 94, 239, 0.14);
  background-color: rgba(255, 255, 255, 0.98);
}

.login-form .form-control-lg {
  min-height: calc(3.5rem + 2px);
  padding: 0.95rem 1rem;
}

.login-form__options {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  margin: 0.25rem 0 1rem;
}

.login-form__remember {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  margin: 0;
  color: #20314f;
  font-weight: 600;
}

.login-form__remember .form-check-input {
  float: none;
  margin: 0;
  border-color: rgba(21, 94, 239, 0.32);
}

.login-form__remember .form-check-input:checked {
  background-color: #155eef;
  border-color: #155eef;
}

.login-form__remember .form-check-label {
  cursor: pointer;
}

.login-form__actions {
  display: flex;
  justify-content: center;
  margin-top: 0.25rem;
}

.login-form__submit {
  min-width: 12.5rem;
  border: 0;
  border-radius: 999px;
  padding: 0.95rem 1.85rem;
  background: linear-gradient(135deg, #155eef 0%, #46b7ff 55%, #2ecc71 120%);
  box-shadow: 0 16px 32px rgba(21, 94, 239, 0.24);
}

.login-form__submit:hover,
.login-form__submit:focus {
  border: 0;
  transform: translateY(-1px);
  box-shadow: 0 18px 36px rgba(21, 94, 239, 0.28);
}

.login-form__links {
  margin-top: 0.95rem;
  text-align: center;
}

.login-form__forgot {
  color: #165ce0;
  font-weight: 700;
  text-decoration: none;
}

.login-form__forgot:hover,
.login-form__forgot:focus {
  color: #0d4fd4;
  text-decoration: underline;
}

.login-rules {
  margin-top: 1.75rem;
  padding-top: 1.25rem;
  border-top: 1px solid rgba(21, 94, 239, 0.12);
}

.login-rules__header {
  margin-bottom: 1rem;
  text-align: left;
}

.login-rules__title {
  margin: 0;
  color: #102347;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
}

.login-rules__panel {
  position: relative;
  overflow: hidden;
  padding: 1.2rem 1.2rem 1rem;
  border: 1px solid rgba(20, 123, 255, 0.12);
  border-radius: 1.5rem;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.96), rgba(241, 250, 255, 0.92));
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.7);
}

.login-rules__panel::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 0.35rem;
  background: linear-gradient(180deg, #155eef 0%, #46b7ff 52%, #2ecc71 100%);
}

.login-rules__panel--help {
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(232, 249, 242, 0.92));
}

.login-rules__body {
  padding-left: 0.25rem;
  color: #20314f;
  line-height: 1.75;
  white-space: pre-line;
}

.login-rules__meta {
  margin-top: 0.9rem;
  color: #6b7d97;
  font-size: 0.83rem;
}

.login-card__footer {
  padding: 0 1.5rem 1.5rem;
  color: #74839a;
}

@media (min-width: 992px) {
  .login-card {
    display: grid;
    grid-template-columns: minmax(18rem, 0.95fr) minmax(22rem, 1.05fr);
    align-items: stretch;
  }

  .login-card__brand {
    display: flex;
    flex-direction: column;
    align-items: flex-start;
    justify-content: center;
    min-height: 100%;
    padding: clamp(2.75rem, 4vw, 4rem);
    text-align: left;
    background:
      radial-gradient(circle at top left, rgba(70, 183, 255, 0.2), transparent 44%),
      linear-gradient(180deg, rgba(255, 255, 255, 0.42), rgba(231, 245, 255, 0.28));
  }

  .login-card__logo-frame {
    justify-content: flex-start;
  }

  .login-card__subtitle {
    max-width: 24rem;
  }

  .login-card__body {
    display: flex;
    align-items: center;
    padding: clamp(2.75rem, 4vw, 4rem);
    border-left: 1px solid rgba(21, 94, 239, 0.1);
  }

  .login-card__body--compact {
    padding-top: clamp(2.75rem, 4vw, 4rem);
  }

  .login-form {
    width: 100%;
    max-width: none;
  }

  .login-form__actions {
    justify-content: stretch;
  }

  .login-form__submit {
    width: 100%;
    min-width: 0;
  }

  .login-card__footer {
    grid-column: 1 / -1;
    padding: 0 2.5rem 2rem;
  }
}

@media (max-width: 767.98px) {
  body.public-shell.login-page header .navbar .container {
    gap: 0.75rem;
  }

  .login-page__stage,
  .login-page__stage--compact {
    min-height: auto;
  }

  .login-page__stage {
    padding-inline: 0.9rem;
  }

  .login-card__brand {
    padding: 1.75rem 1rem 1.2rem;
  }

  .login-card__body {
    padding: 0 1rem 1.35rem;
  }

  .login-form__submit {
    width: 100%;
    min-width: 0;
  }

  .login-form__options {
    justify-content: center;
  }
}

body.public-shell.landing-page {
  margin-bottom: 0;
  min-height: 100vh;
  color: #17313a;
  background: #f7f5ee;
}

.landing-page-shell {
  --landing-ink: #17313a;
  --landing-deep: #0d2b34;
  --landing-surface: #fffdf7;
  --landing-soft: #eef4ef;
  --landing-line: rgba(23, 49, 58, 0.14);
  --landing-muted: #607179;
  --landing-teal: #2b7a78;
  --landing-copper: #c97f35;
  --landing-red: #bf4e3a;
  --landing-gold: #e0ad4f;
  overflow: hidden;
  font-family: "Bahnschrift", "Segoe UI Variable Display", "Segoe UI", sans-serif;
}

.landing-nav {
  position: absolute;
  top: 0;
  left: 0;
  right: 0;
  z-index: 5;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  width: min(1180px, calc(100% - 2rem));
  margin: 0 auto;
  padding: 1rem 0;
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.75rem;
  color: #ffffff;
  text-decoration: none;
}

.landing-nav__brand strong,
.landing-footer strong {
  display: block;
  font-size: 1.04rem;
  font-weight: 800;
}

.landing-nav__brand small {
  display: block;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.68rem;
  font-weight: 800;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.landing-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  color: #ffffff;
  font-size: 1.2rem;
  font-weight: 900;
  backdrop-filter: blur(16px);
}

.landing-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.35rem;
  min-width: 0;
}

.landing-nav__links a {
  padding: 0.58rem 0.8rem;
  border-radius: 6px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  white-space: nowrap;
}

.landing-nav__links a:hover,
.landing-nav__links a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
}

.landing-nav__links .landing-nav__admin {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  min-height: 84vh;
  padding: 6.8rem 0 3.5rem;
  background:
    linear-gradient(90deg, rgba(9, 31, 39, 0.92) 0%, rgba(13, 43, 52, 0.8) 43%, rgba(13, 43, 52, 0.2) 100%),
    var(--landing-hero-image) center / cover no-repeat;
}

.landing-hero__scrim {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(0deg, rgba(13, 43, 52, 0.42), transparent 34%),
    repeating-linear-gradient(90deg, rgba(255, 255, 255, 0.05) 0 1px, transparent 1px 80px);
  pointer-events: none;
}

.landing-hero__content {
  position: relative;
  z-index: 2;
}

.landing-hero__copy {
  max-width: 45rem;
  color: #ffffff;
}

.landing-eyebrow {
  margin-bottom: 0.65rem;
  color: var(--landing-copper);
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.13em;
  text-transform: uppercase;
}

.landing-hero .landing-eyebrow {
  color: #f2c46d;
}

.landing-hero h1 {
  margin: 0;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 6.4rem);
  font-weight: 900;
  line-height: 0.96;
  text-shadow: 0 14px 38px rgba(0, 0, 0, 0.32);
}

.landing-hero__lead {
  max-width: 39rem;
  margin: 1.35rem 0 0;
  color: rgba(255, 255, 255, 0.85);
  font-size: clamp(1.05rem, 2vw, 1.35rem);
  line-height: 1.62;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.8rem;
  margin-top: 2rem;
}

.landing-btn {
  border-radius: 6px;
  font-weight: 800;
}

.landing-btn--primary,
.landing-price-card--featured .btn-primary {
  border-color: #d78c3a;
  background: #d78c3a;
  color: #171d21;
}

.landing-btn--primary:hover,
.landing-btn--primary:focus,
.landing-price-card--featured .btn-primary:hover,
.landing-price-card--featured .btn-primary:focus {
  border-color: #efb85d;
  background: #efb85d;
  color: #171d21;
}

.landing-btn--ghost {
  border-color: rgba(255, 255, 255, 0.48);
}

.landing-hero__metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  max-width: 36rem;
  margin: 2.6rem 0 0;
  border: 1px solid rgba(255, 255, 255, 0.2);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.1);
  backdrop-filter: blur(14px);
}

.landing-hero__metrics div {
  padding: 1rem;
}

.landing-hero__metrics div + div {
  border-left: 1px solid rgba(255, 255, 255, 0.16);
}

.landing-hero__metrics dt {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 900;
  line-height: 1;
}

.landing-hero__metrics dd {
  margin: 0.35rem 0 0;
  color: rgba(255, 255, 255, 0.72);
  font-size: 0.82rem;
  font-weight: 700;
}

.landing-section {
  padding: clamp(4rem, 8vw, 6.8rem) 0;
}

.landing-section--intro,
.landing-section--pricing {
  background: #f7f5ee;
}

.landing-section--workflow {
  background: #ffffff;
}

.landing-section--proof {
  background: #eef4ef;
}

.landing-section--contact {
  background: #f7f5ee;
}

.landing-section__header {
  max-width: 46rem;
  margin-bottom: 2rem;
}

.landing-section__header h2,
.landing-section--workflow h2,
.landing-section--contact h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(2rem, 4vw, 3.35rem);
  font-weight: 900;
  line-height: 1.06;
}

.landing-section__header p,
.landing-section__lead,
.landing-contact-panel p {
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.72;
}

.landing-section__header p {
  margin: 1rem 0 0;
}

.landing-feature-grid,
.landing-pricing-grid,
.landing-testimonial-grid {
  display: grid;
  gap: 1rem;
}

.landing-feature-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-feature-card,
.landing-price-card,
.landing-testimonial,
.landing-contact-panel {
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: var(--landing-surface);
}

.landing-feature-card {
  padding: 1.25rem;
  box-shadow: 0 18px 38px rgba(23, 49, 58, 0.08);
}

.landing-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.6rem;
  height: 2.6rem;
  margin-bottom: 1rem;
  border-radius: 6px;
  background: #17313a;
  color: #ffffff;
  font-size: 0.75rem;
  font-weight: 900;
}

.landing-feature-card:nth-child(2) .landing-feature-card__icon {
  background: #2b7a78;
}

.landing-feature-card:nth-child(3) .landing-feature-card__icon {
  background: #bf4e3a;
}

.landing-feature-card h3,
.landing-price-card h3 {
  margin: 0 0 0.65rem;
  color: var(--landing-ink);
  font-size: 1.35rem;
  font-weight: 900;
}

.landing-feature-card p,
.landing-price-card p,
.landing-testimonial blockquote,
.landing-footer p {
  color: var(--landing-muted);
  line-height: 1.65;
}

.landing-workflow-list {
  display: grid;
  gap: 0.75rem;
  margin-top: 1.4rem;
}

.landing-workflow-list div {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.85rem;
  align-items: start;
  padding: 1rem;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: #f7f5ee;
}

.landing-workflow-list span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 6px;
  background: var(--landing-teal);
  color: #ffffff;
  font-weight: 900;
}

.landing-workflow-list p {
  margin: 0;
  color: #4d6067;
  line-height: 1.58;
}

.landing-flow-figure {
  margin: 0;
  padding: 0.6rem;
  border: 1px solid var(--landing-line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 22px 48px rgba(23, 49, 58, 0.12);
}

.landing-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.landing-pricing-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.landing-price-card {
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.25rem;
}

.landing-price-card--featured {
  border-color: rgba(201, 127, 53, 0.55);
  background: #fff8e8;
  box-shadow: 0 20px 42px rgba(201, 127, 53, 0.16);
}

.landing-price-card__name {
  margin: 0 0 0.6rem;
  color: var(--landing-copper);
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-price-card ul {
  display: grid;
  gap: 0.55rem;
  margin: 1rem 0 1.4rem;
  padding-left: 1.1rem;
  color: #3f535a;
}

.landing-price-card .btn {
  margin-top: auto;
  border-radius: 6px;
  font-weight: 800;
}

.landing-price-card .btn-outline-primary {
  border-color: #2b7a78;
  color: #1e6464;
}

.landing-price-card .btn-outline-primary:hover,
.landing-price-card .btn-outline-primary:focus {
  background: #2b7a78;
  color: #ffffff;
}

.landing-logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  margin-bottom: 1.5rem;
}

.landing-logo-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4rem;
  border: 1px solid rgba(23, 49, 58, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.62);
  color: #40565d;
  font-weight: 900;
}

.landing-testimonial-grid {
  grid-template-columns: 1.15fr 0.85fr;
}

.landing-testimonial {
  margin: 0;
  padding: 1.35rem;
}

.landing-testimonial blockquote {
  margin: 0;
  font-size: 1.08rem;
}

.landing-testimonial figcaption {
  margin-top: 1rem;
  color: var(--landing-ink);
  font-weight: 900;
}

.landing-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: center;
  padding: clamp(1.4rem, 4vw, 2.4rem);
  background:
    linear-gradient(135deg, #fffdf7 0%, #f3f7f1 68%, #f7ead9 100%);
  box-shadow: 0 22px 48px rgba(23, 49, 58, 0.1);
}

.landing-contact-actions {
  display: grid;
  grid-template-columns: 1fr;
  gap: 0.65rem;
  min-width: min(100%, 18rem);
}

.landing-contact-link {
  color: #1e6464;
  font-weight: 800;
  text-decoration: none;
}

.landing-contact-link:hover,
.landing-contact-link:focus {
  color: #bf4e3a;
  text-decoration: underline;
}

.landing-footer {
  padding: 3rem 0 1.5rem;
  background: #102930;
  color: rgba(255, 255, 255, 0.78);
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.5fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.landing-footer strong,
.landing-footer span {
  color: #ffffff;
}

.landing-footer span {
  display: block;
  margin-bottom: 0.75rem;
  font-weight: 900;
}

.landing-footer a {
  display: block;
  margin-bottom: 0.45rem;
  color: rgba(255, 255, 255, 0.72);
  text-decoration: none;
}

.landing-footer a:hover,
.landing-footer a:focus {
  color: #f2c46d;
}

.landing-footer__bottom {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  font-size: 0.88rem;
}

@media (max-width: 991.98px) {
  .landing-nav {
    align-items: flex-start;
  }

  .landing-nav__links {
    overflow-x: auto;
    max-width: 70%;
    padding-bottom: 0.25rem;
  }

  .landing-feature-grid,
  .landing-pricing-grid,
  .landing-testimonial-grid,
  .landing-contact-panel,
  .landing-footer__grid {
    grid-template-columns: 1fr;
  }

  .landing-contact-actions {
    width: 100%;
  }
}

@media (max-width: 767.98px) {
  .landing-nav {
    position: relative;
    flex-direction: column;
    align-items: stretch;
    width: 100%;
    padding: 0.9rem 1rem;
    background: #102930;
  }

  .landing-nav__links {
    justify-content: flex-start;
    max-width: 100%;
  }

  .landing-hero {
    min-height: auto;
    padding: 4.5rem 0 3rem;
    background-position: 58% center;
  }

  .landing-hero h1 {
    font-size: clamp(2.6rem, 18vw, 4.5rem);
  }

  .landing-hero__metrics {
    grid-template-columns: 1fr;
  }

  .landing-hero__metrics div + div {
    border-top: 1px solid rgba(255, 255, 255, 0.16);
    border-left: 0;
  }

  .landing-section {
    padding: 3.2rem 0;
  }

  .landing-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Premium business landing redesign */
body.public-shell.landing-page {
  margin-bottom: 0;
  min-height: 100vh;
  color: #111827;
  background: #f9fafb;
}

.landing-page-shell {
  --landing-primary: #1e3a8a;
  --landing-primary-dark: #12245f;
  --landing-accent: #10b981;
  --landing-accent-strong: #059669;
  --landing-bg: #f9fafb;
  --landing-ink: #111827;
  --landing-muted: #5b677a;
  --landing-line: rgba(17, 24, 39, 0.1);
  --landing-card: rgba(255, 255, 255, 0.88);
  --landing-shadow: 0 24px 70px rgba(17, 24, 39, 0.11);
  --landing-soft-shadow: 12px 12px 28px rgba(30, 58, 138, 0.11), -12px -12px 28px rgba(255, 255, 255, 0.85);
  overflow: hidden;
  background:
    linear-gradient(180deg, #f9fafb 0%, #eef8f5 44%, #f9fafb 100%);
  font-family: "Open Sans", "Segoe UI", sans-serif;
  scroll-behavior: smooth;
}

.landing-page-shell h1,
.landing-page-shell h2,
.landing-page-shell h3,
.landing-nav__brand strong,
.landing-footer strong {
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  letter-spacing: 0;
}

.landing-nav {
  position: fixed;
  top: 1rem;
  left: 50%;
  right: auto;
  z-index: 1050;
  display: flex;
  align-items: center;
  justify-content: space-between;
  width: min(1180px, calc(100% - 2rem));
  margin: 0;
  padding: 0.7rem 0.85rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
  backdrop-filter: blur(18px);
  transform: translateX(-50%);
  transition: background-color 0.22s ease, box-shadow 0.22s ease, border-color 0.22s ease, top 0.22s ease;
}

.landing-nav.is-solid {
  top: 0.75rem;
  border-color: rgba(30, 58, 138, 0.12);
  background: rgba(255, 255, 255, 0.92);
  box-shadow: 0 18px 50px rgba(17, 24, 39, 0.12);
}

.landing-nav__brand {
  display: inline-flex;
  align-items: center;
  gap: 0.8rem;
  color: #ffffff;
  text-decoration: none;
}

.landing-nav.is-solid .landing-nav__brand {
  color: var(--landing-ink);
}

.landing-nav__brand strong {
  display: block;
  font-size: 1rem;
  font-weight: 800;
}

.landing-nav__brand small {
  display: block;
  color: rgba(255, 255, 255, 0.76);
  font-size: 0.68rem;
  font-weight: 800;
  text-transform: uppercase;
}

.landing-nav.is-solid .landing-nav__brand small {
  color: var(--landing-muted);
}

.landing-nav__mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.55rem;
  height: 2.55rem;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.22), rgba(255, 255, 255, 0.08));
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.landing-nav.is-solid .landing-nav__mark {
  border-color: rgba(16, 185, 129, 0.28);
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
}

.landing-nav__links {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 0.2rem;
}

.landing-nav__links a {
  padding: 0.6rem 0.82rem;
  border-radius: 999px;
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.9rem;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.landing-nav.is-solid .landing-nav__links a {
  color: #22314d;
}

.landing-nav__links a:hover,
.landing-nav__links a:focus {
  color: #ffffff;
  background: rgba(255, 255, 255, 0.14);
  transform: translateY(-1px);
}

.landing-nav.is-solid .landing-nav__links a:hover,
.landing-nav.is-solid .landing-nav__links a:focus {
  color: var(--landing-primary);
  background: rgba(30, 58, 138, 0.08);
}

.landing-nav__links .landing-nav__admin {
  border: 1px solid rgba(255, 255, 255, 0.32);
  color: #ffffff;
}

.landing-nav.is-solid .landing-nav__links .landing-nav__admin {
  border-color: rgba(16, 185, 129, 0.34);
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.landing-nav__toggle {
  display: none;
  align-items: center;
  justify-content: center;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.32);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
}

.landing-nav__toggle span {
  display: block;
  width: 1.05rem;
  height: 2px;
  margin: 2px 0;
  border-radius: 999px;
  background: #ffffff;
}

.landing-nav.is-solid .landing-nav__toggle {
  border-color: rgba(30, 58, 138, 0.16);
  background: rgba(30, 58, 138, 0.06);
}

.landing-nav.is-solid .landing-nav__toggle span {
  background: var(--landing-primary);
}

.landing-hero {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 100vh;
  padding: 8rem 0 5rem;
  background:
    radial-gradient(circle at 20% 16%, rgba(16, 185, 129, 0.3), transparent 30%),
    radial-gradient(circle at 76% 22%, rgba(125, 211, 252, 0.2), transparent 26%),
    linear-gradient(135deg, #1e3a8a 0%, #155d8f 46%, #10b981 100%);
  isolation: isolate;
}

.landing-hero::after {
  content: "";
  position: absolute;
  left: 0;
  right: 0;
  bottom: -1px;
  height: 8rem;
  background: linear-gradient(180deg, transparent, #f9fafb);
  z-index: -1;
}

.landing-hero__mesh {
  position: absolute;
  inset: 0;
  z-index: -1;
  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: 72px 72px;
  mask-image: linear-gradient(180deg, rgba(0, 0, 0, 0.75), transparent 88%);
}

.landing-hero__content {
  max-width: 58rem;
  margin: 0 auto;
  color: #ffffff;
  text-align: center;
  animation: landingRise 0.8s ease both;
}

.landing-eyebrow {
  margin-bottom: 0.8rem;
  color: #a7f3d0;
  font-size: 0.78rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-hero h1 {
  max-width: 58rem;
  margin: 0 auto;
  color: #ffffff;
  font-size: clamp(3rem, 7vw, 5.9rem);
  font-weight: 900;
  line-height: 1.02;
  text-shadow: 0 20px 48px rgba(3, 7, 18, 0.2);
}

.landing-hero__lead {
  max-width: 48rem;
  margin: 1.35rem auto 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(1.04rem, 2vw, 1.32rem);
  line-height: 1.7;
}

.landing-hero__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.85rem;
  margin-top: 2rem;
}

.landing-btn {
  position: relative;
  overflow: hidden;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 3.1rem;
  padding: 0.84rem 1.35rem;
  border-radius: 999px;
  font-weight: 900;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.landing-btn::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255, 255, 255, 0.28), transparent);
  transform: translateX(-110%);
  transition: transform 0.4s ease;
}

.landing-btn:hover,
.landing-btn:focus {
  transform: translateY(-2px);
}

.landing-btn:hover::after,
.landing-btn:focus::after {
  transform: translateX(110%);
}

.landing-btn--primary {
  border: 0;
  background: linear-gradient(135deg, #10b981, #34d399 48%, #d1fae5);
  color: #052e2b;
  box-shadow: 0 18px 36px rgba(16, 185, 129, 0.32);
}

.landing-btn--primary:hover,
.landing-btn--primary:focus {
  color: #052e2b;
  box-shadow: 0 22px 44px rgba(16, 185, 129, 0.38);
}

.landing-btn--glass {
  border: 1px solid rgba(255, 255, 255, 0.38);
  background: rgba(255, 255, 255, 0.1);
  color: #ffffff;
  backdrop-filter: blur(16px);
}

.landing-btn--glass:hover,
.landing-btn--glass:focus {
  border-color: rgba(255, 255, 255, 0.56);
  color: #ffffff;
  box-shadow: 0 18px 36px rgba(3, 7, 18, 0.18);
}

.landing-btn--outline {
  border: 1px solid rgba(30, 58, 138, 0.22);
  background: rgba(255, 255, 255, 0.7);
  color: var(--landing-primary);
}

.landing-btn--outline:hover,
.landing-btn--outline:focus {
  border-color: rgba(16, 185, 129, 0.48);
  color: #047857;
  box-shadow: 0 18px 36px rgba(30, 58, 138, 0.12);
}

.landing-hero__trust {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.65rem;
  max-width: 44rem;
  margin: 2.1rem auto 0;
}

.landing-hero__trust span {
  padding: 0.54rem 0.82rem;
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.1);
  color: rgba(255, 255, 255, 0.84);
  font-size: 0.82rem;
  font-weight: 800;
  backdrop-filter: blur(14px);
}

.landing-hero__illustration {
  position: absolute;
  inset: 0;
  pointer-events: none;
  z-index: 1;
}

.landing-orbit {
  position: absolute;
  display: grid;
  grid-template-columns: auto 1fr;
  column-gap: 0.72rem;
  align-items: center;
  min-width: 12rem;
  padding: 0.75rem;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.18), rgba(255, 255, 255, 0.1));
  color: #ffffff;
  box-shadow: 0 24px 56px rgba(3, 7, 18, 0.24);
  backdrop-filter: blur(20px);
  animation: landingFloat 7s ease-in-out infinite;
}

.landing-orbit strong,
.landing-orbit small {
  grid-column: 2;
}

.landing-orbit small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.landing-orbit strong {
  line-height: 1.08;
  text-shadow: 0 1px 2px rgba(3, 7, 18, 0.12);
}

.landing-orbit small {
  text-shadow: 0 1px 2px rgba(3, 7, 18, 0.14);
}

.landing-module-icon {
  grid-row: 1 / span 2;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 2.8rem;
  height: 2.8rem;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 0.95rem;
  background: rgba(255, 255, 255, 0.18);
  color: #d1fae5;
  box-shadow:
    inset 0 1px 0 rgba(255, 255, 255, 0.24),
    0 10px 20px rgba(3, 7, 18, 0.12);
  backdrop-filter: blur(10px);
}

.landing-module-icon .app-nav-icon {
  width: 1.35rem;
  min-width: 1.35rem;
  height: 1.35rem;
}

.landing-module-icon .app-nav-icon svg {
  stroke-width: 2.1;
}

.landing-module-icon--employee {
  background: linear-gradient(135deg, rgba(59, 130, 246, 0.4), rgba(147, 197, 253, 0.2));
  color: #eff6ff;
}

.landing-module-icon--attendance {
  background: linear-gradient(135deg, rgba(16, 185, 129, 0.42), rgba(110, 231, 183, 0.2));
  color: #ecfdf5;
}

.landing-module-icon--payroll {
  background: linear-gradient(135deg, rgba(20, 184, 166, 0.42), rgba(153, 246, 228, 0.2));
  color: #f0fdfa;
}

.landing-module-icon--reports {
  background: linear-gradient(135deg, rgba(99, 102, 241, 0.42), rgba(147, 197, 253, 0.2));
  color: #eef2ff;
}

.landing-orbit--employee {
  top: 22%;
  left: 6%;
}

.landing-orbit--attendance {
  top: 18%;
  right: 7%;
  animation-delay: -1.2s;
}

.landing-orbit--payroll {
  right: 8%;
  bottom: 22%;
  animation-delay: -2.2s;
}

.landing-orbit--reports {
  left: 7%;
  bottom: 22%;
  animation-delay: -3.3s;
}

.landing-section {
  padding: clamp(4rem, 8vw, 6.75rem) 0;
}

.landing-section--features,
.landing-section--pricing,
.landing-section--contact {
  background: #f9fafb;
}

.landing-section--workflow {
  background: linear-gradient(180deg, #ffffff 0%, #eef8f5 100%);
}

.landing-section--clients {
  background:
    linear-gradient(135deg, rgba(30, 58, 138, 0.08), rgba(16, 185, 129, 0.12)),
    #f9fafb;
}

.landing-section__header {
  max-width: 48rem;
  margin-bottom: 2.25rem;
}

.landing-section__header--center {
  margin-right: auto;
  margin-left: auto;
  text-align: center;
}

.landing-section__header h2,
.landing-section--contact h2 {
  margin: 0;
  color: var(--landing-ink);
  font-size: clamp(2.1rem, 4vw, 3.55rem);
  font-weight: 900;
  line-height: 1.08;
}

.landing-section__header p,
.landing-contact-panel p {
  margin: 1rem 0 0;
  color: var(--landing-muted);
  font-size: 1.04rem;
  line-height: 1.75;
}

.landing-feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
}

.landing-feature-card,
.landing-price-card,
.landing-testimonial,
.landing-contact-panel,
.landing-flow-figure,
.landing-timeline__step {
  border-radius: 8px;
}

.landing-feature-card {
  position: relative;
  overflow: hidden;
  min-height: 18.5rem;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, 0.8);
  background: var(--landing-card);
  box-shadow: var(--landing-soft-shadow);
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-feature-card::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(135deg, rgba(30, 58, 138, 0.14), rgba(16, 185, 129, 0.16));
  opacity: 0;
  transition: opacity 0.2s ease;
}

.landing-feature-card > * {
  position: relative;
  z-index: 1;
}

.landing-feature-card:hover,
.landing-feature-card:focus-within,
.landing-feature-card:focus {
  border-color: rgba(16, 185, 129, 0.36);
  box-shadow: 0 28px 70px rgba(30, 58, 138, 0.14);
  transform: translateY(-8px);
}

.landing-feature-card:hover::before,
.landing-feature-card:focus-within::before,
.landing-feature-card:focus::before {
  opacity: 1;
}

.landing-feature-card__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  margin-bottom: 1rem;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
  box-shadow: 0 16px 28px rgba(30, 58, 138, 0.2);
}

.landing-feature-card__icon .app-nav-icon {
  width: 1.45rem;
  min-width: 1.45rem;
  height: 1.45rem;
}

.landing-feature-card__icon .app-nav-icon svg {
  stroke-width: 2;
}

.landing-feature-card h3,
.landing-price-card h3 {
  margin: 0 0 0.7rem;
  color: var(--landing-ink);
  font-size: 1.24rem;
  font-weight: 900;
}

.landing-feature-card p,
.landing-price-card p,
.landing-testimonial blockquote,
.landing-footer p {
  color: var(--landing-muted);
  line-height: 1.68;
}

.landing-feature-card a {
  position: absolute;
  left: 1.3rem;
  right: 1.3rem;
  bottom: 1.2rem;
  color: var(--landing-primary);
  font-weight: 900;
  text-decoration: none;
}

.landing-feature-card a:hover,
.landing-feature-card a:focus {
  color: #047857;
}

.landing-timeline {
  position: relative;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin: 2rem 0 2.5rem;
}

.landing-timeline::before {
  content: "";
  position: absolute;
  top: 2.35rem;
  left: 8%;
  right: 8%;
  height: 2px;
  background: linear-gradient(90deg, var(--landing-primary), var(--landing-accent));
}

.landing-timeline__step {
  position: relative;
  z-index: 1;
  display: grid;
  gap: 0.55rem;
  min-height: 11rem;
  padding: 1.15rem;
  border: 1px solid rgba(30, 58, 138, 0.12);
  background: rgba(255, 255, 255, 0.82);
  box-shadow: 0 18px 44px rgba(30, 58, 138, 0.08);
  color: inherit;
  text-decoration: none;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.landing-timeline__step:hover,
.landing-timeline__step:focus {
  border-color: rgba(16, 185, 129, 0.4);
  box-shadow: 0 28px 60px rgba(30, 58, 138, 0.14);
  transform: translateY(-6px);
}

.landing-timeline__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.45rem;
  height: 2.45rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--landing-primary), var(--landing-accent));
  color: #ffffff;
  font-size: 0.78rem;
  font-weight: 900;
}

.landing-timeline__step strong {
  color: var(--landing-ink);
  font-family: "Poppins", sans-serif;
  font-weight: 900;
}

.landing-timeline__step small {
  color: var(--landing-muted);
  line-height: 1.55;
}

.landing-flow-figure {
  margin: 0;
  padding: 0.75rem;
  border: 1px solid rgba(30, 58, 138, 0.12);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: var(--landing-shadow);
}

.landing-flow-figure img {
  display: block;
  width: 100%;
  height: auto;
  border-radius: 6px;
}

.landing-pricing-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.landing-price-card {
  position: relative;
  display: flex;
  flex-direction: column;
  min-height: 100%;
  padding: 1.35rem;
  border: 1px solid rgba(30, 58, 138, 0.12);
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, rgba(30, 58, 138, 0.22), rgba(16, 185, 129, 0.22)) border-box;
  box-shadow: 0 18px 48px rgba(17, 24, 39, 0.08);
  transition: transform 0.2s ease, box-shadow 0.2s ease;
}

.landing-price-card:hover,
.landing-price-card:focus-within {
  box-shadow: 0 30px 70px rgba(16, 185, 129, 0.18);
  transform: translateY(-8px);
}

.landing-price-card--featured {
  border-color: transparent;
  background:
    linear-gradient(#ffffff, #ffffff) padding-box,
    linear-gradient(135deg, #1e3a8a, #10b981) border-box;
  box-shadow: 0 28px 78px rgba(30, 58, 138, 0.16);
}

.landing-price-card__name {
  margin: 0 0 0.6rem;
  color: #047857;
  font-size: 0.76rem;
  font-weight: 900;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.landing-price-card ul {
  display: grid;
  gap: 0.65rem;
  margin: 1rem 0 1.5rem;
  padding-left: 1.1rem;
  color: #334155;
}

.landing-price-card .landing-btn {
  width: 100%;
  margin-top: auto;
}

.landing-logo-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.8rem;
  margin-bottom: 1.6rem;
}

.landing-logo-strip span {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 4.25rem;
  border: 1px solid rgba(255, 255, 255, 0.82);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.58);
  color: #334155;
  font-weight: 900;
  box-shadow: var(--landing-soft-shadow);
  backdrop-filter: blur(16px);
}

.landing-testimonial-carousel {
  max-width: 58rem;
  margin: 0 auto;
  padding-bottom: 2.4rem;
}

.landing-testimonial-carousel .carousel-indicators {
  bottom: 0;
  margin-bottom: 0;
}

.landing-testimonial-carousel .carousel-indicators [data-bs-target] {
  width: 0.7rem;
  height: 0.7rem;
  border-radius: 999px;
  background-color: var(--landing-primary);
}

.landing-testimonial {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 1rem;
  align-items: center;
  min-height: 15rem;
  margin: 0;
  padding: clamp(1.25rem, 4vw, 2.25rem);
  border: 1px solid rgba(255, 255, 255, 0.75);
  background: rgba(255, 255, 255, 0.62);
  box-shadow: var(--landing-shadow);
  backdrop-filter: blur(18px);
}

.landing-testimonial__avatar {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 5rem;
  height: 5rem;
  border-radius: 999px;
  color: #ffffff;
  font-family: "Poppins", sans-serif;
  font-weight: 900;
  box-shadow: 0 18px 40px rgba(30, 58, 138, 0.18);
}

.landing-testimonial__avatar--one {
  background: linear-gradient(135deg, #1e3a8a, #60a5fa);
}

.landing-testimonial__avatar--two {
  background: linear-gradient(135deg, #047857, #34d399);
}

.landing-testimonial__avatar--three {
  background: linear-gradient(135deg, #334155, #10b981);
}

.landing-testimonial blockquote {
  margin: 0;
  color: #243044;
  font-size: clamp(1.05rem, 2vw, 1.32rem);
  font-weight: 700;
}

.landing-testimonial figcaption {
  grid-column: 2;
  color: #047857;
  font-weight: 900;
}

.landing-contact-panel {
  display: grid;
  grid-template-columns: minmax(0, 0.9fr) minmax(18rem, 0.7fr);
  gap: 2rem;
  align-items: center;
  padding: clamp(1.3rem, 4vw, 2.5rem);
  border: 1px solid rgba(30, 58, 138, 0.12);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.96), rgba(240, 253, 250, 0.92)),
    #ffffff;
  box-shadow: var(--landing-shadow);
}

.landing-contact-panel__meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-top: 1.2rem;
}

.landing-contact-panel__meta a,
.landing-footer a {
  color: inherit;
  text-decoration: none;
}

.landing-contact-panel__meta a {
  padding: 0.58rem 0.85rem;
  border-radius: 999px;
  background: rgba(30, 58, 138, 0.07);
  color: var(--landing-primary);
  font-weight: 900;
}

.landing-lead-form {
  display: grid;
  gap: 0.85rem;
  padding: 1rem;
  border: 1px solid rgba(30, 58, 138, 0.1);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.landing-lead-form .form-control {
  border: 1px solid rgba(30, 58, 138, 0.13);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.95);
}

.landing-lead-form .form-control:focus {
  border-color: rgba(16, 185, 129, 0.7);
  box-shadow: 0 0 0 0.25rem rgba(16, 185, 129, 0.15);
}

.landing-lead-form__success {
  display: none;
  margin: 0;
  padding: 0.75rem 0.85rem;
  border-radius: 8px;
  background: rgba(16, 185, 129, 0.12);
  color: #047857;
  font-weight: 900;
}

.landing-lead-form.is-submitted .landing-lead-form__success {
  display: block;
  animation: landingPop 0.34s ease both;
}

.landing-footer {
  padding: 3rem 0 1.5rem;
  background:
    linear-gradient(135deg, #0f172a, #102a5c 58%, #064e3b);
  color: rgba(255, 255, 255, 0.78);
}

.landing-footer__grid {
  display: grid;
  grid-template-columns: 1.45fr repeat(3, minmax(0, 1fr));
  gap: 1.5rem;
}

.landing-footer strong,
.landing-footer span {
  display: block;
  color: #ffffff;
}

.landing-footer span {
  margin-bottom: 0.72rem;
  font-weight: 900;
}

.landing-footer a {
  display: block;
  margin-bottom: 0.48rem;
  color: rgba(255, 255, 255, 0.74);
}

.landing-footer a:hover,
.landing-footer a:focus {
  color: #a7f3d0;
}

.landing-footer__bottom {
  margin: 1.8rem 0 0;
  padding-top: 1rem;
  border-top: 1px solid rgba(255, 255, 255, 0.12);
  color: rgba(255, 255, 255, 0.62);
  font-size: 0.9rem;
}

@keyframes landingRise {
  from {
    opacity: 0;
    transform: translateY(18px);
  }
  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@keyframes landingFloat {
  0%,
  100% {
    transform: translateY(0);
  }
  50% {
    transform: translateY(-14px);
  }
}

@keyframes landingPop {
  from {
    opacity: 0;
    transform: scale(0.96);
  }
  to {
    opacity: 1;
    transform: scale(1);
  }
}

@media (max-width: 1199.98px) {
  .landing-orbit {
    opacity: 0.72;
    transform: scale(0.9);
  }
}

@media (max-width: 991.98px) {
  .landing-nav {
    top: 0.75rem;
    border-radius: 24px;
    flex-wrap: wrap;
  }

  .landing-nav__toggle {
    display: inline-flex;
    flex-direction: column;
  }

  .landing-nav__links {
    display: none;
    width: 100%;
    flex-direction: column;
    align-items: stretch;
    padding: 0.7rem 0 0.2rem;
  }

  .landing-nav__links.is-open {
    display: flex;
  }

  .landing-nav__links a {
    color: #ffffff;
  }

  .landing-nav.is-solid .landing-nav__links a {
    color: #22314d;
  }

  .landing-hero {
    min-height: auto;
    padding: 8.2rem 0 5rem;
  }

  .landing-hero__illustration {
    display: none;
  }

  .landing-feature-grid,
  .landing-pricing-grid,
  .landing-timeline,
  .landing-contact-panel,
  .landing-footer__grid {
    grid-template-columns: 1fr;
  }

  .landing-timeline::before {
    top: 0;
    bottom: 0;
    left: 2.35rem;
    right: auto;
    width: 2px;
    height: auto;
  }
}

@media (max-width: 767.98px) {
  .landing-nav {
    width: min(100% - 1rem, 42rem);
  }

  .landing-nav.is-solid {
    top: 0.5rem;
  }

  .landing-hero h1 {
    font-size: clamp(2.45rem, 13vw, 4rem);
  }

  .landing-logo-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .landing-testimonial {
    grid-template-columns: 1fr;
    text-align: center;
  }

  .landing-testimonial__avatar {
    margin: 0 auto;
  }

  .landing-testimonial figcaption {
    grid-column: 1;
  }
}

@media (max-width: 575.98px) {
  .landing-hero__actions,
  .landing-contact-panel__meta {
    flex-direction: column;
  }

  .landing-btn,
  .landing-contact-panel__meta a {
    width: 100%;
  }

  .landing-logo-strip {
    grid-template-columns: 1fr;
  }
}

@media (prefers-reduced-motion: reduce) {
  .landing-hero__content,
  .landing-orbit,
  .landing-lead-form.is-submitted .landing-lead-form__success {
    animation: none;
  }

  .landing-btn,
  .landing-feature-card,
  .landing-price-card,
  .landing-timeline__step,
  .landing-nav {
    transition: none;
  }
}



.employee-create {
  --employee-surface: rgba(255, 255, 255, 0.72);
  --employee-surface-strong: rgba(255, 255, 255, 0.84);
  --employee-border: rgba(100, 124, 168, 0.16);
  --employee-shadow: 0 24px 54px rgba(32, 52, 92, 0.12);
  --employee-ink: #1d2838;
  --employee-muted: #66768c;
  --employee-accent: #6177cf;
  --employee-accent-soft: #dff7f7;
  --employee-accent-strong: #4d64b8;
  --employee-success: #4fbe88;
  position: relative;
  display: grid;
  gap: 1.1rem;
  padding-bottom: 2rem;
}

.employee-create::before {
  content: "";
  position: absolute;
  inset: 9rem 0 auto auto;
  width: 18rem;
  height: 18rem;
  border-radius: 999px;
  background:
    radial-gradient(circle, rgba(132, 220, 212, 0.24), transparent 62%),
    radial-gradient(circle at 78% 22%, rgba(111, 135, 227, 0.18), transparent 48%);
  pointer-events: none;
  filter: blur(10px);
}

.employee-create__stepper,
.employee-create__scope,
.employee-create__actions,
.employee-panel,
.employee-accordion__item {
  position: relative;
  overflow: hidden;
  border: 1px solid var(--employee-border);
  background:
    linear-gradient(135deg, rgba(255, 255, 255, 0.86), rgba(236, 244, 255, 0.66)),
    #ffffff;
  box-shadow: var(--employee-shadow);
  backdrop-filter: blur(18px);
}

.employee-create__stepper {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.9rem;
  border-radius: 1.9rem;
}

.employee-create__step {
  position: relative;
  z-index: 0;
  display: flex;
  align-items: center;
  gap: 0.85rem;
  min-height: 4.4rem;
  padding: 0.85rem 0.95rem;
  border: 0;
  border-radius: 1.35rem;
  background: transparent;
  color: var(--employee-ink);
  text-align: left;
  transition: background-color 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.employee-create__step::after {
  content: "";
  position: absolute;
  top: 50%;
  left: calc(100% - 0.2rem);
  width: 1rem;
  height: 1px;
  background: linear-gradient(90deg, rgba(97, 119, 207, 0.45), rgba(135, 212, 210, 0.45));
  transform: translateY(-50%);
  pointer-events: none;
}

.employee-create__step:last-child::after {
  display: none;
}

.employee-create__step:hover,
.employee-create__step:focus-visible {
  color: var(--employee-accent-strong);
  transform: translateY(-1px);
}

.employee-create__step.is-active {
  background: linear-gradient(135deg, rgba(97, 119, 207, 0.14), rgba(143, 232, 224, 0.18));
  box-shadow: inset 0 0 0 1px rgba(97, 119, 207, 0.12);
}

.employee-create__step[aria-current="step"] {
  outline: none;
}

.employee-create__step-index {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  background: rgba(97, 119, 207, 0.12);
  color: var(--employee-accent-strong);
  font-size: 0.82rem;
  font-weight: 800;
  flex-shrink: 0;
}

.employee-create__step.is-active .employee-create__step-index {
  background: linear-gradient(135deg, var(--employee-accent), #83ddd4);
  color: #ffffff;
  box-shadow: 0 10px 20px rgba(97, 119, 207, 0.2);
}

.employee-create__step-copy {
  display: grid;
  gap: 0.16rem;
  min-width: 0;
}

.employee-create__step-copy strong {
  font-size: 0.98rem;
  line-height: 1.2;
}

.employee-create__step-copy small {
  color: var(--employee-muted);
  font-size: 0.78rem;
}

.employee-create__scope {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  width: fit-content;
  max-width: 100%;
  padding: 0.8rem 1rem;
  border-radius: 1.15rem;
  color: var(--employee-ink);
}

.employee-create__scope-label {
  color: var(--employee-muted);
  font-size: 0.84rem;
  font-weight: 700;
}

.employee-create__header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1.4rem;
}

.employee-create__eyebrow,
.employee-panel__eyebrow {
  margin: 0 0 0.55rem;
  color: var(--employee-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.employee-create__header h1 {
  margin: 0;
  color: var(--employee-ink);
  font-size: clamp(2rem, 4vw, 2.65rem);
  font-weight: 800;
  line-height: 1.05;
}

.employee-create__lede {
  max-width: 42rem;
  margin: 0.8rem 0 0;
  color: var(--employee-muted);
  font-size: 1rem;
  line-height: 1.7;
}

.employee-panel__header p,
.employee-subsection__header p,
.employee-create__actions-copy p,
.employee-photo-preview__note {
  margin: 0;
  color: var(--employee-muted);
  line-height: 1.65;
}

.employee-panel__badge {
  display: inline-flex;
  align-items: center;
  min-height: 2rem;
  padding: 0.35rem 0.72rem;
  border-radius: 999px;
  background: rgba(97, 119, 207, 0.12);
  color: var(--employee-accent-strong);
  font-size: 0.78rem;
  font-weight: 800;
}

.employee-create__message,
.employee-create__validation {
  margin-bottom: 0;
  border-radius: 1rem;
}

.employee-create__form {
  display: grid;
  gap: 1rem;
}

.employee-create__grid {
  display: grid;
  grid-template-columns: minmax(18rem, 0.92fr) minmax(24rem, 1.08fr);
  gap: 1.1rem;
  align-items: start;
}

.employee-create__sidebar,
.employee-create__main {
  display: grid;
  gap: 1rem;
}

.employee-panel,
.employee-accordion__item {
  border-radius: 1.6rem;
}

.employee-panel {
  padding: 1.15rem;
}

.employee-panel__header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1rem;
}

.employee-panel__header--split {
  align-items: center;
}

.employee-panel__header-actions {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  flex-wrap: wrap;
}

.employee-panel__toggle {
  white-space: nowrap;
}

.employee-panel__summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.75rem;
  margin-top: 0.9rem;
  padding: 0.8rem 0.95rem;
  border-radius: 1rem;
  background: rgba(97, 119, 207, 0.08);
  color: var(--employee-ink);
}

.employee-panel__summary strong {
  font-weight: 800;
}

.employee-panel--collapsible.is-collapsed {
  padding-bottom: 1rem;
}

.employee-panel--collapsible.is-collapsed .employee-panel__body {
  display: none;
}

.employee-panel__header h2,
.employee-create__actions h2,
.employee-subsection__header h3 {
  margin: 0;
  color: var(--employee-ink);
  font-weight: 800;
}

.employee-panel__header h2,
.employee-create__actions h2 {
  font-size: 1.32rem;
}

.employee-panel__badge--preview {
  background: rgba(82, 193, 136, 0.1);
  color: #278056;
}

.employee-panel__badge--preview.is-filled {
  background: rgba(82, 193, 136, 0.16);
  color: #1f6e4a;
}

.employee-import-journey {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.7rem;
  margin-bottom: 1rem;
}

.employee-import-journey__step {
  display: grid;
  gap: 0.35rem;
  padding: 0.8rem;
  border-radius: 1.1rem;
  border: 1px solid rgba(97, 119, 207, 0.1);
  background: rgba(255, 255, 255, 0.5);
}

.employee-import-journey__step span {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 1.7rem;
  height: 1.7rem;
  border-radius: 999px;
  background: rgba(97, 119, 207, 0.11);
  color: var(--employee-accent-strong);
  font-size: 0.76rem;
  font-weight: 800;
}

.employee-import-journey__step strong {
  color: var(--employee-ink);
  font-size: 0.88rem;
  line-height: 1.35;
}

.employee-import-journey__step.is-complete {
  border-color: rgba(82, 193, 136, 0.18);
  background: rgba(82, 193, 136, 0.08);
}

.employee-import-journey__step.is-complete span {
  background: rgba(82, 193, 136, 0.16);
  color: #1f6e4a;
}

.employee-import-journey__step.is-active {
  border-color: rgba(97, 119, 207, 0.2);
  background: linear-gradient(135deg, rgba(97, 119, 207, 0.12), rgba(143, 232, 224, 0.14));
}

.employee-import-journey__step.is-active span {
  background: linear-gradient(135deg, var(--employee-accent), #83ddd4);
  color: #ffffff;
}

.employee-dropzone {
  display: grid;
  justify-items: center;
  gap: 0.65rem;
  padding: 2rem 1.2rem;
  border: 1.5px dashed rgba(97, 119, 207, 0.26);
  border-radius: 1.45rem;
  background: rgba(255, 255, 255, 0.64);
  color: var(--employee-ink);
  text-align: center;
  cursor: pointer;
  transition: border-color 0.18s ease, transform 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.employee-dropzone:hover,
.employee-dropzone:focus-within,
.employee-dropzone.is-dragover {
  border-color: rgba(97, 119, 207, 0.48);
  background: rgba(255, 255, 255, 0.86);
  box-shadow: 0 18px 36px rgba(97, 119, 207, 0.1);
  transform: translateY(-1px);
}

.employee-dropzone__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 4.25rem;
  height: 4.25rem;
  border-radius: 1.4rem;
  background: linear-gradient(135deg, rgba(97, 119, 207, 0.12), rgba(143, 232, 224, 0.18));
  color: var(--employee-accent-strong);
  font-size: 1.85rem;
}

.employee-dropzone strong {
  font-size: 1.18rem;
}

.employee-dropzone span {
  max-width: 22rem;
  color: var(--employee-muted);
  line-height: 1.6;
}

.employee-dropzone__button {
  min-width: 8rem;
  padding: 0.72rem 1rem;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--employee-accent), var(--employee-accent-strong));
  color: #ffffff !important;
  font-weight: 800;
  box-shadow: 0 18px 32px rgba(97, 119, 207, 0.2);
}

.employee-import-meta {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 1rem;
  margin-top: 1rem;
}

.employee-import-meta__row {
  display: grid;
  gap: 0.18rem;
  min-width: 0;
}

.employee-import-meta__label {
  color: var(--employee-muted);
  font-size: 0.8rem;
  font-weight: 700;
}

.employee-import-meta__row strong {
  color: var(--employee-ink);
  font-size: 0.94rem;
  overflow-wrap: anywhere;
}

.employee-import-meta__button {
  min-width: 11rem;
  border: 0;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--employee-accent), var(--employee-accent-strong));
  box-shadow: 0 18px 32px rgba(97, 119, 207, 0.2);
}

.employee-import-meta__button:hover,
.employee-import-meta__button:focus {
  background: linear-gradient(135deg, #566dc4, #4459a7);
}

.employee-create .form-control,
.employee-create .form-select,
.employee-create .input-group-text {
  border-color: rgba(100, 124, 168, 0.18);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.84);
  color: var(--employee-ink);
  min-height: 3.15rem;
  box-shadow: none;
}

.employee-create textarea.form-control {
  min-height: 7.2rem;
  resize: vertical;
}

.employee-create .form-control[readonly] {
  background: rgba(247, 250, 255, 0.96);
  color: #445368;
}

.employee-create .form-control:focus,
.employee-create .form-select:focus {
  border-color: rgba(97, 119, 207, 0.46);
  box-shadow: 0 0 0 0.2rem rgba(97, 119, 207, 0.12);
}

.employee-create .input-group > .form-control,
.employee-create .input-group > .form-select {
  border-top-right-radius: 0;
  border-bottom-right-radius: 0;
}

.employee-create .input-group > .btn {
  border-top-left-radius: 0;
  border-bottom-left-radius: 0;
}

.employee-create .form-label {
  margin-bottom: 0.45rem;
  color: #324154;
  font-size: 0.87rem;
  font-weight: 700;
}

.employee-create .form-text,
.employee-create .text-danger {
  font-size: 0.8rem;
}

.employee-accordion__item {
  border: 1px solid var(--employee-border);
}

.employee-accordion__button {
  padding: 1.1rem 1.2rem;
  border-radius: 1.6rem !important;
  background: transparent;
  color: var(--employee-ink);
  box-shadow: none !important;
}

.employee-accordion__button:not(.collapsed) {
  background: linear-gradient(135deg, rgba(255, 255, 255, 0.06), rgba(143, 232, 224, 0.08));
  color: var(--employee-ink);
}

.employee-accordion__button::after {
  filter: saturate(0.7);
}

.employee-accordion__title {
  display: grid;
  gap: 0.18rem;
}

.employee-accordion__title small {
  color: var(--employee-accent-strong);
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.employee-accordion__title strong {
  font-size: 1.3rem;
  font-weight: 800;
  line-height: 1.15;
}

.employee-accordion__body {
  padding: 0 1.2rem 1.2rem;
}

.employee-photo-preview {
  display: grid;
  gap: 0.75rem;
  padding: 1rem;
  border: 1px solid rgba(97, 119, 207, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.56);
}

.employee-photo-preview__label {
  color: #324154;
  font-size: 0.84rem;
  font-weight: 800;
}

.employee-photo-preview__frame {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 18rem;
  padding: 1rem;
  border: 1px solid rgba(97, 119, 207, 0.14);
  border-radius: 1.2rem;
  background: linear-gradient(180deg, rgba(248, 251, 255, 0.96), rgba(232, 239, 251, 0.82));
}

.employee-photo-preview__frame:has(.employee-photo-preview__image[src*="placeholder-user"]) .employee-photo-preview__image {
  opacity: 0.82;
}

.employee-photo-preview__image {
  width: min(100%, 15rem);
  height: auto;
  object-fit: contain;
}

.employee-subsection {
  display: grid;
  gap: 1rem;
  margin-top: 1.2rem;
  padding-top: 1.1rem;
  border-top: 1px solid rgba(100, 124, 168, 0.12);
}

.employee-subsection__header {
  display: grid;
  gap: 0.3rem;
}

.employee-subsection__header h3 {
  font-size: 1.02rem;
}

.employee-document-card {
  display: grid;
  gap: 0.55rem;
  padding: 1rem;
  border: 1px solid rgba(100, 124, 168, 0.12);
  border-radius: 1.35rem;
  background: rgba(255, 255, 255, 0.56);
  height: 100%;
}

.employee-create__actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1.2rem;
  padding: 1.2rem;
  border-radius: 1.6rem;
}

.employee-create__actions-copy {
  display: grid;
  gap: 0.35rem;
  max-width: 30rem;
}

.employee-create__actions-buttons {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.7rem;
}

.employee-create__actions .btn {
  min-height: 3.2rem;
  border-radius: 999px;
  padding: 0.75rem 1.3rem;
  font-weight: 800;
}

.employee-create__actions .btn-primary {
  border: 0;
  background: linear-gradient(135deg, var(--employee-accent), var(--employee-accent-strong));
  box-shadow: 0 18px 32px rgba(97, 119, 207, 0.2);
}

.employee-create__actions .btn-primary:hover,
.employee-create__actions .btn-primary:focus {
  background: linear-gradient(135deg, #566dc4, #4459a7);
}

.employee-create__actions .btn-outline-secondary {
  border-color: rgba(100, 124, 168, 0.24);
  color: #4a5b73;
}

.employee-create__actions .btn-light {
  border: 1px solid rgba(100, 124, 168, 0.16);
  background: rgba(255, 255, 255, 0.8);
  color: var(--employee-ink);
}

@media (max-width: 1399.98px) {
  .employee-create__stepper {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-create__step::after {
    display: none;
  }
}

@media (max-width: 1199.98px) {
  .employee-create__grid {
    grid-template-columns: 1fr;
  }

  .employee-create__sidebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 991.98px) {
  .employee-create__header,
  .employee-create__actions {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-create__actions-copy {
    max-width: none;
  }

  .employee-create__actions-buttons {
    justify-content: stretch;
  }

  .employee-panel__header {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-panel__header-actions {
    justify-content: space-between;
  }
}

@media (max-width: 767.98px) {
  .employee-create {
    gap: 0.9rem;
  }

  .employee-create__stepper,
  .employee-create__sidebar {
    grid-template-columns: 1fr;
  }

  .employee-import-journey {
    grid-template-columns: 1fr;
  }

  .employee-import-meta {
    flex-direction: column;
    align-items: stretch;
  }

  .employee-import-meta__button,
  .employee-create__actions-buttons,
  .employee-create__actions .btn {
    width: 100%;
  }

  .employee-accordion__button {
    padding: 1rem;
  }

  .employee-accordion__body {
    padding: 0 1rem 1rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-create__step,
  .employee-dropzone,
  .employee-import-meta__button {
    transition: none;
  }
}

body.employee-profile-page {
  background:
    radial-gradient(circle at top left, rgba(52, 118, 255, 0.14), transparent 28%),
    linear-gradient(180deg, #edf3ff 0, #eef4fb 18rem, #f7f9fd 100%);
}

.employee-profile {
  --profile-ink: #18305d;
  --profile-muted: #64748b;
  --profile-surface: rgba(255, 255, 255, 0.92);
  --profile-surface-soft: rgba(239, 245, 255, 0.9);
  --profile-border: rgba(100, 124, 168, 0.18);
  --profile-shadow: 0 22px 48px rgba(20, 41, 78, 0.12);
  --profile-primary: #204a9e;
  --profile-primary-strong: #12387d;
  --profile-accent: #3d7bfd;
  display: grid;
  gap: 1.4rem;
  padding: 1.25rem 0 2rem;
  color: var(--profile-ink);
}

.employee-profile__topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.2rem 1.4rem;
  border-radius: 1.75rem;
  background:
    linear-gradient(135deg, rgba(23, 58, 138, 0.96), rgba(48, 104, 224, 0.9)),
    #173a8a;
  box-shadow: var(--profile-shadow);
}

.employee-profile__workspace {
  display: inline-flex;
  align-items: center;
  gap: 0.95rem;
  min-width: 0;
  color: #fff;
}

.employee-profile__workspace-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.18);
  font-size: 1.1rem;
}

.employee-profile__workspace-copy {
  display: grid;
  min-width: 0;
}

.employee-profile__workspace-label {
  font-size: 0.82rem;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.72);
}

.employee-profile__workspace-copy strong {
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.15rem;
  font-weight: 700;
  color: #fff;
}

.employee-profile__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.8rem;
}

.employee-profile__action {
  display: inline-flex;
  align-items: center;
  gap: 0.65rem;
  min-height: 3.1rem;
  padding: 0.7rem 1.2rem;
  border-radius: 1rem;
  border: 1px solid transparent;
  font-weight: 700;
  box-shadow: none;
}

.employee-profile__action--secondary {
  background: rgba(17, 24, 39, 0.24);
  border-color: rgba(255, 255, 255, 0.14);
  color: #fff;
}

.employee-profile__action--secondary:hover,
.employee-profile__action--secondary:focus {
  background: rgba(17, 24, 39, 0.34);
  color: #fff;
}

.employee-profile__action--primary {
  background: linear-gradient(135deg, #4b89ff, #2e6ce7);
  border-color: rgba(255, 255, 255, 0.16);
  color: #fff;
}

.employee-profile__action--primary:hover,
.employee-profile__action--primary:focus {
  background: linear-gradient(135deg, #3f7af0, #255dcb);
  color: #fff;
}

.employee-profile__message,
.employee-profile__empty,
.employee-profile__summary,
.employee-profile__section-card,
.employee-profile__tabs-shell {
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
}

.employee-profile__message,
.employee-profile__empty,
.employee-profile__summary,
.employee-profile__tabs-shell,
.employee-profile__section-card {
  border-radius: 1.75rem;
}

.employee-profile__message {
  margin: 0;
}

.employee-profile__empty {
  display: grid;
  justify-items: start;
  gap: 0.9rem;
  padding: 2rem;
}

.employee-profile__empty h1 {
  margin: 0;
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(1.8rem, 2.2vw, 2.4rem);
  color: var(--profile-primary-strong);
}

.employee-profile__empty p {
  max-width: 44rem;
  margin: 0;
  color: var(--profile-muted);
}

.employee-profile__summary {
  padding: 1.4rem;
}

.employee-profile__identity {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 1.5rem;
  align-items: center;
}

.employee-profile__avatar-shell {
  position: relative;
  width: 14rem;
  max-width: 100%;
}

.employee-profile__avatar {
  width: 100%;
  aspect-ratio: 1 / 1;
  border-radius: 2.25rem;
  object-fit: cover;
  background: linear-gradient(180deg, #edf3ff, #dbe8ff);
  box-shadow: inset 0 0 0 1px rgba(33, 77, 164, 0.08);
}

.employee-profile__avatar--fallback {
  display: flex;
  align-items: center;
  justify-content: center;
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 3.2rem;
  font-weight: 800;
  color: var(--profile-primary-strong);
  background:
    radial-gradient(circle at 30% 20%, rgba(255, 255, 255, 0.92), rgba(210, 223, 247, 0.96)),
    #dce7fb;
}

.employee-profile__avatar-badge {
  position: absolute;
  right: 0.75rem;
  bottom: 0.75rem;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 2.4rem;
  height: 2.4rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #2458b3, #3b82f6);
  box-shadow: 0 12px 24px rgba(33, 77, 164, 0.22);
}

.employee-profile__identity-copy {
  display: grid;
  gap: 0.7rem;
}

.employee-profile__eyebrow {
  margin: 0;
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: #6d84b4;
}

.employee-profile__identity-copy h1 {
  margin: 0;
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: clamp(2rem, 4vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
  color: var(--profile-primary-strong);
}

.employee-profile__roleline,
.employee-profile__employee-id {
  font-size: 1.08rem;
  color: var(--profile-ink);
}

.employee-profile__roleline span {
  margin: 0 0.35rem;
  color: #96a5c4;
}

.employee-profile__employee-id {
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(133, 151, 188, 0.24);
  color: var(--profile-muted);
}

.employee-profile__metrics {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.8rem;
}

.employee-profile__metric {
  display: grid;
  gap: 0.45rem;
  min-height: 5.6rem;
  padding: 1.05rem 1.1rem;
  border-radius: 1.2rem;
  color: #fff;
  background: linear-gradient(135deg, #214a9d, #2f67d1);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.06);
}

.employee-profile__metric--neutral {
  color: var(--profile-primary-strong);
  background: linear-gradient(180deg, #eef3fb, #dde6f3);
}

.employee-profile__metric-label,
.employee-profile__info-label {
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.employee-profile__metric strong,
.employee-profile__info-value,
.employee-profile__detail-card strong,
.employee-profile__education-tile strong {
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
}

.employee-profile__detail-link {
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.05rem;
  line-height: 1.3;
  font-weight: 600;
  color: #155eef;
  text-decoration: none;
  overflow-wrap: anywhere;
}

.employee-profile__detail-link:hover,
.employee-profile__detail-link:focus-visible {
  color: #0d52d6;
  text-decoration: underline;
  text-underline-offset: 0.16em;
}

.employee-profile__metric strong {
  font-size: 1.45rem;
}

.employee-profile__tabs-shell {
  padding: 0.6rem;
}

.employee-profile__tabs {
  gap: 0.7rem;
}

.employee-profile__tabs .nav-link {
  position: relative;
  min-width: 10.5rem;
  padding: 0.95rem 1.35rem;
  border-radius: 1rem;
  border: 1px solid rgba(132, 152, 194, 0.18);
  font-weight: 700;
  color: var(--profile-primary-strong);
  background: rgba(240, 245, 255, 0.78);
}

.employee-profile__tabs .nav-link.active {
  color: #fff;
  background: linear-gradient(135deg, #173b87, #244f9d);
  box-shadow: 0 14px 28px rgba(26, 63, 139, 0.18);
}

.employee-profile__tabs .nav-link.active::after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: -0.9rem;
  width: 1.25rem;
  height: 1.25rem;
  background: #244f9d;
  transform: translateX(-50%) rotate(45deg);
  border-radius: 0.18rem;
}

.employee-profile__tab-content {
  display: grid;
  gap: 1.25rem;
}

.employee-profile__tab-content > .tab-pane {
  display: none;
}

.employee-profile__tab-content > .active {
  display: grid;
  gap: 1.25rem;
}

.employee-profile__cards-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.employee-profile__info-card,
.employee-profile__detail-card {
  display: flex;
  gap: 1rem;
  padding: 1.25rem 1.3rem;
  border-radius: 1.45rem;
  border: 1px solid var(--profile-border);
  background: var(--profile-surface);
  box-shadow: var(--profile-shadow);
}

.employee-profile__info-card--document {
  grid-row: span 2;
  align-items: stretch;
  background:
    linear-gradient(180deg, rgba(245, 249, 255, 0.96), rgba(232, 240, 252, 0.92)),
    #f5f9ff;
}

.employee-profile__info-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 3rem;
  height: 3rem;
  border-radius: 1rem;
  color: #fff;
  background: linear-gradient(135deg, #224a9f, #316be0);
  box-shadow: 0 14px 28px rgba(36, 79, 157, 0.18);
}

.employee-profile__info-copy {
  display: grid;
  align-content: start;
  gap: 0.35rem;
  width: 100%;
}

.employee-profile__info-meta {
  margin: 0;
  color: var(--profile-muted);
}

.employee-profile__document-button {
  margin-top: 0.8rem;
  justify-self: start;
  min-width: 10rem;
  border-radius: 0.95rem;
  font-weight: 700;
}

.employee-profile__split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 0.95fr);
  gap: 1rem;
}

.employee-profile__split-grid--documents {
  grid-template-columns: minmax(0, 0.95fr) minmax(0, 1.05fr);
}

.employee-profile__section-card {
  padding: 1.35rem 1.45rem;
}

.employee-profile__section-head {
  display: flex;
  flex-wrap: wrap;
  align-items: end;
  justify-content: space-between;
  gap: 0.75rem;
  padding-bottom: 1rem;
  margin-bottom: 1rem;
  border-bottom: 1px solid rgba(133, 151, 188, 0.22);
}

.employee-profile__section-head h2 {
  margin: 0;
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.55rem;
  font-weight: 700;
  color: var(--profile-primary-strong);
}

.employee-profile__section-head p {
  margin: 0;
  color: var(--profile-muted);
}

.employee-profile__skills-grid {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.85fr);
  gap: 1rem;
  align-items: start;
}

.employee-profile__skills-column {
  display: grid;
  gap: 0.7rem;
}

.employee-profile__skill-chip,
.employee-profile__education-tile {
  display: flex;
  align-items: center;
  gap: 0.9rem;
  min-height: 4rem;
  padding: 0.9rem 1rem;
  border-radius: 1rem;
  background: var(--profile-surface-soft);
}

.employee-profile__skill-chip--empty {
  color: var(--profile-muted);
}

.employee-profile__skill-icon,
.employee-profile__education-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 2.25rem;
  height: 2.25rem;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #f6b93b, #f59e0b);
}

.employee-profile__education-icon {
  background: linear-gradient(135deg, #183c87, #2e6ce7);
}

.employee-profile__timeline {
  display: grid;
  gap: 1rem;
}

.employee-profile__timeline-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 0.95rem;
  align-items: start;
  padding-bottom: 1rem;
  border-bottom: 1px solid rgba(133, 151, 188, 0.2);
}

.employee-profile__timeline-item:last-child {
  padding-bottom: 0;
  border-bottom: 0;
}

.employee-profile__timeline-item strong {
  display: block;
  margin-bottom: 0.2rem;
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 1.2rem;
  color: var(--profile-primary-strong);
}

.employee-profile__timeline-item p,
.employee-profile__timeline-item span {
  margin: 0;
  color: var(--profile-muted);
}

.employee-profile__timeline-icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 3rem;
  height: 3rem;
  border-radius: 999px;
  color: #fff;
}

.employee-profile__timeline-icon--salary {
  background: linear-gradient(135deg, #3572e8, #2563eb);
}

.employee-profile__timeline-icon--joined {
  background: linear-gradient(135deg, #f6a623, #f59e0b);
}

.employee-profile__timeline-icon--record {
  background: linear-gradient(135deg, #20a778, #10b981);
}

.employee-profile__detail-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 1rem;
}

.employee-profile__contact-links {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.employee-profile__contact-link {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
  min-height: 2.85rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid rgba(132, 152, 194, 0.2);
  border-radius: 999px;
  background: rgba(240, 245, 255, 0.72);
  color: var(--profile-primary-strong);
  font-size: 0.92rem;
  font-weight: 700;
  text-decoration: none;
  transition: transform 0.18s ease, box-shadow 0.18s ease, border-color 0.18s ease, background-color 0.18s ease;
}

.employee-profile__contact-link:hover,
.employee-profile__contact-link:focus-visible {
  transform: translateY(-1px);
  border-color: rgba(49, 107, 224, 0.35);
  background: rgba(226, 237, 255, 0.9);
  box-shadow: 0 12px 24px rgba(36, 79, 157, 0.12);
  color: #155eef;
}

.employee-profile__contact-link i {
  width: 1rem;
  text-align: center;
}

.employee-profile__contact-link--disabled {
  opacity: 0.45;
  pointer-events: none;
}

.employee-profile__detail-card {
  flex-direction: column;
  gap: 0.45rem;
}

.employee-profile__detail-card--wide {
  grid-column: span 3;
}

.employee-profile__document-preview,
.employee-profile__document-stack {
  display: grid;
  gap: 1rem;
}

.employee-profile__document-image {
  display: flex;
  align-items: center;
  justify-content: center;
  width: min(100%, 18rem);
  aspect-ratio: 1 / 1;
  border-radius: 1.8rem;
  object-fit: cover;
  background:
    linear-gradient(180deg, rgba(238, 244, 255, 0.95), rgba(216, 228, 247, 0.96)),
    #edf4ff;
  box-shadow: inset 0 0 0 1px rgba(33, 77, 164, 0.08);
}

.employee-profile__document-image--placeholder {
  font-family: "Poppins", "Segoe UI Variable Display", "Segoe UI", sans-serif;
  font-size: 3rem;
  font-weight: 800;
  color: var(--profile-primary-strong);
}

.employee-profile__document-status {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: fit-content;
  max-width: 100%;
  padding: 0.55rem 0.85rem;
  border-radius: 999px;
  font-weight: 700;
  color: var(--profile-primary-strong);
  background: rgba(36, 79, 157, 0.08);
}

@media (max-width: 1399.98px) {
  .employee-profile__metrics {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .employee-profile__metric--neutral {
    grid-column: span 3;
  }
}

@media (max-width: 1199.98px) {
  .employee-profile__cards-grid,
  .employee-profile__detail-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-profile__info-card--document {
    grid-row: auto;
  }

  .employee-profile__split-grid,
  .employee-profile__split-grid--documents,
  .employee-profile__skills-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-profile__detail-card--wide {
    grid-column: span 2;
  }
}

@media (max-width: 991.98px) {
  .employee-profile__topbar,
  .employee-profile__identity {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-profile__topbar {
    display: grid;
  }

  .employee-profile__actions {
    justify-content: stretch;
  }

  .employee-profile__action {
    flex: 1 1 14rem;
    justify-content: center;
  }

  .employee-profile__identity {
    justify-items: center;
    text-align: center;
  }

  .employee-profile__employee-id {
    width: 100%;
  }

  .employee-profile__tabs .nav-link.active::after {
    display: none;
  }
}

@media (max-width: 767.98px) {
  .employee-profile {
    padding-top: 0.75rem;
  }

  .employee-profile__topbar,
  .employee-profile__summary,
  .employee-profile__section-card,
  .employee-profile__tabs-shell {
    border-radius: 1.35rem;
  }

  .employee-profile__workspace-copy strong {
    font-size: 1rem;
  }

  .employee-profile__identity-copy h1 {
    font-size: 2rem;
  }

  .employee-profile__metrics,
  .employee-profile__cards-grid,
  .employee-profile__detail-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .employee-profile__metric--neutral,
  .employee-profile__detail-card--wide {
    grid-column: auto;
  }

  .employee-profile__tabs .nav-link {
    min-width: 0;
    width: 100%;
  }

  .employee-profile__tabs {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .employee-profile__avatar-shell {
    width: min(100%, 11rem);
  }

  .employee-profile__document-image {
    width: 100%;
  }
}

@media (prefers-reduced-motion: reduce) {
  .employee-profile__action,
  .employee-profile__tabs .nav-link {
    transition: none;
  }
}

html[data-design-preview-active="true"] {
  font-size: calc(16px * var(--design-preview-font-scale, 1));
}

html[data-design-preview-active="true"] body {
  color: inherit;
}

html[data-design-preview-active="true"] .btn,
html[data-design-preview-active="true"] .form-control,
html[data-design-preview-active="true"] .form-select,
html[data-design-preview-active="true"] .input-group-text,
html[data-design-preview-active="true"] .form-check-input {
  border-radius: calc(0.6rem * var(--design-preview-radius-scale, 1));
}

html[data-design-preview-active="true"] .btn,
html[data-design-preview-active="true"] .form-control,
html[data-design-preview-active="true"] .form-select,
html[data-design-preview-active="true"] .input-group-text {
  padding:
    calc(0.5rem * var(--design-preview-control-scale, 1))
    calc(0.9rem * var(--design-preview-control-scale, 1));
  min-height: calc(2.75rem * var(--design-preview-control-scale, 1));
}

html[data-design-preview-active="true"] .btn.btn-sm,
html[data-design-preview-active="true"] .form-control-sm,
html[data-design-preview-active="true"] .form-select-sm {
  min-height: calc(2.1rem * var(--design-preview-control-scale, 1));
}

html[data-design-preview-active="true"] .btn.btn-lg,
html[data-design-preview-active="true"] .form-control-lg,
html[data-design-preview-active="true"] .form-select-lg {
  min-height: calc(3.35rem * var(--design-preview-control-scale, 1));
}

html[data-design-preview-active="true"] .card,
html[data-design-preview-active="true"] .login-card,
html[data-design-preview-active="true"] .preview-card,
html[data-design-preview-active="true"] .employee-profile__topbar,
html[data-design-preview-active="true"] .employee-profile__summary,
html[data-design-preview-active="true"] .employee-profile__section-card,
html[data-design-preview-active="true"] .employee-profile__tabs-shell,
html[data-design-preview-active="true"] .workspace-signal,
html[data-design-preview-active="true"] .accordion-item,
html[data-design-preview-active="true"] .table-responsive {
  border-radius: calc(1rem * var(--design-preview-radius-scale, 1));
}

html[data-design-preview-active="true"] textarea[data-design-preview-input="customCss"] {
  font-size: 0.875rem;
}

html[data-design-preview-active="true"] .card-body,
html[data-design-preview-active="true"] .login-card,
html[data-design-preview-active="true"] .login-card__body,
html[data-design-preview-active="true"] .preview-card,
html[data-design-preview-active="true"] .employee-profile__summary,
html[data-design-preview-active="true"] .employee-profile__section-card,
html[data-design-preview-active="true"] .employee-profile__tabs-shell,
html[data-design-preview-active="true"] .workspace-signal,
html[data-design-preview-active="true"] .accordion-body,
html[data-design-preview-active="true"] .request-preview,
html[data-design-preview-active="true"] .tm-preview,
html[data-design-preview-active="true"] .payroll-preview-card {
  padding: calc(1rem * var(--design-preview-spacing-scale, 1));
}

html[data-design-preview-active="true"] .login-card,
html[data-design-preview-active="true"] .preview-card,
html[data-design-preview-active="true"] .employee-profile__summary,
html[data-design-preview-active="true"] .employee-profile__section-card,
html[data-design-preview-active="true"] .employee-profile__tabs-shell,
html[data-design-preview-active="true"] .request-preview,
html[data-design-preview-active="true"] .tm-preview,
html[data-design-preview-active="true"] .payroll-preview-card {
  max-width: min(100%, var(--design-preview-surface-width, 100%));
}

html[data-design-preview-active="true"] a:not(.btn):not(.nav-link),
html[data-design-preview-active="true"] .text-primary {
  color: var(--design-preview-accent-color, #155eef) !important;
}

html[data-design-preview-active="true"] .btn-primary,
html[data-design-preview-active="true"] .nav-pills .nav-link.active,
html[data-design-preview-active="true"] .nav-pills .show > .nav-link {
  background-color: var(--design-preview-accent-color, #155eef);
  border-color: var(--design-preview-accent-color, #155eef);
}

html[data-design-preview-active="true"] .btn-outline-primary {
  color: var(--design-preview-accent-color, #155eef);
  border-color: color-mix(in srgb, var(--design-preview-accent-color, #155eef) 70%, #ffffff);
}

.design-preview-lab {
  position: fixed;
  left: 1rem;
  bottom: 1rem;
  z-index: 1200;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.75rem;
}

.design-preview-lab__toggle {
  padding: 0.75rem 1rem;
  border: 0;
  border-radius: 999px;
  background: #101828;
  color: #fff;
  box-shadow: 0 0.9rem 2rem rgba(15, 23, 42, 0.22);
  font-weight: 700;
}

.design-preview-lab__panel {
  width: min(24rem, calc(100vw - 2rem));
  padding: 1rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 1.1rem;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: 0 1.2rem 2.6rem rgba(15, 23, 42, 0.18);
  backdrop-filter: blur(12px);
}

.design-preview-lab__header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 1rem;
}

.design-preview-lab__header strong {
  display: block;
  color: #101828;
}

.design-preview-lab__header small {
  display: block;
  margin-top: 0.2rem;
  color: #667085;
  line-height: 1.45;
}

.design-preview-lab__close {
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 1.4rem;
  line-height: 1;
}

.design-preview-lab__field + .design-preview-lab__field {
  margin-top: 0.9rem;
}

.design-preview-lab__field label {
  display: block;
  margin-bottom: 0.35rem;
  color: #344054;
  font-size: 0.9rem;
  font-weight: 600;
}

.design-preview-lab__range-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.75rem;
  align-items: center;
}

.design-preview-lab__color-row {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 0.75rem;
  align-items: center;
}

.design-preview-lab__range-row span {
  min-width: 3.9rem;
  color: #155eef;
  font-size: 0.86rem;
  font-weight: 700;
  text-align: right;
}

.design-preview-lab__color-row span {
  color: #155eef;
  font-size: 0.86rem;
  font-weight: 700;
}

.design-preview-lab__color-row input[type="color"] {
  width: 3rem;
  height: 2.4rem;
  padding: 0.15rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.85rem;
  background: #fff;
}

.design-preview-lab__field textarea {
  width: 100%;
  min-height: 11rem;
  padding: 0.8rem 0.9rem;
  border: 1px solid #d0d5dd;
  border-radius: 0.85rem;
  background: #0f172a;
  color: #e2e8f0;
  font-family: Consolas, "Courier New", monospace;
  line-height: 1.5;
  resize: vertical;
}

.design-preview-lab__actions {
  display: flex;
  gap: 0.6rem;
  flex-wrap: wrap;
  margin-top: 1rem;
}

.design-preview-lab__status {
  margin: 0.85rem 0 0;
  color: #667085;
  font-size: 0.83rem;
  line-height: 1.5;
}

@media (max-width: 767.98px) {
  .design-preview-lab {
    left: 0.75rem;
    right: 0.75rem;
    bottom: 0.75rem;
  }

  .design-preview-lab__toggle,
  .design-preview-lab__panel {
    width: 100%;
  }
}

.preview-page {
  background:
    radial-gradient(circle at top left, rgba(21, 94, 239, 0.16), transparent 32rem),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f9 100%);
  min-height: 100vh;
}

.preview-shell {
  min-height: 100vh;
}

.preview-hero {
  display: grid;
  gap: 1.5rem;
  align-items: center;
  padding: 1.75rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.5rem;
  background: rgba(255, 255, 255, 0.9);
  box-shadow: 0 1.5rem 3rem rgba(15, 23, 42, 0.08);
}

.preview-eyebrow {
  display: inline-flex;
  margin-bottom: 0.75rem;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  background: rgba(21, 94, 239, 0.1);
  color: #155eef;
  font-size: 0.85rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  text-transform: uppercase;
}

.preview-title {
  margin-bottom: 0.75rem;
  color: #0f172a;
  font-size: clamp(2rem, 3vw, 3.4rem);
  font-weight: 800;
  line-height: 1.05;
}

.preview-lead {
  max-width: 56rem;
  color: #475467;
  font-size: 1.02rem;
}

.preview-actions {
  display: flex;
  gap: 0.85rem;
  flex-wrap: wrap;
}

.preview-callout {
  display: flex;
  gap: 0.75rem;
  flex-wrap: wrap;
  margin-top: 1rem;
  padding: 1rem 1.15rem;
  border: 1px solid rgba(21, 94, 239, 0.14);
  border-radius: 1rem;
  background: rgba(255, 255, 255, 0.82);
  color: #344054;
}

.preview-section {
  margin-top: 2rem;
}

.preview-section__header {
  margin-bottom: 1rem;
}

.preview-section__header h2 {
  margin-bottom: 0.35rem;
  color: #101828;
  font-size: 1.45rem;
  font-weight: 800;
}

.preview-section__header p {
  margin-bottom: 0;
  color: #667085;
}

.preview-card {
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  padding: 1.15rem;
  border: 1px solid rgba(15, 23, 42, 0.08);
  border-radius: 1.15rem;
  background: rgba(255, 255, 255, 0.94);
  box-shadow: 0 1rem 2rem rgba(15, 23, 42, 0.06);
}

.preview-card__top {
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  align-items: flex-start;
}

.preview-card__top h3 {
  margin: 0;
  color: #101828;
  font-size: 1.05rem;
  font-weight: 700;
}

.preview-badge {
  flex-shrink: 0;
  padding: 0.28rem 0.55rem;
  border-radius: 999px;
  font-size: 0.74rem;
  font-weight: 700;
}

.preview-badge--secure {
  background: rgba(15, 23, 42, 0.08);
  color: #0f172a;
}

.preview-badge--public {
  background: rgba(3, 152, 85, 0.12);
  color: #027a48;
}

.preview-card__route {
  padding: 0.7rem 0.85rem;
  border-radius: 0.85rem;
  background: #f8fafc;
  color: #155eef;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.9rem;
  word-break: break-word;
}

.preview-card__note {
  flex: 1;
  margin: 0;
  color: #475467;
}

@media (min-width: 992px) {
  .preview-hero {
    grid-template-columns: minmax(0, 1.6fr) auto;
  }
}

@media (max-width: 575.98px) {
  .preview-hero,
  .preview-card {
    padding: 1rem;
  }

  .preview-actions .btn,
  .preview-actions form {
    width: 100%;
  }
}

/* Page Design Lab v2 */
html[data-design-preview-active="true"] .btn {
  padding:
    calc(0.45rem * var(--design-preview-button-density, 1))
    calc(0.85rem * var(--design-preview-button-density, 1));
  min-height: calc(2.35rem * var(--design-preview-button-density, 1));
}

html[data-design-preview-active="true"] .form-control,
html[data-design-preview-active="true"] .form-select,
html[data-design-preview-active="true"] .input-group-text {
  padding:
    calc(0.45rem * var(--design-preview-input-density, 1))
    calc(0.75rem * var(--design-preview-input-density, 1));
  min-height: calc(2.45rem * var(--design-preview-input-density, 1));
}

html[data-design-preview-active="true"] .table > :not(caption) > * > * {
  padding:
    calc(0.62rem * var(--design-preview-table-density, 1))
    calc(0.72rem * var(--design-preview-table-density, 1));
}

html[data-design-preview-active="true"] .card,
html[data-design-preview-active="true"] .preview-page-card,
html[data-design-preview-active="true"] .table-responsive,
html[data-design-preview-active="true"] .accordion-item {
  border-radius: calc(8px * var(--design-preview-radius-scale, 1));
}

html[data-design-preview-active="true"] .card-body,
html[data-design-preview-active="true"] .preview-page-card,
html[data-design-preview-active="true"] .workspace-signal,
html[data-design-preview-active="true"] .request-preview,
html[data-design-preview-active="true"] .tm-preview,
html[data-design-preview-active="true"] .payroll-preview-card {
  padding: calc(1rem * var(--design-preview-spacing-scale, 1) * var(--design-preview-box-scale, 1));
}

.design-preview-lab {
  left: 1rem;
  right: auto;
  bottom: 1rem;
  gap: 0.5rem;
  max-width: calc(100vw - 2rem);
}

.design-preview-lab__toggle {
  border-radius: 8px;
  background: #1f2937;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.18);
}

.design-preview-lab__panel {
  width: min(27rem, calc(100vw - 2rem));
  max-height: min(82vh, 46rem);
  overflow: auto;
  padding: 0.9rem;
  border-radius: 8px;
  background: #ffffff;
}

.design-preview-lab__header {
  margin-bottom: 0.7rem;
}

.design-preview-lab__header strong {
  font-size: 1rem;
}

.design-preview-lab__header code {
  display: inline-block;
  margin-left: 0.25rem;
  color: #155eef;
  font-size: 0.78rem;
}

.design-preview-lab__context {
  display: flex;
  gap: 0.5rem;
  align-items: center;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
  color: #475467;
  font-size: 0.82rem;
}

.design-preview-lab__warning,
.preview-warning {
  display: grid;
  gap: 0.15rem;
  margin: 0.75rem 0;
  padding: 0.65rem 0.75rem;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.84rem;
}

.design-preview-lab__field + .design-preview-lab__field {
  margin-top: 0.65rem;
}

.design-preview-lab__field label {
  margin-bottom: 0.25rem;
  font-size: 0.82rem;
}

.design-preview-lab__range-row {
  grid-template-columns: minmax(0, 1fr) 3.75rem;
}

.design-preview-lab__field textarea {
  min-height: 9rem;
  border-radius: 8px;
  background: #111827;
}

.design-preview-lab__templates {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.45rem;
  margin-top: 0.75rem;
}

.design-preview-lab__templates .btn {
  min-height: 0;
  white-space: normal;
}

.design-preview-lab__actions {
  gap: 0.45rem;
}

.preview-status {
  display: inline-flex;
  align-items: center;
  width: max-content;
  padding: 0.22rem 0.48rem;
  border-radius: 999px;
  font-size: 0.73rem;
  font-weight: 700;
  line-height: 1.2;
}

.preview-status--designed {
  background: #dcfce7;
  color: #166534;
}

.preview-status--needs-ux {
  background: #fef3c7;
  color: #92400e;
}

.preview-status--plain-layout {
  background: #e0f2fe;
  color: #075985;
}

.preview-status--broken-layout {
  background: #fee2e2;
  color: #991b1b;
}

.preview-page {
  min-height: 100vh;
  background: #f6f7fb;
}

.preview-workspace {
  width: min(100%, 1500px);
  margin: 0 auto;
  padding: 1rem;
}

.preview-workspace__header {
  display: flex;
  gap: 1rem;
  align-items: flex-start;
  justify-content: space-between;
  padding: 0.9rem 0;
}

.preview-title {
  margin: 0.1rem 0 0.35rem;
  color: #111827;
  font-size: 1.85rem;
  font-weight: 800;
  line-height: 1.15;
}

.preview-eyebrow {
  margin: 0;
  padding: 0;
  border-radius: 0;
  background: transparent;
  color: #155eef;
  letter-spacing: 0;
  text-transform: none;
}

.preview-lead {
  max-width: 58rem;
  margin: 0;
  color: #475467;
  font-size: 0.95rem;
}

.preview-header-actions,
.preview-card-actions,
.preview-table-actions {
  display: flex;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.preview-scorebar {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0.6rem;
  margin-bottom: 0.75rem;
}

.preview-score {
  padding: 0.7rem 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.preview-score span {
  display: block;
  color: #111827;
  font-size: 1.35rem;
  font-weight: 800;
}

.preview-score strong {
  color: #667085;
  font-size: 0.78rem;
}

.preview-score--warning span {
  color: #b45309;
}

.preview-score--plain span {
  color: #0369a1;
}

.preview-score--broken span {
  color: #b91c1c;
}

.preview-toolbar {
  display: grid;
  grid-template-columns: minmax(18rem, 1.4fr) minmax(11rem, 0.65fr) minmax(10rem, 0.6fr) auto auto;
  gap: 0.6rem;
  align-items: end;
  margin-bottom: 0.8rem;
  padding: 0.75rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.preview-toolbar label {
  display: block;
  margin-bottom: 0.25rem;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
}

.preview-view-toggle {
  display: flex;
  gap: 0.35rem;
}

.preview-view-toggle .active {
  background: #1f2937;
  border-color: #1f2937;
  color: #ffffff;
}

.preview-workspace__body {
  display: grid;
  grid-template-columns: 15rem minmax(0, 1fr);
  gap: 0.8rem;
}

.preview-workspace__body.is-guide-collapsed {
  grid-template-columns: minmax(0, 1fr);
}

.preview-guide {
  position: sticky;
  top: 0.75rem;
  align-self: start;
  padding: 0.8rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.preview-guide__section {
  display: grid;
  gap: 0.35rem;
  color: #667085;
  font-size: 0.82rem;
}

.preview-guide__section + .preview-guide__section {
  margin-top: 0.8rem;
}

.preview-guide__section strong {
  color: #111827;
}

.preview-module {
  margin-bottom: 1rem;
}

.preview-module__header {
  display: flex;
  gap: 0.75rem;
  align-items: baseline;
  justify-content: space-between;
  margin-bottom: 0.45rem;
}

.preview-module__header h2 {
  margin: 0;
  color: #111827;
  font-size: 1.05rem;
  font-weight: 800;
}

.preview-module__header span {
  color: #667085;
  font-size: 0.82rem;
}

.preview-page-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 21rem), 1fr));
  gap: 0.7rem;
}

.preview-page-card {
  display: flex;
  min-height: 100%;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid #e5e7eb;
  background: #ffffff;
  box-shadow: 0 8px 18px rgba(15, 23, 42, 0.04);
}

.preview-page-card__top {
  display: flex;
  gap: 0.65rem;
  align-items: flex-start;
  justify-content: space-between;
}

.preview-page-card h3 {
  margin: 0 0 0.2rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.preview-page-card code,
.preview-table code {
  display: block;
  color: #155eef;
  font-size: 0.78rem;
  word-break: break-word;
}

.preview-page-meta {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0.45rem;
  margin: 0;
}

.preview-page-meta div {
  min-width: 0;
  padding: 0.45rem;
  border-radius: 8px;
  background: #f8fafc;
}

.preview-page-meta dt {
  color: #667085;
  font-size: 0.68rem;
  font-weight: 700;
  text-transform: uppercase;
}

.preview-page-meta dd {
  margin: 0.1rem 0 0;
  color: #111827;
  font-size: 0.8rem;
  font-weight: 700;
  word-break: break-word;
}

.preview-page-note {
  flex: 1;
  margin: 0;
  color: #475467;
  font-size: 0.86rem;
}

.preview-template-row {
  display: flex;
  gap: 0.4rem;
  flex-wrap: wrap;
}

.preview-template-row .btn {
  min-height: 0;
}

.preview-copy-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 0.45rem;
}

.preview-table {
  margin: 0;
  background: #ffffff;
}

.preview-table th {
  color: #344054;
  font-size: 0.76rem;
  text-transform: uppercase;
}

.preview-empty,
.preview-workspace-status {
  margin: 0.75rem 0 0;
  color: #667085;
  font-size: 0.9rem;
}

@media (max-width: 991.98px) {
  .preview-workspace__header {
    flex-direction: column;
  }

  .preview-scorebar {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .preview-toolbar {
    grid-template-columns: 1fr;
  }

  .preview-workspace__body,
  .preview-workspace__body.is-guide-collapsed {
    grid-template-columns: 1fr;
  }

  .preview-guide {
    position: static;
  }
}

@media (max-width: 575.98px) {
  .design-preview-lab {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 0.5rem;
  }

  .design-preview-lab__templates,
  .preview-copy-row,
  .preview-page-meta {
    grid-template-columns: 1fr;
  }

  .preview-scorebar {
    grid-template-columns: 1fr;
  }
}

/* HRM Visual Layout Builder */
.layout-builder-shell {
  position: fixed;
  right: 1rem;
  bottom: 1rem;
  z-index: 1210;
  max-width: calc(100vw - 2rem);
}

.layout-builder-shell__toggle {
  min-height: 2.6rem;
  padding: 0.55rem 0.85rem;
  border: 0;
  border-radius: 8px;
  background: #111827;
  color: #ffffff;
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.2);
  font-weight: 800;
}

.layout-builder-panel {
  width: min(28rem, calc(100vw - 2rem));
  max-height: min(86vh, 52rem);
  overflow: auto;
  padding: 0.9rem;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.22);
}

.layout-builder-panel__header {
  display: flex;
  gap: 0.75rem;
  align-items: flex-start;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.layout-builder-panel__header strong {
  display: block;
  color: #111827;
  font-size: 1rem;
}

.layout-builder-panel__header small {
  display: block;
  margin-top: 0.15rem;
  color: #667085;
  font-size: 0.8rem;
}

.layout-builder-panel__header code {
  color: #155eef;
  font-size: 0.78rem;
}

.layout-builder-panel__close {
  border: 0;
  background: transparent;
  color: #475467;
  font-size: 1.35rem;
  line-height: 1;
}

.layout-builder-panel__mode,
.layout-builder-panel__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.7rem;
}

.layout-builder-panel__grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.55rem;
  margin-bottom: 0.7rem;
}

.layout-builder-panel label,
.layout-builder-editor-group label {
  display: grid;
  gap: 0.25rem;
  min-width: 0;
  color: #344054;
  font-size: 0.78rem;
  font-weight: 700;
}

.layout-builder-panel .form-control,
.layout-builder-panel .form-select {
  min-height: 2.1rem;
  border-radius: 8px;
  font-size: 0.82rem;
}

.layout-builder-inspector {
  display: grid;
  gap: 0.65rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e5e7eb;
}

.layout-builder-inspector__summary {
  display: grid;
  gap: 0.15rem;
  padding: 0.55rem 0.65rem;
  border-radius: 8px;
  background: #f8fafc;
}

.layout-builder-inspector__summary strong {
  color: #111827;
  font-size: 0.95rem;
}

.layout-builder-inspector__summary span {
  color: #667085;
  font-size: 0.75rem;
  word-break: break-word;
}

.layout-builder-inspector__warning {
  padding: 0.55rem 0.65rem;
  border: 1px solid #fedf89;
  border-radius: 8px;
  background: #fffbeb;
  color: #92400e;
  font-size: 0.8rem;
  font-weight: 700;
}

.layout-builder-editor-group {
  display: grid;
  gap: 0.5rem;
  padding: 0.65rem;
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  background: #ffffff;
}

.layout-builder-editor-group > strong {
  color: #111827;
  font-size: 0.86rem;
}

.layout-builder-checks {
  display: flex !important;
  flex-direction: row !important;
  gap: 0.65rem !important;
  align-items: center;
  flex-wrap: wrap;
  color: #475467 !important;
  font-weight: 600 !important;
}

.layout-builder-import-export {
  display: grid;
  gap: 0.55rem;
  margin-top: 0.75rem;
  padding-top: 0.7rem;
  border-top: 1px solid #e5e7eb;
}

.layout-builder-import-export textarea {
  min-height: 6rem;
  font-family: Consolas, "Courier New", monospace;
  font-size: 0.76rem;
}

.layout-builder-status {
  margin: 0.65rem 0 0;
  color: #667085;
  font-size: 0.82rem;
  line-height: 1.45;
}

.layout-builder-overlay {
  position: fixed;
  z-index: 1205;
  display: none;
  pointer-events: none;
  border: 2px solid #155eef;
  border-radius: 8px;
  box-shadow: 0 0 0 3px rgba(21, 94, 239, 0.16);
}

.layout-builder-overlay.is-visible {
  display: block;
}

.layout-builder-overlay__label {
  position: absolute;
  left: -2px;
  top: -2.05rem;
  max-width: min(24rem, 80vw);
  padding: 0.32rem 0.5rem;
  border-radius: 8px;
  background: #155eef;
  color: #ffffff;
  font-size: 0.72rem;
  font-weight: 800;
  line-height: 1.2;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

html[data-layout-builder-mode="design"] [data-layout-component-id] {
  cursor: grab;
}

html[data-layout-builder-mode="design"] [data-layout-component-id]:hover {
  outline: 1px dashed rgba(21, 94, 239, 0.55);
  outline-offset: 2px;
}

.layout-builder-selected {
  outline: 2px solid #155eef !important;
  outline-offset: 3px !important;
}

.layout-builder-dragging {
  opacity: 0.45;
}

.layout-builder-drop-target {
  outline: 2px solid #039855 !important;
  outline-offset: 4px !important;
}

.layout-builder-required {
  scroll-margin-top: 5rem;
}

.layout-builder-hidden {
  display: none !important;
}

html[data-layout-builder-mode="design"] .layout-builder-hidden {
  display: revert !important;
  opacity: 0.38;
  filter: grayscale(0.5);
}

.layout-builder-disabled {
  opacity: 0.55;
  pointer-events: none;
}

html.layout-builder-preview-active body.auth-shell {
  background: #e5ebf3;
}

html.layout-builder-preview-active .app-main {
  margin-left: auto !important;
  margin-right: auto !important;
  outline: 1px solid rgba(21, 94, 239, 0.22);
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.16);
}

html[data-layout-preview-viewport="laptop"] .app-main {
  max-width: 1366px;
}

html[data-layout-preview-viewport="tablet"] .app-main {
  max-width: 820px;
}

html[data-layout-preview-viewport="mobile"] .app-main {
  max-width: 430px;
}

@media (max-width: 575.98px) {
  .layout-builder-shell {
    left: 0.5rem;
    right: 0.5rem;
    bottom: 4.1rem;
  }

  .layout-builder-shell__toggle,
  .layout-builder-panel {
    width: 100%;
  }

  .layout-builder-panel__grid {
    grid-template-columns: 1fr;
  }

  .layout-builder-overlay__label {
    top: 0;
    max-width: 70vw;
  }
}

