/* SLS Job Application Portal — extends student_public_card liquid glass system */

/*
 * ERP school photo backdrop — same asset as admin login / maintenance:
 * public/school_bg.jpg  (from this CSS file: ../../school_bg.jpg)
 */
body.ja-portal.sls-portal,
body.ja-portal {
  --color-background: #111827;
  background-color: #111827 !important;
  background-image:
    linear-gradient(rgba(17, 24, 39, 0.80), rgba(17, 24, 39, 0.90)),
    url('../../school_bg.jpg') !important;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  background-attachment: fixed !important;
  color: #1e293b;
}
body.ja-portal.sls-portal::before,
body.ja-portal::before {
  content: none !important;
  display: none !important;
  background: none !important;
}
body.ja-portal .ambient {
  display: none !important;
}
@media (max-width: 900px) {
  body.ja-portal.sls-portal,
  body.ja-portal {
    background-attachment: scroll !important;
  }
}

.ja-wrap {
  max-width: 980px;
  padding-top: 20px;
  padding-inline: 12px;
  padding-bottom: 64px;
  overflow: visible;
  height: auto;
  max-height: none;
}

/* Official PDF letterhead — full portal width (aligned with topbar), PDF typography scaled for screen */
.ja-portal .school-letterhead.school-letterhead--pdf {
  --pdf-detail-pt: 10pt;
  --pdf-title-pt: 12pt;
  --pdf-logo-pt: 22pt;
  --pdf-line-mm: 4.8mm;
  --pdf-col-gap-mm: 5mm;
  --pdf-block-top-mm: 4mm;
  --pdf-text-color: #1e293b;
  --pdf-sep-color: #cbd5e1;
  --pdf-sep-pt: 0.2pt;
  --ja-letterhead-pad-x: 12px;
  box-sizing: border-box;
  width: 100%;
  max-width: none;
  margin: 0 0 18px;
  padding: 20px var(--ja-letterhead-pad-x) 16px;
  background: #ffffff;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border: 1px solid rgba(255, 255, 255, 0.65);
  border-radius: var(--sls-radius-lg, 20px);
  box-shadow: var(--sls-shadow, 0 10px 28px rgba(15, 23, 42, 0.08));
  color: var(--pdf-text-color);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}

.ja-portal .school-letterhead-top-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  column-gap: clamp(12px, 4vw, 32px);
  align-items: center;
  width: 100%;
}

.ja-portal .school-letterhead-top-row:not(:has(.school-letterhead-mid)) {
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}

.ja-portal .school-letterhead-top-row .school-letterhead-side {
  display: flex;
  flex-direction: column;
  justify-content: center;
  gap: 0;
  margin: 0;
  padding: 0;
}

.ja-portal .school-letterhead-top-row .school-letterhead-side.en {
  text-align: left;
  direction: ltr;
  font-family: Georgia, "Times New Roman", Times, serif;
  justify-self: start;
}

.ja-portal .school-letterhead-top-row .school-letterhead-side.ar {
  text-align: right;
  direction: rtl;
  font-family: var(--sls-font-head, "Noto Naskh Arabic", "Amiri", serif);
  justify-self: end;
}

.ja-portal .school-letterhead-line {
  font-size: calc(var(--pdf-detail-pt) * 1.25);
  line-height: 1.5;
  margin: 0;
  padding: 0;
  font-weight: 400;
}

.ja-portal .school-letterhead-mid {
  display: flex;
  align-items: center;
  justify-content: center;
  justify-self: center;
  padding: 0 4px;
}

.ja-portal .school-letterhead-mid .school-letterhead-logo {
  width: min(88pt, max(64pt, calc(var(--pdf-logo-pt) * 3)));
  height: auto;
  max-height: 24mm;
  object-fit: contain;
  display: block;
}

.ja-portal .school-letterhead--pdf .school-letterhead-center {
  text-align: center;
  margin-top: 14px;
  padding-inline: var(--ja-letterhead-pad-x);
  color: var(--pdf-text-color);
  width: 100%;
  box-sizing: border-box;
}

.ja-portal .school-letterhead--pdf .school-letterhead-address,
.ja-portal .school-letterhead--pdf .school-letterhead-center .contacts {
  font-size: calc(var(--pdf-detail-pt) * 1.15);
  line-height: 1.45;
  min-height: var(--pdf-line-mm);
  max-width: 100%;
}

.ja-portal .school-letterhead--pdf .school-letterhead-address {
  margin-inline: auto;
}

.ja-portal .school-letterhead--pdf .school-letterhead-address {
  direction: rtl;
  font-family: var(--sls-font-head, "Noto Naskh Arabic", "Amiri", serif);
}

.ja-portal .school-letterhead--pdf .school-letterhead-center .contacts {
  direction: ltr;
  unicode-bidi: plaintext;
  font-family: Georgia, "Times New Roman", Times, serif;
}

.ja-portal .school-letterhead--pdf .school-letterhead-rule {
  display: block;
  margin-top: 2.5mm;
  border: 0;
  border-bottom: max(1px, calc(var(--pdf-sep-pt) * 1.2)) solid var(--pdf-sep-color);
}

@media (min-width: 721px) {
  .ja-portal .school-letterhead.school-letterhead--pdf {
    --ja-letterhead-pad-x: 8px;
  }
}

@media (max-width: 720px) {
  .ja-portal .school-letterhead.school-letterhead--pdf {
    --ja-letterhead-pad-x: 10px;
  }

  .ja-portal .school-letterhead-top-row {
    grid-template-columns: 1fr;
    row-gap: 12px;
    justify-items: center;
  }

  .ja-portal .school-letterhead-top-row .school-letterhead-side.en,
  .ja-portal .school-letterhead-top-row .school-letterhead-side.ar {
    text-align: center;
    justify-self: center;
    width: 100%;
  }

  .ja-portal .school-letterhead-mid {
    order: -1;
  }
}

/* Typewriter hero (same one-line + scale-to-fit engine as admin_login) */
.ja-typewriter-hero {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  text-align: center;
  display: block;
  min-height: clamp(44px, 8vh, 68px);
  margin: 0 0 14px;
  padding: 10px 0 8px;
  overflow: hidden;
}

.ja-typewriter-line {
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
  white-space: nowrap;
  overflow: hidden;
  transform-origin: center center;
}

.ja-typewriter-text {
  color: #ffffff;
  font-weight: 900;
  font-family: var(--sls-font-head);
  font-size: clamp(1rem, 2.8vw, 1.65rem);
  line-height: 1.4;
  letter-spacing: 0.02em;
  white-space: nowrap;
  word-break: keep-all;
  overflow-wrap: normal;
  text-shadow:
    0 0 10px rgba(255, 255, 255, 0.8),
    0 0 20px rgba(255, 255, 255, 0.4),
    0 0 35px rgba(59, 130, 246, 0.8),
    0 0 50px rgba(59, 130, 246, 0.5);
}

.ja-typewriter-cursor {
  display: inline-block;
  width: 4px;
  height: 1.15em;
  background-color: #ffffff;
  vertical-align: middle;
  margin-inline-start: 6px;
  box-shadow: 0 0 10px rgba(255, 255, 255, 0.8), 0 0 20px rgba(59, 130, 246, 0.8);
  animation: jaTypeBlink 0.8s step-end infinite;
}

@keyframes jaTypeBlink {
  50% { opacity: 0; }
}

.ja-topbar {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-bottom: 14px;
}

@media (min-width: 721px) {
  .ja-topbar {
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
  }
  .ja-tools { margin-inline-start: auto; }
}

.ja-portal .lang-chip {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: rgba(255, 255, 255, 0.95);
  backdrop-filter: blur(12px);
}
.ja-portal .lang-chip i { color: var(--sls-gold, #ca8a04); }

.ja-portal .tool-btn {
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.28);
  color: #fff;
  backdrop-filter: blur(12px);
}
.ja-portal .tool-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  border-color: #fff;
  color: #fff;
}
.ja-portal .tool-btn--gold,
.ja-portal a.tool-btn {
  color: #fff;
}

.ja-lang-switch button.ja-lang-btn,
.ja-portal .ja-lang-switch a.ja-lang-btn {
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.12);
  color: #fff;
  border-radius: 999px;
  padding: 10px 16px;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  font-family: var(--sls-font-body);
  text-decoration: none;
  backdrop-filter: blur(14px);
  transition: background 0.25s var(--sls-ease), transform 0.2s var(--sls-ease), box-shadow 0.25s;
}

.ja-lang-switch button.ja-lang-btn:hover,
.ja-portal .ja-lang-switch a.ja-lang-btn:hover {
  background: rgba(255, 255, 255, 0.22);
  transform: translateY(-1px);
}

