:root {
  --navy: #042c6c;
  --navy-light: #0a3d8a;
  --yellow: #ffeb3b;
  --bg: #f0f2f5;
  --card: #fff;
  --text: #1a1a1a;
  --text-muted: #65676b;
  --border: #e4e6eb;
  --radius: 12px;
  --radius-sm: 8px;
  --shadow: 0 2px 12px rgba(0,0,0,0.08);
  --shadow-hover: 0 4px 20px rgba(0,0,0,0.12);
  --transition: 0.2s ease;
}

* { box-sizing: border-box; }
html { scroll-behavior: smooth; }
body {
  margin: 0;
  font-family: 'Inter', -apple-system, BlinkMacSystemFont, sans-serif;
  background: var(--bg);
  color: var(--text);
  line-height: 1.5;
  min-height: 100vh;
  padding-left: 0;
}
@media (min-width: 769px) {
  body { padding-left: 240px; }
}

.app-main {
  min-height: calc(100vh - 80px);
  padding: 24px 20px 48px;
  max-width: 900px;
  margin: 0 auto;
  transition: opacity 0.2s ease;
}
@media (min-width: 769px) {
  .app-main { padding: 32px 24px 48px; }
}
.app-main--home {
  max-width: none;
  padding-top: 0;
  padding-left: 0;
  padding-right: 0;
}
@media (max-width: 768px) {
  .app-main--home { padding-top: 0; padding-left: 0; padding-right: 0; }
}
.app-main.loading { opacity: 0.6; pointer-events: none; }

/* Fixed left sidebar - desktop */
.portal-sidebar {
  display: none;
  position: fixed;
  left: 0;
  top: 0;
  bottom: 0;
  width: 260px;
  background: var(--card);
  box-shadow: 4px 0 24px rgba(0,0,0,0.06);
  z-index: 100;
  flex-direction: column;
  padding: 0;
  border-right: 1px solid var(--border);
}
@media (min-width: 769px) {
  .portal-sidebar { display: flex; }
}
.portal-sidebar .portal-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 24px;
  margin-bottom: 8px;
  text-decoration: none;
  transition: opacity var(--transition);
}
.portal-sidebar .portal-logo:hover { opacity: 0.9; }
.portal-logo-img {
  display: block;
  max-height: 40px;
  width: auto;
  object-fit: contain;
  flex-shrink: 0;
}
.portal-logo-text {
  font-weight: 700;
  font-size: 1.15rem;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.portal-nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  padding: 0 12px 20px;
  flex: 1;
  min-height: 0;
}
.portal-nav-item {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  color: var(--text);
  text-decoration: none;
  font-size: 0.95rem;
  font-weight: 500;
  border-radius: var(--radius-sm);
  transition: background var(--transition), color var(--transition), border-color var(--transition);
  border-left: 3px solid transparent;
  margin-left: 4px;
}
.portal-nav-item:hover {
  background: var(--bg);
  color: var(--navy);
}
.portal-nav-item.active {
  background: rgba(4,44,108,0.08);
  color: var(--navy);
  border-left-color: var(--navy);
  font-weight: 600;
}
.portal-nav-item.active:hover {
  background: rgba(4,44,108,0.12);
}
.portal-nav-icon {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
  width: 24px;
  height: 24px;
  color: inherit;
  opacity: 0.9;
}
.portal-nav-icon svg { width: 20px; height: 20px; }
.portal-nav-divider {
  height: 1px;
  background: var(--border);
  margin: 12px 16px 8px;
}
.portal-nav-item.portal-nav-external {
  color: var(--text-muted);
  font-size: 0.9rem;
}
.portal-nav-item.portal-nav-external:hover {
  color: var(--navy);
}

.portal-nav-profile-pct {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
  flex-shrink: 0;
}
.portal-profile-pie {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: conic-gradient(var(--navy) 0 calc(var(--pct, 0) * 1%), var(--border) calc(var(--pct, 0) * 1%) 100%);
}
.portal-profile-pct-value {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  min-width: 2em;
}
.portal-nav-item:hover .portal-profile-pct-value,
.portal-nav-item.active .portal-profile-pct-value {
  color: var(--navy);
}

/* Mobile top bar */
.portal-topbar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  background: var(--card);
  box-shadow: var(--shadow);
  position: sticky;
  top: 0;
  z-index: 99;
}
@media (min-width: 769px) {
  .portal-topbar { display: none; }
}
.portal-topbar-logo {
  display: flex;
  align-items: center;
  text-decoration: none;
  flex: 1;
  min-width: 0;
}
.portal-topbar-logo-img {
  display: block;
  max-height: 32px;
  width: auto;
  max-width: 140px;
  object-fit: contain;
}
.portal-mobile-menu {
  width: 44px;
  height: 44px;
  border: none;
  background: var(--bg) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 24 24' stroke='%23042c6c'%3E%3Cpath stroke-linecap='round' stroke-linejoin='round' stroke-width='2' d='M4 6h16M4 12h16M4 18h16'/%3E%3C/svg%3E") center/24px no-repeat;
  border-radius: var(--radius-sm);
  cursor: pointer;
  flex-shrink: 0;
}
.portal-sidebar-overlay {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.35);
  z-index: 98;
}
body.sidebar-open .portal-sidebar-overlay { display: block; }
body.sidebar-open .portal-sidebar { display: flex; position: fixed; top: 0; left: 0; right: auto; bottom: 0; width: 260px; }

