:root {
  font-family: "Segoe UI", Arial, sans-serif;
  color-scheme: light;
  --blue-900: #10213a;
  --blue-800: #15335c;
  --blue-700: #0b5cab;
  --gold: #c69220;
  --ink: #182230;
  --muted: #667085;
  --line: #d8dee8;
  --bg: #f4f7fb;
  --surface: #ffffff;
  --soft: #f8fafc;
  --success: #177245;
  --danger: #9d3b2f;
  --shadow: 0 24px 70px rgba(15, 34, 58, 0.14);
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  min-height: 100vh;
  overflow-x: hidden;
  background: var(--bg);
  color: var(--ink);
}

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

button {
  border: 0;
  cursor: pointer;
}

.ui-icon {
  width: 18px;
  height: 18px;
  flex: 0 0 auto;
  fill: none;
  stroke: currentColor;
  stroke-width: 2;
  stroke-linecap: round;
  stroke-linejoin: round;
}

button .ui-icon,
a .ui-icon {
  margin-right: 8px;
}

button,
a.approved-pdf-link,
.uploaded-file-actions a {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0;
}

.nav-item .ui-icon {
  margin-right: 10px;
}

.portal-view.sidebar-collapsed .nav-item .ui-icon {
  margin-right: 0;
}

.portal-view.sidebar-collapsed .nav-item {
  justify-content: center;
}

.hidden {
  display: none !important;
}

.tabs.single-login-mode {
  display: none;
}

.auth-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(420px, 0.9fr);
  background:
    linear-gradient(135deg, rgba(16, 33, 58, 0.98), rgba(21, 51, 92, 0.94)),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='900' height='900' viewBox='0 0 900 900'%3E%3Cpath fill='%23ffffff' fill-opacity='.06' d='M0 120h900v35H0zM0 280h900v20H0zM0 640h900v32H0z'/%3E%3Ccircle cx='740' cy='160' r='180' fill='%23f4c542' fill-opacity='.12'/%3E%3Ccircle cx='130' cy='730' r='220' fill='%230b5cab' fill-opacity='.24'/%3E%3C/svg%3E");
}

.auth-art {
  min-height: 100vh;
  padding: 54px;
  color: #fff;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.council-badge {
  width: 82px;
  height: 82px;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 18px;
  display: grid;
  place-items: center;
  background: rgba(255, 255, 255, 0.12);
}

.council-badge span {
  color: #ffd36a;
  font-size: 30px;
  font-weight: 900;
}

.auth-copy {
  max-width: 690px;
}

.eyebrow,
.mini-badge {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 13px;
  font-weight: 800;
}

.eyebrow {
  color: #ffe3a1;
  background: rgba(255, 255, 255, 0.12);
}

.mini-badge {
  color: #765100;
  background: #fff4d6;
}

h1,
h2,
h3,
p {
  margin: 0;
}

.auth-copy h1 {
  margin-top: 16px;
  font-size: 56px;
  line-height: 1.05;
  letter-spacing: 0;
}

.auth-copy p:last-child {
  margin-top: 18px;
  font-size: 19px;
  line-height: 1.6;
  color: rgba(255, 255, 255, 0.82);
}

.assurance-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}

.assurance-list div {
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 12px;
  padding: 16px;
  background: rgba(255, 255, 255, 0.10);
}

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

.assurance-list span {
  color: rgba(255, 255, 255, 0.78);
  font-size: 13px;
  margin-top: 6px;
  line-height: 1.45;
}

.auth-card {
  align-self: center;
  width: min(520px, calc(100% - 42px));
  margin: 32px auto;
  padding: 28px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.98);
  box-shadow: var(--shadow);
}

.auth-card-header h2 {
  margin-top: 12px;
  font-size: 30px;
}

.auth-card-header p,
.section-header p,
.welcome-panel p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

.tabs {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  margin: 22px 0;
  padding: 5px;
  border-radius: 12px;
  background: #eef2f7;
}

.tab {
  min-height: 42px;
  border-radius: 10px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
}

.tab.active {
  background: #fff;
  color: var(--blue-700);
  box-shadow: 0 8px 18px rgba(15, 34, 58, 0.08);
}

.auth-panel {
  display: none;
}

.auth-panel.active {
  display: block;
}

label {
  display: block;
  margin: 14px 0 7px;
  color: #344054;
  font-weight: 800;
  font-size: 14px;
}

.field-combo {
  display: flex;
  gap: 10px;
}

input,
textarea,
select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 48px;
  padding: 12px;
}

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

input:focus,
textarea:focus,
select:focus {
  outline: 3px solid #d9eaff;
  border-color: var(--blue-700);
}

.choices {
  margin-bottom: 0;
  position: relative;
}

.choices.is-open {
  z-index: 5000;
}

.choices__inner {
  min-height: 48px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  padding: 6px 12px;
}

.choices.is-focused .choices__inner,
.choices.is-open .choices__inner {
  border-color: var(--blue-700);
  box-shadow: 0 0 0 3px #d9eaff;
}

.choices__list--dropdown,
.choices__list[aria-expanded] {
  border-color: var(--line);
  border-radius: 10px;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.14);
  z-index: 9999;
}

.field-block:has(.choices.is-open),
.education-row:has(.choices.is-open) {
  position: relative;
  z-index: 4000;
}

.choices__list--single {
  padding: 5px 16px 5px 0;
}

.choices__item {
  font-size: 15px;
}

.field-combo button,
.welcome-panel button,
.form-card button,
.draft-actions button,
.document-upload-card .upload-document {
  min-height: 48px;
  border-radius: 10px;
  padding: 11px 16px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

.remember-row {
  min-height: 42px;
  display: flex;
  align-items: center;
  gap: 10px;
  margin-top: 10px;
  color: #344054;
  font-size: 14px;
  font-weight: 800;
}

.remember-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 auto;
}

.new-enrollment-link {
  display: grid;
  gap: 4px;
  margin-top: 16px;
  padding: 14px;
  border: 1px solid #cbdff7;
  border-radius: 10px;
  background: #f3f8ff;
  font-size: 14px;
}

.new-enrollment-link a,
.registration-back-link {
  color: var(--blue-700);
  font-weight: 800;
}

.enrollment-register-panel.active {
  display: grid;
  gap: 14px;
}

.registration-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0 12px;
}

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

.registration-contact {
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.registration-contact-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.verification-state {
  padding: 5px 9px;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.verification-state.verified {
  background: #dcfae6;
  color: #067647;
}

.otp-confirm-row {
  margin-top: 10px;
}

.otp-resend-status {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 7px;
  min-height: 20px;
  margin-top: 3px;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.2;
}

.otp-resend-button {
  min-height: 0;
  border: 0;
  padding: 2px 4px;
  background: transparent;
  color: var(--blue-700);
  font-size: 11px;
  font-weight: 800;
  text-decoration: underline;
}

.otp-resend-button:hover {
  background: transparent;
  color: var(--blue-900);
}

.registration-submit {
  min-height: 50px;
  border-radius: 10px;
  padding: 12px 18px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.registration-submit:disabled {
  cursor: not-allowed;
  background: #cbd5e1;
}

.registration-back-link {
  justify-self: center;
}

.field-combo button:hover,
.welcome-panel button:hover,
.form-card button:hover,
.draft-actions button:hover,
.document-upload-card .upload-document:hover {
  background: #08457f;
}

.message {
  margin-top: 18px;
  padding: 13px;
  border-radius: 12px;
  background: #f3f8ff;
  border: 1px solid #cbdff7;
  color: #344054;
  line-height: 1.5;
}

.message[data-message-type="success"] {
  background: #ecfdf3;
  border-color: #abefc6;
  color: #067647;
}

.message[data-message-type="error"] {
  background: #fff1f3;
  border-color: #fecdd6;
  color: #b42318;
}

.toast-stack {
  position: fixed;
  top: 18px;
  right: 18px;
  z-index: 5000;
  display: grid;
  gap: 10px;
  width: min(420px, calc(100vw - 28px));
  pointer-events: none;
}

.toast {
  display: grid;
  grid-template-columns: 34px 1fr 30px;
  align-items: start;
  gap: 10px;
  padding: 14px 14px 14px 12px;
  border-radius: 12px;
  border: 1px solid #cbdff7;
  background: #fff;
  color: #12355b;
  box-shadow: 0 18px 40px rgba(15, 34, 58, 0.18);
  transform: translateX(18px);
  opacity: 0;
  transition: transform 0.18s ease, opacity 0.18s ease;
  pointer-events: auto;
}

.toast-visible {
  transform: translateX(0);
  opacity: 1;
}

.toast-leaving {
  transform: translateX(18px);
  opacity: 0;
}

.toast[data-toast-type="success"] {
  border-color: #75e0a7;
  background: #f0fdf5;
}

.toast[data-toast-type="error"] {
  border-color: #fda29b;
  background: #fff5f5;
}

.toast-icon {
  display: grid;
  place-items: center;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  background: #e7f0ff;
  color: var(--blue-700);
  font-weight: 900;
}

.toast[data-toast-type="success"] .toast-icon {
  background: #dcfae6;
  color: #067647;
}

.toast[data-toast-type="error"] .toast-icon {
  background: #fee4e2;
  color: #b42318;
}

.toast-content {
  padding-top: 4px;
  font-weight: 800;
  line-height: 1.45;
}

.toast-close {
  min-width: 0;
  width: 28px;
  height: 28px;
  padding: 0;
  border-radius: 999px;
  background: transparent;
  color: #667085;
  font-size: 22px;
  line-height: 1;
}

.toast-close:hover {
  background: rgba(15, 34, 58, 0.08);
  color: #101828;
}

.portal-view {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 260px 1fr;
  transition: grid-template-columns 0.18s ease;
}

.portal-view.sidebar-collapsed {
  grid-template-columns: 72px 1fr;
}

.app-sidebar {
  position: relative;
  min-height: 100vh;
  padding: 24px 14px;
  background:
    linear-gradient(180deg, #122947 0%, #0e2038 60%, #0b1b31 100%);
  color: #fff;
  overflow: visible;
  box-shadow: inset -1px 0 0 rgba(255, 255, 255, 0.06);
}

.sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 0;
  padding: 4px 4px 26px;
}

.sidebar-brand > img {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: block;
  object-fit: contain;
  border-radius: 50%;
  background: #f5c34b;
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.2);
}

.sidebar-brand strong,
.sidebar-brand small {
  display: block;
  line-height: 1.25;
}

.sidebar-brand small {
  color: #c6d3e4;
  font-size: 12px;
}

.portal-view.sidebar-collapsed .sidebar-brand {
  justify-content: center;
  padding: 4px 0 24px;
}

.portal-view.sidebar-collapsed .sidebar-brand div {
  display: none;
}

.app-sidebar nav {
  display: grid;
  gap: 7px;
}

.nav-item {
  width: 100%;
  min-height: 44px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  border-radius: 9px;
  background: transparent;
  color: #d7e4f5;
  text-align: left;
  padding: 11px 12px;
  font-weight: 800;
  font-size: 14px;
  line-height: 1.2;
  transition: background 0.15s ease, color 0.15s ease, box-shadow 0.15s ease;
}

.nav-item.active,
.nav-item:hover {
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  box-shadow: inset 3px 0 0 #f5c34b;
}

.portal-view.sidebar-collapsed .nav-item {
  width: 44px;
  min-height: 44px;
  justify-content: center;
  margin-inline: auto;
  padding: 0;
  font-size: 0;
}

.portal-view.sidebar-collapsed .nav-item .ui-icon {
  width: 20px;
  height: 20px;
  margin-right: 0;
}

.portal-view.sidebar-collapsed .nav-item::before {
  content: none;
}

.app-main {
  min-width: 0;
  padding: 18px 24px 24px;
}

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

.app-topbar > div:first-child {
  display: flex;
  align-items: center;
  gap: 10px;
}

.app-topbar .eyebrow {
  color: var(--blue-700);
  background: #eaf4ff;
}

.app-topbar h2 {
  margin: 0;
  font-size: 22px;
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
}

.sidebar-toggle {
  position: absolute;
  top: 16px;
  right: -16px;
  z-index: 5;
  width: 32px;
  min-height: 32px;
  display: grid;
  place-items: center;
  border: 1px solid #d8e2ef;
  border-radius: 999px;
  padding: 0;
  background: #fff;
  color: var(--blue-900);
  font-size: 16px;
  box-shadow: 0 8px 18px rgba(15, 34, 58, 0.16);
}

.health-pill {
  display: inline-flex;
  align-items: center;
  min-height: 36px;
  padding: 7px 11px;
  border-radius: 999px;
  background: #edfdf4;
  color: var(--success);
  font-weight: 800;
}

.ghost-button {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 13px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 800;
}

.danger-button {
  min-height: 38px;
  border-radius: 10px;
  padding: 8px 13px;
  background: #fff1f2;
  color: #b42318;
  font-weight: 800;
}

.app-view {
  display: none;
}

.app-view.active {
  display: block;
}

.welcome-panel,
.record-panel,
.form-card,
.draft-shell,
.status-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.06);
}