.ja-lang-switch button.ja-lang-btn.is-active,
.ja-portal .ja-lang-switch a.ja-lang-btn.is-active {
  background: linear-gradient(135deg, #fff 0%, #f8fafc 100%);
  color: var(--sls-navy-mid, #1e3a8a);
  border-color: #fff;
  box-shadow: 0 8px 28px rgba(255, 255, 255, 0.25);
}

.ja-hero {
  text-align: center;
  color: #fff;
  margin: 0 0 18px;
  padding: 8px 12px;
}

.ja-hero h1 {
  margin: 0 0 8px;
  font-size: clamp(1.35rem, 4vw, 1.85rem);
  font-weight: 800;
  font-family: var(--sls-font-head);
  color: #fff;
  text-shadow: 0 8px 24px rgba(0, 0, 0, 0.25);
}

.ja-hero p {
  margin: 0;
  opacity: 0.92;
  color: rgba(255, 255, 255, 0.92);
  font-size: 0.98rem;
  line-height: 1.6;
}

.ja-glass-card {
  background: var(--sls-glass-strong, rgba(255, 255, 255, 0.92));
  backdrop-filter: blur(24px) saturate(1.35);
  -webkit-backdrop-filter: blur(24px) saturate(1.35);
  border-radius: var(--sls-radius-xl);
  overflow: hidden;
  box-shadow: var(--sls-shadow-lg, 0 32px 64px -16px rgba(15, 23, 42, 0.45)), inset 0 1px 0 rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(255, 255, 255, 0.65);
  margin-bottom: 24px;
}

.ja-card-head {
  background: linear-gradient(135deg, var(--sls-teal) 0%, #115e59 55%, var(--sls-navy-mid) 100%);
  color: #fff;
  padding: 20px 26px;
  font-weight: 800;
  font-size: 1.05rem;
  display: flex;
  align-items: center;
  gap: 10px;
  position: relative;
  overflow: hidden;
}

.ja-card-head::after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(105deg, transparent 40%, rgba(255,255,255,.12) 50%, transparent 60%);
  transform: translateX(-120%);
  animation: jaShimmer 4s var(--sls-ease) infinite;
}

@keyframes jaShimmer {
  0%, 70%, 100% { transform: translateX(-120%); }
  85% { transform: translateX(120%); }
}

.ja-card-body { padding: 16px 18px 20px; }

/* ── Dense form layout (Swiss minimal) ── */
#jobApplicationForm {
  --ja-field-gap: 10px;
  --ja-input-h: 38px;
  --ja-input-radius: 8px;
}

#jobApplicationForm .ja-field input:not([type="file"]),
#jobApplicationForm .ja-field select,
#jobApplicationForm .ja-field textarea {
  border-radius: var(--ja-input-radius);
  box-sizing: border-box;
}

.ja-position-panel {
  padding: 12px 14px;
  border-radius: var(--sls-radius-md);
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ja-section-position .ja-field-full {
  grid-column: 1 / -1;
}

.ja-section-position .ja-field-hint--compact {
  margin-top: 4px;
}

#jobApplicationForm .ja-grid-2 {
  gap: var(--ja-field-gap);
  row-gap: var(--ja-field-gap);
}

#jobApplicationForm .ja-field label,
#jobApplicationForm .ja-compact-label {
  text-align: start;
}

.ja-basic-panel {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.ja-media-section {
  width: 100%;
}

.ja-media-card {
  padding: 12px 14px;
  border-radius: var(--sls-radius-md);
  background: rgba(248, 250, 252, 0.72);
  border: 1px solid rgba(226, 232, 240, 0.9);
}

.ja-media-heading {
  margin-bottom: 8px;
  font-size: 0.88rem;
  color: var(--sls-teal);
}

.ja-media-section--photo .ja-photo-inline {
  align-items: center;
  gap: 14px;
}

.ja-media-section--photo .ja-photo-inline-controls {
  flex-direction: row;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.ja-pitch-hint {
  margin: -2px 0 8px;
}

.ja-basic-fields {
  margin-top: 0;
}

.ja-section {
  margin-top: 4px;
  margin-bottom: 14px;
  padding-top: 0;
}

.ja-section-title {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: var(--sls-teal);
  margin: 0 0 10px;
  padding-bottom: 8px;
  border-bottom: 2px solid rgba(13, 148, 136, 0.2);
}

.ja-section-title i {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  font-size: 0.85rem;
  background: rgba(13, 148, 136, 0.12);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--sls-teal);
}

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

.ja-name-row {
  margin-top: 0;
}

.ja-name-row .ja-field-email {
  grid-column: 1 / -1;
}

.ja-field { margin-bottom: 0; }

.ja-field label {
  display: block;
  font-weight: 700;
  margin-bottom: 5px;
  color: #334155;
  font-size: 0.85rem;
}

.ja-field input:not([type="file"]),
.ja-field select,
.ja-field textarea {
  width: 100%;
  max-width: 100%;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: var(--ja-input-radius, var(--sls-radius-md));
  padding: 7px 11px;
  min-height: var(--ja-input-h, 40px);
  height: var(--ja-input-h, 40px);
  font-family: var(--sls-font-body);
  font-size: 0.84rem;
  line-height: 1.3;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sls-navy);
  transition: border-color 0.2s, box-shadow 0.2s var(--sls-ease);
  box-sizing: border-box;
}

.ja-field textarea {
  height: auto;
  min-height: 88px;
  resize: vertical;
}

/* Native chrome only when not using the global SLS grouped select. */
.ja-field select:not(.sls-gselect) {
  appearance: auto;
}

/* Let `.sls-gselect` use `appearance: base-select` (global picker cards). */
.ja-field select.sls-gselect {
  height: auto;
  min-height: var(--ja-input-h, 40px);
  font-weight: 600;
  color: #334155;
  background: #fff;
}

@supports (appearance: base-select) {
  .ja-field select.sls-gselect,
  .ja-field select.sls-gselect::picker(select) {
    appearance: base-select;
  }
}

.ja-field input:focus,
.ja-field select:focus,
.ja-field textarea:focus {
  outline: none;
  border-color: var(--sls-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.ja-field select.sls-gselect:focus,
.ja-field select.sls-gselect:open {
  border-color: #6366f1;
  box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.18);
}

.ja-field input[type="file"] {
  padding: 10px;
  background: #f8fafc;
  cursor: pointer;
  height: auto;
  min-height: auto;
}

/* ESS: view-only fields (e.g. bank account / IBAN) */
.ja-field input.ess-field-locked[readonly],
.ja-field input.ess-field-locked[aria-readonly="true"] {
  background: #f1f5f9;
  color: #334155;
  cursor: default;
  border-color: #cbd5e1;
  box-shadow: none;
  user-select: text;
  caret-color: transparent;
}
.ja-field input.ess-field-locked:focus {
  border-color: #cbd5e1;
  box-shadow: none;
}

.ja-radio-row {
  display: flex;
  gap: 14px;
  flex-wrap: wrap;
}

.ja-edu-type-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(118px, 1fr));
  gap: 10px;
}

.ja-radio-pill {
  position: relative;
  min-width: 0;
}

.ja-radio-pill input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.ja-radio-pill span {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 8px;
  min-height: 78px;
  padding: 12px 10px;
  border-radius: 14px;
  border: 2px solid #dbeafe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #334155;
  font-weight: 700;
  font-size: 0.82rem;
  line-height: 1.35;
  text-align: center;
  cursor: pointer;
  transition: border-color 0.2s var(--sls-ease), background 0.2s var(--sls-ease), box-shadow 0.2s var(--sls-ease), transform 0.2s var(--sls-ease);
}

.ja-radio-pill span i {
  font-size: 1.15rem;
  color: #64748b;
  transition: color 0.2s var(--sls-ease), transform 0.2s var(--sls-ease);
}

.ja-radio-pill:hover span {
  border-color: #93c5fd;
  background: #fff;
  transform: translateY(-1px);
}

.ja-radio-pill input:focus-visible + span {
  outline: 2px solid #2563eb;
  outline-offset: 2px;
}

.ja-radio-pill input:checked + span {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 55%, #fde68a 100%);
  color: #78350f;
  border-color: #d97706;
  box-shadow: 0 6px 18px rgba(217, 119, 6, 0.22);
}

.ja-radio-pill input:checked + span,
.ja-radio-pill input:checked + span span {
  color: #78350f;
}

.ja-radio-pill input:checked + span i {
  color: #b45309;
  transform: scale(1.05);
}