/* Footer */
.portal-footer {
  background: var(--navy);
  color: #fff;
  padding: 32px 20px 16px;
  margin-top: 48px;
}
.portal-footer-inner {
  display: flex;
  gap: 32px;
  max-width: 1200px;
  margin: 0 auto;
  flex-wrap: wrap;
}
.portal-footer-col {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.portal-footer-col a {
  color: rgba(255,255,255,0.9);
  text-decoration: none;
  font-size: 0.95rem;
}
.portal-footer-col a:hover { text-decoration: underline; }
.portal-footer-copy {
  text-align: center;
  font-size: 0.85rem;
  color: rgba(255,255,255,0.7);
  margin: 24px 0 0;
}

/* Home view: hero (full-width card) + content (constrained like footer inner) */
.view-home .home-hero {
  background: var(--card);
  box-shadow: var(--shadow);
  border-bottom: 1px solid var(--border);
}
.view-home .home-hero-inner {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 20px;
}
@media (min-width: 769px) {
  .view-home .home-hero-inner { padding: 32px 24px 24px; }
}
.view-home .home-title {
  margin: 0 0 8px;
  font-size: 1.75rem;
  font-weight: 700;
  color: var(--navy);
  letter-spacing: -0.02em;
}
.view-home .home-sub {
  margin: 0 0 20px;
  font-size: 1rem;
  color: var(--text-muted);
}
.view-home .home-filters { margin: 0; }
.view-home .home-filters-row {
  display: grid;
  gap: 16px 20px;
  grid-template-columns: 1fr;
}
@media (min-width: 600px) {
  .view-home .home-filters-row { grid-template-columns: 1.5fr 1fr 1fr 1fr; }
}
.view-home .home-filter-group { min-width: 0; }
.view-home .home-filter-label {
  display: block;
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--text-muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 6px;
}
.view-home .home-search-wrap { position: relative; }
.view-home .home-search-wrap .home-search-icon {
  position: absolute;
  left: 12px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--text-muted);
  font-size: 1rem;
}
.view-home .home-search-input {
  width: 100%;
  padding: 10px 14px 10px 38px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--bg);
  transition: border-color var(--transition);
}
.view-home .home-search-input:focus {
  outline: none;
  border-color: var(--navy);
}
.view-home .home-filter-select {
  width: 100%;
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  background: var(--card);
  color: var(--text);
  cursor: pointer;
}
.view-home .home-content {
  max-width: 900px;
  margin: 0 auto;
  padding: 24px 20px 48px;
}
@media (min-width: 769px) {
  .view-home .home-content { padding: 24px 24px 48px; }
}

/* Views common */
.view-head { margin-bottom: 28px; }
.view-head h1 { margin: 0 0 8px; font-size: 1.75rem; color: var(--navy); }
.view-sub { margin: 0; color: var(--text-muted); font-size: 1rem; }
.back-link { display: inline-block; margin-bottom: 20px; color: var(--navy); text-decoration: none; font-weight: 500; }
.back-link:hover { text-decoration: underline; }

