:root {
  color-scheme: light;
  --bg: #f6f8f8;
  --surface: #ffffff;
  --surface-2: #eef3f2;
  --text: #17211f;
  --muted: #687672;
  --line: #dce5e2;
  --teal: #0f766e;
  --teal-dark: #115e59;
  --blue: #2563eb;
  --amber: #b45309;
  --red: #b91c1c;
  --green: #15803d;
  --ink: #111827;
  --accent: #fb7185;
  --font-scale: 1;
  --ui-weight: 650;
  --shadow: 0 10px 30px rgba(15, 23, 42, 0.08);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

.mini-report-list {
  display: grid;
  gap: 8px;
  margin: 12px 0;
}

.mini-report-card {
  width: 100%;
  border: 1px solid #d8e2ee;
  background: #fff;
  border-radius: 8px;
  padding: 10px 12px;
  text-align: left;
  cursor: pointer;
}

.mini-report-card:hover {
  border-color: #ec4899;
  box-shadow: 0 8px 20px rgba(15, 23, 42, 0.08);
}

.mini-report-card strong,
.mini-report-card span {
  display: block;
}

.mini-report-card span {
  color: #64748b;
  font-size: 12px;
  margin-top: 3px;
}

.campaign-report-sheet pre {
  max-height: 260px;
  overflow: auto;
  background: #0f172a;
  color: #e2e8f0;
  border-radius: 8px;
  padding: 12px;
}

.return-strip {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 10px;
  padding: 8px 10px;
  border: 1px solid #f9a8d4;
  border-radius: 8px;
  background: #fff1f6;
}

.return-strip span {
  color: #831843;
  font-size: 12px;
  font-weight: 700;
}

.button.is-loading::before {
  content: "";
  width: 12px;
  height: 12px;
  border: 2px solid currentColor;
  border-top-color: transparent;
  border-radius: 999px;
  display: inline-block;
  margin-right: 6px;
  vertical-align: -2px;
  animation: spin 0.8s linear infinite;
}

@keyframes spin {
  to { transform: rotate(360deg); }
}

.file-confirm {
  min-width: 44px;
  justify-content: center;
  font-weight: 900;
}

.file-confirm.pdf {
  color: #b91c1c;
  background: #fff5f5;
  border-color: #fecaca;
}

.file-confirm.word {
  color: #1d4ed8;
  background: #eff6ff;
  border-color: #bfdbfe;
}

.file-confirm.link,
.file-confirm.file {
  color: #0f766e;
  background: #ecfdf5;
  border-color: #99f6e4;
}

.muted-text {
  color: var(--muted);
  font-size: 11px;
}

@page {
  size: A4;
  margin: 12mm;
}

@media print {
  body {
    background: #ffffff;
  }

  .sidebar,
  .topbar,
  .module-actions,
  .pagination-bar,
  .helpbot,
  .button,
  .table-action,
  .contact-icon {
    display: none !important;
  }

  .app-shell,
  .main,
  .content,
  .panel,
  .table-wrap {
    display: block;
    width: 100%;
    padding: 0;
    margin: 0;
    box-shadow: none;
    border: 0;
  }

  table {
    min-width: 0;
    width: 100%;
    font-size: 10px;
    page-break-inside: auto;
  }

  tr {
    page-break-inside: avoid;
  }
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-size: calc(16px * var(--font-scale));
  font-weight: var(--ui-weight);
}

.is-hidden {
  display: none !important;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  cursor: pointer;
}

.app-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
}

.sidebar {
  background: #10201d;
  color: #effaf7;
  padding: 18px;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow: auto;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 8px 8px 18px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.12);
  margin-bottom: 12px;
}

.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  background: #e6fffb;
  color: #0f766e;
  font-weight: 800;
  overflow: hidden;
  text-decoration: none;
}

.brand-mark img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.brand-mark.logo-mark {
  background: #111827;
  border: 1px solid rgba(255, 255, 255, 0.22);
}

.brand strong,
.brand span {
  display: block;
}

.brand span {
  color: #a8c7c1;
  font-size: 12px;
  margin-top: 2px;
}

.module-nav {
  display: grid;
  gap: 5px;
}

.nav-group {
  display: grid;
  gap: 4px;
}

.nav-group.open {
  background: rgba(255, 255, 255, 0.04);
  border-radius: 8px;
}

.nav-group.collapsed .nav-children {
  display: none;
}

.nav-item {
  width: 100%;
  border: 0;
  color: #d7e9e5;
  background: transparent;
  display: grid;
  grid-template-columns: 34px 1fr;
  align-items: center;
  gap: 10px;
  padding: 9px 8px;
  border-radius: 8px;
  text-align: left;
}

.nav-parent {
  grid-template-columns: 34px 1fr auto;
}

.nav-chevron {
  color: #a8c7c1;
  font-style: normal;
  font-size: 16px;
  font-weight: 900;
}

.nav-item span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  font-size: 11px;
  color: #cfe7e1;
}

.nav-item strong {
  font-size: 14px;
  font-weight: 650;
}

.nav-item:hover,
.nav-item.active {
  background: linear-gradient(90deg, rgba(244, 63, 94, 0.32), rgba(14, 165, 233, 0.22));
  color: #ffffff;
}

.nav-item.active span {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.hr-submenu,
.nav-children {
  display: grid;
  gap: 3px;
  padding: 2px 0 6px 16px;
  border-left: 1px solid rgba(255, 255, 255, 0.14);
  margin-left: 15px;
}

.hr-subitem,
.nav-child {
  width: 100%;
  min-height: 34px;
  display: grid;
  grid-template-columns: 26px 1fr;
  align-items: center;
  gap: 8px;
  border: 0;
  border-radius: 7px;
  background: transparent;
  color: #cfe7e1;
  padding: 7px 8px;
  text-align: left;
}

.hr-subitem span,
.nav-child span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  background: rgba(255, 255, 255, 0.08);
  font-size: 10px;
  font-weight: 800;
}

.hr-subitem strong,
.nav-child strong {
  font-size: 13px;
  font-weight: var(--ui-weight);
}

.hr-subitem:hover,
.hr-subitem.active,
.nav-child:hover,
.nav-child.active {
  background: rgba(251, 113, 133, 0.28);
  color: #ffffff;
}

.nav-style-compact .nav-item {
  grid-template-columns: 24px 1fr;
}

.nav-style-compact .nav-item span,
.nav-style-compact .hr-subitem span {
  width: 20px;
  height: 20px;
  font-size: 0;
}

.nav-style-hidden .nav-item,
.nav-style-hidden .hr-subitem {
  grid-template-columns: 1fr;
}

.nav-style-hidden .nav-item span,
.nav-style-hidden .hr-subitem span {
  display: none;
}

.workspace {
  min-width: 0;
  padding: 16px;
}

.topbar {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 18px;
  margin-bottom: 12px;
}

.eyebrow {
  color: var(--muted);
  text-transform: uppercase;
  font-size: 11px;
  letter-spacing: 0;
  font-weight: 760;
  margin: 0 0 5px;
}

h1,
h2 {
  margin: 0;
  letter-spacing: 0;
}

h1 {
  font-size: 26px;
  line-height: 1.15;
}

h2 {
  font-size: 18px;
  line-height: 1.25;
}

.topbar-actions,
.module-actions {
  display: flex;
  align-items: end;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.global-search,
.role-switcher,
.module-search,
.form-grid label {
  display: grid;
  gap: 5px;
}

.global-search span,
.role-switcher span,
.module-search span,
.form-grid span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
}

input,
select,
textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  color: var(--text);
  padding: 10px 11px;
  min-height: 40px;
}

textarea {
  min-height: 94px;
  resize: vertical;
}

.global-search input {
  min-width: min(340px, 70vw);
}

.role-switcher select {
  min-width: 180px;
}

.content {
  display: grid;
  gap: 18px;
}

.auth-screen {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
  background:
    linear-gradient(120deg, rgba(7, 19, 38, 0.78), rgba(15, 118, 110, 0.36)),
    var(--login-bg, url("/assets/formbackground.jpg")) center / cover,
    #f4f7f8;
}

.auth-panel {
  width: min(1040px, 100%);
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.68);
  border-radius: 8px;
  padding: 16px;
  display: grid;
  grid-template-columns: minmax(300px, 0.95fr) minmax(340px, 1.05fr);
  gap: 16px;
  box-shadow: 0 24px 80px rgba(7, 19, 38, 0.28);
  backdrop-filter: blur(12px);
}

.auth-brand {
  background:
    linear-gradient(160deg, rgba(16, 32, 29, 0.96), rgba(7, 37, 54, 0.9)),
    rgba(16, 32, 29, 0.95);
  color: #ffffff;
  border-radius: 8px;
  padding: 24px;
  display: grid;
  align-content: space-between;
  gap: 22px;
  min-height: 430px;
}

.auth-brand-top,
.auth-brand-bottom {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.auth-brand .brand-mark {
  width: 64px;
  height: 64px;
}

.auth-brand h1 {
  color: #ffffff;
  font-size: 42px;
  line-height: 1.02;
  max-width: 8.8em;
}

.auth-brand .brand-visible {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  padding: 6px 10px;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.92);
  color: #be123c;
  font-weight: 900;
  letter-spacing: 0;
  text-transform: none;
}

.auth-brand-copy {
  color: rgba(255, 255, 255, 0.78);
  font-size: 15px;
  line-height: 1.55;
  margin: 0;
  max-width: 34em;
}

.auth-contact {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  align-items: center;
  font-size: 12px;
  text-transform: lowercase;
  color: rgba(255, 255, 255, 0.78);
}

.auth-contact a {
  color: #ffffff;
  text-decoration: none;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 8px;
  min-height: 30px;
  display: inline-grid;
  place-items: center;
  padding: 5px 10px;
  font-weight: 800;
}

.auth-contact .auth-contact-icon {
  width: 34px;
  min-height: 34px;
  padding: 0;
  border-radius: 50%;
  font-size: 16px;
}

.auth-contact svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.auth-social-links {
  display: flex;
  gap: 7px;
  align-items: center;
}

.auth-social-links a {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.24);
  text-decoration: none;
}

.auth-social-links svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.portal-contact-highlight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  padding: 11px;
  background: #fff1f6;
  border: 1px solid #f9a8d4;
  border-radius: 8px;
}

.portal-contact-highlight strong {
  display: block;
  color: #9f1239;
  font-size: 13px;
}

.portal-contact-highlight span {
  display: block;
  color: #6b213b;
  font-size: 12px;
  line-height: 1.35;
}

.portal-contact-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 6px;
}

.portal-contact-actions a,
.contact-icon {
  width: 32px;
  height: 32px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #ffffff;
  background: #be185d;
  text-decoration: none;
}

.portal-contact-actions svg,
.contact-icon svg {
  width: 17px;
  height: 17px;
  fill: currentColor;
}

.auth-powered {
  color: rgba(255, 255, 255, 0.72);
  font-size: 11px;
  margin: 0;
}

.auth-powered a {
  color: #f9a8d4;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.job-apply-cta {
  justify-self: start;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 8px;
  color: #ffffff;
  background: #db2777;
  border: 1px solid rgba(255, 255, 255, 0.24);
  box-shadow: 0 12px 30px rgba(219, 39, 119, 0.36);
  text-decoration: none;
  font-weight: 880;
  animation: jobPulse 1.8s ease-in-out infinite;
}

@keyframes jobPulse {
  0%,
  100% {
    transform: translateY(0);
    box-shadow: 0 12px 30px rgba(219, 39, 119, 0.32);
  }
  50% {
    transform: translateY(-2px);
    box-shadow: 0 16px 36px rgba(219, 39, 119, 0.48);
  }
}

.auth-card {
  display: grid;
  align-content: start;
  gap: 14px;
  padding: 8px;
}

.password-field {
  position: relative;
  display: block;
}

.password-field input {
  width: 100%;
  padding-right: 46px;
}

.password-eye {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  min-width: 32px;
  height: 28px;
  border: 0;
  border-radius: 6px;
  background: #eef2f7;
  color: #334155;
  font-size: 10px;
  font-weight: 800;
  cursor: pointer;
}

.password-eye.active {
  background: var(--teal);
  color: #ffffff;
}

.auth-screen[data-login-mode="counselor"],
.auth-screen[data-login-mode="student"] {
  background:
    radial-gradient(circle at 22% 18%, rgba(255, 255, 255, 0.78), transparent 26%),
    linear-gradient(135deg, rgba(2, 6, 23, 0.42), rgba(15, 23, 42, 0.2)),
    var(--login-bg, url("/assets/formbackground.jpg")) center / cover,
    #f8fafc;
}