.welcome-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  padding: 28px;
  background:
    linear-gradient(90deg, #ffffff, #f4f9ff);
}

.welcome-panel h1,
.section-header h1 {
  margin-top: 10px;
  font-size: 34px;
}

.record-panel {
  margin-top: 18px;
  padding: 18px;
}

.resume-draft-panel {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-top: 18px;
  padding: 18px;
  border: 1px solid #b8d9ff;
  border-radius: 16px;
  background: #f7fbff;
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.05);
}

.resume-draft-panel h3 {
  margin-top: 8px;
  font-size: 22px;
}

.resume-draft-panel p {
  margin-top: 5px;
  color: var(--muted);
}

.resume-draft-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.resume-draft-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 13px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.record-item {
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: var(--soft);
}

.record-item strong,
.status-card strong {
  display: block;
  font-size: 18px;
}

.meta {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.5;
  margin-top: 4px;
}

.locked {
  display: inline-flex;
  margin-top: 10px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #fff4d6;
  color: #765100;
  font-size: 13px;
  font-weight: 900;
}

.section-header {
  margin-bottom: 18px;
}

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

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

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

.tender-scope-header {
  margin-top: 28px;
}

.form-card,
.department-card,
.module-card {
  min-height: 260px;
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.department-card,
.module-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.06);
}

.department-card.active-department,
.module-card.active-module {
  border-color: #b8d9ff;
  background: linear-gradient(180deg, #ffffff, #f7fbff);
}

.form-card h3,
.department-card h3,
.module-card h3 {
  margin-top: 12px;
  font-size: 25px;
}

.form-card p,
.department-card p,
.module-card p {
  color: var(--muted);
  line-height: 1.55;
  margin-top: 8px;
}

.module-card {
  min-height: 0;
  gap: 18px;
}

.module-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.department-chip {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eef2f7;
  color: #475467;
  font-size: 12px;
  font-weight: 900;
}

.service-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.service-pill {
  border-radius: 999px;
  padding: 6px 10px;
  background: #f8fafc;
  color: #475467;
  border: 1px solid #edf1f7;
  font-size: 12px;
  font-weight: 800;
}

.service-pill.active-service {
  background: #edfdf4;
  color: var(--success);
  border-color: #c9ead8;
}

.department-modules {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}

.department-card button {
  min-height: 44px;
  margin-top: 18px;
  border-radius: 10px;
  padding: 10px 14px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.department-card button:disabled {
  cursor: not-allowed;
  opacity: 0.7;
}

.fee-row {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.existing-form-summary {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-top: 16px;
  padding: 12px 14px;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #f7fbff;
}

.existing-form-summary small,
.existing-form-summary strong {
  display: block;
}

.existing-form-summary small {
  color: var(--muted);
  font-size: 12px;
}

.existing-form-summary strong {
  margin-top: 2px;
}

.existing-form-summary.status-approved {
  border-color: #bfe6cf;
  background: #f1fbf5;
}

.form-card .check-form-status {
  background: #0f7a4b;
}

.review-partial-save-note {
  margin: 10px 0 0;
  padding: 10px 12px;
  border-left: 3px solid #168056;
  background: #f2fbf6;
  color: #315f4b;
  font-size: 13px;
}

.chip {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 5px 10px;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue-700);
  font-size: 13px;
  font-weight: 900;
}

.draft-shell {
  padding: 22px;
}

.empty-state {
  color: var(--muted);
}

.draft-summary {
  padding: 16px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #cfe3fa;
}

.locked-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.locked-field {
  min-height: 58px;
  padding: 9px 10px;
  border-radius: 10px;
  background: #fffaf0;
  border: 1px solid #efd49b;
}

.locked-field span,
.form-section-head p,
.document-item p {
  color: var(--muted);
}

.locked-field span {
  display: block;
  font-size: 10px;
  font-weight: 900;
  text-transform: uppercase;
}

.locked-field strong {
  display: block;
  margin-top: 4px;
  font-size: 13px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.editable-registry-field {
  background: #f8fbff;
  border-color: #cfe3fa;
}

.editable-registry-field label {
  margin: 0 0 8px;
  color: #344054;
  font-size: 12px;
  text-transform: uppercase;
}

.editable-registry-field input {
  min-height: 42px;
}

.editable-registry-field small {
  display: block;
  margin-top: 8px;
  color: var(--blue-700);
  font-weight: 800;
  line-height: 1.35;
}

.locked-enrolment-section {
  margin-top: 16px;
}

.verification-locked-grid .locked-field.wide {
  grid-column: span 2;
}

.draft-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 14px;
  margin-top: 16px;
}

.verification-flow {
  display: grid;
  gap: 16px;
  margin-top: 18px;
}

.wizard-shell {
  margin-top: 18px;
}

.enrollment-compact-shell {
  margin-top: 14px;
}

.enrollment-compact-toolbar {
  position: sticky;
  top: 0;
  z-index: 4;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  margin-bottom: 12px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 12px 32px rgba(15, 34, 58, 0.08);
  backdrop-filter: blur(10px);
}

.enrollment-compact-toolbar h4 {
  margin: 0;
  font-size: 20px;
}

.enrollment-compact-toolbar p {
  margin: 3px 0 0;
  color: var(--muted);
  font-size: 13px;
}

.enrollment-compact-toolbar button,
.enrollment-final-actions button {
  min-height: 42px;
  border-radius: 10px;
  padding: 9px 16px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.enrollment-compact-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  align-items: start;
}

.enrollment-instruction-panel {
  margin-bottom: 12px;
  padding: 12px;
}

.enrollment-official-panel {
  margin-bottom: 12px;
  padding: 12px;
  border-color: #f5c76b;
  background: #fff8e8;
}

.enrollment-official-grid {
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  margin-top: 10px;
}

.enrollment-official-grid .locked-field {
  background: #fffdf6;
}

.enrollment-instruction-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px 18px;
  margin: 0;
  padding-left: 18px;
  color: var(--text);
  font-size: 12px;
  line-height: 1.45;
}

.enrollment-wizard-shell .wizard-shell {
  margin-top: 0;
}

.enrollment-wizard-shell .verification-flow {
  margin-top: 14px;
}

.enrollment-wizard-shell .official-field-grid {
  grid-template-columns: repeat(3, minmax(190px, 1fr));
}

.enrollment-wizard-shell .field-full {
  grid-column: 1 / -1;
}

.enrollment-preview-minimal {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 0;
  overflow: hidden;
  border: 1px solid #c8b596;
  background: #f5ead8;
}

.enrollment-preview-column {
  display: grid;
  align-content: start;
  border-right: 1px solid #c8b596;
}

.enrollment-preview-column:last-child {
  border-right: 0;
}

.enrollment-preview-row {
  display: grid;
  grid-template-columns: 190px minmax(0, 1fr);
  min-height: 31px;
  border-bottom: 1px solid rgba(134, 109, 74, 0.35);
}

.enrollment-preview-row.tall {
  min-height: 82px;
}

.enrollment-preview-row span,
.enrollment-preview-row strong {
  display: flex;
  align-items: center;
  padding: 5px 8px;
  line-height: 1.2;
}

.enrollment-preview-row span {
  color: #4f4232;
  font-weight: 900;
  background: rgba(255, 255, 255, 0.26);
}

.enrollment-preview-row strong {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #101820;
  font-weight: 800;
  background: rgba(255, 255, 255, 0.42);
}

.enrollment-compact-section {
  padding: 12px;
}

.enrollment-compact-section .form-section-head {
  padding-bottom: 8px;
  gap: 10px;
}

.enrollment-compact-section .form-section-head h4 {
  font-size: 15px;
}

.enrollment-compact-section .form-section-head p {
  max-width: none;
  margin-top: 2px;
  font-size: 11px;
  line-height: 1.35;
}

.enrollment-field-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.enrollment-field-grid .field-block label {
  min-height: 22px;
  font-size: 11px;
  line-height: 1.2;
}

.enrollment-field-grid input,
.enrollment-field-grid select,
.enrollment-field-grid textarea,
.enrollment-field-grid .choices__inner {
  min-height: 38px;
  font-size: 13px;
}

.enrollment-field-grid textarea {
  min-height: 72px;
}

.enrollment-field-grid .check-row {
  min-height: 38px;
  padding: 8px 10px;
  font-size: 12px;
}

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

.enrollment-compact-section.compact {
  grid-column: span 2;
}

.enrollment-compact-section.compact .enrollment-field-grid {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.enrollment-document-panel {
  margin-top: 12px;
}

.enrollment-inline-documents {
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px dashed var(--line);
}

.enrollment-inline-documents .document-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.enrollment-inline-documents .document-upload-card {
  padding: 10px;
}

.enrollment-document-panel .document-list {
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
}

.enrollment-final-actions {
  justify-content: flex-end;
}

.wizard-progress {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.05);
}

.wizard-progress-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  color: #344054;
  font-size: 14px;
}

.wizard-progress-head span {
  color: var(--blue-700);
  font-weight: 900;
}

.wizard-track {
  height: 8px;
  margin-top: 12px;
  border-radius: 999px;
  background: #edf1f7;
  overflow: hidden;
}

.wizard-track div {
  height: 100%;
  border-radius: inherit;
  background: var(--blue-700);
  transition: width 180ms ease;
}

.wizard-tabs {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 8px;
  padding-top: 14px;
}

