html.static-preview [class*="group-hover"][style*="opacity: 0"],
html.static-preview [class*="pointer-events-none"][style*="opacity: 0"],
html.static-preview [class*="pointer-events-none"][style*="opacity:0"] {
  opacity: 0 !important;
}

.employee-library-panel {
  width: 100%;
  max-width: 1280px;
  background-image: url("../images/employee-library-background.png");
  background-size: 100% 100%;
  background-repeat: no-repeat;
}

.scroll-reveal {
  will-change: opacity, transform;
}

html.modal-open,
html.modal-open body {
  overflow: hidden;
}

.employee-modal[hidden] {
  display: none;
}

.employee-modal {
  position: fixed;
  inset: 0;
  z-index: 10000;
  overflow-y: auto;
}

.employee-modal__overlay {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(4px);
}

.employee-modal__stage {
  position: relative;
  min-height: 100%;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 1rem;
}

.employee-modal__panel {
  position: relative;
  width: min(38.25rem, calc(100vw - 2rem));
  max-height: 95vh;
  overflow: hidden;
  border-radius: 1.5rem;
  background: #fff;
  box-shadow: 0 25px 80px rgba(15, 23, 42, 0.24);
  padding: 2rem;
  text-align: left;
  animation: employee-modal-in 0.2s ease-out;
}

.employee-modal__panel--listen {
  height: min(50rem, 90vh);
  display: flex;
  flex-direction: column;
}

.employee-modal__panel--login {
  width: min(33.75rem, calc(100vw - 2rem));
}

.employee-modal__close {
  position: absolute;
  top: 1rem;
  right: 1rem;
  width: 2rem;
  height: 2rem;
  border-radius: 999px;
  color: #64748b;
  background: #f8fafc;
  font-size: 1.25rem;
  line-height: 1;
  transition:
    color 0.2s ease,
    background-color 0.2s ease;
}

.employee-modal__close:hover {
  color: #2563eb;
  background: #eff6ff;
}

.employee-modal__head {
  padding-right: 2.5rem;
  margin-bottom: 1.5rem;
  text-align: center;
}

.employee-modal__eyebrow {
  margin-bottom: 0.5rem;
  color: #2563eb;
  font-size: 0.9375rem;
  font-weight: 700;
}

.employee-modal__head h2,
.employee-login h2 {
  color: #111827;
  font-size: 1.5rem;
  font-weight: 800;
}

.employee-modal__caption {
  margin-top: 0.625rem;
  color: #64748b;
  font-size: 0.875rem;
}

.employee-audio-card {
  display: flex;
  align-items: center;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem;
  border: 1px solid #dbeafe;
  border-radius: 1rem;
  background: linear-gradient(135deg, #f8fbff, #eef6ff);
}

.employee-audio-card__icon {
  width: 2.75rem;
  height: 2.75rem;
  flex: 0 0 auto;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  color: #fff;
  background: linear-gradient(135deg, #4a90e2, #6eb6ff);
  box-shadow: 0 10px 24px rgba(74, 144, 226, 0.28);
}

.employee-audio-card h3 {
  color: #111827;
  font-size: 0.9375rem;
  font-weight: 800;
}

.employee-audio-card p,
.employee-audio-card__time {
  color: #64748b;
  font-size: 0.8125rem;
}

.employee-audio-card__time {
  margin-left: auto;
  font-weight: 700;
}

.employee-modal__section {
  margin-bottom: 1rem;
}

.employee-modal__section h3 {
  margin-bottom: 0.5rem;
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
}

.employee-modal__section p {
  color: #64748b;
  font-size: 0.875rem;
  line-height: 1.7;
}

.employee-dialogue {
  flex: 1;
  min-height: 0;
  overflow-y: auto;
  padding: 1rem;
  border-radius: 0.875rem;
  background: #f8fbff;
  box-shadow: inset 0 0 0 1px #e5f0ff;
}

.employee-dialogue__row + .employee-dialogue__row {
  margin-top: 1rem;
}

.employee-dialogue__speaker {
  display: inline-flex;
  margin-bottom: 0.375rem;
  color: #2563eb;
  font-size: 0.8125rem;
  font-weight: 800;
}

.employee-dialogue__text {
  width: fit-content;
  max-width: 88%;
  padding: 0.75rem 0.875rem;
  border-radius: 0.875rem;
  color: #334155;
  background: #fff;
  box-shadow: 0 6px 18px rgba(50, 87, 139, 0.08);
  font-size: 0.875rem;
  line-height: 1.65;
}

.employee-form {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.employee-form label {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  color: #334155;
  font-size: 0.875rem;
  font-weight: 700;
}

.employee-form input,
.employee-form textarea {
  width: 100%;
  border: 1px solid #dbeafe;
  border-radius: 0.875rem;
  background: #f8fbff;
  padding: 0.875rem 1rem;
  color: #111827;
  font-size: 0.9375rem;
  outline: none;
}

.employee-form input:focus,
.employee-form textarea:focus {
  border-color: #60a5fa;
  box-shadow: 0 0 0 3px rgba(96, 165, 250, 0.18);
}

.employee-form__inline {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 0.75rem;
}

.employee-form__inline button {
  min-width: 7rem;
  border-radius: 0.875rem;
  color: #2563eb;
  background: #eff6ff;
  font-size: 0.875rem;
  font-weight: 700;
}

.employee-form__submit {
  margin-top: 0.5rem;
  width: 100%;
  border-radius: 999px;
  padding: 0.875rem 1rem;
  color: #fff;
  background: linear-gradient(90deg, #4a90e2, #6eb6ff);
  box-shadow: 0 12px 24px rgba(74, 144, 226, 0.22);
  font-weight: 800;
}

.employee-form__submit:disabled {
  opacity: 0.75;
}

.employee-form__check {
  flex-direction: row !important;
  align-items: center;
  font-weight: 500 !important;
}

.employee-form__check input {
  width: 1rem;
}

.employee-form__agreement {
  color: #64748b;
  font-size: 0.8125rem;
  text-align: center;
}

.employee-login {
  text-align: center;
}

.employee-login__logo {
  margin: 0 auto 1rem;
  width: 4.5rem;
  height: 4.5rem;
  display: flex;
  align-items: center;
  justify-content: center;
  border-radius: 1.25rem;
  color: #2563eb;
  background: #eff6ff;
  font-size: 0.875rem;
  font-weight: 900;
}

.employee-login .employee-form {
  margin-top: 1.5rem;
  text-align: left;
}

@keyframes employee-modal-in {
  from {
    opacity: 0;
    transform: translateY(0.75rem) scale(0.96);
  }

  to {
    opacity: 1;
    transform: none;
  }
}

@media (max-width: 640px) {
  .employee-modal__stage {
    align-items: flex-end;
    padding: 0.75rem;
  }

  .employee-modal__panel {
    width: 100%;
    max-height: 90vh;
    padding: 1.5rem;
    border-radius: 1.25rem;
  }

  .employee-form__inline {
    grid-template-columns: 1fr;
  }
}