.auth-screen[data-login-mode="counselor"] .auth-panel,
.auth-screen[data-login-mode="student"] .auth-panel {
  max-width: 980px;
  border-radius: 22px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.72);
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.32);
  backdrop-filter: blur(22px) saturate(1.25);
}

.auth-screen[data-login-mode="counselor"] .auth-brand,
.auth-screen[data-login-mode="student"] .auth-brand {
  border-radius: 18px;
  background:
    linear-gradient(180deg, rgba(255,255,255,0.2), rgba(255,255,255,0.05)),
    linear-gradient(135deg, rgba(15, 76, 129, 0.92), rgba(15, 118, 110, 0.84));
}

.auth-screen[data-login-mode="counselor"] .auth-card,
.auth-screen[data-login-mode="student"] .auth-card {
  border-radius: 18px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.84);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.auth-screen[data-login-mode="counselor"] .auth-card::before,
.auth-screen[data-login-mode="student"] .auth-card::before {
  content: "";
  width: 52px;
  height: 16px;
  border-radius: 999px;
  background:
    radial-gradient(circle at 8px 8px, #fb7185 0 5px, transparent 6px),
    radial-gradient(circle at 26px 8px, #facc15 0 5px, transparent 6px),
    radial-gradient(circle at 44px 8px, #34d399 0 5px, transparent 6px);
}

.auth-screen[data-login-mode="counselor"] .auth-form button.primary {
  background: linear-gradient(135deg, #0f4c81, #14b8a6);
}

.auth-screen[data-login-mode="student"] .auth-form button.primary {
  background: linear-gradient(135deg, #db2777, #2563eb);
}

.login-ai-assistant {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #fff7ed, #f0fdfa);
}

.login-ai-assistant header {
  display: flex;
  gap: 10px;
  align-items: center;
}

.login-ai-assistant small {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.login-ai-messages {
  display: grid;
  gap: 8px;
  max-height: 150px;
  overflow: auto;
}

.login-ai-messages p {
  margin: 0;
  padding: 9px 10px;
  border-radius: 8px;
  background: #ffffff;
  color: #334155;
  font-size: 13px;
  line-height: 1.45;
  border: 1px solid var(--line);
}

.login-ai-messages p.user {
  background: #ecfeff;
  color: #115e59;
  justify-self: end;
}

.login-ai-form {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
}

.auth-form {
  display: grid;
  gap: 12px;
}

.auth-form label,
.account-form-body label {
  display: grid;
  gap: 5px;
}

.auth-form label span,
.account-form-body label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.auth-message,
.account-dialog-message {
  min-height: 20px;
  color: var(--red);
  margin: 0;
  font-size: 13px;
}

.account-dialog-message.success {
  color: var(--green);
}

.terms-check {
  grid-template-columns: auto 1fr;
  align-items: start;
  gap: 8px;
  font-size: 12px;
  color: var(--muted);
}

.terms-check input {
  width: 16px;
  min-height: 16px;
  margin-top: 2px;
}

.terms-check a {
  color: var(--teal-dark);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.student-social-strip {
  min-width: 0;
  display: flex;
  align-items: center;
  gap: 6px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}

.student-social-strip > span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
  text-transform: uppercase;
  white-space: nowrap;
  letter-spacing: 0;
}

.student-social-strip button,
.text-action {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--teal-dark);
  min-height: 38px;
  padding: 8px 10px;
  font-weight: 720;
  white-space: nowrap;
}

.student-social-strip button {
  flex: 0 0 38px;
  width: 38px;
  min-width: 38px;
  padding: 6px;
  overflow: hidden;
  text-overflow: ellipsis;
  font-size: 11px;
}

.student-otp-button span {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  margin-inline: auto;
}

.student-otp-button svg {
  width: 15px;
  height: 15px;
  fill: currentColor;
}

.register-student-action {
  background: #fff1f2;
  color: #be123c;
  border-color: #fecdd3;
}

.register-student-action:hover {
  background: #fce7f3;
  border-color: #fb7185;
}

.register-counselor-action {
  background: #eff6ff;
  color: #1d4ed8;
  border-color: #bfdbfe;
}

.register-counselor-action:hover {
  background: #dbeafe;
  border-color: #60a5fa;
}

.register-teacher-action {
  background: #ecfdf5;
  color: #047857;
  border-color: #a7f3d0;
}

.register-teacher-action:hover {
  background: #d1fae5;
  border-color: #34d399;
}

.otp-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: end;
}

.otp-inline .button {
  min-height: 40px;
}


.text-action {
  background: transparent;
  border-color: transparent;
  justify-self: start;
  padding-left: 0;
  text-decoration: none;
  display: inline-flex;
  align-items: center;
}

.public-login-actions {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  text-align: center;
}

.account-box {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.avatar {
  width: 40px;
  height: 40px;
  border-radius: 50%;
  display: inline-grid;
  place-items: center;
  flex: 0 0 auto;
  overflow: hidden;
  background: #0f766e;
  color: #ffffff;
  font-weight: 850;
  border: 2px solid #ffffff;
  box-shadow: 0 0 0 1px var(--line);
}

.avatar.large {
  width: 72px;
  height: 72px;
  font-size: 24px;
}

.avatar.xl {
  width: 92px;
  height: 92px;
  font-size: 30px;
}

.avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.account-copy {
  display: grid;
  gap: 2px;
  min-width: 130px;
}

.account-copy strong {
  font-size: 13px;
}

.account-copy span {
  color: var(--muted);
  font-size: 11px;
}

.icon-action {
  min-height: 36px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  color: var(--ink);
  padding: 7px 10px;
  font-weight: 750;
  font-size: 12px;
}

.icon-action.compact {
  min-width: 38px;
  padding-inline: 8px;
}

.icon-action:hover {
  border-color: var(--accent);
  color: var(--teal-dark);
  background: color-mix(in srgb, var(--accent) 12%, #ffffff);
}

.icon-action.danger {
  color: var(--red);
}

.role-dashboard {
  display: grid;
  grid-template-columns: minmax(280px, 0.9fr) minmax(320px, 1.1fr);
  gap: 14px;
  align-items: stretch;
}

.counselor-studio-hero {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(180px, 0.28fr);
  gap: 18px;
  min-height: 280px;
  overflow: hidden;
  border: 1px solid rgba(15, 23, 42, 0.12);
  border-radius: 14px;
  padding: 18px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.88), rgba(255,255,255,0.62)),
    var(--counselor-wallpaper);
  background-size: cover;
  background-position: center;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.16);
}

.mac-window-toolbar {
  position: absolute;
  top: 12px;
  left: 14px;
  right: 14px;
  display: flex;
  gap: 7px;
  align-items: center;
  color: #334155;
  font-size: 12px;
  font-weight: 800;
}

.mac-window-toolbar strong {
  margin-left: 6px;
}

.counselor-studio-copy {
  display: flex;
  align-items: center;
  gap: 16px;
  padding-top: 28px;
}

.counselor-studio-copy h2 {
  max-width: 780px;
  font-size: clamp(25px, 4vw, 44px);
  line-height: 1.04;
}

.counselor-studio-copy p:not(.eyebrow) {
  max-width: 680px;
  color: #475569;
}

.counselor-desktop-clock {
  align-self: end;
  display: grid;
  gap: 5px;
  padding: 14px;
  border: 1px solid rgba(255,255,255,0.58);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.56);
  backdrop-filter: blur(14px);
}

.counselor-desktop-clock strong {
  font-size: 32px;
}

.counselor-desktop-clock span,
.counselor-desktop-clock small {
  color: #475569;
  font-weight: 750;
}

.counselor-studio-actions {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}

.counselor-desktop-grid {
  display: grid;
  grid-template-columns: minmax(240px, 0.75fr) minmax(0, 1.25fr);
  gap: 14px;
}

.counselor-desktop-grid .wide {
  grid-column: auto;
}

.calendar-mini {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
  gap: 5px;
}

.calendar-mini span {
  display: grid;
  place-items: center;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.calendar-mini span.today {
  background: var(--teal);
  color: #ffffff;
}

.course-folder-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.course-folder-card {
  min-height: 118px;
  display: grid;
  align-content: start;
  gap: 7px;
  border: 1px solid #fcd34d;
  border-radius: 10px;
  background: linear-gradient(180deg, #fffbeb, #ffffff);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.course-folder-card:hover {
  border-color: #f59e0b;
  transform: translateY(-1px);
}

.course-folder-card span {
  width: 42px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 7px;
  background: #fbbf24;
  color: #422006;
  font-size: 11px;
  font-weight: 900;
}

.course-folder-card strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.course-folder-card small {
  color: var(--muted);
}

.course-master-panel {
  border-color: rgba(20, 184, 166, 0.25);
  background: linear-gradient(135deg, #ffffff, #f0fdfa);
}

.course-master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.course-master-card {
  display: grid;
  gap: 7px;
  min-height: 128px;
  padding: 13px;
  border: 1px solid rgba(15, 76, 129, 0.16);
  border-radius: 12px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  box-shadow: 0 10px 28px rgba(15, 23, 42, 0.08);
  cursor: pointer;
  text-align: left;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.course-master-card:hover {
  border-color: var(--teal);
  box-shadow: 0 14px 34px rgba(15, 118, 110, 0.16);
  transform: translateY(-2px);
}

.course-master-card span {
  width: fit-content;
  border-radius: 999px;
  padding: 4px 8px;
  background: #e0f2fe;
  color: #075985;
  font-size: 11px;
  font-weight: 900;
}

.course-master-card strong {
  color: #0f172a;
  font-size: 15px;
}

.course-master-card small,
.course-master-card em {
  color: #64748b;
  font-size: 12px;
  font-style: normal;
  font-weight: 750;
}

.counselor-celebration {
  position: fixed;
  inset: 0;
  z-index: 2000;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.42);
  backdrop-filter: blur(6px);
}

.dialog-backdrop {
  position: fixed;
  inset: 0;
  z-index: 1900;
  display: grid;
  place-items: center;
  padding: 16px;
  background: rgba(15, 23, 42, 0.46);
  backdrop-filter: blur(8px);
}

.counselor-login-dialog {
  border: 1px solid rgba(255, 255, 255, 0.52);
  border-radius: 20px;
  background:
    linear-gradient(135deg, rgba(255,255,255,0.92), rgba(255,255,255,0.78)),
    linear-gradient(135deg, #e0f2fe, #ccfbf1);
  box-shadow: 0 26px 90px rgba(15, 23, 42, 0.32);
}

.mac-login-preview {
  display: grid;
  grid-template-columns: auto auto auto 1fr;
  gap: 7px;
  align-items: center;
  border: 1px solid rgba(15, 23, 42, 0.1);
  border-radius: 14px;
  padding: 12px;
  background: rgba(255, 255, 255, 0.62);
}

.mac-login-preview small {
  grid-column: 1 / -1;
  color: #64748b;
  font-weight: 700;
}

.celebration-card {
  position: relative;
  width: min(520px, calc(100vw - 28px));
  overflow: hidden;
  border-radius: 18px;
  padding: 34px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4c81, #0f766e 58%, #db2777);
  text-align: center;
  box-shadow: 0 28px 90px rgba(15, 23, 42, 0.42);
}

.celebration-card h2 {
  color: #ffffff;
}

.firework-field {
  position: absolute;
  inset: 0;
  pointer-events: none;
}

.firework-field i {
  position: absolute;
  left: 50%;
  top: 50%;
  width: 5px;
  height: 5px;
  border-radius: 999px;
  background: hsl(calc(var(--i) * 30), 90%, 65%);
  animation: fireworkBurst 1.8s ease-out infinite;
  animation-delay: calc(var(--i) * -0.06s);
}

@keyframes fireworkBurst {
  from {
    transform: translate(-50%, -50%) scale(0.4);
    opacity: 1;
  }
  to {
    transform: translate(calc(-50% + var(--x)), calc(-50% + var(--y))) scale(1.2);
    opacity: 0;
  }
}

.role-intro,
.role-quick-grid {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.role-intro {
  display: flex;
  align-items: center;
  gap: 14px;
  position: relative;
}

.role-intro p:not(.eyebrow) {
  color: var(--muted);
  margin: 6px 0 0;
}

.role-quick-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.role-quick-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
  min-height: 76px;
  padding: 10px;
  display: grid;
  align-content: center;
  justify-items: start;
  gap: 6px;
}

.role-quick-card span {
  width: 30px;
  height: 30px;
  border-radius: 6px;
  display: grid;
  place-items: center;
  background: #e0f2fe;
  color: #075985;
  font-weight: 850;
  font-size: 11px;
}

.role-quick-card strong {
  font-size: 13px;
}

.student-hero {
  display: grid;
  grid-template-columns: minmax(320px, 1fr) minmax(240px, 0.35fr);
  gap: 14px;
  align-items: stretch;
}

.student-hero-main,
.student-completion,
.student-progress,
.student-grid .panel {
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.student-hero-main,
.student-completion {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}

.student-hero-main {
  display: flex;
  align-items: center;
  gap: 16px;
}

.student-hero-main p:not(.eyebrow) {
  color: var(--muted);
  margin: 6px 0 0;
}

.student-badges {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
  margin-top: 12px;
}

.student-badges span {
  background: #e6fffb;
  color: var(--teal-dark);
  border: 1px solid #b9ebe5;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 12px;
  font-weight: 780;
}

.student-completion {
  display: grid;
  align-content: center;
  gap: 10px;
}

.student-remote-shell {
  border: 1px solid #b8c4d6;
  border-radius: 10px;
  overflow: hidden;
  background: linear-gradient(135deg, #f8fbff 0%, #eef5ff 48%, #f9fafb 100%);
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.12);
}

.remote-titlebar {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  padding: 9px 12px;
  color: #ffffff;
  background: linear-gradient(90deg, #0f4c81, #1d75bd);
}

.remote-titlebar > div {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.remote-titlebar small {
  color: rgba(255, 255, 255, 0.82);
  font-weight: 700;
}

.remote-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  display: inline-block;
}

.remote-dot.red { background: #fb7185; }
.remote-dot.amber { background: #facc15; }
.remote-dot.green { background: #34d399; }

.remote-body {
  display: grid;
  grid-template-columns: minmax(190px, 0.32fr) minmax(0, 1fr);
  gap: 12px;
  padding: 12px;
}

.remote-folder-grid {
  display: grid;
  align-content: start;
  gap: 8px;
}

.remote-folder {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  grid-template-areas: "icon title" "icon detail";
  align-items: center;
  gap: 2px 9px;
  min-height: 58px;
  padding: 8px;
  border: 1px solid rgba(59, 130, 246, 0.18);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.78);
  color: #0f172a;
  text-align: left;
  cursor: pointer;
}

.remote-folder:hover,
.remote-folder.active {
  border-color: #2563eb;
  background: #eaf4ff;
  transform: translateY(-1px);
}

.remote-folder-icon {
  grid-area: icon;
  width: 38px;
  height: 32px;
  border-radius: 6px 6px 4px 4px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #facc15, #f59e0b);
  color: #1f2937;
  font-size: 11px;
  font-weight: 900;
  box-shadow: inset 0 7px 0 rgba(255, 255, 255, 0.28);
}

.remote-folder strong {
  grid-area: title;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 13px;
}

.remote-folder small {
  grid-area: detail;
  color: var(--muted);
  font-size: 11px;
}

.remote-folder-window {
  min-height: 360px;
  border: 1px solid rgba(15, 23, 42, 0.14);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.88);
  padding: 12px;
}

.remote-folder-panel {
  display: none;
}

.remote-folder-panel.active {
  display: grid;
  gap: 12px;
}

.remote-folder-panel header {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
}

.remote-folder-panel h3 {
  margin: 0;
  font-size: 16px;
}

.remote-file-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
}

.remote-file {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  padding: 9px;
}

.remote-file span,
.remote-service span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.remote-file strong,
.remote-service strong {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.remote-service-list {
  display: grid;
  gap: 8px;
}

.remote-service {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.remote-service:hover {
  border-color: var(--teal);
  background: #f0fdfa;
}

.portal-social-topbar {
  display: flex;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: wrap;
}

.role-intro .portal-social-topbar {
  position: absolute;
  top: 10px;
  right: 10px;
  max-width: min(340px, 58%);
}

.portal-social-topbar a {
  width: 30px;
  height: 30px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  color: #0f172a;
  background: #f1f5f9;
  border: 1px solid var(--line);
  text-decoration: none;
}

.portal-social-topbar svg {
  width: 16px;
  height: 16px;
  fill: currentColor;
}

.student-completion span {
  color: var(--teal-dark);
  font-size: 38px;
  font-weight: 850;
  line-height: 1;
}

.completion-track {
  height: 10px;
  background: #e6eeec;
  border-radius: 999px;
  overflow: hidden;
}

.completion-track i {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.student-progress {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  grid-template-columns: repeat(7, minmax(80px, 1fr));
  gap: 8px;
  padding: 14px;
}

.student-readiness {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
}

.student-readiness article {
  border: 1px solid var(--line);
  background: #ffffff;
  border-radius: 8px;
  padding: 12px;
  display: grid;
  gap: 6px;
}

.student-readiness span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 740;
}

.student-readiness strong {
  font-size: 14px;
  min-width: 0;
  overflow-wrap: anywhere;
}

.notice-board {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
}

.notice-list {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.notice-card {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: start;
  padding: 11px;
  border: 1px solid #cbd5e1;
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  background: #f8fafc;
}

.notice-card.priority-high,
.notice-card.priority-critical {
  border-left-color: var(--red);
}

.notice-card.priority-medium {
  border-left-color: var(--amber);
}

.notice-card strong {
  display: block;
  font-size: 13px;
}

.notice-card span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.4;
  margin-top: 4px;
}

.notice-card em {
  color: var(--teal-dark);
  font-size: 11px;
  font-style: normal;
  font-weight: 800;
  white-space: nowrap;
}

.progress-step {
  display: grid;
  gap: 7px;
  justify-items: center;
  color: var(--muted);
  text-align: center;
  font-size: 12px;
  min-width: 0;
}

.progress-step span {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  border: 2px solid var(--line);
  background: #ffffff;
}

.progress-step.is-done span {
  border-color: var(--teal);
  background: var(--teal);
}

.progress-step.is-active {
  color: var(--teal-dark);
}

.student-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.profile-facts {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.profile-facts div,
.portal-row,
.method-card,
.service-tile {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.profile-facts div {
  padding: 10px;
}

.profile-facts span,
.service-tile span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 720;
  margin-bottom: 4px;
}

.profile-facts strong {
  font-size: 13px;
}

.method-list,
.portal-list {
  display: grid;
  gap: 8px;
}

.method-card {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  align-items: center;
  padding: 10px;
  text-align: left;
}

.method-card span {
  color: var(--muted);
  font-size: 12px;
}

.method-card.verified {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.service-catalog {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
}

.service-tile {
  display: grid;
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.service-tile p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
  margin: 0;
}

.service-tile em,
.service-tile small {
  color: var(--teal-dark);
  font-weight: 800;
}

.service-tile-image {
  width: 100%;
  height: 90px;
  object-fit: cover;
  border-radius: 8px;
}

.service-glyph {
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  border-radius: 8px;
  background: #e6fffb;
  color: var(--teal-dark);
  font-weight: 900;
}

.student-job-grid,
.services-master-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.student-job-card,
.master-service-card {
  display: grid;
  gap: 10px;
  align-content: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  box-shadow: 0 10px 24px rgba(15, 23, 42, 0.06);
}

.student-job-card span,
.master-service-card span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.student-job-card p,
.master-service-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.student-job-card footer,
.master-service-card footer {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  justify-content: space-between;
}

.services-master-hero {
  display: grid;
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f0fdfa, #ffffff 52%, #fff7ed);
  box-shadow: var(--shadow);
}

.services-master-hero > div:first-child {
  max-width: 760px;
}

.job-portal-panel {
  display: grid;
  grid-template-columns: minmax(260px, 0.9fr) minmax(320px, 1.1fr);
  gap: 16px;
  padding: 18px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 8px;
  background: linear-gradient(135deg, #f8fafc, #ffffff 50%, #eff6ff);
  box-shadow: var(--shadow);
}

.job-portal-copy p:not(.eyebrow) {
  color: var(--muted);
  line-height: 1.55;
}

.job-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
}

.job-template-card {
  min-height: 108px;
  display: grid;
  align-content: end;
  gap: 4px;
  padding: 12px;
  border-radius: 8px;
  color: #ffffff;
  box-shadow: 0 12px 26px rgba(15, 23, 42, 0.16);
}

.job-template-card strong {
  font-size: 18px;
}

.job-template-card span {
  font-size: 12px;
  opacity: 0.86;
}

.master-service-card img {
  width: 100%;
  height: 110px;
  object-fit: cover;
  border-radius: 8px;
}

.master-service-card.hidden-service {
  opacity: 0.62;
}

.master-service-card b {
  padding: 4px 8px;
  border-radius: 999px;
  background: #ffe4e6;
  color: #be123c;
  font-size: 12px;
}

.portal-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  padding: 10px;
}

.portal-row strong,
.portal-row span {
  min-width: 0;
}

.portal-row span {
  color: var(--muted);
  font-size: 12px;
}

.portal-row em {
  grid-row: 1 / span 2;
  grid-column: 2;
  font-style: normal;
}

.voice-intro-status,
.voice-recorder {
  display: grid;
  gap: 8px;
}

.student-voice-top {
  border-color: #99f6e4;
  background: linear-gradient(135deg, #ecfeff, #fff1f6);
}

.student-voice-top .panel-header {
  align-items: center;
}

.voice-title {
  display: flex;
  align-items: center;
  gap: 10px;
}

.mic-wave {
  position: relative;
  width: 42px;
  height: 42px;
  display: inline-grid;
  place-items: center;
  border-radius: 50%;
  background: #be185d;
  color: #ffffff;
  flex: 0 0 auto;
}

.mic-wave svg {
  width: 20px;
  height: 20px;
  fill: currentColor;
}

.mic-wave i {
  position: absolute;
  inset: -4px;
  border: 1px solid rgba(190, 24, 93, 0.42);
  border-radius: 50%;
  animation: micPulse 1.8s infinite;
}

.mic-wave i:nth-child(2) {
  animation-delay: 0.35s;
}

.mic-wave i:nth-child(3) {
  animation-delay: 0.7s;
}

@keyframes micPulse {
  from {
    opacity: 0.75;
    transform: scale(0.82);
  }
  to {
    opacity: 0;
    transform: scale(1.45);
  }
}

.voice-intro-status {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.voice-intro-status strong {
  font-size: 14px;
}

.voice-intro-status span {
  color: var(--muted);
  font-size: 12px;
}

.voice-recorder audio {
  width: 100%;
}

.voice-share-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-top: 4px;
}

.voice-intro-status audio {
  width: 100%;
}

.student-assets-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
  grid-column: 1 / -1;
}

.student-resume-panel,
.student-doc-panel,
.student-youtube-panel {
  min-width: 0;
}

.student-asset-list {
  display: grid;
  gap: 8px;
}

.student-asset-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding: 9px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.student-asset-row strong,
.student-asset-row span {
  display: block;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-asset-row span {
  color: var(--muted);
  font-size: 12px;
}

.student-asset-actions {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.youtube-frame-shell {
  display: grid;
  gap: 8px;
}

.youtube-frame-shell iframe {
  width: 100%;
  max-width: 100%;
  min-height: 180px;
  border: 0;
  border-radius: 8px;
  background: #0f172a;
}

.youtube-empty {
  display: grid;
  place-items: center;
  min-height: 180px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  text-align: center;
  padding: 16px;
  background: #f9fbfa;
}

.helper-text {
  color: var(--muted);
  font-size: 12px;
  margin: 0;
}

.account-dialog {
  width: min(560px, calc(100vw - 24px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  box-shadow: var(--shadow);
  max-height: calc(100vh - 28px);
  overflow: auto;
  resize: both;
}

.account-dialog.wide {
  width: min(820px, calc(100vw - 24px));
}

.account-dialog.fullscreen-dialog {
  width: calc(100vw - 18px);
  height: calc(100vh - 18px);
  max-height: calc(100vh - 18px);
}

.account-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.account-dialog form {
  display: grid;
  gap: 14px;
  padding: 18px;
  max-height: calc(100vh - 28px);
  grid-template-rows: auto minmax(0, 1fr) auto auto;
}

.account-form-body {
  overflow: auto;
  min-height: 0;
}

.account-dialog.dialog-minimized {
  width: min(420px, calc(100vw - 24px));
  height: auto;
  min-height: 0;
}

.account-dialog.dialog-minimized .account-form-body,
.account-dialog.dialog-minimized .account-dialog-message,
.account-dialog.dialog-minimized footer {
  display: none;
}

.account-dialog header,
.account-dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
}

.dialog-drag-handle {
  cursor: move;
  user-select: none;
}

.communication-hero {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 18px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(135deg, rgba(15, 118, 110, 0.09), rgba(244, 63, 94, 0.09)), var(--panel);
  box-shadow: var(--shadow-soft);
}

.communication-hero h2 {
  margin: 4px 0 8px;
}

.communication-hero p {
  margin: 0;
  color: var(--muted);
  max-width: 720px;
}

.communication-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.communication-fields {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.communication-fields > span {
  display: block;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  text-transform: uppercase;
}

.communication-fields > div {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.lead-contact-strip {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 6px 12px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.lead-contact-strip strong {
  font-size: 15px;
}

.lead-contact-strip span {
  color: var(--muted);
  font-size: 12px;
}

.lead-contact-strip div {
  grid-row: 1 / span 2;
  grid-column: 2;
}

.proposal-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  padding: 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.proposal-toolbar .table-action {
  min-height: 32px;
  min-width: 34px;
  justify-content: center;
  font-weight: 800;
}

.proposal-toolbar .format-button {
  background: #ffffff;
  color: #0f766e;
  border-color: #99f6e4;
}

.checkbox-line {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 34px;
  margin: 0;
  padding: 7px 9px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 13px;
}

.checkbox-line input {
  width: auto;
  margin: 0;
}

.note-preview {
  min-height: 420px;
  font-family: "SFMono-Regular", Consolas, "Liberation Mono", monospace;
  line-height: 1.55;
  white-space: pre-wrap;
}

.account-form-body {
  display: grid;
  gap: 12px;
}

.account-form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.account-form-grid .full-span {
  grid-column: 1 / -1;
}

.policy-copy {
  color: var(--muted);
  line-height: 1.55;
}

.policy-copy p {
  margin: 0;
}

.policy-copy a {
  color: var(--teal-dark);
  font-weight: 800;
}

.profile-preview {
  display: flex;
  justify-content: center;
  padding: 6px 0;
}

.dashboard-control-strip {
  display: flex;
  justify-content: flex-end;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 8px;
}

.dashboard-ultra-compact .system-map {
  display: none;
}

.dashboard-ultra-compact .panel,
.dashboard-ultra-compact .kpi-card {
  padding: 10px;
}

.dashboard-ultra-compact .dashboard-grid,
.dashboard-ultra-compact .kpi-grid {
  gap: 8px;
}

.system-map {
  background: #f4f7f8;
  border: 1px solid #cfdae1;
  border-radius: 8px;
  padding: 12px;
  overflow: hidden;
}

.system-map-heading {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  text-align: left;
  margin-bottom: 8px;
}

.system-map-heading h2 {
  color: #34485f;
  font-size: clamp(18px, 1.7vw, 24px);
  line-height: 1.1;
}

.academy-mark {
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  color: #1c5b8e;
}

.academy-mark svg,
.map-icon svg,
.hub-core svg {
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 3;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.map-canvas {
  position: relative;
  display: grid;
  grid-template-columns: minmax(190px, 0.9fr) minmax(280px, 1.05fr) minmax(190px, 0.9fr);
  grid-template-areas:
    "lead users finance"
    "student hub compliance"
    "hr hub travel"
    "marketing support reports";
  gap: 18px 24px;
  align-items: center;
  min-height: 430px;
}

.flow-lines {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
  z-index: 0;
}

.flow-lines path {
  fill: none;
  stroke: #1d557d;
  stroke-width: 3;
  marker-end: url(#flowArrow);
}

.flow-lines marker path {
  fill: #1d557d;
  stroke: none;
}

.map-card {
  --tone: var(--blue);
  position: relative;
  z-index: 1;
  width: 100%;
  border: 1px solid #b7c9d6;
  border-radius: 8px;
  background: #ffffff;
  color: #13231f;
  display: grid;
  gap: 10px;
  min-height: 96px;
  padding: 0 8px 10px;
  text-align: center;
  box-shadow: 0 8px 24px rgba(31, 52, 72, 0.12);
}

.map-card:hover {
  border-color: var(--tone);
  transform: translateY(-1px);
}

.map-card-title {
  justify-self: center;
  min-height: 36px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 7px 14px;
  margin-top: -15px;
  border-radius: 8px;
  color: #ffffff;
  background: var(--tone);
  font-size: clamp(15px, 1.12vw, 19px);
  font-weight: 850;
  line-height: 1.05;
  box-shadow: 0 7px 16px rgba(15, 23, 42, 0.14);
}

.map-card-body {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  align-items: start;
}

.map-feature {
  display: grid;
  justify-items: center;
  gap: 6px;
  min-width: 0;
}

.map-icon {
  width: 30px;
  height: 30px;
  color: var(--tone);
  display: grid;
  place-items: center;
}

.map-feature strong {
  font-size: 12px;
  line-height: 1.12;
  color: #101a18;
  overflow-wrap: anywhere;
}

.tone-blue {
  --tone: #12659c;
}

.tone-green {
  --tone: #247b42;
}

.tone-navy {
  --tone: #1d466d;
}

.tone-slate {
  --tone: #2a3d4d;
}

.tone-orange {
  --tone: #d9501e;
}

.tone-purple {
  --tone: #7a4072;
}

.tone-amber {
  --tone: #ad7017;
}

.tone-red {
  --tone: #c24a2f;
}

.map-lead {
  grid-area: lead;
}

.map-users {
  grid-area: users;
}

.map-finance {
  grid-area: finance;
}

.map-student {
  grid-area: student;
}

.map-compliance {
  grid-area: compliance;
}

.map-hr {
  grid-area: hr;
}

.map-travel {
  grid-area: travel;
}

.map-marketing {
  grid-area: marketing;
}

.map-support {
  grid-area: support;
}

.map-reports {
  grid-area: reports;
}

.platform-hub {
  grid-area: hub;
  position: relative;
  z-index: 1;
  min-height: 255px;
  display: grid;
  place-items: center;
  align-self: stretch;
}

.hub-ring {
  position: absolute;
  width: min(250px, 100%);
  aspect-ratio: 1;
  border-radius: 50%;
  background:
    conic-gradient(
      from -30deg,
      #e47b1b 0 15%,
      #c83128 15% 31%,
      #7c3f73 31% 47%,
      #1f3f91 47% 63%,
      #075b86 63% 80%,
      #36a565 80% 100%
    );
  box-shadow: inset 0 0 0 11px #f4f7f8, 0 18px 40px rgba(18, 44, 63, 0.16);
}

.hub-ring::after {
  content: "";
  position: absolute;
  inset: 30px;
  border-radius: 50%;
  background: #dfe8ec;
  box-shadow: inset 0 0 0 8px #ffffff;
}

.hub-core {
  position: relative;
  width: min(200px, calc(100% - 34px));
  aspect-ratio: 1;
  border-radius: 50%;
  background: linear-gradient(180deg, #eef4f6 0 46%, #205c83 46% 100%);
  color: #ffffff;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 20px 18px 16px;
  text-align: center;
  box-shadow: 0 12px 28px rgba(21, 58, 85, 0.18);
}

.hub-core svg {
  width: 82px;
  height: 58px;
  color: #1b5f8b;
  filter: drop-shadow(0 6px 10px rgba(22, 49, 70, 0.18));
}

.hub-core strong,
.hub-core span {
  display: block;
  color: #ffffff;
}

.hub-core strong {
  font-size: clamp(18px, 1.35vw, 23px);
  line-height: 1.05;
  margin-top: 2px;
}

.hub-core span {
  font-size: clamp(13px, 1.05vw, 18px);
  font-weight: 780;
}

.hub-stats {
  display: flex;
  flex-wrap: wrap;
  justify-content: center;
  gap: 6px;
  margin-top: 4px;
}

.hub-stats small,
.hub-extensions span {
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
  color: #ffffff;
  padding: 5px 8px;
  font-size: 11px;
  font-weight: 760;
}

.hub-extensions {
  position: absolute;
  left: 50%;
  bottom: 12px;
  transform: translateX(-50%);
  display: flex;
  justify-content: center;
  gap: 8px;
  flex-wrap: wrap;
  width: min(340px, 100%);
}

.hub-extensions span {
  background: #ffffff;
  color: #23455f;
  border: 1px solid #c6d5df;
  box-shadow: 0 5px 14px rgba(31, 52, 72, 0.1);
}

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(7, minmax(120px, 1fr));
  gap: 10px;
}

.kpi {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 13px;
  box-shadow: 0 1px 0 rgba(15, 23, 42, 0.02);
  min-height: 82px;
  color: inherit;
  text-align: left;
  font: inherit;
}

.kpi.clickable {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.kpi.clickable:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.kpi span {
  display: block;
  color: var(--muted);
  font-size: 12px;
  font-weight: 650;
  margin-bottom: 10px;
}

.kpi strong {
  font-size: clamp(18px, 2vw, 28px);
  line-height: 1;
}

.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.panel {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
  min-width: 0;
}

.panel.wide {
  grid-column: 1 / -1;
}

.dashboard-widget {
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.dashboard-widget:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow);
}

.dashboard-widget.dragging {
  opacity: 0.72;
  transform: scale(0.99);
}

.drag-handle {
  width: 32px;
  height: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface-2);
  color: var(--muted);
  font-weight: 900;
  cursor: grab;
}

.drag-handle:active {
  cursor: grabbing;
}

.panel-header,
.module-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-bottom: 12px;
}

.module-toolbar {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 15px;
}

.button,
.table-action,
.icon-button {
  border: 1px solid transparent;
  border-radius: 8px;
  min-height: 40px;
  padding: 9px 13px;
  font-weight: 720;
  text-decoration: none;
}

a.button {
  display: inline-grid;
  place-items: center;
}

.button.primary {
  background: var(--teal);
  color: #ffffff;
}

.button.primary:hover {
  background: var(--teal-dark);
}

.button.secondary,
.table-action,
.icon-button {
  background: var(--surface-2);
  color: var(--ink);
  border-color: var(--line);
}

.table-action.highlight {
  background: #fff1f6;
  color: #be185d;
  border-color: #f9a8d4;
}

.table-action.danger {
  background: #fff5f5;
  color: #b91c1c;
  border-color: #fecaca;
}

.module-search input {
  min-width: min(380px, 70vw);
}

.table-wrap {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

table {
  width: 100%;
  border-collapse: collapse;
  min-width: 840px;
}

.excel-table-wrap table {
  table-layout: auto;
  min-width: 1180px;
}

.excel-table-wrap th,
.excel-table-wrap td {
  padding: 5px 7px;
  font-size: 12px;
  line-height: 1.22;
  white-space: nowrap;
  vertical-align: middle;
}

.excel-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  resize: horizontal;
  overflow: auto;
  min-width: 86px;
}

.excel-table-wrap td {
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  resize: both;
  min-width: 72px;
  height: 30px;
}

.sortable-column {
  user-select: none;
}

.sortable-column button {
  appearance: none;
  width: 100%;
  min-height: 24px;
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  font-weight: 850;
  text-align: left;
  cursor: pointer;
}

.sortable-column button:hover {
  color: var(--teal-dark);
}

.sortable-column em {
  color: var(--muted);
  font-size: 10px;
  font-style: normal;
}

.sortable-column.active {
  background: #ecfeff;
  color: var(--teal-dark);
}

.excel-table-wrap .table-action,
.excel-table-wrap .contact-icon {
  min-height: 26px;
  padding: 3px 6px;
  font-size: 11px;
}

.resume-table-wrap {
  border-radius: 6px;
}

.lead-table-wrap table {
  min-width: 1320px;
}

.lead-table-wrap th,
.lead-table-wrap td {
  padding: 5px 7px;
  font-size: 11.5px;
  white-space: nowrap;
}

.lead-table-wrap td:last-child,
.lead-table-wrap th:last-child {
  min-width: 310px;
  max-width: 420px;
  resize: horizontal;
}

.application-table-wrap table,
.job-table-wrap table {
  min-width: 1120px;
}

.lead-filter-bar {
  display: grid;
  grid-template-columns: minmax(140px, 1.1fr) repeat(6, minmax(130px, 1fr)) auto;
  gap: 8px;
  align-items: end;
  margin-bottom: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.lead-filter-bar strong {
  display: block;
  font-size: 13px;
}

.lead-filter-bar label {
  display: grid;
  gap: 4px;
}

.lead-filter-bar label span {
  color: var(--muted);
  font-size: 11px;
  font-weight: 800;
}

.lead-filter-bar input {
  min-height: 32px;
  padding: 5px 8px;
}

.resume-table {
  min-width: 1180px;
}

.resume-table th,
.resume-table td {
  padding: 6px 7px;
  font-size: 12px;
  white-space: nowrap;
}

.resume-table th {
  position: sticky;
  top: 0;
  z-index: 1;
}

.resume-table .filter-row th {
  top: 32px;
  background: #ffffff;
}

.sort-header {
  width: 100%;
  min-height: 24px;
  padding: 0;
  border: 0;
  background: transparent;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  color: inherit;
  text-align: left;
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.sort-header small {
  color: var(--teal);
  font-size: 10px;
  font-weight: 800;
}

.column-filter {
  min-height: 28px;
  padding: 4px 6px;
  border-radius: 5px;
  font-size: 12px;
}

.row-actions {
  display: inline-flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 4px;
  white-space: nowrap;
  max-width: 100%;
  overflow-x: auto;
  resize: horizontal;
  padding-bottom: 1px;
  scrollbar-width: thin;
}

.counselor-workflow-panel {
  display: grid;
  gap: 14px;
}

.metric-grid.compact {
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
}

.metric-card.urgent {
  border-color: #fecaca;
  background: #fff1f2;
}

.request-workflow-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.request-drop-lane {
  border: 1px dashed var(--line-strong);
  border-radius: 8px;
  padding: 12px;
  background: #f8fafc;
}

.request-drop-lane h3 {
  margin: 0 0 6px;
  font-size: 14px;
}

.request-drop-lane p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.mini-table {
  display: grid;
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow-x: auto;
}

.mini-table-head,
.mini-table-row {
  display: grid;
  grid-template-columns: 90px minmax(130px, 1.2fr) minmax(140px, 1.2fr) minmax(130px, 1fr) minmax(110px, 0.8fr) 90px;
  min-width: 760px;
}

.mini-table-head span,
.mini-table-row span {
  padding: 8px 10px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  font-size: 12px;
}

.mini-table-head {
  background: #eef6f6;
  color: var(--teal-dark);
  font-weight: 800;
}

.mini-table-row.priority-urgent {
  background: #fff1f2;
}

.mini-table-row.priority-follow-up {
  background: #fffbeb;
}

.document-preview-meta {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 12px;
}

.document-preview-meta div {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px;
  background: #f9fafb;
}

.document-preview-meta span {
  display: block;
  color: var(--muted);
  font-size: 11px;
}

.document-preview-frame {
  width: 100%;
  min-height: 320px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.document-preview-image {
  max-width: 100%;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.danger-text {
  color: #b91c1c;
}

.resume-table .table-action {
  min-height: 28px;
  padding: 4px 7px;
  border-radius: 6px;
  font-size: 11px;
}

.pagination-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-top: 10px;
  padding: 10px 12px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.pagination-bar label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.pagination-bar select {
  min-height: 32px;
  padding: 4px 8px;
}

.pagination-pages {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: wrap;
  justify-content: flex-end;
}

.pagination-button {
  min-width: 34px;
  min-height: 32px;
  padding: 4px 8px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  color: var(--ink);
  font-weight: 750;
}

.pagination-button.active {
  background: var(--teal);
  border-color: var(--teal);
  color: #ffffff;
}

.pagination-button:disabled {
  opacity: 0.45;
}

.pagination-gap {
  color: var(--muted);
  padding: 0 3px;
}

.pagination-summary {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.otp-integration-panel {
  display: grid;
  grid-template-columns: minmax(220px, 0.8fr) minmax(0, 1.4fr);
  gap: 12px;
  margin-bottom: 12px;
  padding: 15px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}

.otp-integration-copy h2 {
  margin: 4px 0 6px;
  font-size: 19px;
}

.otp-integration-copy p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.5;
}

.otp-step-list {
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.otp-quick-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 12px;
}

.otp-simple-note {
  padding: 10px 12px;
  border: 1px solid #bfdbfe;
  border-radius: 8px;
  background: #eff6ff;
  color: #1e3a8a;
}

.otp-simple-note p {
  margin: 4px 0 0;
  font-size: 12px;
  line-height: 1.45;
}

.otp-integration-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
}

.otp-integration-card {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  min-width: 0;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.otp-integration-card.active {
  border-color: #99f6e4;
  background: #ecfdf5;
}

.otp-integration-card h3 {
  margin: 2px 0 5px;
  font-size: 14px;
}

.otp-integration-card p {
  margin: 0;
  max-width: 280px;
  color: var(--muted);
  font-size: 12px;
  overflow-wrap: anywhere;
}

.otp-integration-card small {
  display: block;
  margin-top: 7px;
  color: #475569;
  font-size: 11px;
  overflow-wrap: anywhere;
}

.payment-api-ready-panel {
  grid-column: 1 / -1;
  display: grid;
  gap: 12px;
  padding: 14px;
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 10px;
  background: #ffffff;
}

.payment-api-ready-panel header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.payment-api-ready-panel h3 {
  margin: 0;
  font-size: 16px;
}

.payment-api-ready-panel header span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 750;
}

.payment-api-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
}

.payment-api-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f8fafc);
  padding: 12px;
  text-align: left;
  cursor: pointer;
}

.payment-api-card:hover {
  border-color: #2563eb;
  background: #eff6ff;
}

.payment-api-card strong,
.payment-api-card span {
  display: block;
}

.payment-api-card span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.lead-automation-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.lead-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.lead-workflow-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
}

.lead-workflow-step {
  appearance: none;
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
  cursor: pointer;
  text-align: left;
  transition: border-color 0.16s ease, background 0.16s ease, transform 0.16s ease;
}

.lead-workflow-step:hover {
  border-color: var(--teal);
  background: #eefcf8;
  transform: translateY(-1px);
}

.lead-workflow-step span {
  color: var(--teal);
  font-size: 11px;
  font-weight: 850;
}

.lead-workflow-step strong {
  font-size: 13px;
}

.lead-workflow-step em {
  color: var(--muted);
  font-size: 11px;
  font-style: normal;
  line-height: 1.35;
}

.sales-lifecycle-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 8px;
  margin: 12px 0 0;
}

.sales-lifecycle-step {
  display: grid;
  gap: 4px;
  border: 1px solid rgba(20, 184, 166, 0.25);
  border-radius: 8px;
  background: linear-gradient(180deg, #ffffff, #f0fdfa);
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.sales-lifecycle-step:hover {
  border-color: var(--teal);
  transform: translateY(-1px);
}

.sales-lifecycle-step span {
  width: max-content;
  border-radius: 999px;
  background: #ccfbf1;
  color: var(--teal-dark);
  padding: 2px 7px;
  font-size: 11px;
  font-weight: 850;
}

.sales-lifecycle-step strong {
  font-size: 13px;
}

.sales-lifecycle-step small {
  color: var(--muted);
  line-height: 1.35;
}

.lead-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.lead-plugin-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 10px;
}

.lead-plugin-card {
  display: grid;
  gap: 9px;
  padding: 12px;
  border: 1px solid var(--line);
  border-left: 5px solid #cbd5e1;
  border-radius: 8px;
  background: #f9fbfa;
}

.lead-plugin-card.connected {
  border-left-color: #16a34a;
  background: #f0fdf4;
}

.lead-plugin-card.disconnected {
  border-left-color: #dc2626;
  background: #fff7f7;
}

.lead-plugin-card h3 {
  margin: 2px 0 4px;
  font-size: 14px;
}

.lead-plugin-card p {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}

.checkbox-line {
  align-self: end;
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 8px;
  min-height: 40px;
}

.checkbox-line input {
  width: auto;
}

.module-rights-field {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 8px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.module-rights-field legend {
  padding: 0 6px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.module-rights-field label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  min-height: 30px;
  margin: 0;
  font-size: 12px;
  font-weight: 700;
}

.module-rights-cell {
  display: flex;
  gap: 4px;
  flex-wrap: wrap;
  max-width: 520px;
}

.mini-pill {
  display: inline-flex;
  align-items: center;
  min-height: 22px;
  padding: 2px 6px;
  border-radius: 999px;
  background: #ecfdf5;
  color: #047857;
  font-size: 11px;
  font-weight: 750;
}

th,
td {
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  vertical-align: middle;
  font-size: 14px;
}

th {
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
  background: #f9fbfa;
}

tr:last-child td {
  border-bottom: 0;
}

.contact-cell,
.file-cell {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  max-width: 320px;
  min-width: 0;
}

.contact-cell > span:first-child,
.file-cell > span:first-child {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  min-width: 92px;
}

.contact-actions {
  display: inline-flex;
  gap: 5px;
  flex: 0 0 auto;
}

.communication-table-wrap .contact-cell,
.lead-table-wrap .contact-cell,
.job-table-wrap .contact-cell {
  min-width: 150px;
}

.phone-cell .contact-value {
  min-width: 118px;
}

.email-cell .contact-value {
  min-width: 150px;
}

.contact-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border-radius: 6px;
  color: #ffffff;
  background: #16a34a;
  text-decoration: none;
}

.contact-icon.email {
  background: #2563eb;
}

.contact-icon.phone,
.contact-icon.share {
  background: #0f766e;
}

.contact-icon svg {
  width: 13px;
  height: 13px;
  fill: currentColor;
}

.record-view {
  display: grid;
  gap: 12px;
}

.record-view-strip {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.record-view table {
  min-width: 0;
}

.record-view th,
.record-view td {
  padding: 8px 10px;
  vertical-align: top;
}

.record-view th {
  width: 190px;
  color: var(--muted);
  text-align: left;
}

.resume-dashboard {
  display: grid;
  gap: 14px;
  margin-bottom: 14px;
}

.resume-kpis {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 12px;
}

.resume-dashboard-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.field-picker {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 8px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.field-picker label {
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 13px;
  font-weight: 650;
}

.field-picker input {
  width: auto;
}

.resume-share-preview {
  display: grid;
  gap: 5px;
  padding: 12px;
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.resume-share-preview span {
  color: var(--muted);
  font-size: 13px;
}

.preview-table {
  max-height: 320px;
}

.api-beginner-guide .preview-table table {
  min-width: 1180px;
}

.api-note-row td {
  background: #f8fafc;
  color: var(--muted);
  font-size: 12px;
}

.import-review-tools {
  display: grid;
  gap: 10px;
  margin-bottom: 10px;
}

.import-review-tools input[type="search"] {
  width: 100%;
  min-height: 40px;
}

.import-field-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.import-field-picker label {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 6px 8px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
  color: var(--muted);
  font-size: 12px;
}

.import-cell-input {
  width: 100%;
  min-width: 130px;
  min-height: 30px;
  padding: 4px 6px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #ffffff;
  font-size: 12px;
}

.compact-select {
  min-height: 32px;
  padding: 5px 8px;
  border-radius: 7px;
  font-size: 12px;
}

.highlight-action {
  background: #fff1f6;
  color: #be185d;
  border-color: #f9a8d4;
}

.button.danger {
  background: #b91c1c;
  color: #ffffff;
  border-color: #b91c1c;
}

.button.danger:hover {
  background: #991b1b;
  border-color: #991b1b;
}

.table-action.strong-login {
  background: #dc2626;
  border-color: #b91c1c;
  color: #ffffff;
  font-weight: 900;
  letter-spacing: 0;
  box-shadow: 0 8px 18px rgba(220, 38, 38, 0.25);
}

.table-action.strong-login:hover {
  background: #b91c1c;
  border-color: #991b1b;
}

.reference-inline {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

.reference-add {
  min-width: 36px;
  height: 36px;
  font-size: 18px;
  font-weight: 900;
}

.google-search-panel {
  display: grid;
  gap: 12px;
}

.google-search-box {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
}

.google-search-box input {
  border-radius: 999px;
  padding: 12px 16px;
}

.master-result-list {
  max-height: 260px;
  overflow: auto;
}

.admin-return-button {
  background: linear-gradient(135deg, #be123c, #f43f5e);
  color: #ffffff;
  border-color: #be123c;
  box-shadow: 0 10px 22px rgba(190, 18, 60, 0.32);
  font-weight: 900;
}

.admin-return-button:hover {
  background: linear-gradient(135deg, #9f1239, #e11d48);
  border-color: #9f1239;
  transform: translateY(-1px);
}

.admin-return-button::before {
  content: "<";
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  margin-right: 6px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.2);
}

.admin-return-global-mount {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 1800;
  pointer-events: none;
}

.admin-return-floating {
  pointer-events: auto;
  min-height: 44px;
}

@media (max-width: 720px) {
  .admin-return-global-mount {
    right: 10px;
    bottom: 10px;
  }

  .admin-return-floating {
    padding: 10px 12px;
    font-size: 12px;
  }
}

.resume-preview-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 16px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f9fbfa;
}

.resume-preview-head p {
  margin: 6px 0 0;
  color: var(--muted);
}

.preview-contact-actions .contact-actions {
  justify-content: flex-end;
}

.resume-preview-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.resume-detail {
  display: grid;
  gap: 5px;
  min-height: 72px;
  padding: 11px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resume-detail span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.resume-detail strong {
  overflow-wrap: anywhere;
  font-size: 14px;
}

.resume-preview-section {
  margin-top: 12px;
}

.resume-file-panel {
  display: grid;
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.resume-file-viewer {
  width: 100%;
  min-height: 520px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resume-image-viewer {
  max-width: 100%;
  max-height: 620px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.resume-file-placeholder {
  display: grid;
  gap: 8px;
  padding: 18px;
  border: 1px dashed #94a3b8;
  border-radius: 8px;
  background: #ffffff;
}

.resume-file-placeholder p {
  margin: 0;
  color: var(--muted);
}

.pill {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 4px 8px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 760;
  white-space: nowrap;
}

.pill.success {
  color: #166534;
  background: #dcfce7;
}

.pill.warning {
  color: #92400e;
  background: #fef3c7;
}

.pill.danger {
  color: #991b1b;
  background: #fee2e2;
}

.pill.neutral {
  color: #334155;
  background: #e2e8f0;
}

.bar-list {
  display: grid;
  gap: 14px;
}

.bar-row {
  width: 100%;
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
}

.bar-row.clickable {
  cursor: pointer;
  padding: 7px;
  border-radius: 8px;
  transition: background 160ms ease, transform 160ms ease;
}

.bar-row.clickable:hover {
  background: #f8fafc;
  transform: translateX(2px);
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  font-size: 13px;
  margin-bottom: 6px;
}

.bar-track {
  height: 9px;
  background: #e6eeec;
  border-radius: 999px;
  overflow: hidden;
}

.bar-track span {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, var(--teal), var(--blue));
}

.compact-table,
.action-list,
.result-list {
  display: grid;
  gap: 8px;
}

.compact-row {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  gap: 8px;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: inherit;
  cursor: default;
  font-size: 13px;
  font: inherit;
  text-align: left;
}

.compact-row.clickable {
  cursor: pointer;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.compact-row.clickable:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.audit-log-list {
  display: grid;
  gap: 8px;
}

.audit-log-row {
  display: grid;
  grid-template-columns: 100px 1fr 120px 150px;
  gap: 10px;
  align-items: center;
  width: 100%;
  padding: 10px;
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-left: 4px solid var(--teal);
  border-radius: 8px;
  color: inherit;
  cursor: pointer;
  font-size: 13px;
  font: inherit;
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}

.audit-log-row:hover {
  border-color: var(--accent);
  box-shadow: var(--shadow-soft);
  transform: translateY(-1px);
}

.audit-log-row:has(.pill.warning) {
  border-left-color: var(--amber);
}

.audit-log-row:has(.pill.danger) {
  border-left-color: var(--red);
}

.audit-log-row time {
  color: var(--muted);
  font-size: 12px;
  text-align: right;
}

.audit-detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
}

.audit-detail-grid span {
  display: grid;
  gap: 3px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
  color: var(--muted);
}

.audit-detail-grid strong {
  color: var(--ink);
  font-size: 12px;
  text-transform: uppercase;
}

.audit-detail-json {
  max-height: 320px;
  overflow: auto;
  margin: 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #0f172a;
  color: #e2e8f0;
  white-space: pre-wrap;
}

.action-list div {
  padding: 11px;
  background: #f9fbfa;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.helpbot {
  position: fixed;
  right: 18px;
  bottom: 18px;
  z-index: 60;
  display: grid;
  gap: 10px;
  justify-items: end;
}

.helpbot-fab {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 46px;
  padding: 10px 14px;
  border: 0;
  border-radius: 999px;
  background: #0f766e;
  color: #ffffff;
  box-shadow: var(--shadow);
  font-weight: 800;
}

.helpbot-fab svg {
  width: 18px;
  height: 18px;
  fill: currentColor;
}

.helpbot-panel {
  display: none;
  width: min(380px, calc(100vw - 28px));
  max-height: min(620px, calc(100vh - 90px));
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
}

.helpbot.open .helpbot-panel {
  display: grid;
  grid-template-rows: auto minmax(120px, 1fr) auto auto auto;
}

.helpbot-panel header {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 12px;
  border-bottom: 1px solid var(--line);
  background: linear-gradient(135deg, #fff1f2, #ecfeff);
}

.helpbot-panel header .icon-button {
  margin-left: auto;
}

.helpbot-avatar {
  position: relative;
  display: inline-grid;
  place-items: center;
  width: 46px;
  height: 46px;
  flex: 0 0 46px;
  border-radius: 50%;
  background: linear-gradient(135deg, #f472b6, #0f766e);
  box-shadow: 0 10px 22px rgba(15, 23, 42, 0.16);
}

.helpbot-avatar::before {
  content: "";
  width: 25px;
  height: 25px;
  border-radius: 50% 50% 46% 46%;
  background: #ffe4d6;
  box-shadow: inset 0 -7px 0 rgba(190, 24, 93, 0.16);
}

.helpbot-avatar::after {
  content: "";
  position: absolute;
  width: 36px;
  height: 25px;
  border: 3px solid #0f172a;
  border-bottom: 0;
  border-radius: 20px 20px 0 0;
  top: 7px;
}

.helpbot-avatar i {
  position: absolute;
  right: 4px;
  bottom: 10px;
  width: 14px;
  height: 9px;
  border-radius: 999px;
  background: #0f172a;
}

.helpbot-panel header div {
  display: grid;
  gap: 2px;
}

.helpbot-panel header span,
.helpbot .helper-text {
  color: var(--muted);
  font-size: 12px;
}

.helpbot-messages {
  display: grid;
  align-content: start;
  gap: 8px;
  padding: 12px;
  overflow: auto;
}

.helpbot-message {
  max-width: 88%;
  padding: 9px 10px;
  border-radius: 8px;
  background: #eef6f6;
  font-size: 13px;
  line-height: 1.45;
  white-space: pre-wrap;
}

.helpbot-message.user {
  justify-self: end;
  background: #fce7f3;
}

.helpbot-form {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 8px;
  padding: 10px 12px;
  border-top: 1px solid var(--line);
}

.helpbot-handoff,
.helpbot .helper-text {
  margin: 0 12px 10px;
}

.empty,
.empty-state {
  color: var(--muted);
  padding: 18px;
}

.danger-text {
  color: var(--red);
}

.enquiry-body {
  min-height: 100vh;
  background:
    linear-gradient(120deg, rgba(10, 20, 28, 0.72), rgba(15, 118, 110, 0.36)),
    url("/assets/formbackground.jpg") center / cover fixed,
    #e8eef0;
  color: #17211f;
  overflow-x: hidden;
}

.enquiry-bg-video,
.enquiry-bg-motion {
  position: fixed;
  inset: 0;
  width: 100%;
  height: 100%;
  pointer-events: none;
}

.enquiry-bg-video {
  object-fit: cover;
  z-index: -3;
}

.enquiry-bg-motion {
  z-index: -2;
  background:
    linear-gradient(115deg, rgba(15, 23, 42, 0.72), rgba(15, 118, 110, 0.44)),
    url("/assets/formbackground.jpg") center / cover fixed;
}

.enquiry-bg-motion::before,
.enquiry-bg-motion::after {
  content: "";
  position: absolute;
  inset: -20%;
  background:
    radial-gradient(circle at 20% 30%, rgba(236, 72, 153, 0.28), transparent 25%),
    radial-gradient(circle at 78% 20%, rgba(34, 211, 238, 0.22), transparent 24%),
    radial-gradient(circle at 52% 78%, rgba(250, 204, 21, 0.16), transparent 26%);
  animation: enquiryMotion 18s ease-in-out infinite alternate;
}

.enquiry-bg-motion::after {
  background:
    linear-gradient(75deg, transparent 0 35%, rgba(255, 255, 255, 0.16) 45%, transparent 55% 100%);
  animation-duration: 9s;
}

@keyframes enquiryMotion {
  from {
    transform: translate3d(-2%, -1%, 0) scale(1);
  }
  to {
    transform: translate3d(3%, 2%, 0) scale(1.06);
  }
}

.enquiry-shell {
  width: min(1160px, calc(100% - 28px));
  margin: 0 auto;
  padding: 24px 0;
}

.enquiry-header,
.enquiry-footer,
.enquiry-card {
  background: rgba(255, 255, 255, 0.94);
  border: 1px solid rgba(255, 255, 255, 0.72);
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(7, 19, 38, 0.18);
  backdrop-filter: blur(10px);
}

.enquiry-header {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 18px;
  padding: 16px;
  margin-bottom: 14px;
}

.enquiry-logo {
  width: 72px;
  height: 72px;
  border-radius: 8px;
  overflow: hidden;
  display: block;
  background: #111827;
  border: 1px solid #dce5e2;
}

.enquiry-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.enquiry-header h1 {
  margin: 0;
  font-size: 30px;
  line-height: 1.1;
  color: #be123c;
  background: linear-gradient(90deg, #be123c, #0f766e, #1d4ed8);
  -webkit-background-clip: text;
  background-clip: text;
  color: transparent;
  transition: color 0.18s ease, transform 0.18s ease, filter 0.18s ease;
}

.enquiry-header h1:hover,
.enquiry-intro h2:hover {
  color: #ec4899;
  -webkit-text-fill-color: #ec4899;
  transform: translateX(2px);
  filter: drop-shadow(0 8px 18px rgba(236, 72, 153, 0.22));
}

.enquiry-header p:not(.eyebrow),
.enquiry-intro p,
.enquiry-footer span {
  color: var(--muted);
  margin: 6px 0 0;
  line-height: 1.5;
}

.enquiry-links,
.enquiry-footer nav,
.enquiry-contact-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.enquiry-links {
  justify-content: flex-end;
}

.enquiry-links a,
.enquiry-footer a,
.enquiry-contact-row a {
  min-height: 34px;
  display: inline-grid;
  place-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 7px 10px;
  color: var(--teal-dark);
  background: #ffffff;
  text-decoration: none;
  font-size: 12px;
  font-weight: 800;
}

.enquiry-card {
  padding: 18px;
}

.enquiry-intro {
  display: grid;
  gap: 8px;
  margin-bottom: 16px;
}

.enquiry-intro h2,
.enquiry-success h2 {
  margin: 0;
  font-size: 22px;
  line-height: 1.18;
}

.enquiry-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.enquiry-form label {
  display: grid;
  gap: 5px;
}

.enquiry-form label span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 760;
}

.enquiry-form .terms-check a {
  color: #dc2626;
  text-transform: lowercase;
}

.full-span {
  grid-column: 1 / -1;
}

.otp-panel {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(120px, 0.4fr) auto minmax(180px, 0.55fr);
  align-items: end;
  gap: 10px;
  background: #f8fbff;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
}

.otp-panel p {
  color: var(--muted);
  font-size: 12px;
  margin: 4px 0 0;
}

.otp-status {
  font-weight: 800;
}

.otp-status[data-tone="verified"],
.enquiry-message[data-tone="success"] {
  color: var(--green);
}

.otp-status[data-tone="error"],
.enquiry-message[data-tone="error"] {
  color: var(--red);
}

.otp-status[data-tone="sent"] {
  color: var(--blue);
}

.enquiry-message {
  min-height: 20px;
  margin: 0;
  font-size: 13px;
  color: var(--red);
}

.enquiry-success {
  display: grid;
  gap: 10px;
  border: 1px solid #bbf7d0;
  background: #f0fdf4;
  border-radius: 8px;
  padding: 16px;
}

.enquiry-success p {
  margin: 0;
  color: #166534;
}

.enquiry-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 14px;
  padding: 14px 16px;
}

.enquiry-footer strong,
.enquiry-footer span {
  display: block;
}

.enquiry-powered {
  margin: 8px 0 0;
  color: #be123c;
  font-weight: 850;
}

.enquiry-powered a {
  color: #db2777;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.legal-body {
  min-height: 100vh;
  margin: 0;
  background: #f6f8f8;
  color: var(--ink);
}

.legal-page {
  padding: 24px 0 42px;
}

.legal-header,
.legal-card {
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(7, 19, 38, 0.08);
}

.legal-header {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 16px;
  margin-bottom: 14px;
}

.legal-logo {
  width: 58px;
  height: 58px;
  overflow: hidden;
  border-radius: 8px;
  background: #111827;
}

.legal-logo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.legal-header span,
.legal-date {
  color: var(--muted);
}

.legal-header strong {
  display: block;
  font-size: 19px;
}

.legal-card {
  padding: 26px;
}

.legal-card h1 {
  margin-top: 0;
}

.legal-card h2 {
  margin: 24px 0 8px;
}

.legal-card p {
  line-height: 1.6;
}

.legal-footer {
  padding: 18px 0 28px;
  color: var(--muted);
  font-size: 13px;
}

.legal-footer a {
  color: #db2777;
  font-weight: 900;
  text-decoration: underline;
  text-underline-offset: 3px;
}

.search-results {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 14px;
  margin-bottom: 16px;
}

.search-results.is-hidden {
  display: none;
}

.result-list {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.result-list button {
  text-align: left;
  border: 1px solid var(--line);
  background: #f9fbfa;
  border-radius: 8px;
  padding: 11px;
}

.result-list strong,
.result-list span {
  display: block;
}

.result-list span {
  color: var(--muted);
  font-size: 12px;
  margin-top: 4px;
}

.record-dialog {
  width: min(900px, calc(100vw - 24px));
  max-height: calc(100vh - 24px);
  border: 1px solid rgba(15, 118, 110, 0.18);
  border-radius: 12px;
  padding: 0;
  overflow: hidden;
  resize: both;
  box-shadow: 0 24px 70px rgba(15, 23, 42, 0.24);
}

.record-dialog.fullscreen-dialog {
  width: calc(100vw - 18px);
  height: calc(100vh - 18px);
  max-height: calc(100vh - 18px);
}

.record-dialog.dialog-minimized {
  width: min(420px, calc(100vw - 24px));
  height: auto;
  min-height: 0;
}

.record-dialog.dialog-minimized .form-grid,
.record-dialog.dialog-minimized footer {
  display: none;
}

.record-dialog::backdrop {
  background: rgba(15, 23, 42, 0.35);
}

.record-dialog form {
  display: grid;
  gap: 16px;
  padding: 0;
  max-height: calc(100vh - 26px);
  grid-template-rows: auto minmax(0, 1fr) auto;
}

.record-dialog header,
.record-dialog footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 14px 18px;
}

.record-dialog header {
  background: linear-gradient(135deg, var(--teal), var(--teal-dark));
  color: #ffffff;
}

.record-dialog footer {
  border-top: 1px solid var(--line);
  background: #f8fafc;
}

.record-dialog .form-grid {
  padding: 18px;
  overflow: auto;
  max-height: calc(100vh - 150px);
  overscroll-behavior: contain;
}

.record-dialog.fullscreen-dialog .form-grid {
  max-height: calc(100vh - 120px);
}

.row-actions {
  max-width: 100%;
  overflow-x: auto;
  scrollbar-width: thin;
}

.dialog-window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}

.form-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.form-grid label:has(textarea) {
  grid-column: 1 / -1;
}

.course-preview-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.course-preview-frame {
  width: min(100%, 980px);
  height: min(64vh, 620px);
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

@media (max-width: 720px) {
  .record-dialog,
  .account-dialog {
    width: calc(100vw - 12px);
    max-height: calc(100vh - 12px);
  }

  .record-dialog form,
  .account-dialog form {
    max-height: calc(100vh - 12px);
  }

  .record-dialog header,
  .record-dialog footer {
    padding: 10px 12px;
  }

  .record-dialog .form-grid,
  .form-grid,
  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .record-dialog .form-grid {
    max-height: calc(100vh - 132px);
    padding: 12px;
  }

  .module-actions,
  .dashboard-control-strip {
    justify-content: stretch;
  }

  .module-actions > *,
  .dashboard-control-strip > * {
    flex: 1 1 160px;
  }
}

.invoice-preview-sheet {
  display: grid;
  gap: 18px;
  max-width: 900px;
  margin: 0 auto;
  padding: 24px;
  background: #ffffff;
  color: #0f172a;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.invoice-preview-sheet header,
.invoice-total-grid,
.invoice-party-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.invoice-preview-sheet header {
  align-items: start;
  border-bottom: 2px solid var(--teal);
  padding-bottom: 14px;
}

.invoice-preview-sheet header > div:last-child {
  text-align: right;
}

.invoice-preview-sheet img {
  max-width: 110px;
  max-height: 110px;
  object-fit: contain;
}

.invoice-logo {
  display: inline-grid;
  place-items: center;
  width: 78px;
  height: 54px;
  border-radius: 8px;
  background: #0f766e;
  color: #ffffff;
  letter-spacing: 1px;
}

.invoice-party-grid div,
.invoice-total-grid div {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.invoice-party-grid span,
.invoice-total-grid span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.invoice-preview-sheet table {
  min-width: 0;
  width: 100%;
  border-collapse: collapse;
}

.invoice-preview-sheet th,
.invoice-preview-sheet td {
  padding: 10px;
  border: 1px solid var(--line);
  text-align: left;
}

.invoice-preview-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

@media print {
  @page {
    size: A4;
    margin: 12mm;
  }

  .invoice-preview-sheet {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

@media (max-width: 1120px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .module-nav {
    grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  }

  .kpi-grid {
    grid-template-columns: repeat(3, minmax(120px, 1fr));
  }

  .role-dashboard {
    grid-template-columns: 1fr;
  }

  .counselor-studio-hero,
  .counselor-desktop-grid {
    grid-template-columns: 1fr;
  }

  .counselor-desktop-clock {
    align-self: stretch;
  }

  .student-hero,
  .student-grid,
  .remote-body {
    grid-template-columns: 1fr;
  }

  .remote-folder-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .remote-folder {
    grid-template-columns: 1fr;
    grid-template-areas: "icon" "title" "detail";
    justify-items: center;
    text-align: center;
  }

  .student-readiness {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-progress {
    grid-template-columns: repeat(auto-fit, minmax(90px, 1fr));
  }

  .enquiry-header {
    grid-template-columns: auto 1fr;
  }

  .enquiry-links {
    grid-column: 1 / -1;
    justify-content: flex-start;
  }

  .otp-panel {
    grid-template-columns: 1fr 1fr;
    align-items: stretch;
  }

  .otp-integration-panel,
  .otp-integration-grid,
  .lead-workflow-strip,
  .sales-lifecycle-strip,
  .lead-dashboard-grid,
  .job-portal-panel,
  .login-ai-form {
    grid-template-columns: 1fr;
  }

  .map-canvas {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas:
      "users users"
      "hub hub"
      "lead finance"
      "student compliance"
      "hr travel"
      "marketing reports"
      "support support";
    min-height: 0;
  }

  .flow-lines {
    display: none;
  }

  .platform-hub {
    min-height: 430px;
  }
}

@media (max-width: 760px) {
  .workspace {
    padding: 14px;
  }

  .auth-screen {
    padding: 12px;
    align-items: start;
  }

  .auth-panel {
    grid-template-columns: 1fr;
    padding: 10px;
  }

  .auth-brand {
    min-height: auto;
    padding: 18px;
  }

  .auth-brand h1 {
    font-size: 31px;
  }

  .auth-brand-top,
  .auth-brand-bottom {
    align-items: flex-start;
  }

  .auth-social-links {
    max-width: 100%;
    flex-wrap: wrap;
  }

  .auth-card {
    padding: 2px;
  }

  .auth-screen[data-login-mode="counselor"] .auth-panel,
  .auth-screen[data-login-mode="student"] .auth-panel {
    border-radius: 16px;
    padding: 8px;
  }

  .counselor-studio-hero {
    padding: 14px;
    border-radius: 12px;
  }

  .counselor-studio-copy {
    align-items: flex-start;
    flex-direction: column;
  }

  .counselor-studio-copy h2 {
    font-size: 27px;
  }

  .counselor-studio-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .auth-contact {
    align-items: flex-start;
  }

  .account-form-grid {
    grid-template-columns: 1fr;
  }

  .account-dialog,
  .account-dialog.wide {
    width: calc(100vw - 16px);
    max-height: calc(100vh - 16px);
    resize: none;
  }

  .communication-hero,
  .lead-contact-strip {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .communication-hero {
    flex-direction: column;
  }

  .lead-contact-strip div {
    grid-row: auto;
    grid-column: auto;
  }

  .communication-actions,
  .voice-share-actions,
  .proposal-toolbar {
    justify-content: flex-start;
  }

  .resume-preview-head,
  .resume-preview-grid,
  .field-picker,
  .lead-filter-bar,
  .lead-kpis,
  .lead-plugin-grid {
    grid-template-columns: 1fr;
  }

  .pagination-bar {
    align-items: stretch;
    flex-direction: column;
  }

  .resume-preview-head {
    display: grid;
  }

  .otp-inline {
    grid-template-columns: 1fr;
  }

  .student-social-strip {
    display: flex;
    overflow-x: auto;
  }

  .student-readiness {
    grid-template-columns: 1fr;
  }

  .student-remote-shell {
    border-radius: 8px;
  }

  .remote-titlebar {
    align-items: flex-start;
    flex-direction: column;
  }

  .remote-body {
    padding: 8px;
  }

  .remote-folder-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .remote-folder-window {
    min-height: 280px;
    padding: 10px;
  }

  .remote-folder-panel header {
    align-items: stretch;
    flex-direction: column;
  }

  .account-form-grid .full-span {
    grid-column: auto;
  }

  .enquiry-shell {
    width: min(100% - 20px, 720px);
    padding: 12px 0;
  }

  .enquiry-header,
  .enquiry-form,
  .otp-panel,
  .enquiry-footer {
    grid-template-columns: 1fr;
  }

  .enquiry-header {
    align-items: start;
  }

  .enquiry-form .full-span,
  .full-span {
    grid-column: auto;
  }

  .enquiry-footer {
    display: grid;
  }

  .topbar,
  .module-toolbar,
  .panel-header {
    align-items: stretch;
    flex-direction: column;
  }

  .topbar-actions,
  .module-actions {
    width: 100%;
    justify-content: stretch;
  }

  .account-box {
    width: 100%;
    justify-content: flex-start;
  }

  .account-copy {
    min-width: 0;
    flex: 1;
  }

  .global-search,
  .role-switcher,
  .module-search {
    width: 100%;
  }

  .global-search input,
  .role-switcher select,
  .module-search input {
    min-width: 0;
  }

  .kpi-grid,
  .dashboard-grid,
  .resume-kpis,
  .resume-dashboard-grid,
  .form-grid,
  .student-assets-row,
  .profile-facts {
    grid-template-columns: 1fr;
  }

  .portal-contact-highlight {
    grid-template-columns: 1fr;
  }

  .portal-contact-actions {
    justify-content: flex-start;
  }

  .student-hero-main {
    align-items: flex-start;
    flex-direction: column;
  }

  .portal-row {
    grid-template-columns: 1fr;
  }

  .portal-row em {
    grid-column: auto;
    grid-row: auto;
    justify-self: start;
  }

  .student-asset-row {
    grid-template-columns: 1fr;
  }

  .student-asset-actions {
    justify-content: flex-start;
  }

  .student-voice-top .panel-header {
    align-items: flex-start;
  }

  .voice-intro-status {
    padding: 10px;
  }

  .voice-intro-status audio {
    max-height: 34px;
  }

  .import-field-picker {
    max-height: 140px;
    overflow: auto;
  }

  .system-map {
    padding: 16px;
  }

  .system-map-heading {
    align-items: flex-start;
    justify-content: flex-start;
    text-align: left;
  }

  .academy-mark {
    width: 54px;
    height: 54px;
    flex: 0 0 auto;
  }

  .map-canvas {
    grid-template-columns: 1fr;
    grid-template-areas:
      "users"
      "hub"
      "lead"
      "student"
      "finance"
      "compliance"
      "hr"
      "travel"
      "marketing"
      "reports"
      "support";
    gap: 22px;
  }

  .platform-hub {
    min-height: 360px;
  }

  .hub-ring {
    width: min(330px, 100%);
  }

  .hub-core {
    width: min(270px, calc(100% - 34px));
  }

  .hub-core svg {
    width: 110px;
    height: 76px;
  }

  .map-card-body {
    grid-template-columns: repeat(3, minmax(70px, 1fr));
  }

  .sidebar {
    padding: 12px;
  }

  .module-nav {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .nav-group {
    align-content: start;
  }

  .hr-submenu,
  .nav-children {
    margin-left: 0;
    padding-left: 6px;
  }

  .nav-item {
    grid-template-columns: 30px 1fr;
    padding: 8px;
  }

  .nav-parent {
    grid-template-columns: 30px 1fr auto;
  }

  .audit-log-row {
    grid-template-columns: 1fr;
  }

  .audit-log-row time {
    text-align: left;
  }

  .audit-detail-grid {
    grid-template-columns: 1fr;
  }

  .helpbot {
    right: 10px;
    bottom: 10px;
    left: 10px;
    justify-items: stretch;
  }

  .helpbot-fab {
    justify-self: end;
  }

  .helpbot-panel {
    width: 100%;
    max-height: calc(100vh - 86px);
  }

  .helpbot-form {
    grid-template-columns: 1fr;
  }
}

.student-job-status {
  padding: 8px 10px;
  border-radius: 8px;
  background: #ecfdf5;
  color: #065f46;
  font-size: 12px;
}

.table-action.state-danger {
  background: #fee2e2;
  color: #991b1b;
  border-color: #fecaca;
}

.table-action.state-danger:hover {
  background: #fecaca;
  color: #7f1d1d;
}

.table-action.state-success,
.remote-service.is-requested {
  background: #dcfce7;
  color: #166534;
  border-color: #86efac;
}

.remote-service.is-requested {
  cursor: default;
  opacity: 0.9;
}

.clickable-row {
  cursor: pointer;
}

.clickable-row:hover {
  border-color: var(--teal);
  background: #f0fdfa;
}

.youtube-review-card {
  display: grid;
  gap: 10px;
}

.request-chain-view,
.visual-session-workspace {
  display: grid;
  gap: 14px;
}

.request-chain-status {
  display: grid;
  grid-template-columns: 1fr auto auto;
  gap: 10px;
  align-items: center;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.request-chain-line {
  display: grid;
  gap: 10px;
}

.request-chain-line article,
.video-session-card {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #ffffff;
}

.visual-training-panel {
  border-color: #bfdbfe;
}

.video-provider-row,
.video-session-card footer {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  justify-content: space-between;
}

.video-session-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.video-session-card {
  display: grid;
  gap: 8px;
}

.video-session-card span {
  color: var(--teal-dark);
  font-size: 12px;
  font-weight: 800;
  text-transform: uppercase;
}

.video-session-card p {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}

.visual-session-workspace {
  grid-template-columns: minmax(0, 2fr) minmax(220px, 1fr);
}

.meeting-preview-shell {
  display: grid;
  gap: 8px;
}

@media (max-width: 780px) {
  .visual-session-workspace,
  .request-chain-status {
    grid-template-columns: 1fr;
  }
}

.finance-rule-panel,
.payment-receipt-panel,
.payroll-law-panel,
.notice-master-panel {
  border-color: #c7d2fe;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.notice-card-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
  margin-top: 14px;
}

.notice-master-card {
  display: grid;
  grid-template-columns: 58px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.notice-master-card img,
.notice-master-card > span {
  width: 58px;
  height: 58px;
  border-radius: 8px;
  object-fit: cover;
}

.notice-master-card > span {
  display: grid;
  place-items: center;
  background: #eef2ff;
  color: #3730a3;
  font-weight: 900;
}

.notice-master-card small {
  display: block;
  color: var(--muted);
  font-weight: 800;
  text-transform: uppercase;
  font-size: 11px;
}

.notice-master-card p {
  margin: 6px 0 10px;
  color: var(--muted);
  font-size: 13px;
}

.priority-critical {
  border-color: #fecaca;
  background: #fff7f7;
}

.receipt-preview,
.salary-slip-preview {
  max-width: 840px;
}

.invoice-preview-totals {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin: 14px 0;
}

.invoice-preview-totals div {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fafc;
}

.invoice-preview-totals span {
  display: block;
  color: var(--muted);
  font-size: 12px;
}

.invoice-workflow-panel {
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}

.invoice-workflow-grid {
  margin-top: 14px;
}

.invoice-workflow-grid .request-drop-lane {
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.invoice-workflow-grid .request-drop-lane:hover {
  transform: translateY(-2px);
  border-color: #7dd3fc;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
}

.workflow-icon {
  display: inline-grid;
  width: 28px;
  height: 28px;
  margin-right: 8px;
  vertical-align: middle;
  place-items: center;
  color: #0f766e;
}

.workflow-icon svg {
  width: 24px;
  height: 24px;
  fill: none;
  stroke: currentColor;
  stroke-width: 2.4;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.compact-list {
  display: grid;
  gap: 6px;
  margin: 10px 0 0;
  padding-left: 18px;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.benefit-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.benefit-strip span {
  padding: 7px 10px;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  background: #f0fdf4;
  color: #166534;
  font-size: 12px;
  font-weight: 800;
}

.hr-talent-layout-panel {
  margin: 0 0 18px;
  padding: 16px;
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.08);
}

.hr-talent-layout-panel.blue {
  border-top: 5px solid #0f4c9a;
}

.hr-talent-layout-panel.green {
  border-top: 5px solid #15803d;
}

.hr-talent-layout-panel.orange {
  border-top: 5px solid #ea580c;
}

.hr-layout-hero {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 14px;
  align-items: center;
  padding: 14px;
  border-radius: 8px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f3f82, #072554);
}

.hr-layout-hero h2 {
  margin: 2px 0 4px;
  font-size: clamp(20px, 2vw, 30px);
  letter-spacing: 0;
}

.hr-layout-hero p {
  margin: 0;
  color: rgba(255, 255, 255, 0.86);
  font-size: 13px;
  line-height: 1.45;
}

.hr-layout-hero .eyebrow {
  color: #bfdbfe;
}

.hr-layout-icon {
  display: grid;
  width: 52px;
  height: 52px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.14);
  border: 1px solid rgba(255, 255, 255, 0.25);
  font-weight: 900;
}

.hr-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 10px;
  margin-top: 12px;
}

.hr-layout-card {
  min-height: 74px;
  padding: 12px;
  border: 1px solid #dbeafe;
  border-radius: 8px;
  background: #ffffff;
  color: #0f172a;
  text-align: left;
  cursor: pointer;
  transition: transform 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.hr-layout-card:hover {
  transform: translateY(-2px);
  border-color: #60a5fa;
  box-shadow: 0 14px 30px rgba(15, 23, 42, 0.1);
}

.hr-layout-card span {
  display: block;
  color: #64748b;
  font-size: 12px;
  font-weight: 800;
}

.hr-layout-card strong {
  display: block;
  margin-top: 5px;
  color: #0f3f82;
  font-size: 20px;
  line-height: 1.1;
}

.hr-layout-card.action {
  border-color: #fed7aa;
  background: #fff7ed;
}

.hr-layout-card.action strong {
  color: #c2410c;
  font-size: 17px;
}

.readonly-field input,
.readonly-field textarea {
  background: #f1f5f9;
  color: #334155;
  cursor: not-allowed;
}

.subtle-return {
  background: #f8fafc;
}

@media (max-width: 720px) {
  .hr-layout-hero {
    grid-template-columns: 1fr;
  }

  .hr-layout-hero .button {
    width: 100%;
  }
}

.employee-registration-panel {
  display: grid;
  gap: 14px;
  margin-bottom: 18px;
}

.employee-reg-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 14px;
}

.employee-reg-card {
  border: 1px solid #cbd5e1;
  border-radius: 10px;
  background: #ffffff;
  overflow: hidden;
  box-shadow: 0 14px 34px rgba(15, 23, 42, 0.08);
}

.employee-reg-card header {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px 16px;
  color: #ffffff;
}

.employee-reg-card.indian header {
  background: linear-gradient(135deg, #f97316, #15803d);
}

.employee-reg-card.foreign header {
  background: linear-gradient(135deg, #0f3f82, #475569);
}

.employee-reg-card header span {
  display: grid;
  width: 40px;
  height: 40px;
  place-items: center;
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.18);
  font-weight: 900;
}

.employee-reg-card h2 {
  margin: 0;
  font-size: 19px;
  letter-spacing: 0;
}

.employee-reg-table {
  display: grid;
  padding: 14px 16px;
}

.employee-reg-table span {
  padding: 10px 0;
  border-bottom: 1px solid #e2e8f0;
  font-size: 13px;
  font-weight: 800;
  color: #1e293b;
}

.employee-reg-card .button {
  margin: 0 16px 16px;
}

.employee-checklist-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
  gap: 10px;
}

.resume-layout-board {
  margin-bottom: 16px;
  padding: 18px;
  border: 1px solid #dbeafe;
  border-radius: 10px;
  background: #f8fbff;
}

.resume-layout-board > h2 {
  margin: 0 0 14px;
  color: #0f3f82;
  text-align: center;
  text-transform: uppercase;
  font-size: clamp(24px, 3vw, 42px);
  letter-spacing: 0;
}

.resume-layout-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 14px;
}

.resume-layout-card {
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  background: #ffffff;
  overflow: hidden;
}

.resume-layout-card header {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 14px;
  color: #ffffff;
  background: linear-gradient(135deg, #0f4c9a, #082f6f);
  font-size: 16px;
}

.resume-layout-card header span {
  display: grid;
  width: 34px;
  height: 34px;
  place-items: center;
  border-radius: 7px;
  background: rgba(255, 255, 255, 0.16);
  font-weight: 900;
}

.resume-layout-card p {
  margin: 0;
  padding: 9px 14px;
  border-bottom: 1px solid #e2e8f0;
  color: #1f2937;
}

.resume-layout-card b {
  color: #0f3f82;
}

.resume-progress {
  height: 14px;
  margin: 0 14px 8px;
  background: #e2e8f0;
}

.resume-progress span {
  display: block;
  height: 100%;
  background: #2563eb;
}

.resume-status-flow {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 2px;
  padding: 14px;
}

.resume-status-flow span {
  padding: 9px 6px;
  color: #ffffff;
  background: #194f90;
  text-align: center;
  font-size: 12px;
  font-weight: 800;
}

.resume-layout-actions,
.salary-slip-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 14px;
}

.salary-slip-document {
  max-width: 980px;
  margin: 0 auto;
  padding: 28px;
  background: #ffffff;
  color: #111827;
  border: 1px solid #cbd5e1;
  font-family: Arial, sans-serif;
}

.salary-slip-title {
  display: grid;
  grid-template-columns: 1.2fr 1fr;
  gap: 18px;
  align-items: start;
  border-bottom: 2px solid #d1d5db;
  padding-bottom: 12px;
}

.salary-company-block {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.salary-company-block img,
.salary-logo-placeholder {
  width: 74px;
  height: 74px;
  object-fit: contain;
}

.salary-logo-placeholder {
  display: grid;
  place-items: center;
  color: #ffffff;
  background: #0f3f82;
  font-weight: 900;
}

.salary-company-block strong,
.salary-company-block span {
  display: block;
}

.salary-company-block strong {
  color: #0f3f82;
  font-size: 18px;
}

.salary-company-block span {
  color: #475569;
  font-size: 12px;
  line-height: 1.35;
}

.salary-slip-title h1 {
  margin: 0;
  color: #173f78;
  text-align: right;
  text-transform: uppercase;
  font-size: 42px;
  letter-spacing: 0;
}

.salary-slip-title p,
.salary-slip-title span {
  display: block;
  margin: 4px 0 0;
  color: #173f78;
  text-align: right;
  font-weight: 800;
}

.salary-slip-section h2 {
  margin: 20px 0 0;
  padding: 9px 12px;
  color: #173f78;
  background: #e8eef8;
  border: 1px solid #a8b3c4;
  font-size: 18px;
}

.salary-slip-info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  border-left: 1px solid #c7cbd1;
  border-right: 1px solid #c7cbd1;
}

.salary-slip-info-grid span {
  padding: 10px 12px;
  border-bottom: 1px solid #c7cbd1;
}

.salary-slip-money-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 18px;
  margin-top: 20px;
}

.salary-slip-table {
  width: 100%;
  border-collapse: collapse;
  border: 1px solid #a8b3c4;
}

.salary-slip-table th {
  padding: 10px;
  color: #ffffff;
  background: #244f84;
  font-size: 16px;
}

.salary-slip-table td {
  padding: 8px 10px;
  border: 1px solid #c7cbd1;
}

.salary-slip-table td:last-child {
  text-align: right;
}

.salary-total-row td {
  color: #173f78;
  background: #e8eef8;
  font-weight: 900;
}

.salary-net-band {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin-top: 20px;
  padding: 14px;
  border-top: 2px solid #d1d5db;
  border-bottom: 2px solid #d1d5db;
}

.salary-net-band span,
.salary-net-band strong {
  display: block;
}

.salary-net-band span {
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}

.salary-net-band strong {
  color: #173f78;
  font-size: 20px;
}

.salary-validity-note {
  margin-top: 16px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #cbd5e1;
  color: #334155;
}

.salary-authorization {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 16px;
  margin-top: 24px;
  align-items: end;
}

.salary-authorization div {
  min-height: 70px;
  border-bottom: 1px solid #111827;
}

.salary-authorization img {
  display: block;
  max-width: 150px;
  max-height: 56px;
  margin: 4px 0;
  object-fit: contain;
}

@media print {
  body.salary-slip-print {
    margin: 0;
    background: #ffffff;
  }

  body.salary-slip-print .salary-slip-document {
    max-width: none;
    border: 0;
    box-shadow: none;
  }
}

@media (max-width: 760px) {
  .salary-slip-title,
  .salary-slip-info-grid,
  .salary-slip-money-grid,
  .salary-net-band,
  .salary-authorization {
    grid-template-columns: 1fr;
  }

  .salary-slip-title h1,
  .salary-slip-title p,
  .salary-slip-title span {
    text-align: left;
  }
}