.wizard-tabs .wizard-nav {
  min-height: 42px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  border-radius: 10px;
  padding: 8px 12px;
  background: #f1f5f9;
  color: #475467;
  font-size: 13px;
  font-weight: 900;
  line-height: 1.25;
  text-align: left;
  white-space: normal;
}

.wizard-tabs .wizard-nav span {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: #fff;
  color: inherit;
  flex: 0 0 auto;
}

.wizard-tabs .wizard-nav.active {
  background: #eaf4ff;
  color: var(--blue-700);
}

.wizard-tabs .wizard-nav.done {
  background: #edfdf4;
  color: var(--success);
}

.form-section {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 18px;
}

.wizard-step {
  display: none;
}

.wizard-step.active {
  display: block;
}

.wizard-actions {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px solid #edf1f7;
}

.wizard-actions button {
  min-height: 46px;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.wizard-actions button.secondary {
  background: #eef2f7;
  color: var(--ink);
}

.wizard-actions button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.wizard-action-end {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 10px;
}

.wizard-actions .save-review-step {
  background: #eef2f7;
  color: var(--ink);
  white-space: nowrap;
}

.form-section-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 18px;
  padding-bottom: 12px;
  border-bottom: 1px solid #edf1f7;
}

@media (max-width: 1400px) {
  .enrollment-compact-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .enrollment-compact-section.compact {
    grid-column: 1 / -1;
  }
}

@media (max-width: 900px) {
  .enrollment-compact-grid,
  .enrollment-field-grid,
  .enrollment-compact-section.compact .enrollment-field-grid {
    grid-template-columns: 1fr;
  }

  .enrollment-compact-toolbar {
    align-items: stretch;
    flex-direction: column;
  }
}

.form-section-head h4 {
  margin: 0;
  font-size: 20px;
}

.form-section-head p {
  max-width: 560px;
  margin: 0;
  line-height: 1.5;
  font-size: 14px;
}

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

.enrollment-name-layout {
  display: grid;
  gap: 12px;
  margin-top: 14px;
}

.enrollment-name-row {
  display: grid;
  gap: 12px;
}

.enrollment-name-row-english {
  grid-template-columns: minmax(88px, 0.38fr) repeat(3, minmax(0, 1fr));
}