.ja-repeat-box {
  border: 1px dashed rgba(148, 163, 184, 0.7);
  border-radius: var(--sls-radius-lg);
  padding: 18px;
  margin-bottom: 12px;
  background: rgba(248, 250, 252, 0.85);
  animation: jaSlideIn 0.45s var(--sls-ease);
}

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

.ja-btn {
  border: none;
  border-radius: 999px;
  padding: 11px 18px;
  font-family: var(--sls-font-body);
  font-weight: 800;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  transition: transform 0.2s var(--sls-ease), box-shadow 0.25s, background 0.25s;
}

.ja-btn:hover { transform: translateY(-2px); }
.ja-btn:active { transform: translateY(0); }

.ja-btn-primary {
  background: linear-gradient(135deg, var(--sls-teal) 0%, #0f766e 100%);
  color: #fff;
  box-shadow: 0 10px 28px rgba(13, 148, 136, 0.35);
}

.ja-btn-primary:hover {
  box-shadow: 0 14px 36px rgba(13, 148, 136, 0.45);
}

.ja-btn-secondary {
  background: #e2e8f0;
  color: #334155;
}

.ja-btn-gold {
  background: linear-gradient(135deg, var(--sls-gold) 0%, var(--sls-gold-dark) 100%);
  color: #fff;
  box-shadow: 0 10px 28px var(--sls-gold-glow);
}

.ja-btn-danger {
  background: var(--sls-danger-bg);
  color: var(--sls-danger);
}

.ja-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  margin-top: 26px;
}

.ja-edu-block {
  display: none;
  animation: jaFadeIn 0.35s var(--sls-ease);
}

.ja-edu-block.is-active { display: block; }

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

.ja-alert {
  padding: 16px 18px;
  border-radius: var(--sls-radius-md);
  margin-bottom: 16px;
  font-weight: 600;
  animation: jaSlideIn 0.4s var(--sls-ease);
}

.ja-alert-success {
  background: var(--sls-success-bg);
  color: #065f46;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.ja-alert-danger {
  background: var(--sls-danger-bg);
  color: #9f1239;
  border: 1px solid rgba(220, 38, 38, 0.2);
}