/* Job cards */
.jobs-list { display: flex; flex-direction: column; gap: 16px; }
.job-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 20px 24px;
  box-shadow: var(--shadow);
  transition: box-shadow var(--transition), transform var(--transition);
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
}
.job-card:hover { box-shadow: var(--shadow-hover); }
.job-card-main { flex: 1; min-width: 0; }
.job-card-title { margin: 0 0 8px; font-size: 1.15rem; color: var(--navy); }
.job-card-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 8px; font-size: 0.85rem; color: var(--text-muted); }
.job-card-meta span { background: var(--bg); padding: 4px 10px; border-radius: 6px; }
.job-card-excerpt { margin: 0; font-size: 0.9rem; color: var(--text-muted); line-height: 1.45; }
.job-card-actions { flex-shrink: 0; }
.job-card-actions--two { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.job-card-actions--two .btn { white-space: nowrap; }
.btn-applied { cursor: default; opacity: 0.85; background: var(--bg); color: var(--text-muted); border: 1px solid var(--border); font-weight: 500; }
.no-jobs { color: var(--text-muted); padding: 24px; text-align: center; }
.loading-jobs { text-align: center; padding: 24px; color: var(--text-muted); }

/* Buttons */
.btn {
  display: inline-block;
  padding: 10px 20px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-weight: 600;
  text-decoration: none;
  border: none;
  cursor: pointer;
  transition: background var(--transition), transform var(--transition);
}
.btn-primary { background: var(--navy); color: #fff; }
.btn-primary:hover { background: var(--navy-light); transform: translateY(-1px); }
.btn-secondary { background: var(--bg); color: var(--text); border: 1px solid var(--border); }
.btn-secondary:hover { background: var(--border); }
.btn-view-job { color: #fff; }

/* Job detail */
.back-link { margin-bottom: 20px; }

.job-header-card {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  border-radius: var(--radius);
  padding: 28px 24px;
  margin-bottom: 28px;
  box-shadow: 0 4px 20px rgba(4,44,108,0.2);
  color: #fff;
}
.job-header-card-inner { max-width: 100%; }
.job-header-title {
  margin: 0 0 12px;
  font-size: 1.6rem;
  font-weight: 700;
  color: #fff;
  letter-spacing: -0.02em;
  line-height: 1.3;
}
.job-header-meta { display: flex; flex-wrap: wrap; gap: 10px; margin-bottom: 20px; }
.job-header-meta-item {
  display: inline-flex;
  align-items: center;
  padding: 6px 14px;
  background: rgba(255,255,255,0.2);
  border-radius: 999px;
  font-size: 0.9rem;
  font-weight: 500;
}
.job-header-actions { margin-top: 4px; }
.btn-apply-cta { min-width: 140px; }
.job-header-card .btn-apply-cta {
  background: #fff;
  color: var(--navy);
  border: none;
}
.job-header-card .btn-apply-cta:hover {
  background: rgba(255,255,255,0.95);
  color: var(--navy);
}
.job-status-applied { background: rgba(255,255,255,0.35) !important; font-weight: 600; }
.job-applied-date { background: rgba(255,255,255,0.2) !important; font-size: 0.85rem; }
.btn-outline-white {
  background: transparent;
  color: #fff;
  border: 2px solid rgba(255,255,255,0.8);
}
.btn-outline-white:hover { background: rgba(255,255,255,0.15); color: #fff; }

.job-detail { margin-bottom: 32px; }
.job-detail-title { margin: 0 0 12px; font-size: 1.5rem; color: var(--navy); }
.job-detail-meta { display: flex; flex-wrap: wrap; gap: 12px; margin-bottom: 24px; font-size: 0.9rem; color: var(--text-muted); }
.job-detail-meta span { background: var(--bg); padding: 6px 12px; border-radius: 6px; }
.job-detail-block { margin-bottom: 24px; }
.job-detail-block h3 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.job-detail-content { color: var(--text); line-height: 1.6; }
.job-apply-box {
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.job-apply-box h3 { margin: 0 0 12px; font-size: 1.1rem; }
.job-apply-note { font-size: 0.9rem; color: var(--text-muted); margin-bottom: 12px; }
.job-apply-box .btn { margin-right: 10px; margin-bottom: 8px; }
.or { display: inline-block; margin: 0 8px; color: var(--text-muted); font-size: 0.9rem; }
.job-apply-message {
  margin-top: 16px;
  padding: 14px 18px;
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
}
.job-apply-message.success { background: #e6f4ea; color: #0d6832; }
.job-apply-message.error { background: #fce8e6; color: #c5221f; }

/* Assessment */
.assessment-panel {
  margin-top: 24px;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px;
  box-shadow: var(--shadow);
}
.assessment-panel.assessment-inline {
  margin-top: 16px;
  background: var(--bg);
  border: 1px solid var(--border);
  padding: 20px 24px;
}
.assessment-panel-title { margin: 0 0 8px; font-size: 1.05rem; color: var(--navy); }
.assessment-panel h3 { margin: 0 0 16px; }
.assessment-panel h4 { margin: 0 0 8px; }
.assessment-q { margin-bottom: 20px; padding-bottom: 16px; border-bottom: 1px solid var(--border); }
.assessment-q-text { font-weight: 500; margin: 0 0 10px; }
.assessment-q label { display: block; margin: 6px 0; cursor: pointer; font-size: 0.95rem; }
.assessment-q input[type="radio"] { margin-right: 8px; }
.assessment-actions { margin-top: 20px; display: flex; gap: 12px; flex-wrap: wrap; }
.assessment-loading { padding: 24px; text-align: center; color: var(--text-muted); }
.assessment-error { color: var(--text-muted); margin-bottom: 16px; }
.assessment-pagination { margin: 16px 0; }
.assessment-one-question-nav {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
  margin-top: 20px;
}
.assessment-question-counter {
  font-weight: 600;
  color: var(--navy);
  font-variant-numeric: tabular-nums;
}
.btn-pagination-prev,
.btn-pagination-next { min-width: 100px; }
.btn-pagination { min-width: 36px; display: none; }
.btn-pagination.active { background: var(--navy); color: #fff; border-color: var(--navy); }

/* Exam fullscreen overlay: dark blur background */
.exam-fullscreen-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.82);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  z-index: 300;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
  overflow-y: auto;
  -webkit-user-select: none;
  user-select: none;
  -webkit-touch-callout: none;
}
.exam-fullscreen-overlay input,
.exam-fullscreen-overlay label {
  -webkit-user-select: none;
  user-select: none;
}
.exam-loading {
  background: var(--card);
  border-radius: var(--radius);
  padding: 40px 48px;
  text-align: center;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  max-width: 360px;
}
.exam-loading-spinner {
  width: 48px;
  height: 48px;
  margin: 0 auto 20px;
  border: 4px solid var(--border);
  border-top-color: var(--navy);
  border-radius: 50%;
  animation: exam-spin 0.9s linear infinite;
}
@keyframes exam-spin {
  to { transform: rotate(360deg); }
}
.exam-loading-text {
  margin: 0 0 6px;
  font-size: 1.2rem;
  font-weight: 600;
  color: var(--text);
}
.exam-loading-sub {
  margin: 0;
  font-size: 0.95rem;
  color: var(--text-muted);
}
.exam-content {
  width: 100%;
  max-width: 720px;
  max-height: 90vh;
  overflow-y: auto;
  background: var(--card);
  border-radius: var(--radius);
  padding: 24px 28px 32px;
  box-shadow: 0 12px 48px rgba(0, 0, 0, 0.35);
  -webkit-user-select: none;
  user-select: none;
}
.exam-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 20px;
  flex-wrap: wrap;
}
.exam-timer {
  flex: 1;
  min-width: 0;
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--navy);
  color: #fff;
  padding: 10px 16px;
  border-radius: var(--radius-sm);
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: center;
}
.btn-cancel-exam,
.btn-cancel-exam-inline {
  background: none;
  border: none;
  color: var(--text-muted);
  font-size: 0.9rem;
  cursor: pointer;
  padding: 8px 0;
  text-decoration: none;
  flex-shrink: 0;
}
.btn-cancel-exam:hover,
.btn-cancel-exam-inline:hover {
  color: var(--navy);
  text-decoration: underline;
}

.apply-modal-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0,0,0,0.4);
  z-index: 200;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 20px;
}
.apply-modal {
  background: var(--card);
  border-radius: var(--radius);
  padding: 28px 32px;
  max-width: 440px;
  width: 100%;
  box-shadow: 0 8px 32px rgba(0,0,0,0.2);
}
.apply-modal-title { margin: 0 0 12px; font-size: 1.35rem; color: var(--navy); }
.apply-modal-text { margin: 0 0 24px; color: var(--text); line-height: 1.55; font-size: 0.95rem; }
.apply-modal-attempt { margin: -8px 0 20px; padding: 10px 14px; background: rgba(4, 44, 108, 0.08); border-radius: var(--radius-sm); font-size: 0.9rem; color: var(--navy); }
.apply-modal-actions { display: flex; flex-direction: column; gap: 10px; }
.apply-modal-actions .btn { width: 100%; justify-content: center; }

/* Profile */
.profile-completion-card {
  background: #fff;
  border-radius: var(--radius);
  padding: 28px;
  margin-bottom: 28px;
  box-shadow: var(--shadow);
  text-align: center;
}
.profile-pie-wrap {
  --pct: 0;
  width: 120px;
  height: 120px;
  margin: 0 auto 12px;
}
.profile-pie {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  background: conic-gradient(var(--navy) 0 calc(var(--pct) * 1%), var(--border) calc(var(--pct) * 1%) 100%);
}
.profile-pie-value {
  width: 80px;
  height: 80px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.5rem;
  color: var(--navy);
}
.profile-completion-label { margin: 0; font-weight: 600; color: var(--navy); }
.profile-completion-detail { margin: 4px 0 0; font-size: 0.9rem; color: var(--text-muted); }

.profile-form { background: var(--card); border-radius: var(--radius); padding: 28px; box-shadow: var(--shadow); }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; margin-bottom: 20px; }
.form-grid label { display: flex; flex-direction: column; gap: 6px; font-size: 0.9rem; font-weight: 500; }
.form-full { display: flex; flex-direction: column; gap: 6px; margin-bottom: 20px; font-weight: 500; }
.profile-form input[type="text"],
.profile-form input[type="email"],
.profile-form input[type="url"],
.profile-form input[type="file"],
.profile-form textarea {
  padding: 10px 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 0.95rem;
  font-family: inherit;
}
.profile-form textarea { resize: vertical; min-height: 100px; }
.req { color: #c00; }
.file-current { font-size: 0.85rem; color: var(--text-muted); font-weight: 400; }
.profile-resume-attachment {
  display: inline-flex; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: 8px;
  padding: 10px 14px; background: var(--bg); border: 1px solid var(--border); border-radius: var(--radius-sm);
  font-size: 0.9rem; font-weight: 400;
}
.profile-resume-attachment-icon { font-size: 1.1rem; }
.profile-resume-attachment-name { color: var(--text); word-break: break-all; }
.profile-resume-attachment-link {
  color: var(--navy); font-weight: 500; text-decoration: none;
}
.profile-resume-attachment-link:hover { text-decoration: underline; }
.form-actions { margin-top: 24px; }
.form-message { margin-top: 16px; padding: 12px; border-radius: var(--radius-sm); }
.form-message.success { background: #e6f4ea; color: #0d6832; }
.form-message.error { background: #fce8e6; color: #c5221f; }

.view-admin-tools .admin-tools-section { margin-bottom: 32px; }
.view-admin-tools .admin-tools-section h2 { margin: 0 0 8px; font-size: 1.1rem; color: var(--navy); }
.view-admin-tools .admin-tools-desc { margin: 0 0 12px; font-size: 0.9rem; color: var(--text-muted); }
.view-admin-tools .admin-tools-none { margin: 0 0 16px; color: var(--text-muted); font-size: 0.95rem; }
.view-admin-tools .admin-tools-actions { margin-bottom: 12px; }
.view-admin-tools .admin-tools-summary-cell { max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }

/* Potential Applicants (admin) */
.view-potential-applicants .potential-applicants-jobs-list-wrap { margin-bottom: 28px; }
.view-potential-applicants .potential-applicants-jobs-heading { margin: 0 0 12px; font-size: 1.1rem; color: var(--navy); }
.view-potential-applicants .potential-applicants-jobs-list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.view-potential-applicants .potential-applicants-job-item { margin: 0; padding: 0; }
.view-potential-applicants .potential-applicants-job-link {
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--border); border-radius: var(--radius);
  box-shadow: var(--shadow); text-decoration: none; color: inherit; transition: box-shadow 0.2s, border-color 0.2s;
}
.view-potential-applicants .potential-applicants-job-link:hover { box-shadow: var(--shadow-hover); border-color: var(--navy); }
.view-potential-applicants .potential-applicants-job-item--selected .potential-applicants-job-link {
  border-color: var(--navy); background: rgba(4, 44, 108, 0.06); box-shadow: var(--shadow);
}
.view-potential-applicants .potential-applicants-job-title { font-weight: 600; color: var(--navy); font-size: 1rem; }
.view-potential-applicants .potential-applicants-job-dept { font-size: 0.9rem; color: var(--text-muted); }
.view-potential-applicants .potential-applicants-job-count {
  margin-left: auto; font-size: 0.85rem; font-weight: 500; color: var(--text-muted);
  background: var(--bg); padding: 4px 10px; border-radius: 6px;
}
.view-potential-applicants .potential-applicants-none,
.view-potential-applicants .potential-applicants-hint { color: var(--text-muted); margin: 16px 0; font-size: 0.95rem; }
.view-potential-applicants .potential-applicants-results { margin-top: 20px; }
.view-potential-applicants .potential-applicants-results-title { margin: 0 0 4px; font-size: 1.25rem; color: var(--navy); }
.view-potential-applicants .potential-applicants-results-dept { margin: 0 0 16px; font-size: 0.9rem; color: var(--text-muted); }
.potential-applicants-table-wrap { overflow-x: auto; margin-top: 12px; }
.potential-applicants-table { width: 100%; border-collapse: collapse; background: var(--card); border-radius: var(--radius); box-shadow: var(--shadow); }
.potential-applicants-table th,
.potential-applicants-table td { padding: 12px 16px; text-align: left; border-bottom: 1px solid var(--border); }
.potential-applicants-table th { font-weight: 600; color: var(--navy); font-size: 0.9rem; }
.potential-applicants-table tbody tr:last-child td { border-bottom: 0; }
.potential-applicants-table tbody tr:hover { background: var(--bg); }
.potential-applicants-name { display: block; font-weight: 500; }
.potential-applicants-email { display: block; font-size: 0.85rem; color: var(--text-muted); }
.potential-applicants-rec-cell { min-width: 160px; }
.potential-applicants-bar-wrap { display: inline-block; width: 80px; height: 10px; background: var(--bg); border-radius: 5px; overflow: hidden; vertical-align: middle; margin-right: 10px; }
.potential-applicants-bar { height: 100%; background: linear-gradient(90deg, #0d6832, #1a9e4a); border-radius: 5px; transition: width 0.2s; }
.potential-applicants-rec-pct { font-weight: 600; color: var(--navy); font-size: 0.95rem; }
.potential-applicants-viewed-cell { white-space: nowrap; }
.potential-applicants-viewed { color: #0d6832; font-weight: 500; font-size: 0.9rem; }
.potential-applicants-not-viewed { color: var(--text-muted); }
.potential-applicants-row-viewed { background: rgba(13, 104, 50, 0.04); }
.potential-applicants-row-viewed:hover { background: var(--bg); }

/* Potential Applicants candidates popup */
.potential-applicants-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.potential-applicants-modal[hidden] { display: none !important; }
.potential-applicants-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); cursor: pointer; }
.potential-applicants-modal-content { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-width: 920px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }
.potential-applicants-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.potential-applicants-modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.potential-applicants-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 8px; margin: -4px -8px 4px 8px; }
.potential-applicants-modal-close:hover { color: var(--navy); }
.potential-applicants-modal-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; }
.potential-applicants-modal-loading { color: var(--text-muted); margin: 0; }

/* Applied jobs section (profile) */
.applied-jobs-section { margin-bottom: 28px; }
.applied-jobs-title { margin: 0 0 16px; font-size: 1.25rem; color: var(--navy); }
.applied-jobs-list { display: flex; flex-direction: column; gap: 12px; }
.applied-job-card {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 20px;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.applied-job-main { flex: 1; min-width: 0; }
.applied-job-title {
  display: block;
  font-weight: 600;
  font-size: 1.05rem;
  color: var(--navy);
  text-decoration: none;
  margin-bottom: 6px;
}
.applied-job-title:hover { text-decoration: underline; }
.applied-job-meta { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 6px; font-size: 0.85rem; color: var(--text-muted); }
.applied-job-meta span { background: var(--bg); padding: 4px 10px; border-radius: 6px; }
.applied-job-status { display: flex; align-items: center; gap: 10px; font-size: 0.9rem; }
.status-badge { padding: 4px 10px; border-radius: 6px; font-weight: 600; font-size: 0.8rem; }
.status-applied { background: #e6f4ea; color: #0d6832; }
.applied-job-date { color: var(--text-muted); }
.applied-job-actions { display: flex; gap: 8px; flex-shrink: 0; }
.btn-sm { padding: 6px 14px; font-size: 0.875rem; }
.btn-danger { background: var(--danger, #c00); color: #fff; }
.btn-danger:hover { background: #a00; }
.form-check { flex-direction: row; align-items: center; gap: 10px; }
.form-check input[type="checkbox"] { width: auto; margin: 0; }
.view-title { margin: 0 0 8px; font-size: 1.5rem; }
.view-desc { margin: 0 0 20px; color: var(--text-muted); font-size: 0.95rem; }
.admin-jobs-actions { margin-bottom: 20px; }
.admin-jobs-table { width: 100%; border-collapse: collapse; font-size: 0.9rem; }
.admin-jobs-table th, .admin-jobs-table td { padding: 12px; text-align: left; border-bottom: 1px solid var(--border); }
.admin-jobs-table th { font-weight: 600; color: var(--navy); background: var(--bg); }
.admin-jobs-table .btn { margin-right: 8px; }
.admin-job-status { font-size: 0.8rem; padding: 4px 10px; border-radius: 999px; font-weight: 600; }
.admin-job-status-active { background: #e0f2e0; color: #0a7b0a; }
.admin-job-status-inactive { background: #f0f0f0; color: #666; }
.job-form-admin.form-grid { display: block; max-width: 640px; }
.job-form-admin label { display: block; margin-bottom: 16px; }
.job-form-admin .form-actions { margin-top: 8px; }
.job-form-admin .btn { margin-right: 10px; }
.btn-outline-danger { background: transparent; color: #c5221f; border: 1px solid #c5221f; }

/* Notifications */
.portal-nav-notification-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 18px;
  height: 18px;
  padding: 0 5px;
  font-size: 0.7rem;
  font-weight: 700;
  color: #fff;
  background: var(--danger, #c5221f);
  border-radius: 999px;
  margin-left: 6px;
}
.portal-nav-notification-badge.hidden { display: none !important; }

.notification-welcome-alert {
  padding: 14px 18px;
  margin-bottom: 20px;
  background: #e6f4ea;
  border: 1px solid #0d6832;
  border-radius: var(--radius);
  color: #0d6832;
  font-size: 0.95rem;
}
.notification-welcome-alert a { color: #0d6832; font-weight: 600; }
.notification-welcome-alert a:hover { text-decoration: underline; }

.notifications-actions { margin-bottom: 16px; }
.notifications-list { list-style: none; margin: 0; padding: 0; }
.notification-item { border-bottom: 1px solid var(--border); }
.notification-item-inner {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 0;
}
.notification-item--unread .notification-title { font-weight: 700; }
.notification-link, .notification-content { flex: 1; min-width: 0; text-decoration: none; color: inherit; display: block; }
.notification-link:hover .notification-title { text-decoration: underline; }
.notification-title { display: block; font-size: 1rem; color: var(--navy); margin-bottom: 4px; }
.notification-body { display: block; font-size: 0.9rem; color: var(--text-muted); margin-bottom: 4px; }
.notification-time { font-size: 0.8rem; color: var(--text-muted); }
.notification-mark-read { flex-shrink: 0; }
.notifications-empty { padding: 24px 0; color: var(--text-muted); }

.admin-notification-form { max-width: 480px; }
.admin-notification-form label { display: block; margin-bottom: 16px; }
.admin-notification-form .form-actions { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.admin-notification-result { font-size: 0.9rem; color: var(--text-muted); }

/* Sign-ups chart at top */
.admin-signups-chart-wrap { margin-bottom: 24px; padding: 16px 20px; background: var(--card); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); }
.admin-signups-totals { display: flex; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 12px; }
.admin-signups-total { font-size: 1rem; color: var(--text-muted); }
.admin-signups-total strong { color: var(--navy); }
.admin-signups-launch-ago { font-weight: normal; font-size: 0.9em; opacity: 0.9; }
.admin-signups-chart { width: 100%; max-width: 600px; height: 160px; box-sizing: border-box; }
.admin-signups-svg { display: block; width: 100%; height: 160px; }
.admin-signups-axis { font-size: 11px; font-family: var(--font-sans, Inter), sans-serif; }
.admin-signups-axis-y { dominant-baseline: middle; }
.admin-signups-axis-x { dominant-baseline: auto; }
.admin-signups-axis-title { font-size: 10px; font-weight: 600; text-transform: uppercase; letter-spacing: 0.05em; }
.admin-signups-chart-empty { margin: 0; font-size: 0.9rem; color: var(--text-muted); }

.admin-profiles-list { display: flex; flex-direction: column; gap: 12px; }
.admin-profiles-empty { margin: 0; color: var(--text-muted); }
.admin-profile-card { width: 100%; border: 1px solid var(--border); border-radius: var(--radius); background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,0.06); overflow: hidden; }
.admin-profile-preview { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 16px 20px; flex-wrap: wrap; }
.admin-profile-preview-main { flex: 1; min-width: 0; }
.admin-profile-preview-name { font-size: 1.1rem; font-weight: 700; color: var(--navy); margin-bottom: 4px; }
.admin-profile-preview-email { font-size: 0.9rem; margin-bottom: 10px; }
.admin-profile-preview-email a { color: var(--navy); }
.admin-profile-preview-email a:hover { text-decoration: underline; }
.admin-profile-preview-meta { display: flex; flex-wrap: wrap; gap: 8px 20px; font-size: 0.85rem; color: var(--text-muted); }
.admin-profile-preview-meta span { white-space: nowrap; }
.admin-profile-preview-actions { flex-shrink: 0; }
.admin-profile-full-details { display: none; }
.admin-profile-dl { display: grid; grid-template-columns: auto 1fr; gap: 6px 24px; margin: 0; font-size: 0.9rem; }
.admin-profile-dl dt { font-weight: 600; color: var(--text-muted); }
.admin-profile-dl dd { margin: 0; word-break: break-word; }
.admin-profile-dl dd a { color: var(--navy); }

/* Popup: form-style profile + exams */
.admin-profile-modal-form { margin-bottom: 20px; }
.admin-profile-modal-section-title { font-size: 1rem; font-weight: 700; color: var(--navy); margin: 0 0 12px 0; padding-bottom: 6px; border-bottom: 1px solid var(--border); }
.admin-profile-form-row { margin-bottom: 10px; }
.admin-profile-form-row label { display: block; font-size: 0.8rem; font-weight: 600; color: var(--text-muted); margin-bottom: 2px; }
.admin-profile-form-value { font-size: 0.95rem; word-break: break-word; }
.admin-profile-form-value a { color: var(--navy); }
.admin-profile-modal-exams { }
.admin-profile-no-exams { margin: 0; font-size: 0.9rem; color: var(--text-muted); }
.admin-profile-exams-list { list-style: none; margin: 0; padding: 0; }
.admin-profile-exam-item { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; padding: 10px 0; border-bottom: 1px solid var(--border); }
.admin-profile-exam-item:last-child { border-bottom: none; }
.admin-profile-exam-title { font-weight: 600; color: var(--navy); }
.admin-profile-exam-meta { font-size: 0.85rem; color: var(--text-muted); }

.admin-profile-modal { position: fixed; inset: 0; z-index: 1000; display: flex; align-items: center; justify-content: center; padding: 20px; box-sizing: border-box; }
.admin-profile-modal[hidden] { display: none !important; }
.admin-profile-modal-backdrop { position: absolute; inset: 0; background: rgba(0,0,0,0.4); cursor: pointer; }
.admin-profile-modal-content { position: relative; background: #fff; border-radius: var(--radius); box-shadow: 0 20px 60px rgba(0,0,0,0.2); max-width: 640px; width: 100%; max-height: 85vh; display: flex; flex-direction: column; }
.admin-profile-modal-header { display: flex; align-items: center; justify-content: space-between; padding: 16px 20px; border-bottom: 1px solid var(--border); flex-shrink: 0; }
.admin-profile-modal-title { margin: 0; font-size: 1.1rem; font-weight: 700; color: var(--navy); }
.admin-profile-modal-close { background: none; border: none; font-size: 1.5rem; line-height: 1; color: var(--text-muted); cursor: pointer; padding: 4px 8px; margin: -4px -8px 4px 8px; }
.admin-profile-modal-close:hover { color: var(--navy); }
.admin-profile-modal-body { padding: 20px; overflow-y: auto; flex: 1; min-height: 0; }

.view-applications .applied-jobs-list { margin-top: 0; }

.applications-admin-table-wrap { overflow-x: auto; margin-top: 8px; }
.applications-admin-table {
  width: 100%;
  border-collapse: collapse;
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
}
.applications-admin-table th,
.applications-admin-table td {
  padding: 12px 16px;
  text-align: left;
  border-bottom: 1px solid var(--border);
}
.applications-admin-table th {
  background: rgba(4, 44, 108, 0.08);
  font-weight: 600;
  color: var(--navy);
  font-size: 0.9rem;
}
.applications-admin-table tbody tr:hover { background: var(--bg); }
.applications-admin-table a { color: var(--navy); text-decoration: none; font-weight: 500; }
.applications-admin-table a:hover { text-decoration: underline; }
.applications-admin-table a.btn-primary { color: #fff; }
.applications-admin-table a.btn-primary:hover { color: #fff; text-decoration: none; }

.applications-empty,
.applications-login-prompt {
  text-align: center;
  padding: 48px 24px;
  background: var(--card);
  border-radius: var(--radius);
  border: 1px solid var(--border);
  box-shadow: var(--shadow);
}
.applications-empty p,
.applications-login-prompt p { margin: 0 0 20px; color: var(--text-muted); }

/* Login / Sign in */
.view-login { max-width: 420px; margin: 0 auto; padding: 24px 0; }
.login-card {
  background: var(--card);
  border-radius: var(--radius);
  padding: 32px;
  box-shadow: var(--shadow);
  border: 1px solid var(--border);
  text-align: center;
}
.login-title { margin: 0 0 8px; font-size: 1.5rem; font-weight: 700; color: var(--navy); }
.login-sub { margin: 0 0 24px; font-size: 0.95rem; color: var(--text-muted); line-height: 1.5; }
.login-error { margin: 0 0 16px; padding: 12px; background: #fce8e6; color: #c5221f; border-radius: var(--radius-sm); font-size: 0.9rem; }
.login-error p { margin: 0 0 8px; }
.login-error p:last-child { margin-bottom: 0; }
.login-redirect-uri { margin-top: 12px !important; color: #1a1a1a; }
.login-redirect-code { display: block; margin: 6px 0 0; padding: 10px; background: #f0f2f5; color: var(--navy); border-radius: 6px; font-size: 0.8rem; word-break: break-all; }
.btn-google {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 12px;
  width: 100%;
  padding: 12px 20px;
  background: #fff;
  color: #1a1a1a;
  border: 1px solid var(--border);
  border-radius: var(--radius-sm);
  font-size: 1rem;
  font-weight: 600;
  text-decoration: none;
  cursor: pointer;
  transition: background var(--transition), border-color var(--transition), box-shadow var(--transition);
  box-shadow: 0 1px 3px rgba(0,0,0,0.08);
}
.btn-google:hover {
  background: #f8f9fa;
  border-color: #dadce0;
  box-shadow: 0 2px 6px rgba(0,0,0,0.1);
}
.btn-google-icon {
  width: 20px;
  height: 20px;
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24'%3E%3Cpath fill='%234285F4' d='M22.56 12.25c0-.78-.07-1.53-.2-2.25H12v4.26h5.92c-.26 1.37-1.04 2.53-2.21 3.31v2.77h3.57c2.08-1.92 3.28-4.74 3.28-8.09z'/%3E%3Cpath fill='%2334A853' d='M12 23c2.97 0 5.46-.98 7.28-2.66l-3.57-2.77c-.98.66-2.23 1.06-3.71 1.06-2.86 0-5.29-1.93-6.16-4.53H2.18v2.84C3.99 20.53 7.7 23 12 23z'/%3E%3Cpath fill='%23FBBC05' d='M5.84 14.09c-.22-.66-.35-1.36-.35-2.09s.13-1.43.35-2.09V7.07H2.18C1.43 8.55 1 10.22 1 12s.43 3.45 1.18 4.93l2.85-2.22.81-.62z'/%3E%3Cpath fill='%23EA4335' d='M12 5.38c1.62 0 3.06.56 4.21 1.64l3.15-3.15C17.45 2.09 14.97 1 12 1 7.7 1 3.99 3.47 2.18 7.07l3.66 2.84c.87-2.6 3.3-4.53 6.16-4.53z'/%3E%3C/svg%3E") center/contain no-repeat;
}
.login-footer { margin: 24px 0 0; font-size: 0.8rem; color: var(--text-muted); line-height: 1.5; }

/* Assessment report card – dashboard style */
.view-application { max-width: 900px; margin: 0 auto; padding-bottom: 48px; }
.report-card-actions { margin-bottom: 20px; }

.report-card.report-card-dashboard {
  background: var(--card);
  border-radius: var(--radius);
  box-shadow: 0 4px 24px rgba(0, 0, 0, 0.08), 0 1px 3px rgba(0, 0, 0, 0.06);
  overflow: hidden;
  border: 1px solid var(--border);
}

.report-card-header {
  background: linear-gradient(135deg, var(--navy) 0%, var(--navy-light) 100%);
  color: #fff;
  padding: 28px 32px 24px;
  text-align: center;
  position: relative;
}
.report-card-serial {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 8px 14px;
  background: rgba(255,255,255,0.15);
  border: 2px solid rgba(255,255,255,0.5);
  border-radius: 2px;
  box-shadow: 0 1px 0 rgba(0,0,0,0.1) inset;
}
.report-card-logo {
  font-size: 0.95rem;
  font-weight: 700;
  letter-spacing: 0.06em;
  margin-bottom: 6px;
  opacity: 0.92;
}
.report-card-title {
  margin: 0 0 4px;
  font-size: 1.5rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}
.report-card-subtitle {
  margin: 0;
  font-size: 0.9rem;
  opacity: 0.9;
}
.report-card-test-meta {
  margin-top: 12px;
  font-size: 0.8rem;
  opacity: 0.9;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 16px 24px;
}
.report-card-test-meta span { display: inline-block; }

.report-card-meta {
  padding: 20px 24px;
  background: var(--bg);
  border-bottom: 1px solid var(--border);
}
.report-card-meta-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  gap: 16px 24px;
}
.report-card-meta-item {
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.report-card-label {
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--text-muted);
}
.report-card-value { color: var(--text); font-size: 0.95rem; font-weight: 500; }

/* Dashboard grid: pie + KPI cards */
.report-card-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 20px;
  padding: 24px;
}
.report-card-dash-card {
  background: var(--bg);
  border-radius: var(--radius-sm);
  padding: 20px;
  border: 1px solid var(--border);
  box-shadow: 0 1px 4px rgba(0, 0, 0, 0.04);
}
.report-card-dash-title {
  margin: 0 0 16px;
  font-size: 0.9rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

/* Pie chart – correct vs wrong */
.report-card-pie-card { text-align: center; }
.report-card-pie-wrap {
  position: relative;
  width: 140px;
  height: 140px;
  margin: 0 auto 12px;
}
.report-card-pie {
  width: 100%;
  height: 100%;
  border-radius: 50%;
  background: conic-gradient(
    #0d6832 0 calc(var(--correct-pct, 0) * 1%),
    #c5221f calc(var(--correct-pct, 0) * 1%) 100%
  );
}
.report-card-pie-center {
  position: absolute;
  inset: 50%;
  transform: translate(-50%, -50%);
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: var(--card);
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  font-size: 1.25rem;
  color: var(--text);
  box-shadow: inset 0 0 0 2px var(--border);
}
.report-card-pie-correct { color: #0d6832; }
.report-card-pie-sep { margin: 0 2px; color: var(--text-muted); }
.report-card-pie-total { color: var(--text-muted); font-weight: 500; }
.report-card-pie-legend {
  display: flex;
  justify-content: center;
  gap: 16px;
  flex-wrap: wrap;
  font-size: 0.8rem;
  color: var(--text-muted);
}
.report-card-legend-item {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
.report-card-legend-item i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  display: inline-block;
}
.report-card-legend-correct i { background: #0d6832; }
.report-card-legend-wrong i { background: #c5221f; }

/* Progress bar capsules – low / medium / good */
.report-card-progress-wrap {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 6px;
}
.report-card-progress-capsule {
  flex: 1;
  height: 12px;
  border-radius: 999px;
  background: var(--border);
  overflow: hidden;
  min-width: 0;
}
.report-card-progress-fill {
  height: 100%;
  border-radius: 999px;
  transition: width 0.4s ease;
}
.report-card-progress-fill.report-card-tier-low {
  background: linear-gradient(90deg, #c5221f, #e57373);
}
.report-card-progress-fill.report-card-tier-medium {
  background: linear-gradient(90deg, #e65100, #ffb74d);
}
.report-card-progress-fill.report-card-tier-good {
  background: linear-gradient(90deg, #0d6832, #4caf50);
}
.report-card-progress-fill.report-card-tier-neutral {
  background: var(--text-muted);
}
.report-card-tier-good-text { color: #0d6832; font-weight: 700; }
.report-card-tier-neutral-text { color: var(--text-muted); font-weight: 600; }
.report-card-tier-medium-text { color: #e65100; font-weight: 700; }
.report-card-tier-low-text { color: #c5221f; font-weight: 700; }
.report-card-progress-value {
  font-size: 1rem;
  min-width: 44px;
  text-align: right;
}
.report-card-dash-desc {
  margin: 0;
  font-size: 0.8rem;
  color: var(--text-muted);
}

.report-card-detail-list {
  margin: 0;
  padding: 0;
  list-style: none;
}
.report-card-detail-list li {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  padding: 6px 0;
  border-bottom: 1px solid var(--border);
  font-size: 0.9rem;
}
.report-card-detail-list li:last-child { border-bottom: none; }
.report-card-detail-label { color: var(--text-muted); }
.report-card-detail-value { font-weight: 500; color: var(--text); }

.report-card-remarks {
  padding: 24px;
  border-top: 1px solid var(--border);
  background: var(--bg);
  margin: 0 24px 24px;
  border-radius: var(--radius-sm);
}
.report-card-section-title {
  margin: 0 0 12px;
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--navy);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
.report-card-summary {
  line-height: 1.65;
  color: var(--text);
  margin: 0;
  white-space: pre-wrap;
  font-size: 0.95rem;
}
.report-card-footer {
  padding: 16px 24px;
  font-size: 0.8rem;
  color: var(--text-muted);
  text-align: center;
  border-top: 1px solid var(--border);
  background: var(--bg);
}
.report-card-footer p { margin: 0; }

.report-card-qualification {
  margin: 0 24px 20px;
  padding: 16px 20px;
  background: var(--bg);
  border-radius: var(--radius-sm);
  border-left: 4px solid var(--navy);
}
.report-card-qualification .report-card-section-title { margin-top: 0; }
.report-card-qualification-text { margin: 0; font-size: 0.95rem; color: var(--text); line-height: 1.5; }

.report-card-cover-letter {
  margin: 0 24px 24px;
  padding: 20px;
  background: #fafafa;
  border-radius: var(--radius-sm);
  border: 1px solid var(--border);
}
.report-card-cover-letter .report-card-section-title { margin-top: 0; }
.report-card-cover-letter-text {
  margin: 0;
  font-size: 0.9rem;
  line-height: 1.6;
  color: var(--text);
  white-space: pre-wrap;
}

/* Questions answered – handwritten exam / sticky note vibe */
.report-qa-section.report-qa-paper {
  margin-top: 32px;
  padding: 12px 16px 24px;
  font-family: var(--font-sans, Inter), sans-serif;
  background: linear-gradient(135deg, #fefce8 0%, #fef9c3 50%, #fef08a 100%);
  border-radius: 2px;
  box-shadow: 2px 3px 12px rgba(0,0,0,0.08), 0 1px 0 rgba(255,255,255,0.6) inset;
  border: 1px solid rgba(180,160,80,0.35);
  position: relative;
}
.report-qa-section.report-qa-paper::before {
  content: '';
  position: absolute;
  top: 0; left: 0; right: 0; bottom: 0;
  border-radius: inherit;
  background: url("data:image/svg+xml,%3Csvg viewBox='0 0 200 200' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='noise'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.9' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23noise)' opacity='0.03'/%3E%3C/svg%3E");
  pointer-events: none;
}
.report-qa-paper-head {
  position: relative;
  padding-top: 44px;
  padding-bottom: 16px;
  margin-bottom: 8px;
  border-bottom: 1px solid rgba(180,160,80,0.4);
}
.report-qa-paper-logo {
  position: absolute;
  top: 16px;
  left: 20px;
  height: 40px;
  width: auto;
  object-fit: contain;
}
.report-qa-paper-serial {
  position: absolute;
  top: 16px;
  right: 20px;
  font-family: 'Courier New', Courier, monospace;
  font-size: 1rem;
  font-weight: 700;
  letter-spacing: 0.2em;
  padding: 6px 12px;
  background: rgba(0,0,0,0.06);
  border: 2px solid rgba(0,0,0,0.2);
  border-radius: 2px;
  color: #1f2937;
}
.report-qa-paper-title {
  font-family: var(--font-sans, Inter), sans-serif;
  margin: 0 0 6px;
  font-size: 1.65rem;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--navy);
  text-align: center;
}
.report-qa-paper-job {
  font-family: var(--font-sans, Inter), sans-serif;
  margin: 0 0 10px;
  font-size: 1rem;
  font-weight: 600;
  color: var(--text-muted);
  text-align: center;
}
.report-qa-paper-meta {
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: 0.85rem;
  color: var(--text-muted);
  text-align: center;
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 12px 24px;
}
.report-qa-paper-meta--digital {
  font-family: 'Courier New', Courier, monospace;
  font-size: 0.9rem;
  letter-spacing: 0.02em;
}
.report-qa-paper-meta--bold {
  font-weight: 700;
  color: var(--navy);
}
.report-qa-paper-meta--bold .report-qa-paper-time-ago,
.report-qa-paper-meta--bold .report-qa-paper-datetime {
  font-weight: 700;
}
.report-qa-paper-meta span { display: inline-block; }
.report-qa-paper-notice {
  margin: 10px 0 0; padding: 10px 12px; background: #f5f5f5; border-left: 4px solid var(--navy);
  font-size: 0.9rem; color: var(--text-muted);
}
.report-qa-list {
  display: flex;
  flex-direction: column;
  gap: 20px;
  padding: 0;
  margin: 0;
  list-style: none;
}
.report-qa-item {
  width: 100%;
  font-family: var(--font-sans, Inter), sans-serif;
  padding-bottom: 16px;
  border-bottom: 1px dashed rgba(100,80,40,0.2);
}
.report-qa-item:last-child { border-bottom: none; }
.report-qa-q-line {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 6px 8px;
  margin-bottom: 12px;
  font-weight: 700;
  width: 100%;
}
.report-qa-q-num {
  font-family: var(--font-sans, Inter), sans-serif;
  font-weight: 700;
  font-size: 1.1rem;
  color: #374151;
  flex-shrink: 0;
}
.report-qa-q-text {
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: 1rem;
  line-height: 1.4;
  color: #1f2937;
  font-weight: 700;
  flex: 1;
  min-width: 0;
}
.report-qa-q-mark {
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  flex-shrink: 0;
}
.report-qa-q-mark--right { color: #0d6832; }
.report-qa-q-mark--wrong { color: #b91c1c; }
.report-qa-opts--four {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  width: 100%;
}
.report-qa-opt {
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: 0.95rem;
  color: #374151;
  padding: 10px 12px;
  border-radius: 8px;
  border: 1px solid transparent;
  background: rgba(255,255,255,0.5);
  min-height: 44px;
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 4px 6px;
}
.report-qa-opt-bracket { font-weight: 700; flex-shrink: 0; opacity: 0.9; }
.report-qa-opt-text { flex: 1; min-width: 0; }
.report-qa-opt--chosen {
  border-width: 1px;
  border-color: #374151;
  box-shadow: 0 0 0 1px rgba(55,65,81,0.2);
}
.report-qa-opt--correct-circle {
  border-width: 1px;
  border-color: #0d6832;
  background: rgba(13,104,50,0.08);
  box-shadow: 0 0 0 1px rgba(13,104,50,0.15);
}
.report-qa-opt-x {
  font-family: var(--font-sans, Inter), sans-serif;
  font-size: 1.1rem;
  font-weight: 700;
  color: #b91c1c;
  flex-shrink: 0;
  margin-left: 4px;
}

@media print {
  .no-print,
  .portal-sidebar,
  .portal-sidebar-overlay,
  .portal-topbar,
  .back-link,
  .report-card-actions,
  .portal-nav,
  footer,
  .btn {
    display: none !important;
  }
  body { background: #fff; }
  .app-main { padding: 0; max-width: none; }
  .view-application { max-width: none; padding: 0; }
  .report-card.report-card-dashboard {
    box-shadow: none;
    border: 1px solid #333;
  }
  .report-card-header { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-card-pie { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-card-progress-fill { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .report-qa-section.report-qa-paper { -webkit-print-color-adjust: exact; print-color-adjust: exact; box-shadow: none; border: 1px solid rgba(0,0,0,0.12); }
  .report-qa-item { break-inside: avoid; }
  .report-qa-opt--chosen, .report-qa-opt--correct-circle { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}

/* Mobile */
@media (max-width: 768px) {
  .app-main { padding: 16px 12px 32px; }
  .view-home .home-hero-inner { padding: 18px 12px 16px; }
  .view-home .home-content { padding: 18px 12px 32px; }
  .view-home .home-filters-row { grid-template-columns: 1fr; }
  .view-home .home-title { font-size: 1.5rem; }
  .job-card { flex-direction: column; align-items: stretch; padding: 16px; }
  .job-card-actions .btn { width: 100%; text-align: center; }
  .form-grid { grid-template-columns: 1fr; }
  .profile-pie-wrap { width: 100px; height: 100px; }
  .profile-pie-value { width: 64px; height: 64px; font-size: 1.2rem; }
}