.enrollment-name-row-marathi {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.enrollment-name-row .field-block label {
  min-height: 22px;
}

.enrollment-personal-fields {
  margin-top: 16px;
}

.enrollment-graduation-setup,
.enrollment-graduation-totals,
.enrollment-hsc-totals {
  margin-top: 14px;
}

.enrollment-academic-rows {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.enrollment-academic-row {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fbfdff;
}

.enrollment-academic-row:has(.field-block:not(.field-hidden)) {
  display: grid;
}

.enrollment-academic-row:not(:has(.field-block:not(.field-hidden))) {
  display: none;
}

.enrollment-academic-row .field-block label {
  min-height: 32px;
  font-size: 12px;
}

.enrollment-sop-progress {
  margin: 14px 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
}

.enrollment-sop-progress > div:first-child {
  display: flex;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-sop-progress > div:first-child span {
  color: var(--muted);
  font-size: 13px;
}

.enrollment-sop-track {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  margin-top: 12px;
}

.enrollment-sop-step {
  display: flex;
  align-items: center;
  gap: 7px;
  color: var(--muted);
}

.enrollment-sop-step span {
  display: grid;
  place-items: center;
  width: 24px;
  height: 24px;
  flex: 0 0 24px;
  border: 1px solid var(--line);
  border-radius: 50%;
  background: #fff;
  font-size: 11px;
  font-weight: 800;
}

.enrollment-sop-step.done,
.enrollment-sop-step.active {
  color: var(--ink);
  font-weight: 700;
}

.enrollment-sop-step.done span {
  color: #fff;
  border-color: #087f5b;
  background: #087f5b;
}

.enrollment-sop-step.active span {
  color: #fff;
  border-color: var(--primary);
  background: var(--primary);
}

.enrollment-defect-notice {
  margin-top: 14px;
  padding: 12px;
  border-left: 4px solid #c2410c;
  background: #fff7ed;
}

.enrollment-defect-notice p {
  margin: 4px 0 0;
  white-space: pre-wrap;
}

.enrollment-committee-fields {
  margin-bottom: 14px;
}

.enrollment-workflow-heading,
.provisional-document-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.enrollment-workflow-heading p {
  margin: 4px 0 0;
  color: var(--muted);
}

.provisional-document-actions {
  flex-wrap: wrap;
  justify-content: flex-end;
}

@media (max-width: 1100px) {
  .enrollment-academic-row {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 900px) {
  .enrollment-name-row-english,
  .enrollment-name-row-marathi {
    grid-template-columns: 1fr;
  }

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

  .enrollment-sop-track {
    grid-template-columns: 1fr;
  }
}

.field-block {
  min-width: 0;
}

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

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

.field-compact-checkbox {
  grid-column: span 1;
}

.field-compact-checkbox .check-row {
  min-height: 48px;
  padding: 10px 12px;
}

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

.compact-checkbox-grid .field-block:not(.field-compact-checkbox) {
  grid-column: span 1;
}

.compact-checkbox-grid .field-block[data-field-wrapper="barAssociationAffiliate"],
.compact-checkbox-grid .field-block[data-field-wrapper="verificationPlaceOfPractice"] {
  grid-column: span 1;
}

.compact-checkbox-grid .field-block[data-field-wrapper="serviceDetails"],
.compact-checkbox-grid .field-block[data-field-wrapper="serviceStartDate"],
.compact-checkbox-grid .field-block[data-field-wrapper="lawFirm"] {
  grid-column: span 1;
}

.field-block label {
  min-height: 34px;
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.education-table {
  display: grid;
  gap: 14px;
  margin-top: 16px;
}

.education-row {
  display: grid;
  grid-template-columns: 1fr;
  gap: 12px;
  align-items: start;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fbfdff;
}

.education-row-fields {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 10px;
}

.education-row-heading {
  display: block;
  margin-bottom: 8px;
  font-size: 12px;
}

.education-row-fields .field-block:nth-child(4),
.education-row-fields .field-block:nth-child(5) {
  grid-column: span 1;
}

.education-row-fields .field-block label,
.degree-name-row .field-block label {
  min-height: 26px;
  font-size: 12px;
}

.education-document-card {
  padding: 10px;
  border-radius: 12px;
  box-shadow: none;
  max-width: none;
}

.education-document-card .document-card-head {
  gap: 8px;
}

.education-document-card p {
  margin: 6px 0 10px;
  font-size: 12px;
}

.education-document-card .upload-picker {
  max-width: 360px;
}

.aibe-education-row {
  margin-top: 14px;
}

.aibe-row-fields .field-block[data-field-wrapper="aibeDelayDetails"] {
  grid-column: 1 / -1;
}

.degree-name-row {
  display: grid;
  grid-template-columns: minmax(240px, 360px) minmax(280px, 1fr);
  gap: 12px;
  align-items: start;
  margin-top: 14px;
  padding: 14px;
  border: 1px dashed #d8e2ef;
  border-radius: 14px;
  background: #fbfdff;
}

.field-block.invalid input,
.field-block.invalid textarea,
.field-block.invalid .choices__inner {
  border-color: var(--danger);
  box-shadow: 0 0 0 3px #ffe4e0;
}

.field-error {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-weight: 800;
}

.required {
  color: var(--danger);
}

.check-row {
  min-height: 54px;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: var(--soft);
}

.check-row input {
  width: 18px;
  min-height: 18px;
  padding: 0;
  flex: 0 0 auto;
}

.document-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.inline-documents {
  margin-top: 18px;
  padding-top: 14px;
  border-top: 1px dashed #d8e2ef;
}

.inline-documents-head {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 12px;
}

.inline-documents-head strong {
  color: var(--ink);
  font-size: 15px;
}

.inline-documents-head span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
}

.inline-documents .document-list {
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
}

.document-checklist {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  margin-top: 14px;
  padding: 14px;
  border: 1px solid #cfe3fa;
  border-radius: 14px;
  background: #f7fbff;
}

.document-checklist strong,
.document-checklist span {
  display: block;
}

.document-checklist span {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.document-check-count {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 6px 10px;
  background: #eaf4ff;
  color: var(--blue-700) !important;
  font-weight: 900;
}

.document-group-title {
  grid-column: 1 / -1;
  margin-top: 8px;
  padding: 10px 12px;
  border-radius: 10px;
  background: #eaf4ff;
  color: var(--blue-800);
  font-size: 13px;
  font-weight: 900;
  text-transform: uppercase;
  letter-spacing: 0;
}

.document-group-title:first-child {
  margin-top: 0;
}

.document-manager {
  display: grid;
  grid-template-columns: 340px 1fr;
  gap: 16px;
  align-items: start;
}

.document-manager-upload,
.personal-document-card {
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.05);
}

.document-upload-heading {
  margin-bottom: 16px;
  padding-bottom: 14px;
  border-bottom: 1px solid #edf1f7;
}

.document-upload-heading h3 {
  margin-top: 10px;
  font-size: 22px;
}

.document-upload-heading p {
  margin-top: 6px;
  color: var(--muted);
  line-height: 1.45;
}

.document-manager-upload button {
  width: 100%;
  min-height: 46px;
  margin-top: 12px;
  border-radius: 10px;
  padding: 10px 16px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.personal-documents-list {
  display: grid;
  gap: 12px;
}

.personal-document-card {
  display: grid;
  gap: 12px;
}

.personal-document-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.personal-document-card strong {
  display: block;
  margin-top: 10px;
  font-size: 18px;
}

.personal-document-card p {
  margin-top: 5px;
  color: var(--muted);
  overflow-wrap: anywhere;
}

.document-item {
  display: flex;
  gap: 10px;
  min-height: 62px;
  padding: 14px;
  border-radius: 14px;
  background: #fff;
  border: 1px solid #edf1f7;
  box-shadow: 0 10px 24px rgba(15, 34, 58, 0.04);
}

.document-number {
  width: 28px;
  height: 28px;
  display: grid;
  place-items: center;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #eaf4ff;
  color: var(--blue-700);
  font-weight: 900;
}

.document-card-head {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.document-status-pill {
  flex: 0 0 auto;
  border-radius: 999px;
  padding: 4px 8px;
  background: #fff4d6;
  color: #765100;
  font-size: 12px;
  font-weight: 900;
}

.document-status-pill.optional {
  background: #eef2f7;
  color: #475467;
}

.document-item p {
  margin: 6px 0 0;
  line-height: 1.45;
  font-size: 14px;
}

.document-upload-card {
  min-height: 190px;
}

.document-upload-card.has-upload {
  border-color: #c9ead8;
  background: #fbfffd;
}

.document-upload-card.has-upload .document-number {
  background: var(--success);
  color: #fff;
}

.document-upload-card > div {
  min-width: 0;
  flex: 1;
}

.document-upload-card strong {
  display: block;
  line-height: 1.35;
}

.visually-hidden {
  position: fixed;
  top: 0;
  left: 0;
  width: 1px;
  height: 1px;
  opacity: 0;
  pointer-events: none;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}

.upload-picker,
.personal-upload-picker {
  margin-top: 12px;
}

.upload-picker {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  gap: 8px;
  align-items: stretch;
}

.upload-picker.has-selected-file {
  grid-template-columns: minmax(0, 1fr) auto;
}

.file-picker-trigger {
  position: relative;
  min-width: 0;
}

.native-file-input {
  position: absolute;
  inset: 0;
  z-index: 2;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
}

.file-picker-label {
  min-height: 48px;
  display: grid;
  align-content: center;
  gap: 2px;
  width: 100%;
  text-align: left;
  border: 1px dashed #b8d9ff;
  border-radius: 10px;
  padding: 9px 12px;
  background: #f7fbff;
  color: inherit;
  cursor: pointer;
}

.file-picker-label span {
  color: var(--blue-700);
  font-weight: 900;
}

.file-picker-label small {
  color: var(--muted);
  overflow-wrap: anywhere;
}

.document-upload-card .upload-document {
  min-width: 92px;
  width: auto;
  min-height: 42px;
  margin-top: 0;
  border-radius: 10px;
  padding: 9px 14px;
  align-self: center;
}

.document-upload-card .upload-document {
  background: var(--blue-700);
  color: #fff;
}

.document-upload-card .upload-document:disabled,
.document-upload-card .upload-document.is-uploading {
  opacity: 0.7;
  cursor: wait;
}

.uploaded-files {
  display: grid;
  gap: 8px;
  margin-top: 10px;
  padding-top: 10px;
  border-top: 1px solid #edf1f7;
  color: var(--muted);
  font-size: 13px;
}

.uploaded-files a {
  color: var(--blue-700);
  font-weight: 900;
  overflow-wrap: anywhere;
}

.uploaded-file-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 10px;
  align-items: center;
  padding: 10px;
  border: 1px solid #e6ecf3;
  border-radius: 10px;
  background: #fff;
}

.uploaded-file-row strong,
.uploaded-file-row small {
  display: block;
}

.uploaded-file-actions {
  display: flex;
  gap: 8px;
  min-width: 180px;
}

.uploaded-file-actions button,
.uploaded-file-actions a {
  min-height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 1;
  border-radius: 8px;
  padding: 7px 10px;
  text-decoration: none;
  font-size: 13px;
  white-space: nowrap;
}

.review-edit-form .uploaded-file-row {
  grid-template-columns: minmax(0, 1fr);
}

.review-edit-form .uploaded-file-actions {
  min-width: 0;
  justify-content: flex-end;
  flex-wrap: wrap;
}

.review-edit-form .uploaded-file-actions button,
.review-edit-form .uploaded-file-actions a {
  flex: 0 0 auto;
  min-width: 74px;
}

.uploaded-file-actions button {
  border: 0;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.uploaded-file-actions .danger-link {
  color: #a61b1b;
  border-color: #efb9b9;
  background: #fff7f7;
}

.uploaded-file-actions .danger-link:hover {
  color: #7f1111;
  border-color: #d97878;
  background: #ffeded;
}

.uploaded-file-actions a {
  background: #eef2f7;
  color: var(--ink);
}

.uploaded-files small,
.upload-empty,
.upload-message {
  color: var(--muted);
}

.upload-message.error {
  color: var(--danger);
}

.upload-inline-message {
  min-height: 18px;
  margin-top: 8px;
  font-size: 13px;
  font-weight: 800;
}

.upload-inline-message .upload-message {
  color: var(--success);
}

.preview-backdrop {
  position: fixed;
  inset: 0;
  z-index: 50;
  display: grid;
  place-items: center;
  padding: 24px;
  background: rgba(16, 33, 58, 0.72);
}

.preview-dialog {
  width: min(1100px, 100%);
  height: min(760px, calc(100vh - 48px));
  display: grid;
  grid-template-rows: auto 1fr;
  overflow: hidden;
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow);
}

.preview-header {
  min-height: 64px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 16px;
  border-bottom: 1px solid var(--line);
}

.preview-header strong,
.preview-header span {
  display: block;
}

.preview-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}

.preview-header button {
  min-height: 38px;
  border-radius: 8px;
  padding: 8px 12px;
  background: #eef2f7;
  color: var(--ink);
  font-weight: 900;
}

.preview-body {
  min-height: 0;
  display: grid;
  place-items: center;
  background: #f1f5f9;
}

.preview-body iframe,
.preview-body img {
  width: 100%;
  height: 100%;
  border: 0;
}

.preview-body img {
  object-fit: contain;
  padding: 16px;
}

.email-preview-dialog {
  width: min(720px, 100%);
  height: auto;
  max-height: calc(100vh - 48px);
}

.email-preview-body {
  display: block;
  overflow: auto;
  padding: 20px;
  background: #f7f9fc;
}

.email-preview-meta,
.email-preview-message {
  margin: 0 0 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.email-preview-meta > div {
  display: grid;
  grid-template-columns: 100px minmax(0, 1fr);
  gap: 12px;
  padding: 7px 0;
}

.email-preview-meta dt { color: var(--muted); font-weight: 800; }
.email-preview-meta dd { margin: 0; overflow-wrap: anywhere; }
.email-preview-message { line-height: 1.55; }
.email-preview-actions { display: flex; justify-content: flex-end; gap: 10px; }

.admin-notification-toggle {
  display: flex;
  align-items: center;
  gap: 10px;
  max-width: 310px;
  font-weight: 800;
}

.admin-notification-toggle input {
  width: 20px;
  height: 20px;
  flex: 0 0 auto;
}

.draft-actions {
  display: flex;
  gap: 10px;
  margin-top: 18px;
}

.draft-actions .secondary {
  background: #eef2f7;
  color: var(--ink);
}

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

.status-card {
  padding: 18px;
}

.timeline-card {
  min-height: 0;
}

.timeline-card-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.status-badge {
  display: inline-flex;
  flex: 0 0 auto;
  margin-top: 0;
  border-radius: 999px;
  padding: 6px 10px;
  background: #edfdf4;
  color: var(--success);
  font-weight: 900;
  font-size: 13px;
  white-space: nowrap;
}

.status-correction-required,
.status-documents-required,
.status-reopened {
  background: #fff4d6;
  color: #765100;
}

.status-rejected {
  background: #fff1f0;
  color: var(--danger);
}

.status-draft,
.status-submitted,
.status-under-scrutiny,
.status-resubmitted {
  background: #eaf4ff;
  color: var(--blue-700);
}

.application-timeline {
  display: grid;
  gap: 0;
  margin-top: 18px;
}

.timeline-step {
  position: relative;
  display: grid;
  grid-template-columns: 30px 1fr;
  gap: 10px;
  min-height: 62px;
  padding-bottom: 14px;
}

.timeline-step::before {
  content: "";
  position: absolute;
  left: 11px;
  top: 24px;
  bottom: -2px;
  width: 2px;
  background: #d8dee8;
}

.timeline-step:last-child {
  min-height: 32px;
  padding-bottom: 0;
}

.timeline-step:last-child::before {
  display: none;
}

.timeline-dot {
  width: 24px;
  height: 24px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  border: 2px solid #d8dee8;
  background: #fff;
  z-index: 1;
}

.timeline-step.done::before {
  background: var(--success);
}

.timeline-step.done .timeline-dot {
  border-color: var(--success);
  background: var(--success);
}

.timeline-step.done .timeline-dot::after {
  content: "";
  width: 8px;
  height: 4px;
  border-left: 2px solid #fff;
  border-bottom: 2px solid #fff;
  transform: rotate(-45deg);
}

.timeline-step.active .timeline-dot {
  border-color: var(--blue-700);
  background: #eaf4ff;
  box-shadow: 0 0 0 4px #d9eaff;
}

.timeline-step.active strong {
  color: var(--blue-700);
}

.timeline-step.pending {
  color: #98a2b3;
}

.timeline-step strong,
.timeline-step small {
  display: block;
}

.timeline-step strong {
  line-height: 1.25;
}

.timeline-step small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.timeline-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 14px;
  padding-top: 12px;
  border-top: 1px solid #edf1f7;
}

.delete-draft-btn {
  min-height: 38px;
  border-radius: 9px;
  padding: 8px 12px;
  background: #fff1f0;
  color: var(--danger);
  font-weight: 900;
}

.review-layout {
  display: grid;
  grid-template-columns: 280px minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

#reviewView.review-focus > .section-header {
  display: none;
}

#reviewView.review-focus .review-layout {
  grid-template-columns: 1fr;
}

#reviewView.review-focus #reviewQueue {
  display: none;
}

.review-filters {
  display: grid;
  grid-template-columns: auto minmax(170px, 210px) minmax(160px, 190px) minmax(260px, 1fr) auto;
  gap: 10px;
  align-items: center;
  margin-bottom: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}

.review-filters select,
.review-filters input {
  min-height: 44px;
}

.review-filters.is-loading {
  opacity: 0.72;
  pointer-events: none;
}

.review-filters.enrollment-mode {
  grid-template-columns: minmax(280px, 1fr) auto auto;
}

.review-filters.enrollment-mode .segmented,
.review-filters.enrollment-mode #reviewBucketFilter,
.review-filters.enrollment-mode #reviewFormType {
  display: none;
}

.loading-state {
  min-height: 180px;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 28px;
  border: 1px solid #d8e6f7;
  border-radius: 14px;
  background: #f8fbff;
  color: var(--muted);
  text-align: left;
}

.loading-spinner {
  width: 34px;
  height: 34px;
  flex: 0 0 auto;
  border: 4px solid #d9e8fb;
  border-top-color: var(--blue-700);
  border-radius: 999px;
  animation: loading-spin 0.8s linear infinite;
}

.current-application-status {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-top: 16px;
  padding: 14px 16px;
  border: 1px solid #cfe0f2;
  border-radius: 8px;
  background: #f7fbff;
}

.current-status-icon {
  display: grid;
  width: 34px;
  height: 34px;
  flex: 0 0 34px;
  place-items: center;
  border-radius: 50%;
  background: #0f65b5;
  color: #fff;
  font-size: 20px;
  font-weight: 900;
}

.current-application-status > div,
.current-application-status strong,
.current-application-status span,
.current-application-status small {
  display: block;
}

.current-application-status small,
.current-application-status span {
  color: var(--muted);
}

.current-application-status.status-approved {
  border-color: #bfe6cf;
  background: #f1fbf5;
}

.current-application-status.status-approved .current-status-icon {
  background: #15804b;
}

.current-application-status.status-rejected {
  border-color: #f1c2c2;
  background: #fff6f6;
}

.current-application-status.status-rejected .current-status-icon {
  background: #c43232;
}

#draftDetails.wizard-is-saving {
  position: relative;
  pointer-events: none;
}

#draftDetails.wizard-is-saving::before {
  content: "Saving your progress...";
  position: fixed;
  z-index: 1200;
  left: 50%;
  top: 50%;
  transform: translate(-50%, -50%);
  padding: 14px 18px 14px 48px;
  border: 1px solid #bfd6ee;
  border-radius: 8px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
  box-shadow: 0 16px 42px rgba(13, 40, 72, 0.2);
}