.ja-alert-bank-notice {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
  padding: 1rem 1.1rem;
  margin-bottom: 1rem;
  border-radius: 14px;
  background: linear-gradient(135deg, #eff6ff 0%, #e0f2fe 55%, #ecfeff 100%);
  border: 1px solid rgba(14, 116, 144, 0.28);
  color: #0c4a6e;
  box-shadow: 0 8px 22px rgba(14, 116, 144, 0.08);
  animation: jaSlideIn 0.4s var(--sls-ease);
}
.ja-alert-bank-notice--compact {
  margin-top: 0.35rem;
  margin-bottom: 1rem;
  box-shadow: none;
}
.ja-alert-bank-notice__icon {
  width: 2.35rem;
  height: 2.35rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  background: linear-gradient(135deg, #0284c7 0%, #0e7490 100%);
  color: #fff;
  font-size: 1rem;
  box-shadow: 0 6px 14px rgba(2, 132, 199, 0.28);
}
.ja-alert-bank-notice__text {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  font-size: 0.95rem;
  font-weight: 650;
  line-height: 1.65;
  min-width: 0;
}
.ja-alert-bank-notice__dear {
  display: block;
  font-size: 1.02rem;
  font-weight: 800;
  color: #075985;
}

.ja-success-box { text-align: center; padding: 12px 0 4px; }

/* Employee self-service — completion screen (not a green alert strip) */
.ess-success {
  --ess-success-teal: #0f766e;
  --ess-success-ink: #0f172a;
  --ess-success-muted: #64748b;
  text-align: center;
  padding: 1.75rem 1.25rem 1.35rem;
  margin: 0;
  border-radius: 18px;
  background:
    radial-gradient(120% 80% at 50% 0%, rgba(13, 148, 136, 0.10) 0%, rgba(255, 255, 255, 0) 55%),
    #ffffff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.07);
  animation: jaFadeIn 0.45s var(--sls-ease);
}
.ess-success__mark {
  position: relative;
  width: 4.5rem;
  height: 4.5rem;
  margin: 0 auto 1.15rem;
  border-radius: 9999px;
  display: grid;
  place-items: center;
  background: linear-gradient(145deg, #14b8a6 0%, #0f766e 100%);
  color: #fff;
  font-size: 1.55rem;
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.35);
  animation: essSuccessPop 0.55s cubic-bezier(0.22, 1, 0.36, 1) both;
}
.ess-success__ring {
  position: absolute;
  inset: -7px;
  border-radius: inherit;
  border: 2px solid rgba(20, 184, 166, 0.35);
  animation: essSuccessRing 0.8s ease-out 0.15s both;
  pointer-events: none;
}
.ess-success__title {
  margin: 0 0 0.45rem;
  font-size: clamp(1.35rem, 2.6vw, 1.65rem);
  font-weight: 800;
  letter-spacing: -0.01em;
  color: var(--ess-success-ink);
  line-height: 1.35;
}
.ess-success__lead {
  margin: 0 auto;
  max-width: 28rem;
  font-size: 0.98rem;
  font-weight: 600;
  line-height: 1.65;
  color: var(--ess-success-muted);
}
.ess-success__mail {
  display: inline-flex;
  align-items: flex-start;
  justify-content: center;
  gap: 0.55rem;
  margin: 1.15rem auto 0;
  max-width: 32rem;
  padding: 0.7rem 1rem;
  border-radius: 9999px;
  background: #f0fdfa;
  border: 1px solid rgba(13, 148, 136, 0.22);
  color: #115e59;
  font-size: 0.9rem;
  font-weight: 700;
  line-height: 1.5;
  text-align: start;
}
.ess-success__mail i {
  margin-top: 0.15rem;
  flex-shrink: 0;
  color: var(--ess-success-teal);
}
.ess-success__actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 0.75rem;
  margin-top: 1.55rem;
}
.ess-success__btn {
  min-width: min(100%, 14.5rem);
  justify-content: center;
  padding: 0.85rem 1.2rem;
  font-weight: 800;
  border-radius: 12px;
}
.ess-success__btn--ghost {
  background: #fff;
  color: #334155;
  border: 1px solid #cbd5e1;
  box-shadow: none;
}
.ess-success__btn--ghost:hover {
  background: #f8fafc;
  border-color: #94a3b8;
  box-shadow: none;
}
@media (max-width: 560px) {
  .ess-success {
    padding: 1.4rem 1rem 1.15rem;
  }
  .ess-success__actions {
    flex-direction: column;
  }
  .ess-success__btn {
    width: 100%;
    min-width: 0;
  }
  .ess-success__mail {
    border-radius: 14px;
    width: 100%;
    box-sizing: border-box;
  }
}
@keyframes essSuccessPop {
  0% { opacity: 0; transform: scale(0.55); }
  70% { opacity: 1; transform: scale(1.06); }
  100% { opacity: 1; transform: scale(1); }
}
@keyframes essSuccessRing {
  0% { opacity: 0; transform: scale(0.85); }
  100% { opacity: 1; transform: scale(1); }
}

.ja-email-sent-note {
  margin: 0 0 12px;
  padding: 10px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  border: 1px solid rgba(34, 197, 94, 0.4);
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 700;
  line-height: 1.5;
}

.ja-email-sent-note i {
  margin-inline-end: 6px;
  color: #16a34a;
}

.ja-submit-overlay {
  position: fixed;
  inset: 0;
  z-index: 12000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  background: rgba(15, 23, 42, 0.55);
  backdrop-filter: blur(4px);
}

.ja-submit-overlay[hidden] {
  display: none !important;
}

.ja-submit-overlay-card {
  max-width: 360px;
  width: 100%;
  padding: 22px 20px;
  border-radius: 16px;
  background: #fff;
  border: 1px solid #e2e8f0;
  box-shadow: 0 20px 50px rgba(15, 23, 42, 0.2);
  text-align: center;
  color: #0f172a;
}

.ja-submit-overlay-card i {
  font-size: 1.75rem;
  color: #0f766e;
  margin-bottom: 10px;
}

.ja-submit-overlay-card p {
  margin: 0;
  font-size: 0.95rem;
  font-weight: 700;
  line-height: 1.5;
}

body.ja-is-submitting {
  overflow: hidden;
}

.ja-qr-hint {
  margin: 8px 0 4px;
  color: #475569;
  font-size: 0.92rem;
}

.ja-qr-wrap {
  display: flex;
  justify-content: center;
  margin: 10px 0 18px;
}

.ja-qr-link {
  display: inline-block;
  padding: 12px;
  background: #fff;
  border-radius: 16px;
  box-shadow: 0 8px 28px rgba(15, 23, 42, 0.12);
  transition: transform 0.25s var(--sls-ease), box-shadow 0.25s;
}

.ja-qr-link:hover {
  transform: translateY(-2px);
  box-shadow: 0 14px 36px rgba(15, 23, 42, 0.16);
}

.ja-qr-img {
  display: block;
  border-radius: 8px;
}

.ja-photo-upload {
  display: flex;
  align-items: center;
  gap: 14px;
}

.ja-cv-name-en {
  font-size: 0.92em;
  font-weight: 600;
  color: #475569;
}

.ja-name-row .ja-field-name-en input {
  text-align: left;
}

.ja-name-row .ja-field-name-ar input {
  text-align: right;
}

html[dir="ltr"] .ja-name-row .ja-field-name-en {
  order: 1;
}

html[dir="ltr"] .ja-name-row .ja-field-name-ar {
  order: 2;
}

.ja-profile-photo-top {
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  flex: 1;
  min-width: 0;
}

.ja-profile-media-row {
  display: block;
  margin-bottom: 0;
  padding: 0;
  border: none;
  background: transparent;
}

.ja-compact-label {
  display: block;
  font-weight: 700;
  color: #334155;
  margin-bottom: 4px;
  font-size: 0.82rem;
  text-align: start;
  line-height: 1.35;
}

.ja-pitch-label {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 4px 8px;
}

.ja-pitch-max {
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
}

.ja-profile-photo-compact {
  min-width: 0;
  display: flex;
  flex-direction: column;
}

.ja-photo-inline {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1;
}

.ja-media-section--photo .ja-photo-inline .ja-photo-preview {
  width: 96px;
  height: 96px;
  font-size: 1.85rem;
  flex-shrink: 0;
}
.ja-media-section--photo .ja-photo-inline .ja-photo-preview--thumb {
  width: 132px;
  height: 132px;
  border-radius: 18px;
  overflow: hidden;
}
.ja-media-section--photo .ja-photo-inline .ja-photo-preview--thumb .ja-photo-preview__existing {
  border-radius: 18px;
  object-fit: cover;
}
.ja-media-section--photo .ja-photo-preview__cam {
  font-size: 1.85rem;
}

.ja-photo-inline-controls {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 5px;
}

.ja-photo-hint {
  margin-top: 4px;
}

.ja-file-actions--inline {
  margin-top: 0;
  gap: 6px;
}

.ja-btn-compact {
  padding: 7px 12px;
  font-size: 0.78rem;
  gap: 6px;
  border-radius: 10px;
  width: fit-content;
  max-width: 100%;
}

.ja-btn-compact:hover {
  transform: translateY(-1px);
}

.ja-field-hint--compact {
  margin: 0;
  font-size: 0.72rem;
  line-height: 1.45;
  color: #64748b;
}

.ja-pitch-video-block,
.ja-media-section--video .ja-media-card {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.ja-optional {
  font-weight: 600;
  color: #64748b;
  font-size: 0.72rem;
}

.ja-pitch-studio {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.ja-pitch-entry {
  display: none;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ja-pitch-entry-btn {
  min-width: min(100%, 220px);
}

.ja-pitch-stage {
  display: none;
  flex-direction: column;
  gap: 10px;
}

.ja-pitch-studio.is-recording .ja-pitch-stage,
.ja-pitch-studio.is-review .ja-pitch-stage {
  display: flex;
}

.ja-pitch-studio.is-idle .ja-pitch-entry {
  display: flex;
}

.ja-pitch-studio.is-recording .ja-pitch-entry,
.ja-pitch-studio.is-review .ja-pitch-entry {
  display: none;
}

/* Mode visibility — [hidden] loses to display:flex in author CSS, so use studio state */
.ja-pitch-live-feed,
.ja-pitch-video-preview,
.ja-pitch-rec-badge,
.ja-pitch-progress-track,
.ja-pitch-filename,
.ja-pitch-toolbar--record,
.ja-pitch-toolbar--review {
  display: none !important;
}

.ja-pitch-studio.is-recording .ja-pitch-live-feed,
.ja-pitch-studio.is-recording .ja-pitch-rec-badge,
.ja-pitch-studio.is-recording .ja-pitch-progress-track,
.ja-pitch-studio.is-recording .ja-pitch-toolbar--record {
  display: flex !important;
}

.ja-pitch-studio.is-recording .ja-pitch-live-feed {
  display: block !important;
}

.ja-pitch-studio.is-recording .ja-pitch-rec-badge {
  display: inline-flex !important;
}

.ja-pitch-studio.is-recording .ja-pitch-progress-track {
  display: block !important;
}

.ja-pitch-studio.is-review .ja-pitch-video-preview,
.ja-pitch-studio.is-review .ja-pitch-toolbar--review {
  display: flex !important;
}

.ja-pitch-studio.is-review .ja-pitch-video-preview {
  display: block !important;
}

.ja-pitch-studio.is-review .ja-pitch-video-shell.has-preview .ja-pitch-filename {
  display: block !important;
}

.ja-pitch-studio.is-review .ja-pitch-video-shell.has-preview {
  display: flex;
  flex-direction: column;
  aspect-ratio: unset;
  height: auto;
  min-height: 0;
  padding-bottom: 4px;
  background: #000;
}

.ja-pitch-studio.is-review .ja-pitch-video-shell.has-preview .ja-pitch-video-preview {
  position: relative;
  inset: auto;
  z-index: 1;
  width: 100%;
  height: auto;
  max-height: min(56vw, 405px);
  aspect-ratio: 16 / 9;
  object-fit: contain;
  background: #000;
}

.ja-pitch-studio.is-review .ja-pitch-timer {
  display: none;
}

.ja-pitch-studio.is-recording .ja-pitch-timer {
  display: block;
}

.ja-pitch-studio.is-idle .ja-pitch-timer {
  display: none;
}

.ja-pitch-studio.is-recording:not(.is-pause-supported) .ja-pitch-pause-btn {
  display: none !important;
}

.ja-pitch-studio.is-upload-review .ja-pitch-rerecord-btn {
  display: none !important;
}

.ja-pitch-studio.is-recording .ja-pitch-video-placeholder {
  display: none !important;
}

.ja-pitch-live-feed,
.ja-pitch-video-preview {
  position: absolute;
  inset: 0;
  z-index: 1;
}

.ja-pitch-video-placeholder {
  z-index: 0;
}

.ja-pitch-live-feed {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  background: #000;
  transform: scaleX(-1);
}

.ja-pitch-live-feed.is-back-camera {
  transform: none;
}

.ja-pitch-rec-badge {
  position: absolute;
  top: 10px;
  inset-inline-start: 10px;
  z-index: 2;
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 5px 12px;
  border-radius: 999px;
  background: rgba(220, 38, 38, 0.9);
  color: #fff;
  font-size: 0.76rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(0, 0, 0, 0.25);
}

.ja-pitch-rec-badge.is-paused {
  background: rgba(234, 179, 8, 0.92);
  color: #1e293b;
}

.ja-pitch-rec-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: currentColor;
  animation: jaRecPulse 1.1s ease-in-out infinite;
}

.ja-pitch-rec-badge.is-paused .ja-pitch-rec-dot {
  animation: none;
  opacity: 0.85;
}

@keyframes jaRecPulse {
  0%, 100% { opacity: 1; transform: scale(1); }
  50% { opacity: 0.45; transform: scale(0.82); }
}

.ja-pitch-progress-track {
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  height: 5px;
  background: rgba(255, 255, 255, 0.18);
  z-index: 2;
}

.ja-pitch-progress-fill {
  height: 100%;
  width: 0;
  background: linear-gradient(90deg, #ef4444, #f97316);
  transition: width 0.15s linear;
}

.ja-pitch-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
}

.ja-pitch-toolbar .ja-btn.is-muted {
  background: #fee2e2;
  color: #b91c1c;
}

.ja-pitch-cancel-btn {
  margin-inline-start: 0;
}

/* Physical left edge for action buttons (RTL: flex-end = left) */
html[dir="rtl"] .ja-portal .ja-pitch-entry,
html[dir="rtl"] .ja-portal .ja-pitch-toolbar,
html[dir="rtl"] .ja-portal .ja-actions,
html[dir="rtl"] .ja-portal .ja-section > .ja-btn,
html[dir="rtl"] .ja-portal .ja-photo-inline-controls,
html[dir="rtl"] .ja-portal .ja-file-row {
  justify-content: flex-end;
}

html[dir="rtl"] .ja-portal .ja-photo-inline-controls {
  align-items: flex-end;
}

html[dir="ltr"] .ja-portal .ja-pitch-entry,
html[dir="ltr"] .ja-portal .ja-pitch-toolbar,
html[dir="ltr"] .ja-portal .ja-actions,
html[dir="ltr"] .ja-portal .ja-section > .ja-btn,
html[dir="ltr"] .ja-portal .ja-photo-inline-controls,
html[dir="ltr"] .ja-portal .ja-file-row {
  justify-content: flex-start;
  align-items: flex-start;
}

.ja-pitch-replace-btn {
  cursor: pointer;
  margin: 0;
}

.ja-pitch-video-shell {
  position: relative;
  background: linear-gradient(145deg, #0f172a, #1e293b);
  border-radius: 12px;
  overflow: hidden;
  width: 100%;
  max-width: 720px;
  aspect-ratio: 16 / 9;
  min-height: 200px;
  max-height: min(56vw, 405px);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.08);
}

.ja-pitch-video-preview {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
  background: #000;
}

.ja-pitch-filename {
  position: absolute;
  top: 6px;
  inset-inline: 8px;
  font-size: 0.68rem;
  font-weight: 600;
  color: rgba(255, 255, 255, 0.88);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: start;
  direction: ltr;
  pointer-events: none;
  text-shadow: 0 1px 3px rgba(0, 0, 0, 0.55);
}

.ja-pitch-video-placeholder {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  color: rgba(255, 255, 255, 0.35);
  font-size: 2.5rem;
  pointer-events: none;
}

.ja-pitch-timer {
  position: absolute;
  inset-inline-start: 8px;
  bottom: 6px;
  padding: 2px 7px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  direction: ltr;
  pointer-events: none;
}

.ja-pitch-upload-panel {
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: rgba(248, 250, 252, 0.95);
  border: 1px solid rgba(148, 163, 184, 0.45);
}

.ja-pitch-upload-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  font-size: 0.8rem;
  font-weight: 700;
  color: #334155;
}

.ja-pitch-upload-percent {
  font-variant-numeric: tabular-nums;
  color: var(--sls-teal);
  font-weight: 800;
}

.ja-pitch-upload-track {
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
  box-shadow: inset 0 1px 2px rgba(15, 23, 42, 0.08);
}

.ja-pitch-upload-fill {
  height: 100%;
  width: 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0d9488 0%, #14b8a6 55%, #2dd4bf 100%);
  transition: width 0.12s linear;
}

.ja-pitch-upload-success {
  display: none;
  align-items: center;
  gap: 10px;
  margin-top: 8px;
  padding: 11px 14px;
  border-radius: 10px;
  background: linear-gradient(135deg, #ecfdf5 0%, #dcfce7 100%);
  border: 1px solid rgba(34, 197, 94, 0.45);
  color: #15803d;
  font-size: 0.88rem;
  font-weight: 800;
  box-shadow: 0 4px 14px rgba(34, 197, 94, 0.12);
}

.ja-pitch-upload-success i {
  font-size: 1.25rem;
  color: #16a34a;
  flex-shrink: 0;
}

.ja-pitch-studio.is-upload-done .ja-pitch-upload-success {
  display: flex;
}

.ja-pitch-studio.is-uploading .ja-pitch-entry-btn {
  pointer-events: none;
  opacity: 0.65;
}

.ja-pitch-error {
  margin-top: 6px;
  font-size: 0.8rem;
  padding: 8px 10px;
}

.ja-pitch-error.is-info {
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 100%);
  border: 1px solid rgba(245, 158, 11, 0.45);
  color: #92400e;
  border-radius: 10px;
}

.ja-pitch-studio.ja-pitch-preview-fallback .ja-pitch-video-placeholder {
  display: flex !important;
}

.ja-cv-card .ja-cv-td-url,
.ja-cv-card .ja-cv-td-ltr a[href^="http"],
.ja-cv-card .ja-cv-td-ltr a[href^="/"] {
  display: none;
}

.ja-cv-card a[href^="mailto:"] {
  display: inline;
}

.ja-cv-attachments-heading {
  margin: 0 0 12px;
  font-size: 1rem;
  font-weight: 800;
  color: #0f766e;
  display: flex;
  align-items: center;
  gap: 8px;
}

.ja-cv-attachments-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(220px, 1fr));
  gap: 16px;
}