#draftDetails.wizard-is-saving::after {
  content: "";
  position: fixed;
  z-index: 1201;
  left: calc(50% - 61px);
  top: calc(50% - 9px);
  width: 18px;
  height: 18px;
  border: 3px solid #d9e8fb;
  border-top-color: var(--blue-700);
  border-radius: 50%;
  animation: loading-spin 0.8s linear infinite;
}

.loading-copy strong,
.loading-copy span {
  display: block;
}

.loading-copy strong {
  color: var(--ink);
  font-weight: 900;
}

.loading-copy span {
  margin-top: 4px;
  font-size: 14px;
  line-height: 1.35;
}

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

.segmented {
  display: inline-flex;
  gap: 4px;
  padding: 4px;
  border-radius: 12px;
  background: #eef4fb;
}

.segmented button {
  min-height: 36px;
  border-radius: 9px;
  padding: 7px 11px;
  background: transparent;
  color: var(--blue-900);
  font-weight: 900;
}

.segmented button.active {
  background: #fff;
  box-shadow: 0 2px 8px rgba(15, 34, 58, 0.12);
}

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

.review-form-section {
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #fff;
}

.review-form-section h5 {
  margin: 0 0 10px;
  padding: 9px 11px;
  border-radius: 6px;
  background: var(--blue-700);
  color: #fff;
  font-size: 13px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.review-education-section .official-field-grid {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.review-form-field {
  min-width: 0;
  display: grid;
  align-content: start;
}

.review-readonly-field {
  position: relative;
  min-height: 54px;
  padding: 9px 44px 9px 11px;
  border: 1px solid #c8d8ea;
  border-radius: 8px;
  background: #f7fbff;
}

.review-readonly-field label {
  display: block;
  margin-bottom: 6px;
  color: #51627a;
  font-size: 12px;
  font-weight: 800;
}

.review-readonly-field strong {
  display: block;
  color: var(--ink);
  font-size: 14px;
  font-weight: 800;
  line-height: 1.35;
  overflow-wrap: anywhere;
}

.review-field-check {
  position: absolute;
  top: 10px;
  right: 10px;
  width: 26px;
  height: 26px;
  display: grid;
  place-items: center;
  border: 2px solid #b9c9da;
  border-radius: 999px;
  background: #fff;
  color: #fff;
  font-size: 17px;
  font-weight: 900;
}

.review-field-check.checked,
.review-document-check.checked {
  border-color: var(--success);
  background: var(--success);
  color: #fff;
}

.review-preview-documents {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
  margin-top: 10px;
}

.review-preview-document {
  display: grid;
  gap: 8px;
  padding: 10px;
  border: 1px dashed #d8e2ef;
  border-radius: 8px;
  background: #fbfdff;
}

.review-preview-document strong {
  display: block;
  font-size: 14px;
  line-height: 1.35;
}

.review-document-line {
  display: grid;
  grid-template-columns: minmax(160px, 1fr) auto;
  gap: 8px;
  align-items: center;
  padding-top: 8px;
  border-top: 1px solid #edf1f7;
}

.review-document-line .uploaded-file-actions {
  min-width: 0;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  align-items: center;
}

.review-document-line .uploaded-file-actions span {
  min-width: 100%;
  overflow: hidden;
  color: var(--ink);
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-document-line .uploaded-file-actions button,
.review-document-line .uploaded-file-actions a {
  min-height: 30px;
  border-radius: 8px;
  padding: 6px 9px;
  font-size: 12px;
}

.review-document-check {
  min-height: 32px;
  border: 1px solid #b9c9da;
  border-radius: 999px;
  padding: 6px 10px;
  background: #fff;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.remark-shortcut-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.remark-shortcut {
  min-height: 40px;
  border: 1px solid #c8d8ea;
  border-radius: 999px;
  padding: 9px 14px;
  background: #f7fbff;
  color: var(--blue-800);
  font-weight: 900;
}

.remark-shortcut:hover,
.remark-shortcut.selected {
  border-color: var(--blue-700);
  background: #eaf4ff;
}

.office-status-grid {
  grid-template-columns: minmax(170px, .8fr) repeat(3, minmax(190px, 1fr)) auto;
  align-items: end;
  gap: 12px;
}

.office-status-grid .field-block {
  min-width: 0;
}

.office-status-grid .check-row,
.office-status-grid input,
.office-status-grid select {
  min-height: 42px;
}

.office-status-actions {
  display: flex;
  align-items: end;
  margin: 0;
}

.office-status-actions button {
  min-height: 40px;
  border-radius: 10px;
  padding: 8px 14px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  white-space: nowrap;
}

@media (max-width: 1100px) {
  .office-status-grid {
    grid-template-columns: repeat(2, minmax(220px, 1fr));
  }

  .office-status-actions {
    justify-content: flex-end;
  }
}

.review-queue,
.review-details {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--surface);
  box-shadow: 0 10px 30px rgba(15, 34, 58, 0.06);
}

.review-queue {
  padding: 12px;
  overflow: hidden;
}

.review-card {
  width: 100%;
  min-height: 92px;
  display: block;
  text-align: left;
  border-radius: 12px;
  padding: 13px;
  background: var(--soft);
  border: 1px solid #edf1f7;
  color: var(--ink);
}

.review-card + .review-card {
  margin-top: 10px;
}

.review-card:hover {
  border-color: #cfe3fa;
  background: #f7fbff;
}

.review-card strong,
.review-card span,
.review-card small {
  display: block;
}

.review-card span {
  margin-top: 5px;
  font-weight: 800;
}

.review-card small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.35;
}

.review-register {
  max-height: 72vh;
  overflow: auto;
  border-radius: 10px;
  border: 1px solid #edf1f7;
}

.review-register-head,
.review-register-pagination {
  position: sticky;
  z-index: 2;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  background: #fff;
  border-bottom: 1px solid #edf1f7;
}

.review-register-head {
  top: 0;
}

.review-register-head strong {
  color: var(--ink);
}

.review-register-head span,
.review-register-pagination span {
  color: var(--muted);
  font-size: 13px;
}

.review-register-pagination {
  bottom: 0;
  border-top: 1px solid #edf1f7;
  border-bottom: 0;
}

.review-register-pagination button {
  min-height: 36px;
  padding: 8px 14px;
}

.review-register table {
  width: 100%;
  border-collapse: separate;
  border-spacing: 0;
  min-width: 980px;
  font-size: 14px;
}

.review-register th {
  position: sticky;
  top: 45px;
  z-index: 1;
  padding: 10px 12px;
  background: #f1f6fc;
  color: #344054;
  text-align: left;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0;
}

.review-register td {
  padding: 11px 12px;
  border-top: 1px solid #edf1f7;
  vertical-align: middle;
}

.review-register-row {
  cursor: pointer;
  background: #fff;
}

.review-register-row:hover,
.review-register-row.selected {
  outline: 2px solid #9dccff;
  outline-offset: -2px;
}

.review-register-row.status-submitted,
.review-register-row.status-under-scrutiny,
.review-register-row.status-resubmitted,
.review-register-row.status-reopened {
  background: #f7fbff;
}

.review-register-row.status-correction-required {
  background: #fff8e7;
}

.review-register-row.status-documents-required {
  background: #fff2f2;
}

.review-register-row.status-approved {
  background: #f2fff7;
}

.review-register-row.status-rejected {
  background: #fff1f1;
}

.review-register-row.status-not-submitted {
  background: #f8fafc;
}

.error-state span {
  display: block;
  margin-top: 6px;
  color: var(--danger);
  font-size: 13px;
}

.status-pill {
  display: inline-flex;
  align-items: center;
  min-height: 26px;
  border-radius: 999px;
  padding: 4px 9px;
  background: #eaf4ff;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.status-pill.correction-required,
.status-pill.documents-required {
  background: #fff1d6;
  color: #8a5600;
}

.status-pill.approved {
  background: #dff8e9;
  color: #126b3d;
}

.status-pill.rejected {
  background: #ffe1e1;
  color: #9f1d1d;
}

.officer-status-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}

.officer-status-strip > span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.officer-status-strip .officer-cop-number {
  min-height: 24px;
  max-width: 280px;
  padding: 3px 9px;
  border: 1px solid #b9d7f3;
  border-radius: 4px;
  background: #f1f7fd;
  color: #174f7f;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.officer-status-chip {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  border-radius: 999px;
  padding: 3px 8px;
  background: #eaf4ff;
  color: var(--blue-700);
  font-size: 12px;
  font-weight: 900;
  white-space: nowrap;
}

.officer-status-chip.approved,
.officer-status-chip.verified,
.officer-status-chip.passed,
.officer-status-chip.delivered {
  background: #dff8e9;
  color: #126b3d;
}

.officer-status-chip.rejected,
.officer-status-chip.not-delivered {
  background: #ffe1e1;
  color: #9f1d1d;
}

.officer-status-chip.correction-required,
.officer-status-chip.documents-required,
.officer-status-chip.pending,
.officer-status-chip.delayed,
.officer-status-chip.sent {
  background: #fff1d6;
  color: #8a5600;
}

.officer-status-chip.not-available {
  background: #eef2f7;
  color: #667085;
}

.review-details {
  padding: 16px;
}

#reviewView.review-focus .review-details {
  padding: 0;
  border: 0;
  background: transparent;
  box-shadow: none;
}

.review-detail-toolbar {
  position: sticky;
  top: 0;
  z-index: 5;
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: center;
  margin-bottom: 8px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.96);
  box-shadow: 0 14px 36px rgba(15, 34, 58, 0.1);
  backdrop-filter: blur(10px);
}

.review-detail-toolbar > div {
  min-width: 0;
}

.review-identity {
  display: flex;
  align-items: center;
  gap: 12px;
}

.review-identity-copy {
  min-width: 0;
}

.review-profile-photo {
  position: relative;
  width: 76px;
  height: 96px;
  flex: 0 0 76px;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 2px solid #e2b84f;
  border-radius: 8px;
  background: #fff6dc;
  color: var(--blue-800);
  font-size: 15px;
  font-weight: 900;
}

.review-profile-photo img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  display: block;
  object-fit: cover;
  object-position: center top;
  background: #fff;
}

.review-detail-toolbar strong,
.review-detail-toolbar small {
  display: block;
}

.review-detail-toolbar strong {
  margin-top: 1px;
  color: var(--ink);
  font-size: 16px;
  line-height: 1.25;
}

.review-detail-toolbar small {
  margin-top: 1px;
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.review-toolbar-actions {
  display: flex;
  justify-content: flex-end;
  gap: 5px;
  align-items: center;
  flex-wrap: wrap;
}

.review-detail-toolbar button,
.review-detail-toolbar a.compact {
  min-height: 32px;
  padding: 5px 9px;
  font-size: 12px;
}

.officer-status-chip.university.verified {
  background: #dcf7e8;
  color: #126b3d;
}

.officer-status-chip.university.pending {
  background: #fff1cf;
  color: #805500;
}

.enrollment-service-launcher {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
  flex: 0 1 390px;
  min-width: 300px;
}

.enrollment-service-launcher select {
  flex: 1 1 auto;
  width: 100%;
  min-width: 220px;
  min-height: 36px;
  border: 0;
  background: transparent;
  font-weight: 800;
  color: var(--ink);
  white-space: nowrap;
  text-overflow: ellipsis;
}

.enrollment-service-launcher .compact {
  min-height: 34px;
  padding: 7px 10px;
}

.simple-dialog {
  width: min(720px, calc(100vw - 28px));
  max-height: calc(100vh - 42px);
  overflow: auto;
  border-radius: 18px;
  border: 1px solid var(--line);
  background: #fff;
  box-shadow: 0 28px 90px rgba(15, 34, 58, 0.28);
}

.simple-dialog-head {
  position: sticky;
  top: 0;
  z-index: 1;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid var(--line);
  background: rgba(255, 255, 255, 0.96);
  backdrop-filter: blur(8px);
}

.simple-dialog-head h3 {
  margin: 0;
}

#simpleModalBody {
  padding: 16px 18px 18px;
}

.history-list {
  display: grid;
  gap: 10px;
}

.history-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 14px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f8fbff;
}

.history-item strong,
.history-item span,
.history-item small {
  display: block;
}

.history-item span,
.history-item small {
  color: var(--muted);
  font-size: 12px;
}

.history-item p {
  margin: 8px 0 0;
  color: var(--text);
  font-size: 13px;
  white-space: pre-line;
}

.review-summary {
  padding: 16px;
  border-radius: 14px;
  background: #f7fbff;
  border: 1px solid #cfe3fa;
}

.review-summary h3 {
  margin-top: 10px;
}

.review-edit-button {
  margin-top: 12px;
  min-height: 38px;
}

.approved-pdf-link {
  min-height: 38px;
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  border-radius: 9px;
  padding: 8px 12px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
  text-decoration: none;
}

.approved-pdf-link.compact,
.review-toolbar-actions .review-edit-button {
  margin-top: 0;
  min-height: 38px;
  white-space: nowrap;
}

.cop-certificate-link {
  background: #0f766e;
}

.id-card-link {
  background: #92400e;
}

.print-workspace {
  position: fixed;
  inset: 0;
  z-index: 10000;
  display: grid;
  place-items: center;
  padding: 18px;
  background: rgba(9, 27, 50, .72);
  backdrop-filter: blur(4px);
}

.email-preview-backdrop {
  z-index: 10020;
}

.print-workspace-shell {
  width: min(1480px, 100%);
  height: min(900px, calc(100vh - 36px));
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
  overflow: hidden;
  background: #f5f8fc;
  border: 1px solid #cbd7e6;
  box-shadow: 0 24px 70px rgba(2, 16, 34, .35);
}

.print-workspace-header {
  display: grid;
  grid-template-columns: minmax(220px, 1fr) auto minmax(40px, 1fr);
  align-items: center;
  gap: 12px;
  min-height: 52px;
  padding: 6px 12px;
  background: #fff;
  border-bottom: 1px solid #d9e2ee;
}