.ja-cv-attach-tile {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 10px;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  padding: 14px;
  border: 2px solid #e2e8f0;
  border-radius: 16px;
  background: linear-gradient(180deg, #fff 0%, #f8fafc 100%);
  cursor: pointer;
  text-align: center;
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.15s ease;
  font: inherit;
  color: inherit;
}

.ja-cv-attach-tile:hover,
.ja-cv-attach-tile:focus-visible {
  border-color: #0d9488;
  box-shadow: 0 8px 24px rgba(13, 148, 136, 0.18);
  transform: translateY(-2px);
  outline: none;
}

.ja-cv-attach-tile-media {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 160px;
  border-radius: 12px;
  background: #f1f5f9;
  overflow: hidden;
}

.ja-cv-attach-tile-media--icon {
  color: #0f766e;
  font-size: 3.25rem;
}

.ja-cv-attach-tile--pdf .ja-cv-attach-tile-media--icon {
  color: #dc2626;
}

.ja-cv-attach-tile-img {
  width: 100%;
  max-height: 220px;
  object-fit: cover;
  display: block;
}

.ja-cv-attach-tile-label {
  display: block;
  width: 100%;
  max-width: 100%;
  font-weight: 800;
  font-size: 0.92rem;
  color: #0f172a;
  line-height: 1.4;
  overflow-wrap: anywhere;
  word-break: break-word;
  hyphens: auto;
  text-align: center;
  padding: 0 6px;
  box-sizing: border-box;
}

.ja-cv-attach-tile-action {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  margin-top: auto;
  padding: 8px 12px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-size: 0.82rem;
  font-weight: 700;
}

.ja-cv-photo-preview-btn {
  display: inline-block;
  padding: 0;
  border: none;
  background: transparent;
  cursor: zoom-in;
  border-radius: 50%;
  line-height: 0;
}

.ja-cv-photo-preview-btn:focus-visible {
  outline: 3px solid #0d9488;
  outline-offset: 4px;
}

.ja-cv-pitch-expand-btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  margin-top: 10px;
  padding: 10px 16px;
  border: none;
  border-radius: 999px;
  background: #ecfdf5;
  color: #0f766e;
  font-weight: 700;
  font-size: 0.88rem;
  cursor: pointer;
}

.ja-cv-pitch-expand-btn:hover,
.ja-cv-pitch-expand-btn:focus-visible {
  background: #ccfbf1;
  outline: none;
}

.ja-cv-pitch-video {
  width: 100%;
  max-width: min(100%, 720px);
  max-height: min(52vh, 420px);
  border-radius: 14px;
  background: #000;
  display: block;
}

/* CV tables (screen + print) */
.ja-cv-layout-tables .ja-cv-tables-wrap {
  padding: 20px 18px 26px;
}

.ja-cv-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 18px;
  font-size: 0.88rem;
  table-layout: fixed;
  background: #fff;
}