.print-workspace-header .icon-button { width: 34px; height: 34px; justify-self: end; }
.print-workspace-identity { min-width: 0; display: flex; align-items: center; gap: 9px; }
.print-workspace-identity > .ui-icon { flex: 0 0 auto; color: #075ca8; }
.print-workspace-identity span { min-width: 0; display: grid; gap: 1px; }
.print-workspace-identity strong { font-size: 15px; }
.print-workspace-identity small { overflow: hidden; color: #5e6e84; text-overflow: ellipsis; white-space: nowrap; }

.print-workspace-tabs {
  display: flex;
  gap: 4px;
}

.print-tab {
  min-width: 132px;
  padding: 9px 12px;
  color: #43556d;
  background: transparent;
  border: 0;
  border-bottom: 3px solid transparent;
  font-weight: 700;
}

.print-tab.active { color: #075ca8; border-bottom-color: #0873c9; }

.print-workspace-body {
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) 280px;
  gap: 10px;
  padding: 10px;
}

.print-preview-panel,
.print-options-panel {
  min-height: 0;
  background: #fff;
  border: 1px solid #d4dfec;
  border-radius: 6px;
}

.print-preview-panel { display: grid; grid-template-rows: auto minmax(0, 1fr); overflow: hidden; }
.print-panel-heading { display: flex; justify-content: space-between; gap: 12px; padding: 8px 11px; border-bottom: 1px solid #d9e2ee; }
.print-panel-heading div { display: grid; gap: 2px; }
.print-panel-heading .print-preview-actions { display: flex; flex: 0 0 auto; align-items: center; gap: 7px; }
.print-preview-actions .ghost-button { min-height: 32px; white-space: nowrap; }
.print-panel-heading small { color: #6a7890; }
.print-preview-loading { color: #075ca8; font-size: 12px; font-weight: 700; }
#certificatePrintPreview { width: 100%; height: 100%; border: 0; background: #303030; }

.print-options-panel { padding: 12px; overflow: auto; }
.print-options-panel h3 { margin: 0 0 4px; font-size: 17px; }
.print-options-panel > div > p { margin: 0 0 14px; color: #65758c; font-size: 13px; }
.print-option { display: grid; grid-template-columns: 20px 1fr; gap: 10px; padding: 13px; margin-bottom: 9px; border: 1px solid #d3deeb; border-radius: 6px; cursor: pointer; }
.print-option.selected { border-color: #0873c9; background: #eef7ff; box-shadow: inset 3px 0 #0873c9; }
.print-option input { margin-top: 3px; }
.print-option span { display: grid; gap: 4px; }
.print-option small { color: #64758c; line-height: 1.35; }
.print-date-note { display: grid; grid-template-columns: 227px 0fr; gap: 9px; margin: 18px 0; padding: 12px; background: #fff8df; border: 1px solid #efd17d; border-radius: 6px; }
.print-date-note span { display: grid; gap: 3px; }
.print-date-note small { color: #6d5a22; }
.print-now-button { width: 100%; justify-content: center; }
.print-browser-note { display: block; margin-top: 8px; text-align: center; color: #697990; }

@media (max-width: 850px) {
  .print-workspace { padding: 0; }
  .print-workspace-shell { width: 100%; height: 100vh; }
  .print-panel-heading { align-items: flex-start; flex-wrap: wrap; }
  .print-workspace-body { grid-template-columns: 1fr; grid-template-rows: minmax(360px, 1fr) auto; }
  .print-options-panel { max-height: 40vh; }
  .print-workspace-header { grid-template-columns: minmax(0, 1fr) auto auto; }
  .print-workspace-identity small { display: none; }
  .print-tab { min-width: auto; }
}

.review-edit-dialog {
  width: min(1500px, calc(100vw - 32px));
  max-height: calc(100vh - 32px);
  height: min(820px, calc(100vh - 32px));
  grid-template-rows: auto 1fr auto;
}

.review-compare-layout,
.review-edit-compare {
  display: grid;
  grid-template-columns: minmax(420px, 1.05fr) minmax(460px, 1fr);
  gap: 18px;
  align-items: start;
  min-height: 72vh;
}

.review-edit-compare.inline {
  grid-template-columns: minmax(260px, var(--review-pdf-width, 420px)) 12px minmax(0, 1fr);
  gap: 0;
  min-height: 0;
}

.review-compare-layout.single,
.review-edit-compare.single {
  grid-template-columns: 1fr;
}

.review-pdf-resize-handle {
  align-self: stretch;
  width: 12px;
  min-height: 420px;
  border: 0;
  background: transparent;
  cursor: col-resize;
  position: relative;
}

.review-pdf-resize-handle::before {
  content: "";
  position: absolute;
  top: 10px;
  bottom: 10px;
  left: 5px;
  width: 2px;
  border-radius: 99px;
  background: #c6d6e8;
}

.review-pdf-resize-handle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 3px;
  width: 6px;
  height: 34px;
  transform: translateY(-50%);
  border-radius: 99px;
  background: #e7f0fa;
  border: 1px solid #c6d6e8;
}

.review-pdf-resize-handle:hover::before,
.review-pdf-resize-handle:focus-visible::before,
body.is-resizing-review-pdf .review-pdf-resize-handle::before {
  background: var(--blue-700);
}

body.is-resizing-review-pdf {
  cursor: col-resize;
  user-select: none;
}

.scanned-form-panel {
  min-height: 72vh;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #fff;
  overflow: hidden;
  position: sticky;
  top: 12px;
}

.review-edit-compare.inline .scanned-form-panel {
  min-height: 0;
  max-height: calc(100vh - 190px);
  top: 78px;
  margin-right: 0;
}

.scanned-form-head {
  min-height: 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 8px 12px;
  background: #f1f6fc;
  border-bottom: 1px solid #d8e4f2;
}

.scanned-form-head div {
  min-width: 0;
  display: grid;
  gap: 2px;
}

.scanned-form-head strong {
  color: var(--ink);
  font-size: 14px;
}

.scanned-form-head span {
  color: var(--muted);
  font-size: 12px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.scanned-form-head a {
  min-height: 32px;
  display: inline-flex;
  align-items: center;
  border-radius: 8px;
  padding: 6px 10px;
  background: #fff;
  color: var(--blue-700);
  font-weight: 900;
  text-decoration: none;
  white-space: nowrap;
}

.scanned-form-panel iframe {
  display: block;
  width: 100%;
  height: calc(72vh - 43px);
  min-height: 620px;
  border: 0;
  background: #f8fafc;
}

.review-edit-compare.inline .scanned-form-panel iframe {
  height: calc(100vh - 238px);
  min-height: 420px;
}

.scanned-form-panel .meta {
  display: block;
  padding: 8px 12px 10px;
}

.review-compare-form,
.review-edit-form {
  min-width: 0;
  max-height: 72vh;
  overflow: auto;
  border: 1px solid #d8e4f2;
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.review-edit-compare.inline .review-edit-form {
  max-height: calc(100vh - 190px);
  padding: 14px;
  margin-left: 12px;
}

.review-edit-compare.inline .official-field-grid {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.review-edit-compare.inline .education-row {
  grid-template-columns: 1fr;
  overflow: visible;
}

.review-edit-compare.inline .education-row-fields {
  grid-template-columns: repeat(6, minmax(0, 1fr));
  overflow: visible;
  padding-bottom: 4px;
}

.review-edit-compare.inline .education-document-card {
  max-width: none;
}

.review-edit-body {
  min-height: 0;
  display: block;
  max-height: calc(100vh - 190px);
  overflow: auto;
  padding: 16px;
  background: #f7fbff;
}

.review-edit-body .document-list,
.review-edit-body .document-checklist {
  display: none;
}

.review-edit-body #submitDraftBtn {
  display: none;
}

.review-edit-actions {
  margin: 0;
  padding: 14px 16px;
  border-top: 1px solid var(--line);
  background: #fff;
}

.review-edit-actions.inline {
  justify-content: flex-end;
  margin-top: 12px;
  padding: 12px 0 0;
  border-top: 1px solid var(--line);
  background: transparent;
}

.is-disabled-section {
  opacity: 0.68;
}

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

#adminUsersPanel,
#adminListsPanel {
  grid-template-columns: 1fr;
}

.admin-settings-card {
  padding: 18px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 12px 36px rgba(15, 34, 58, 0.08);
}

.admin-settings-card-wide {
  grid-column: 1 / -1;
}

.admin-card-head h3,
.admin-form-title strong {
  margin: 6px 0 0;
}

.admin-card-head p,
.admin-form-title span,
.admin-control-row span,
.admin-message-field span {
  color: var(--muted);
  font-size: 13px;
}

.admin-control-list,
.admin-form-list {
  display: grid;
  gap: 10px;
  margin-top: 14px;
}

.admin-control-row,
.admin-form-row {
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-control-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 180px;
  gap: 12px;
  align-items: center;
  padding: 12px;
}

.admin-control-row strong,
.admin-control-row span,
.admin-form-title strong,
.admin-form-title span {
  display: block;
}

.admin-control-row select,
.admin-message-field input {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
}

.admin-form-row {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.admin-form-title {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: flex-start;
}

.admin-form-controls {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

.admin-user-card {
  display: grid;
  gap: 16px;
}

.admin-user-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: flex-start;
}

.admin-user-form {
  display: grid;
  grid-template-columns: repeat(5, minmax(120px, 1fr));
  gap: 12px;
  align-items: end;
  padding: 14px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  background: #f8fbff;
}

.admin-user-form label,
.admin-role-scope {
  display: grid;
  gap: 7px;
}

.admin-user-form label span,
.admin-role-scope > span {
  color: var(--ink);
  font-size: 12px;
  font-weight: 800;
}

.admin-user-form input,
.admin-user-form select {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
}

.admin-role-scope {
  grid-column: 1 / -1;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.admin-role-scope > span {
  grid-column: 1 / -1;
}

.admin-role-option {
  margin: 0;
}

.admin-user-save {
  min-height: 42px;
}

.admin-user-form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.admin-user-table-wrap {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 12px;
}

.admin-user-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
  background: #fff;
}

.admin-user-table th,
.admin-user-table td {
  padding: 12px;
  border-bottom: 1px solid #e7eef7;
  text-align: left;
  vertical-align: top;
}

.admin-user-table th {
  background: #eef4fb;
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.admin-user-table td strong,
.admin-user-table td span {
  display: block;
}

.admin-access-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

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

.admin-list-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 1.2fr) minmax(140px, 0.6fr) minmax(220px, 1.4fr) auto;
  gap: 10px;
  align-items: center;
}

.admin-list-toolbar select,
.admin-list-toolbar input {
  min-height: 42px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 9px;
  padding: 10px 12px;
  background: #fff;
}

.admin-list-form {
  grid-template-columns: minmax(220px, 1fr) minmax(220px, 1fr) 160px auto;
}

.admin-list-table {
  min-width: 760px;
}

.admin-list-pager {
  display: flex;
  gap: 10px;
  justify-content: flex-end;
  align-items: center;
}

.admin-list-pager span {
  color: var(--muted);
  font-size: 13px;
  font-weight: 800;
}

.admin-list-merge-panel {
  display: grid;
  gap: 14px;
  border: 1px solid #f1c46b;
  border-radius: 18px;
  background: #fffbeb;
  padding: 16px;
}

.admin-list-merge-panel.is-busy {
  border-color: #88bdf3;
  background: #f4f9ff;
  box-shadow: 0 16px 40px rgba(15, 96, 168, 0.12);
}

.admin-list-merge-busy {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid #cfe3fa;
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
}

.admin-list-merge-busy .loading-spinner {
  width: 28px;
  height: 28px;
  border-width: 3px;
}

.admin-list-merge-busy strong,
.admin-list-merge-busy small {
  display: block;
}

.admin-list-merge-busy strong {
  color: var(--ink);
  font-weight: 900;
}

.admin-list-merge-busy small {
  margin-top: 3px;
  line-height: 1.35;
}

.admin-list-merge-options {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
  gap: 10px;
}

.admin-list-merge-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--border);
  border-radius: 14px;
  display: flex;
  gap: 10px;
  padding: 12px;
}

.admin-list-merge-option span {
  display: grid;
  gap: 3px;
}

.admin-list-merge-option small {
  color: var(--muted);
  font-weight: 700;
}

.admin-list-merge-preview {
  background: #fff;
  border: 1px dashed #d59d28;
  border-radius: 14px;
  display: grid;
  gap: 10px;
  padding: 12px;
}

.admin-list-merge-preview div {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.admin-list-merge-preview span {
  background: #eef6ff;
  border-radius: 999px;
  color: #0b4c94;
  font-size: 12px;
  font-weight: 800;
  padding: 6px 10px;
}

.aibe-not-applicable-note {
  margin-top: 12px;
  border: 1px solid #dbe5f2;
  border-radius: 12px;
  padding: 12px 14px;
  background: #f8fbff;
  color: var(--muted);
  font-weight: 800;
}

.muted-text {
  color: var(--muted);
}

.toggle-line {
  min-height: 44px;
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 10px;
  border: 1px solid #e1e8f2;
  border-radius: 10px;
  background: #fff;
  font-weight: 800;
}

.toggle-line input {
  width: 18px;
  height: 18px;
}

.admin-message-field {
  display: grid;
  gap: 6px;
}

.review-section {
  margin-top: 16px;
}

.review-section-head {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 10px;
}

.review-section h4 {
  margin: 0;
  font-size: 20px;
}

.review-section-head span {
  color: var(--muted);
  font-size: 13px;
}

.review-table {
  display: grid;
  gap: 10px;
}

.review-row {
  display: grid;
  grid-template-columns: minmax(0, 1.5fr) 170px minmax(160px, 0.8fr) 90px;
  gap: 10px;
  align-items: start;
  padding: 12px;
  border: 1px solid #edf1f7;
  border-radius: 12px;
  background: var(--soft);
}

.review-row p {
  margin-top: 5px;
  color: var(--muted);
  line-height: 1.45;
  overflow-wrap: anywhere;
}

.review-row button,
.decision-actions button {
  min-height: 42px;
  border-radius: 9px;
  padding: 8px 11px;
  background: var(--blue-700);
  color: #fff;
  font-weight: 900;
}

.decision-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 10px;
}

.decision-save-row {
  align-items: end;
}

.decision-status-field {
  display: grid;
  gap: 6px;
  min-width: 260px;
}

.decision-status-field span {
  font-size: 13px;
  font-weight: 900;
  color: var(--ink);
}

.decision-status-field select {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 8px 12px;
  background: #fff;
  color: var(--ink);
  font-weight: 800;
}

.duplicate-document-output {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 20px;
  border: 1px solid #b8decf;
  border-left: 4px solid var(--success);
  border-radius: 8px;
  background: #f4fbf8;
}

.duplicate-document-output-copy {
  display: grid;
  gap: 5px;
}

.duplicate-document-output-copy h4,
.duplicate-document-output-copy p {
  margin: 0;
}

.duplicate-document-output-copy p {
  color: var(--muted);
  line-height: 1.45;
}

.duplicate-document-output .approved-pdf-link {
  flex: 0 0 auto;
  min-height: 44px;
}

.duplicate-document-output button[disabled] {
  flex: 0 0 auto;
  opacity: 0.7;
  cursor: not-allowed;
}

@media (max-width: 980px) {
  .auth-view,
  .portal-view,
  .form-card-grid,
  .department-grid,
  .module-grid,
  .status-grid,
  .draft-grid,
  .locked-grid,
  .official-field-grid,
  .document-list,
  .document-manager,
  .upload-picker,
  .uploaded-file-row,
  .review-filters,
  .review-layout,
  .review-compare-layout,
  .review-edit-compare,
  .review-document-line,
  .review-row,
  .admin-settings-grid,
  .admin-control-row,
  .admin-form-controls,
  .admin-user-form,
  .admin-list-toolbar,
  .admin-list-form,
  .admin-role-scope {
    grid-template-columns: 1fr;
  }

  .auth-view {
    display: block;
    min-height: 100vh;
    padding: 18px 0;
  }

  .auth-art {
    display: none;
  }

  .auth-card {
    width: min(560px, calc(100% - 28px));
    margin: 0 auto;
    padding: 22px;
  }

  .registration-grid {
    grid-template-columns: 1fr;
  }

  .registration-wide {
    grid-column: auto;
  }

  .review-document-check {
    justify-self: start;
  }

  .review-detail-toolbar {
    position: static;
    grid-template-columns: 1fr;
  }

  .review-toolbar-actions {
    justify-content: stretch;
    flex-direction: column;
    align-items: stretch;
  }

  .duplicate-document-output {
    align-items: stretch;
    flex-direction: column;
  }

  .duplicate-document-output .approved-pdf-link,
  .duplicate-document-output button[disabled] {
    width: 100%;
  }

  .enrollment-service-launcher {
    display: flex;
    width: 100%;
    min-width: 0;
    flex: 1 1 100%;
  }

  .enrollment-service-launcher select {
    width: 100%;
    min-width: 0;
  }

  .education-row,
  .education-row-fields,
  .degree-name-row {
    grid-template-columns: 1fr;
  }

  .auth-copy h1 {
    font-size: 38px;
  }

  .assurance-list {
    grid-template-columns: 1fr;
  }

  .app-sidebar {
    min-height: auto;
  }

  .app-main {
    padding: 20px;
  }

  .app-topbar,
  .welcome-panel,
  .resume-draft-panel,
  .document-checklist,
  .topbar-actions,
  .field-combo,
  .document-card-head,
  .uploaded-file-actions,
  .draft-actions,
  .form-section-head {
    flex-direction: column;
    align-items: stretch;
  }

  .uploaded-file-actions {
    min-width: 0;
  }
}
.uppercase-input {
  text-transform: uppercase;
}

/* Public landing page */
html {
  scroll-behavior: smooth;
}

.auth-view {
  min-height: 100vh;
  display: block;
  background: #fff;
}

.public-header {
  min-height: 84px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px;
  padding: 10px max(24px, calc((100% - 1200px) / 2));
  border-bottom: 1px solid #e7dfca;
  background: #fff;
}

.public-brand,
.public-nav,
.hero-actions,
.hero-service-strip,
.login-assurance,
.staff-links {
  display: flex;
  align-items: center;
}

.public-brand {
  gap: 12px;
  color: var(--blue-900);
  text-decoration: none;
}

.public-brand img {
  width: 62px;
  height: 62px;
  object-fit: contain;
}

.public-brand strong,
.public-brand small {
  display: block;
}

.public-brand strong {
  font-family: Georgia, "Times New Roman", serif;
  font-size: 19px;
}

.public-brand small {
  margin-top: 3px;
  color: #765100;
  font-size: 12px;
  font-weight: 800;
}

.public-nav {
  gap: 24px;
}

.public-nav a {
  color: #344054;
  font-size: 14px;
  font-weight: 800;
  text-decoration: none;
}

.public-nav a:hover {
  color: var(--blue-700);
}

.public-nav .public-nav-primary {
  min-height: 40px;
  padding: 9px 14px;
  border-radius: 6px;
  background: var(--blue-800);
  color: #fff;
}

.auth-art {
  position: relative;
  isolation: isolate;
  min-height: 590px;
  padding: 86px max(24px, calc((100% - 1200px) / 2)) 34px;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  color: #fff;
  background: url("/assets/bombay-high-court.jpg") center 45% / cover no-repeat;
}

.auth-art::before {
  content: "";
  position: absolute;
  inset: 0;
  z-index: -1;
  background: rgba(9, 28, 52, 0.72);
}

.auth-copy {
  max-width: 820px;
}

.auth-copy .eyebrow {
  color: #17243a;
  background: #e5b94f;
}

.auth-copy h1 {
  max-width: 820px;
  margin-top: 18px;
  font-family: Georgia, "Times New Roman", serif;
  font-size: 58px;
  line-height: 1.05;
}

.auth-copy p:last-of-type {
  max-width: 720px;
  margin-top: 18px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 19px;
  line-height: 1.55;
}

.hero-actions {
  gap: 10px;
  margin-top: 28px;
}

.hero-actions a {
  min-height: 46px;
  padding: 12px 18px;
  border-radius: 6px;
  font-weight: 900;
  text-decoration: none;
}

.hero-primary {
  background: #e5b94f;
  color: #17243a;
}

.hero-secondary {
  border: 1px solid rgba(255, 255, 255, 0.72);
  color: #fff;
  background: rgba(9, 28, 52, 0.45);
}

.hero-service-strip {
  width: fit-content;
  flex-wrap: wrap;
  gap: 0;
  border: 1px solid rgba(255, 255, 255, 0.28);
  background: rgba(9, 28, 52, 0.74);
}

.hero-service-strip span {
  padding: 13px 18px;
  font-size: 13px;
  font-weight: 900;
}

.hero-service-strip span + span {
  border-left: 1px solid rgba(255, 255, 255, 0.22);
}

.public-login-band {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(420px, 520px);
  gap: 70px;
  align-items: center;
  max-width: 1200px;
  margin: 0 auto;
  padding: 70px 24px;
}

.public-login-band > *,
.login-band-copy,
.public-login-band .auth-card {
  min-width: 0;
}

.login-band-copy h2,
.public-section-heading h2 {
  margin-top: 9px;
  color: var(--blue-900);
  font-family: Georgia, "Times New Roman", serif;
  font-size: 34px;
}

.login-band-copy > p,
.public-section-heading > p {
  max-width: 650px;
  margin-top: 12px;
  color: var(--muted);
  line-height: 1.65;
}

.section-kicker {
  color: #8a6108;
  font-size: 12px;
  font-weight: 900;
  text-transform: uppercase;
}

.login-assurance {
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 22px;
}

.login-assurance span {
  padding: 7px 10px;
  border: 1px solid #e7d6a9;
  border-radius: 5px;
  color: #664b0d;
  background: #fff9e9;
  font-size: 12px;
  font-weight: 800;
}

.login-help-steps {
  display: grid;
  gap: 16px;
  margin: 28px 0 0;
  padding: 0;
  list-style: none;
}

.login-help-steps li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}

.login-help-steps li > span {
  width: 30px;
  height: 30px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  font-size: 12px;
  font-weight: 900;
}

.login-help-steps strong,
.login-help-steps small {
  display: block;
}

.login-help-steps small {
  margin-top: 4px;
  color: var(--muted);
  line-height: 1.45;
}

.public-login-band .auth-card {
  align-self: auto;
  width: 100%;
  margin: 0;
  padding: 26px;
  border: 1px solid #dce3ed;
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 34, 58, 0.11);
}

.public-services {
  padding: 68px max(24px, calc((100% - 1200px) / 2));
  background: #f3f6fa;
}

.public-section-heading {
  max-width: 740px;
}

.service-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-top: 32px;
}

.service-card {
  min-height: 230px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  padding: 22px;
  border-top: 4px solid var(--gold);
  border-radius: 6px;
  background: #fff;
  color: var(--ink);
  text-decoration: none;
  box-shadow: 0 8px 24px rgba(15, 34, 58, 0.07);
}

.service-number {
  color: #a27712;
  font-size: 12px;
  font-weight: 900;
}

.service-card strong {
  margin-top: 24px;
  color: var(--blue-900);
  font-size: 18px;
}

.service-card small {
  margin-top: 10px;
  color: var(--muted);
  line-height: 1.55;
}

.service-card b {
  margin-top: auto;
  padding-top: 20px;
  color: var(--blue-700);
  font-size: 13px;
}

.access-guide {
  max-width: 1200px;
  margin: 0 auto;
  padding: 68px 24px;
}

.compact-heading {
  text-align: center;
  margin: 0 auto;
}

.access-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin: 34px 0 0;
  padding: 0;
  list-style: none;
  border-top: 1px solid #d8dee8;
  border-bottom: 1px solid #d8dee8;
}

.access-steps li {
  display: flex;
  gap: 14px;
  min-height: 130px;
  align-items: center;
  padding: 22px;
}

.access-steps li + li {
  border-left: 1px solid #d8dee8;
}

.access-steps li > span {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: var(--blue-800);
  color: #fff;
  font-weight: 900;
}

.access-steps strong,
.access-steps small {
  display: block;
}

.access-steps small {
  margin-top: 7px;
  color: var(--muted);
  line-height: 1.45;
}

.public-footer {
  display: grid;
  grid-template-columns: 1fr auto;
  gap: 18px 30px;
  padding: 34px max(24px, calc((100% - 1200px) / 2));
  color: rgba(255, 255, 255, 0.78);
  background: var(--blue-900);
}

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

.public-footer strong {
  color: #fff;
}

.public-footer span,
.public-footer small {
  margin-top: 5px;
  font-size: 12px;
}

.staff-links {
  gap: 14px;
}

.staff-links span {
  margin: 0;
}

.staff-links a {
  color: #f3cf76;
  font-size: 12px;
  font-weight: 800;
  text-decoration: none;
}

.public-footer > small {
  grid-column: 1 / -1;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  padding-top: 14px;
}

.auth-view.portal-entry-only {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background: var(--blue-900);
}

.auth-view:not(.portal-entry-only) .public-login-band {
  display: none;
}

.portal-entry-only .public-header,
.portal-entry-only .auth-art,
.portal-entry-only .login-band-copy,
.portal-entry-only .public-services,
.portal-entry-only .access-guide,
.portal-entry-only .public-footer {
  display: none;
}

.portal-entry-only .public-login-band {
  display: block;
  width: min(760px, 100%);
  margin: 0;
  padding: 0;
}

.portal-entry-only .auth-card {
  width: 100%;
}

.auth-view.guided-login-page {
  display: flex;
  align-items: center;
  justify-content: center;
  background: #f3f6fa;
}

.auth-view.guided-login-page .public-login-band {
  width: min(1120px, calc(100vw - 56px));
  max-width: none;
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(440px, 520px);
  gap: 76px;
  align-items: center;
}

.auth-view.guided-login-page .auth-card {
  width: 100%;
  max-width: 520px;
}

.guided-login-page .login-band-copy {
  display: block;
}

@media (max-width: 900px) {
  .auth-view.guided-login-page {
    align-items: flex-start;
  }

  .auth-view.guided-login-page .public-login-band {
    grid-template-columns: 1fr;
    gap: 34px;
    width: min(560px, 100%);
  }

}

@media (max-width: 980px) {
  .public-nav a:not(.public-nav-primary) {
    display: none;
  }

  .auth-art {
    min-height: 540px;
  }

  .auth-copy h1 {
    font-size: 46px;
  }

  .public-login-band {
    grid-template-columns: 1fr;
    gap: 34px;
  }

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

@media (max-width: 640px) {
  .auth-view:not(.portal-entry-only),
  .auth-view:not(.portal-entry-only) .auth-art,
  .auth-view:not(.portal-entry-only) .public-login-band,
  .auth-view:not(.portal-entry-only) .public-services,
  .auth-view:not(.portal-entry-only) .access-guide,
  .auth-view:not(.portal-entry-only) .public-footer {
    width: 100vw;
    max-width: 100vw;
  }

  .public-header {
    min-height: 70px;
    padding: 8px 14px;
  }

  .public-brand img {
    width: 48px;
    height: 48px;
  }

  .public-brand strong {
    max-width: 205px;
    font-size: 15px;
  }

  .public-nav-primary {
    display: none;
  }

  .auth-art {
    min-height: 500px;
    padding: 60px 18px 24px;
  }

  .auth-copy h1 {
    max-width: 100%;
    font-size: 34px;
    overflow-wrap: break-word;
  }

  .auth-copy p:last-of-type {
    font-size: 16px;
    overflow-wrap: anywhere;
  }

  .hero-actions,
  .hero-service-strip,
  .staff-links {
    align-items: stretch;
    flex-direction: column;
  }

  .hero-actions a {
    width: 100%;
  }

  .hero-service-strip {
    width: 100%;
  }

  .hero-service-strip span + span {
    border-top: 1px solid rgba(255, 255, 255, 0.22);
    border-left: 0;
  }

  .public-login-band,
  .public-services,
  .access-guide {
    width: 100%;
    max-width: 100%;
    padding: 46px 16px;
    overflow: hidden;
  }

  .login-band-copy,
  .public-login-band .auth-card,
  .login-band-copy h2,
  .login-band-copy p {
    width: 100%;
    max-width: 100%;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .public-login-band .auth-card {
    max-width: calc(100vw - 32px);
  }

  .login-band-copy h2,
  .public-section-heading h2 {
    font-size: 30px;
    overflow-wrap: break-word;
  }

  .service-grid,
  .access-steps {
    grid-template-columns: 1fr;
  }

  .access-steps li + li {
    border-top: 1px solid #d8dee8;
    border-left: 0;
  }

  .public-footer {
    grid-template-columns: 1fr;
    padding: 30px 18px;
  }

  .portal-entry-only .public-login-band {
    padding: 0;
  }
}
.officer-dashboard-header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
}

.officer-dashboard-panel { min-height: 220px; }
.dashboard-actions { display: flex; gap: 8px; }

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

.officer-metric-card {
  display: grid;
  grid-template-columns: 42px minmax(0, 1fr);
  gap: 12px;
  align-items: start;
  padding: 16px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 8px 24px rgba(17, 43, 73, .05);
}

.metric-icon {
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 8px;
  color: #075b50;
  background: #e5f6f1;
}

.officer-metric-card small { color: #52657b; font-weight: 700; }
.officer-metric-card strong { display: block; margin-top: 2px; color: #0c2340; font-size: 28px; line-height: 1.1; }
.officer-metric-card p { margin: 5px 0 0; color: #6b7a8c; font-size: 12px; }

.daily-work-summary {
  display: grid;
  grid-template-columns: minmax(180px, .8fr) minmax(420px, 2fr) auto;
  gap: 18px;
  align-items: center;
  margin-top: 14px;
  padding: 16px;
  border: 1px solid #d7e1ee;
  border-radius: 8px;
  background: #f8fbff;
}

.daily-work-summary h3 { margin: 5px 0 0; }
.daily-work-summary dl { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0; }
.daily-work-summary dl div { padding: 2px 14px; border-left: 1px solid #d7e1ee; }
.daily-work-summary dt { color: #64748b; font-size: 12px; }
.daily-work-summary dd { margin: 2px 0 0; color: #0c2340; font-size: 20px; font-weight: 800; }

@media (max-width: 980px) {
  .officer-metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .daily-work-summary { grid-template-columns: 1fr; }
  .daily-work-summary dl { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 620px) {
  .officer-dashboard-header { align-items: flex-start; }
  .officer-metric-grid { grid-template-columns: 1fr; }
}