.ja-cv-table caption.ja-cv-table-caption {
  caption-side: top;
  text-align: right;
  padding: 10px 12px;
  font-weight: 800;
  font-size: 0.95rem;
  color: #fff;
  background: linear-gradient(135deg, #0f766e 0%, #0d9488 100%);
  border: 1px solid #0f766e;
  border-bottom: none;
}

.ja-cv-table caption.ja-cv-table-caption i {
  margin-left: 6px;
  opacity: 0.95;
}

.ja-cv-table th,
.ja-cv-table td {
  border: 1px solid #cbd5e1;
  padding: 9px 11px;
  vertical-align: top;
  text-align: right;
  line-height: 1.55;
  word-wrap: break-word;
}

.ja-cv-table thead th {
  background: #e2e8f0;
  color: #1e293b;
  font-weight: 800;
}

.ja-cv-table tbody th[scope="row"] {
  width: 30%;
  background: #f8fafc;
  color: #334155;
  font-weight: 700;
}

.ja-cv-table tbody td {
  background: #fff;
  color: #0f172a;
}

.ja-cv-table--profile .ja-cv-td-photo-wrap {
  text-align: center;
  background: #f8fafc;
  padding: 12px;
}

.ja-cv-photo-img {
  width: 96px;
  height: 96px;
  border-radius: 50%;
  object-fit: cover;
  border: 3px solid #fff;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.12);
}

.ja-cv-td-ref {
  font-family: ui-monospace, monospace;
  font-weight: 800;
  color: #0f766e;
}

.ja-cv-td-ltr,
.ja-cv-td-url {
  text-align: left !important;
  direction: ltr;
  font-family: ui-monospace, monospace;
  font-size: 0.78rem;
}

.ja-cv-td-url a,
.ja-cv-td-ltr a {
  color: #0f766e;
  word-break: break-all;
}

.ja-cv-td-desc,
.ja-cv-td-hint {
  background: #f8fafc;
}

.ja-cv-td-hint {
  color: #64748b;
  font-size: 0.82rem;
  text-align: center !important;
}

.ja-cv-pitch-print,
.ja-cv-pdfs-print-wrap,
.ja-cv-pdf-print {
  display: none;
  margin-top: 12px;
}

.ja-cv-pdfs-print-heading {
  display: none;
  margin: 16px 0 8px;
  font-size: 0.95rem;
  font-weight: 800;
  color: #0f766e;
  text-align: right;
}

.ja-cv-attach-qr {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

.ja-cv-attach-thumb {
  border: 1px solid #e2e8f0;
}

.ja-cv-table--pitch .ja-cv-td-qr {
  width: 150px;
  text-align: center;
  vertical-align: middle;
  background: #fff;
}

.ja-cv-pitch-qr {
  display: block;
  margin: 0 auto;
  border-radius: 6px;
}

html[dir="ltr"] .ja-cv-table caption.ja-cv-table-caption,
html[dir="ltr"] .ja-cv-table th,
html[dir="ltr"] .ja-cv-table td {
  text-align: left;
}

html[dir="ltr"] .ja-cv-table caption.ja-cv-table-caption i {
  margin-left: 0;
  margin-right: 6px;
}

.ja-pitch-video-block > .ja-compact-label {
  margin-bottom: 2px;
}

.ja-photo-preview {
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: linear-gradient(135deg, #e2e8f0, #f8fafc);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #94a3b8;
  font-size: 1.5rem;
  background-size: cover;
  background-position: center;
  flex-shrink: 0;
  box-shadow: inset 0 0 0 2px rgba(255, 255, 255, 0.8);
  position: relative;
  overflow: hidden;
}
.ja-photo-preview--thumb {
  border-radius: 16px;
  overflow: hidden;
}

.ja-photo-preview--pick {
  border: 0;
  padding: 0;
  margin: 0;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
  color: #0e7490;
  background: linear-gradient(145deg, #e0f2fe 0%, #f0f9ff 55%, #ecfeff 100%);
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.9),
    0 0 0 2px rgba(14, 116, 144, 0.22);
}
.ja-photo-preview--pick:hover,
.ja-photo-preview--pick:focus-visible {
  transform: scale(1.04);
  color: #0369a1;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.95),
    0 0 0 3px rgba(14, 116, 144, 0.35),
    0 10px 20px rgba(14, 116, 144, 0.18);
  outline: none;
}
.ja-photo-preview--pick:active {
  transform: scale(0.98);
}
.ja-photo-preview__cam {
  font-size: 1.55rem;
  line-height: 1;
  pointer-events: none;
}
.ja-photo-preview__badge {
  position: absolute;
  inset-inline-end: -2px;
  bottom: -2px;
  width: 1.55rem;
  height: 1.55rem;
  border-radius: 9999px;
  display: none;
  align-items: center;
  justify-content: center;
  background: linear-gradient(135deg, #0284c7 0%, #0e7490 100%);
  color: #fff;
  font-size: 0.72rem;
  box-shadow: 0 4px 10px rgba(2, 132, 199, 0.35);
  border: 2px solid #fff;
  pointer-events: none;
  z-index: 2;
}
.ja-photo-preview--pick.has-photo {
  color: transparent;
  background-size: cover !important;
  background-position: center !important;
  background-repeat: no-repeat !important;
  box-shadow:
    inset 0 0 0 2px rgba(255, 255, 255, 0.85),
    0 0 0 2px rgba(14, 116, 144, 0.28);
}
.ja-photo-preview--pick.has-photo .ja-photo-preview__badge {
  display: inline-flex;
}
.ja-photo-preview__existing {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  border-radius: 50%;
  pointer-events: none;
  z-index: 1;
  display: block;
}
.ja-photo-inline--avatar-pick {
  align-items: center;
  gap: 0.65rem;
}
.ja-file-actions--photo-side {
  flex-direction: row;
  align-items: center;
}

.ja-field-hint {
  margin: 6px 0 0;
  font-size: 0.78rem;
  color: #64748b;
}

.ja-date-input {
  cursor: pointer;
}

.ja-date-input::-webkit-calendar-picker-indicator {
  cursor: pointer;
  opacity: 0.75;
}

.ja-cv-head {
  display: flex;
  align-items: flex-start;
  gap: 16px;
}

.ja-cv-head-icon { display: none; }

.ja-cv-photo {
  width: 88px;
  height: 88px;
  border-radius: 50%;
  overflow: hidden;
  flex-shrink: 0;
  box-shadow: 0 4px 16px rgba(15, 23, 42, 0.15);
}

.ja-cv-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.ja-ref-code {
  font-size: clamp(1.1rem, 3vw, 1.45rem);
  font-weight: 800;
  color: #0f766e;
  font-family: ui-monospace, monospace;
  background: linear-gradient(135deg, #ecfdf5, #d1fae5);
  padding: 14px 20px;
  border-radius: var(--sls-radius-md);
  display: inline-block;
  margin: 14px 0;
  letter-spacing: 0.04em;
  box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.2);
  animation: jaPulse 2.5s ease-in-out infinite;
}

@keyframes jaPulse {
  0%, 100% { box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.2), 0 0 0 0 rgba(13, 148, 136, 0); }
  50% { box-shadow: inset 0 0 0 1px rgba(13, 148, 136, 0.35), 0 0 0 8px rgba(13, 148, 136, 0.08); }
}

/* Lookup compact card */
.ja-lookup-card {
  max-width: 520px;
  margin: 0 auto;
}

.ja-lookup-card .ja-card-body { padding-top: 22px; }

.ja-lookup-card .ja-btn-primary { width: 100%; justify-content: center; }

.ja-lookup-card .ja-btn-secondary {
  width: 100%;
  justify-content: center;
  margin-top: 10px;
  text-decoration: none;
}

/* CV view */
.ja-cv-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 16px;
}

.ja-cv-card .ja-card-body { padding: 28px 26px; }

.ja-cv-header-meta {
  opacity: 0.95;
  font-size: 0.92rem;
  line-height: 1.75;
}

.ja-cv-section { margin-bottom: 22px; }

.ja-cv-item {
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: var(--sls-radius-md);
  padding: 14px 16px;
  margin-bottom: 10px;
  background: rgba(248, 250, 252, 0.75);
}

.ja-docs-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(170px, 1fr));
  gap: 12px;
}

.ja-doc-thumb {
  border: 1px solid #e2e8f0;
  border-radius: 12px;
  overflow: hidden;
  background: #fff;
  transition: transform 0.25s var(--sls-ease), box-shadow 0.25s;
}

.ja-doc-thumb:hover {
  transform: translateY(-3px);
  box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
}

.ja-doc-thumb img {
  width: 100%;
  height: 118px;
  object-fit: cover;
  display: block;
}

.ja-doc-thumb a {
  display: block;
  padding: 8px 10px;
  font-size: 0.78rem;
  color: var(--sls-teal);
  text-decoration: none;
  font-weight: 700;
}

.reveal {
  opacity: 0;
  transform: translateY(18px);
  transition: opacity 0.7s var(--sls-ease), transform 0.7s var(--sls-ease);
}

.reveal.is-visible {
  opacity: 1;
  transform: translateY(0);
}

.reveal-delay-1 { transition-delay: 0.08s; }
.reveal-delay-2 { transition-delay: 0.16s; }
.reveal-delay-3 { transition-delay: 0.24s; }

@media (max-width: 700px) {
  .ja-grid-2 { grid-template-columns: 1fr; }
  .ja-card-body { padding: 20px 16px 22px; }
  .ja-pitch-video-shell {
    max-width: none;
    min-height: 180px;
  }
  .ja-media-section--photo .ja-photo-inline {
    flex-wrap: wrap;
  }
}

/* HR PDF export — same rules as browser print on job_application_cv */
body.ja-pdf-export::before,
body.ja-pdf-export .ambient,
body.ja-pdf-export .ja-topbar,
body.ja-pdf-export .ja-typewriter-hero,
body.ja-pdf-export .ja-cv-toolbar,
body.ja-pdf-export .ja-lang-switch { display: none !important; }
body.ja-pdf-export { background: #fff; padding: 0; }
body.ja-pdf-export .ja-glass-card { box-shadow: none; border: none; }
body.ja-pdf-export .reveal { opacity: 1 !important; transform: none !important; }
body.ja-pdf-export .ja-cv-pitch-screen,
body.ja-pdf-export .ja-cv-pitch-screen-hint { display: none !important; }
body.ja-pdf-export .ja-cv-pitch-print,
body.ja-pdf-export .ja-cv-pdf-print {
  display: table !important;
  break-inside: avoid;
  page-break-inside: avoid;
}
body.ja-pdf-export .ja-cv-pdfs-print-wrap { display: block !important; }
body.ja-pdf-export .ja-cv-pdfs-print-heading { display: block !important; }
body.ja-pdf-export .ja-cv-screen-only,
body.ja-pdf-export .ja-cv-attachments-screen { display: none !important; }
body.ja-pdf-export .ja-cv-table {
  break-inside: avoid;
  page-break-inside: avoid;
}
body.ja-pdf-export .ja-export-letter {
  margin: 0 0 16px;
  padding: 0 4px;
  line-height: 1.75;
  font-size: 11pt;
}
body.ja-pdf-export .ja-export-applicant-block {
  page-break-after: always;
}
body.ja-pdf-export .ja-export-applicant-block:last-child {
  page-break-after: auto;
}

@media print {
  body.ja-portal::before,
  .ambient,
  .ja-topbar,
  .ja-typewriter-hero,
  .ja-cv-toolbar,
  .ja-lang-switch { display: none !important; }
  body.ja-portal { background: #fff; padding: 0; }
  .ja-glass-card { box-shadow: none; border: none; }
  .reveal { opacity: 1 !important; transform: none !important; }
  .ja-cv-pitch-screen,
  .ja-cv-pitch-screen-hint { display: none !important; }
  .ja-cv-pitch-print,
  .ja-cv-pdf-print {
    display: table !important;
    break-inside: avoid;
    page-break-inside: avoid;
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
  .ja-cv-pdfs-print-wrap {
    display: block !important;
  }
  .ja-cv-pdfs-print-heading {
    display: block !important;
  }
  .ja-cv-screen-only,
  .ja-cv-attachments-screen {
    display: none !important;
  }
  .ja-cv-table {
    break-inside: avoid;
    page-break-inside: avoid;
  }
  .ja-cv-table caption.ja-cv-table-caption,
  .ja-cv-table thead th,
  .ja-cv-table tbody th[scope="row"] {
    -webkit-print-color-adjust: exact;
    print-color-adjust: exact;
  }
}

@media (prefers-reduced-motion: reduce) {
  .ja-card-head::after,
  .ja-ref-code { animation: none; }
  .ja-repeat-box { animation: none; }
  .ja-typewriter-cursor { animation: none; opacity: 1; }
}

/* File upload + eye + crop */
.ja-file-native-hidden {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
}

.ja-file-wrap { width: 100%; }

.ja-file-row {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.ja-file-thumb {
  position: relative;
  width: 64px;
  height: 64px;
  padding: 0;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  overflow: hidden;
  background: #f8fafc;
  cursor: pointer;
  flex-shrink: 0;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.06);
  transition: transform 0.15s ease, box-shadow 0.15s ease, border-color 0.15s ease;
}
.ja-file-thumb:hover,
.ja-file-thumb:focus-visible {
  transform: translateY(-1px);
  border-color: #0d9488;
  box-shadow: 0 6px 14px rgba(13, 148, 136, 0.18);
  outline: none;
}
.ja-file-thumb__img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #e2e8f0;
}
.ja-file-thumb__pdf {
  display: none;
  width: 100%;
  height: 100%;
  align-items: center;
  justify-content: center;
  color: #dc2626;
  font-size: 1.45rem;
  background: linear-gradient(145deg, #fef2f2, #fff7ed);
}
.ja-file-thumb.is-pdf .ja-file-thumb__pdf {
  display: inline-flex;
}
.ja-file-thumb__zoom {
  position: absolute;
  inset-inline-end: 3px;
  bottom: 3px;
  width: 1.25rem;
  height: 1.25rem;
  border-radius: 9999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(15, 23, 42, 0.72);
  color: #fff;
  font-size: 0.62rem;
  pointer-events: none;
}
.ja-file-wrap.has-file .ja-file-thumb:not([hidden]) {
  display: inline-block;
}

/* Email already on file — confirm is optional until the address changes */
.ess-email-confirm--optional .ess-email-confirm-req {
  display: none;
}
.ess-email-confirm--optional input {
  background: #f8fafc;
}

/* Locked email: show value + “Change email?” instead of editable/confirm fields */
.ess-email-locked {
  display: grid;
  gap: 0.45rem;
}
.ess-email-locked__row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.55rem;
}
.ess-email-locked__value {
  flex: 1 1 12rem;
  min-width: 0;
  padding: 0.65rem 0.85rem;
  border: 1px solid #cbd5e1;
  border-radius: 0.75rem;
  background: #f8fafc;
  color: #0f172a;
  font-weight: 700;
  font-size: 0.9rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.ess-email-change-btn {
  flex: 0 0 auto;
}
.ess-email-locked__hint {
  margin: 0;
  color: #64748b;
}
.ess-email-edit__actions {
  margin-top: 0.55rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}
/* Hosted/readonly copy while locked — still submitted, not shown as a second box */
#essEmailBlock[data-ess-email-mode="locked"] #essEmail.ess-email-input--hosted {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
  opacity: 0;
  pointer-events: none;
}
#essEmailBlock {
  position: relative;
}
#essEmailBlock[data-ess-email-mode="edit"] #essEmail {
  display: block;
  width: 100%;
}

.ja-file-choose {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 7px 11px;
  border-radius: 9px;
  border: 1px dashed rgba(13, 148, 136, 0.45);
  background: rgba(255, 255, 255, 0.65);
  color: #0f766e;
  font-size: 0.76rem;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.2s var(--sls-ease), border-color 0.2s;
}

.ja-file-choose:hover {
  background: rgba(236, 253, 245, 0.95);
  border-color: #0d9488;
}

.ja-file-name {
  flex: 1;
  min-width: 0;
  font-size: 0.8rem;
  color: #475569;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.ja-file-icon-btn {
  width: 34px;
  height: 34px;
  border-radius: 9px;
  border: 1px solid #e2e8f0;
  background: #fff;
  color: #334155;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  transition: background 0.2s, color 0.2s, border-color 0.2s, opacity 0.2s;
}

.ja-file-icon-btn:hover:not(:disabled) {
  background: #ecfdf5;
  border-color: #99f6e4;
  color: #0f766e;
}

.ja-file-icon-btn:disabled {
  opacity: 0.35;
  cursor: not-allowed;
}

.ja-file-actions {
  display: flex;
  gap: 8px;
  margin-top: 8px;
}

.ja-field-full { grid-column: 1 / -1; }

.ja-portal .ess-legal-docs {
  border: 1px solid #e2e8f0;
  border-radius: 0.75rem;
  background: #fff;
  padding: 1rem 1.1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.04);
}
.ja-portal .ess-legal-docs.hidden { display: none !important; }
.ja-portal .ess-legal-docs__title {
  margin: 0 0 0.85rem;
  font-size: 0.9rem;
  font-weight: 700;
  color: #0f172a;
  display: flex;
  align-items: center;
  gap: 8px;
}
.ja-portal .ess-legal-docs__title > i { color: #0f766e; }
.ja-portal .ess-doc-remaining { font-size: 0.6875rem; font-weight: 700; margin-top: 0.35rem; }
.ja-portal .ess-doc-remaining--expired { color: #dc2626; }
.ja-portal .ess-doc-remaining--soon { color: #d97706; }
.ja-portal .ess-doc-remaining--ok { color: #059669; }

.ja-field textarea {
  width: 100%;
  min-height: 88px;
  padding: 12px 14px;
  border-radius: var(--sls-radius-md);
  border: 1px solid rgba(226, 232, 240, 0.95);
  background: rgba(255, 255, 255, 0.82);
  font-family: var(--sls-font-body);
  font-size: 0.92rem;
  resize: vertical;
}

/* Egyptian date — day / month / year selects */
.ja-date-eg {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) minmax(0, 1.1fr);
  gap: 8px;
  width: 100%;
}

.ja-date-part {
  width: 100%;
  min-height: var(--ja-input-h, 40px);
  padding: 8px 10px;
  border: 1px solid rgba(148, 163, 184, 0.55);
  border-radius: var(--sls-radius-md);
  font-family: var(--sls-font-body);
  font-size: 0.875rem;
  line-height: 1.35;
  background: rgba(255, 255, 255, 0.92);
  color: var(--sls-navy);
  cursor: pointer;
  transition: border-color 0.2s, box-shadow 0.2s var(--sls-ease);
}

.ja-date-part:focus {
  outline: none;
  border-color: var(--sls-teal);
  box-shadow: 0 0 0 3px rgba(13, 148, 136, 0.16);
}

.ja-date-slot { display: block; width: 100%; }

@media (max-width: 520px) {
  .ja-date-eg {
    grid-template-columns: 1fr;
  }
}

/* Image preview modal */
.ja-img-modal {
  position: fixed;
  inset: 0;
  z-index: 2147483000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 16px;
}

.ja-img-modal.is-open { display: flex; }

.ja-img-modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(15, 23, 42, 0.72);
  backdrop-filter: blur(6px);
}

.ja-img-modal--cv .ja-img-modal-panel {
  width: min(96vw, 960px);
}

.ja-img-modal--cv .ja-pdf-preview {
  min-height: min(72vh, 680px);
}

.ja-img-modal-panel {
  position: relative;
  width: min(96vw, 720px);
  max-height: min(92vh, 860px);
  background: #fff;
  border-radius: 18px;
  overflow: hidden;
  box-shadow: var(--sls-shadow-lg);
  display: flex;
  flex-direction: column;
}

.ja-img-modal-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  font-weight: 800;
  color: #0f172a;
}

.ja-img-modal-close {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: #f1f5f9;
  color: #64748b;
  cursor: pointer;
}

.ja-img-modal-close:hover { background: #fee2e2; color: #dc2626; }

.ja-img-modal-body {
  padding: 12px;
  overflow: auto;
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 200px;
  background: #0f172a;
}

.ja-img-modal-body img {
  max-width: 100%;
  max-height: min(78vh, 720px);
  object-fit: contain;
  border-radius: 8px;
}

.ja-pdf-preview {
  display: none;
  width: 100%;
  min-height: min(70vh, 640px);
  border: none;
  background: #fff;
}

.ja-modal-video {
  display: none;
  width: 100%;
  max-width: min(960px, 92vw);
  max-height: min(78vh, 720px);
  border-radius: 8px;
  background: #000;
}

body.ja-modal-open { overflow: hidden; }

/* Smart photo crop modal — Tailwind-free compat on job portal */
.ja-portal #slsSmartPhotoModal {
  display: none;
  position: fixed;
  inset: 0;
  z-index: 2147483100 !important;
  align-items: center;
  justify-content: center;
  padding: 12px;
  background: rgba(0, 0, 0, 0.7);
  backdrop-filter: blur(4px);
}

.ja-portal #slsSmartPhotoModal.flex { display: flex !important; }
.ja-portal #slsSmartPhotoModal.hidden { display: none !important; }

.ja-portal #slsSmartPhotoModal .sls-smart-photo-panel {
  background: #fff;
  border-radius: 16px;
  box-shadow: var(--sls-shadow-lg);
  width: 100%;
  max-width: 960px;
  max-height: min(96vh, 920px);
  overflow: hidden;
  border: 1px solid #e2e8f0;
  display: flex;
  flex-direction: column;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-head,
.ja-portal #slsSmartPhotoModal .sls-smart-photo-foot {
  padding: 12px 16px;
  border-bottom: 1px solid #e2e8f0;
  display: flex;
  align-items: center;
  justify-content: space-between;
  background: #f8fafc;
  flex-shrink: 0;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-foot {
  border-bottom: none;
  border-top: 1px solid #e2e8f0;
  justify-content: flex-end;
  gap: 8px;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-body {
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
  overflow: hidden;
}

@media (min-width: 900px) {
  .ja-portal #slsSmartPhotoModal .sls-smart-photo-body { flex-direction: row; }
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-workspace {
  flex: 1;
  min-height: 0;
  padding: 12px 16px;
  background: #f1f5f9;
  display: flex;
  flex-direction: column;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-preview-aside {
  flex-shrink: 0;
  border-top: 1px solid #e2e8f0;
  padding: 12px 16px;
  background: #fff;
}

@media (min-width: 900px) {
  .ja-portal #slsSmartPhotoModal .sls-smart-photo-preview-aside {
    width: min(42%, 320px);
    border-top: none;
    border-left: 1px solid #e2e8f0;
  }
}

.ja-portal #slsSmartPhotoModal .hidden { display: none !important; }

.ja-portal #slsSmartPhotoModal #slsSmartPhotoCancel,
.ja-portal #slsSmartPhotoModal #slsSmartPhotoSave {
  padding: 10px 16px;
  border-radius: 10px;
  font-weight: 700;
  border: none;
  cursor: pointer;
}

.ja-portal #slsSmartPhotoModal #slsSmartPhotoCancel { background: #e2e8f0; color: #334155; }
.ja-portal #slsSmartPhotoModal #slsSmartPhotoSave { background: #2563eb; color: #fff; }

.ja-portal #slsSmartPhotoModal #slsSmartPhotoClose {
  width: 36px;
  height: 36px;
  border: none;
  border-radius: 999px;
  background: transparent;
  cursor: pointer;
  color: #64748b;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-crop-host,
.ja-portal #slsSmartPhotoModal .sls-smart-photo-workspace .sls-smart-photo-crop-host {
  min-height: min(58vh, 520px);
  max-height: min(68vh, 620px);
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-crop-host .cropper-container,
.ja-portal #slsSmartPhotoModal .sls-smart-photo-crop-host .cropper-wrap-box,
.ja-portal #slsSmartPhotoModal .sls-smart-photo-crop-host .cropper-canvas {
  max-height: min(68vh, 620px);
}

.ja-portal #slsSmartPhotoModal #slsSmartPhotoImage {
  display: block;
  max-width: none;
  max-height: none;
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-body {
  min-height: min(72vh, 680px);
}

.ja-portal #slsSmartPhotoModal .sls-smart-photo-tools {
  margin-top: 12px;
}

.ja-portal #slsSmartPhotoModal h3 {
  margin: 0;
  font-size: 1.1rem;
  font-weight: 800;
  color: #0f172a;
}

.ja-portal #slsSmartPhotoModal #slsSmartPhotoHint {
  margin: 4px 0 0;
  font-size: 0.75rem;
  color: #64748b;
}

/* HR modal iframe — CV content only (no portal hero / topbar) */
body.ja-cv-embed {
  background: #fff;
  min-height: auto;
  padding: 0;
  margin: 0;
}

body.ja-cv-embed .ja-cv-pdf-print,
body.ja-cv-embed .ja-cv-pdfs-print-wrap,
body.ja-cv-embed .ja-cv-pdfs-print-heading,
body.ja-cv-embed .ja-cv-pitch-print {
  display: none !important;
}

/* Nested preview inside HR iframe breaks the parent modal — embed uses postMessage to parent */
body.ja-cv-embed .ja-img-modal {
  display: none !important;
}

body.ja-cv-embed::before,
body.ja-cv-embed .ambient {
  display: none !important;
}

body.ja-cv-embed .ja-wrap--embed {
  max-width: none;
  width: 100%;
  margin: 0;
  padding: 12px 14px 20px;
}

body.ja-cv-embed .ja-glass-card.ja-cv-card--embed {
  margin: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08);
  border-radius: 12px;
}

body.ja-cv-embed .ja-cv-tables-wrap {
  padding: 0;
}

/* Copyright / developer footer (matches ERP + parent portal) */
.ja-portal-site-footer {
  position: relative;
  z-index: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 8px;
  margin: 8px 16px 24px;
  padding: 16px 12px;
  font-size: 0.82rem;
  line-height: 1.6;
  text-align: center;
  color: rgba(226, 232, 240, 0.88);
  border-top: 1px solid rgba(148, 163, 184, 0.35);
  background: transparent;
}
.ja-portal-site-footer__sep { opacity: 0.5; }
.ja-portal-site-footer__wa {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-weight: 600;
  color: #4ade80;
  text-decoration: none;
  border-radius: 6px;
  padding: 2px 4px;
  transition: color 0.2s ease, background-color 0.2s ease;
}
.ja-portal-site-footer__wa:hover {
  color: #86efac;
  background: rgba(37, 211, 102, 0.12);
  text-decoration: underline;
}
.ja-portal-site-footer__wa:focus-visible {
  outline: 2px solid #25d366;
  outline-offset: 2px;
}
body.ja-cv-embed .ja-portal-site-footer {
  color: #64748b;
  border-top-color: #e2e8f0;
  margin-bottom: 12px;
}
body.ja-cv-embed .ja-portal-site-footer__wa { color: #15803d; }
body.ja-cv-embed .ja-portal-site-footer__wa:hover {
  color: #166534;
  background: rgba(22, 163, 74, 0.1);
}
