:root {
  --bg-page: #ffffff;
  --bg-sidebar: #f9fafb;
  --bg-subtle: #f9fafb;
  --bg-hover: #f3f4f6;

  --ink-900: #111827;
  --ink-700: #374151;
  --ink-500: #6b7280;
  --ink-400: #9ca3af;

  --border: #e5e7eb;
  --border-strong: #d1d5db;

  --brand-navy: #083d77;
  --brand-navy-dark: #062b54;
  --brand-teal: #0f766e;

  --green-text: #065f46;
  --green-bg: #ecfdf5;
  --green-border: #a7f3d0;

  --amber-text: #92400e;
  --amber-bg: #fffbeb;
  --amber-border: #fde68a;

  --red-text: #991b1b;
  --red-bg: #fef2f2;
  --red-border: #fecaca;

  --sidebar-w: 264px;
  --topbar-h: 56px;
  --radius: 4px;
}

*,
*::before,
*::after {
  box-sizing: border-box;
}

html,
body {
  margin: 0;
  padding: 0;
  font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg-page);
  color: var(--ink-900);
  font-size: 14px;
  line-height: 1.5;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3, h4 {
  margin: 0;
  color: var(--ink-900);
  letter-spacing: -0.01em;
}

p {
  margin: 0 0 0.75rem;
}

.hidden {
  display: none !important;
}

.mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
}

.num {
  font-variant-numeric: tabular-nums;
}

.uppercase {
  text-transform: uppercase;
}

.muted {
  color: var(--ink-500);
}

.small {
  font-size: 0.8125rem;
}

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

/* =========================================================
   CORPORATE TOP UTILITY BAR
   ========================================================= */
.topbar {
  height: var(--topbar-h);
  background: #ffffff;
  border-bottom: 1px solid var(--border);
  position: sticky;
  top: 0;
  z-index: 40;
}

.topbar-inner {
  height: 100%;
  padding: 0 1.5rem;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
}

.topbar-brand {
  display: flex;
  align-items: center;
  gap: 0.85rem;
}

.brand-logo {
  height: 21px;
  width: auto;
  display: block;
}

.brand-divider {
  width: 1px;
  height: 18px;
  background: var(--border-strong);
}

.brand-portal-label {
  font-size: 0.84rem;
  font-weight: 500;
  color: var(--ink-700);
}

.topbar-actions {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}

.session-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.55rem;
}

.session-avatar-sm {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: var(--brand-navy);
  color: #ffffff;
  font-size: 0.7rem;
  font-weight: 600;
  display: grid;
  place-items: center;
}

.session-text-col {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.session-name {
  font-size: 0.8rem;
  font-weight: 600;
  color: var(--ink-900);
}

.session-id {
  font-size: 0.7rem;
  color: var(--ink-500);
}

.btn-topbar-ghost {
  height: 30px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-topbar-ghost:hover {
  background: var(--bg-hover);
  color: var(--ink-900);
}

/* =========================================================
   CORPORATE TAGS & ALERTS
   ========================================================= */
.corp-tag {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 3px;
  font-size: 0.72rem;
  font-weight: 600;
  border: 1px solid transparent;
}

.corp-tag-green {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.corp-tag-amber {
  background: var(--amber-bg);
  border-color: var(--amber-border);
  color: var(--amber-text);
}

.corp-tag-slate {
  background: #f8fafc;
  border-color: var(--border-strong);
  color: var(--ink-500);
}

.payout-section-head {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.5rem 0 0.75rem;
}

.payout-sub-note {
  font-size: 0.78rem;
  color: var(--ink-500);
}

.tranche-paid-row {
  background: #f8fffc;
}

.alert-host {
  padding: 1.25rem 3rem 0;
  width: 100%;
}

.banner-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.6rem;
  padding: 0.75rem 1rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-size: 0.84rem;
}

.alert-error {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.alert-success {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.alert-info {
  background: #f3f4f6;
  border-color: var(--border-strong);
  color: var(--ink-900);
}

.alert-svg {
  flex-shrink: 0;
  margin-top: 2px;
}

.alert-msg {
  flex: 1;
}

.alert-dismiss {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
}

/* =========================================================
   STEP 1: SPLIT ENTERPRISE SIGN-IN
   ========================================================= */
.step-login-shell {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 45% 55%;
  background: #ffffff;
}

.login-brand-panel {
  background: #07294f;
  color: #e5e7eb;
  padding: 2.75rem 3.25rem;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 2rem;
}

.login-logo-box {
  display: inline-block;
  background: #ffffff;
  padding: 0.45rem 0.8rem;
  border-radius: var(--radius);
}

.login-hero-copy {
  margin-top: 2rem;
}

.login-hero-copy h1 {
  color: #ffffff;
  font-size: 1.6rem;
  font-weight: 600;
  line-height: 1.28;
  margin-bottom: 0.75rem;
}

.login-hero-copy p {
  color: #d1d5db;
  font-size: 0.9rem;
  line-height: 1.6;
  max-width: 430px;
}

.login-roadmap {
  list-style: none;
  margin: 0;
  padding: 1.5rem 0;
  border-top: 1px solid rgba(255, 255, 255, 0.14);
  border-bottom: 1px solid rgba(255, 255, 255, 0.14);
  display: grid;
  gap: 1.1rem;
}

.login-roadmap li {
  display: flex;
  align-items: flex-start;
  gap: 0.85rem;
}

.roadmap-num {
  font-size: 0.72rem;
  font-weight: 700;
  color: #93c5fd;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  padding: 0.16rem 0.42rem;
  border-radius: 3px;
  font-variant-numeric: tabular-nums;
  margin-top: 2px;
}

.login-roadmap strong {
  display: block;
  color: #ffffff;
  font-size: 0.87rem;
  font-weight: 600;
}

.login-roadmap span {
  display: block;
  color: #d1d5db;
  font-size: 0.79rem;
}

.login-brand-foot {
  font-size: 0.77rem;
  color: #9ca3af;
  display: flex;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.login-form-panel {
  background: #ffffff;
  display: grid;
  place-items: center;
  padding: 2.5rem;
}

.login-form-box {
  width: 100%;
  max-width: 390px;
}

.login-mobile-logo {
  display: none;
  margin-bottom: 1.5rem;
}

.login-form-box h2 {
  font-size: 1.42rem;
  font-weight: 600;
  margin-bottom: 0.35rem;
}

.login-sub {
  color: var(--ink-500);
  font-size: 0.875rem;
  margin-bottom: 1.5rem;
}

.btn-block {
  width: 100%;
  height: 40px;
}

.login-security-note {
  margin-top: 1.5rem;
  padding-top: 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  align-items: center;
  gap: 0.45rem;
  font-size: 0.77rem;
  color: var(--ink-500);
}

/* =========================================================
   FULL-HEIGHT CORPORATE WORKSPACE (Steps 2..10)
   ========================================================= */
.wizard-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
  background: #ffffff;
}

.wizard-shell.single-col {
  display: block;
  min-height: 100vh;
}

.wizard-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}

.sidebar-progress-box {
  padding: 1.1rem 1.25rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.sidebar-progress-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 0.45rem;
}

.sidebar-progress-label {
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-700);
}

.sidebar-progress-pct {
  font-size: 0.73rem;
  color: var(--ink-500);
}

.rail-bar {
  height: 4px;
  background: var(--border);
  border-radius: 2px;
  overflow: hidden;
}

.rail-bar-fill {
  height: 100%;
  background: var(--brand-navy);
  transition: width 0.25s ease;
}

.rail-steps {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.rail-group-label {
  font-size: 0.67rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
  padding: 0.7rem 0.6rem 0.25rem;
}

.rail-group-label:first-child {
  padding-top: 0.1rem;
}

.rail-step-btn {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  width: 100%;
  padding: 0.46rem 0.65rem;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  border-radius: 0 3px 3px 0;
  font-family: inherit;
  font-size: 0.815rem;
  color: var(--ink-500);
  text-align: left;
  cursor: default;
}

.rail-step-btn.completed {
  color: var(--ink-700);
  cursor: pointer;
}

.rail-step-btn.completed:hover {
  background: var(--bg-hover);
  color: var(--ink-900);
}

.rail-step-btn.active {
  background: #eff4f9;
  border-left-color: var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
}

.rail-num {
  width: 19px;
  height: 19px;
  border-radius: 50%;
  border: 1px solid var(--border-strong);
  font-size: 0.68rem;
  font-variant-numeric: tabular-nums;
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: #ffffff;
}

.rail-step-btn.active .rail-num {
  border-color: var(--brand-navy);
  background: var(--brand-navy);
  color: #ffffff;
}

.rail-step-btn.completed .rail-num {
  border-color: var(--green-border);
  background: var(--green-bg);
  color: var(--green-text);
  font-weight: 700;
}

.sidebar-help {
  padding: 0.85rem 1.25rem;
  border-top: 1px solid var(--border);
}

.sidebar-help-title {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-700);
}

.sidebar-help-text {
  font-size: 0.73rem;
  color: var(--ink-500);
  margin-top: 0.12rem;
}

/* =========================================================
   RIGHT PANE — PURE CORPORATE WHITE CANVAS + STICKY BAR
   ========================================================= */
.wizard-workspace {
  flex: 1;
  min-width: 0;
  background: #ffffff;
  display: flex;
  flex-direction: column;
}

.step-pane {
  flex: 1;
  display: flex;
  flex-direction: column;
  min-height: calc(100vh - var(--topbar-h));
}

.pane-form {
  flex: 1;
  display: flex;
  flex-direction: column;
}

.pane-content {
  flex: 1;
  padding: 2rem 3rem 2.5rem;
  width: 100%;
}

.pane-header {
  padding-bottom: 1.15rem;
  margin-bottom: 1.5rem;
  border-bottom: 1px solid var(--border);
}

.pane-header h1 {
  font-size: 1.35rem;
  font-weight: 600;
  color: var(--ink-900);
}

.pane-sub {
  margin: 0.25rem 0 0;
  font-size: 0.86rem;
  color: var(--ink-500);
}

/* Sticky Edge-to-Edge Bottom Action Bar */
.sticky-action-bar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  background: #ffffff;
  border-top: 1px solid var(--border);
  padding: 0.9rem 3rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

/* =========================================================
   STEP 2: AUTHENTIC MNC OFFER LETTER (CLEAN LETTER FORMAT)
   ========================================================= */
.offer-pane-content {
  width: 100%;
  max-width: none;
}

.offer-document {
  border: none;
  padding: 0;
  background: transparent;
  margin-bottom: 2rem;
  color: #1f2937;
  font-size: 0.92rem;
  line-height: 1.72;
}

.offer-letter-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1.5rem;
  flex-wrap: wrap;
  margin-bottom: 1.75rem;
}

.offer-date-ref {
  font-size: 0.84rem;
  color: var(--ink-700);
  line-height: 1.6;
}

.offer-confidential-bar {
  font-size: 0.72rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--ink-500);
}

.offer-inside-address {
  margin-bottom: 1.5rem;
  font-size: 0.9rem;
  line-height: 1.55;
  color: var(--ink-900);
}

.offer-subject-line {
  font-size: 1.05rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 1.25rem;
}

.offer-letter-p {
  margin: 0 0 1rem;
  color: #1f2937;
}

.offer-terms-list {
  margin: 1.25rem 0 1.75rem;
  padding-left: 1.25rem;
  display: grid;
  gap: 0.75rem;
  font-size: 0.9rem;
  line-height: 1.68;
  color: #1f2937;
}

.offer-terms-list li strong {
  color: var(--ink-900);
}

.offer-signatory {
  margin: 1.75rem 0 2.25rem;
  font-size: 0.9rem;
  line-height: 1.65;
  color: var(--ink-900);
}

.offer-annexure-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  margin: 0 0 0.75rem;
}

.offer-table {
  width: 100%;
  border-collapse: collapse;
  margin: 0 0 1.25rem;
  font-size: 0.875rem;
}

.offer-table th {
  text-align: left;
  font-size: 0.75rem;
  font-weight: 600;
  color: var(--ink-500);
  padding: 0.6rem 0.75rem 0.6rem 0;
  border-bottom: 1px solid var(--border-strong);
}

.offer-table td {
  padding: 0.72rem 0.75rem 0.72rem 0;
  border-bottom: 1px solid #f1f3f5;
  color: var(--ink-700);
}

.offer-table tr.total-row td {
  border-bottom: none;
  border-top: 1px solid var(--border-strong);
  font-weight: 600;
  color: var(--ink-900);
}

.offer-note-plain {
  border-left: 2px solid var(--brand-navy);
  padding: 0.2rem 0 0.2rem 0.85rem;
  margin: 1rem 0;
  font-size: 0.86rem;
  color: var(--ink-700);
}

.acceptance-section {
  background: transparent;
  border: none;
  padding: 0.5rem 0 0;
}

.offer-accept-heading {
  font-size: 0.95rem;
  font-weight: 700;
  color: var(--ink-900);
  margin-bottom: 0.85rem;
}

.telemetry-notice {
  font-size: 0.77rem;
  color: var(--ink-500);
  margin-top: 0.85rem;
}

.checkbox-stack {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
}

.checkbox-row {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  font-size: 0.87rem;
  color: var(--ink-700);
  cursor: pointer;
}

.checkbox-row input {
  width: 16px;
  height: 16px;
  margin-top: 3px;
  accent-color: var(--brand-navy);
  flex-shrink: 0;
}

/* =========================================================
   CORPORATE SECTIONED FORMS (No Outer Box!)
   ========================================================= */
.corp-section {
  display: grid;
  grid-template-columns: 230px 1fr;
  gap: 2rem;
  padding: 1.5rem 0;
  border-bottom: 1px solid var(--border);
}

.corp-section:first-of-type {
  padding-top: 0.25rem;
}

.corp-section-last {
  border-bottom: none;
  padding-bottom: 0.5rem;
}

.corp-section-aside h3 {
  font-size: 0.92rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-bottom: 0.25rem;
}

.corp-section-aside p {
  font-size: 0.79rem;
  color: var(--ink-500);
  margin: 0;
}

.btn-inline-link {
  margin-top: 0.7rem;
  padding: 0.32rem 0.7rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  cursor: pointer;
}

.btn-inline-link:hover {
  background: var(--bg-hover);
}

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

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

.span-2 {
  grid-column: span 2;
}

.form-group {
  display: flex;
  flex-direction: column;
  gap: 0.32rem;
}

.form-group label {
  font-size: 0.8rem;
  font-weight: 500;
  color: var(--ink-700);
}

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

.input-lock-wrap {
  position: relative;
}

.input-lock-wrap input {
  padding-right: 2.2rem;
}

.lock-icon {
  position: absolute;
  right: 10px;
  top: 50%;
  transform: translateY(-50%);
  color: var(--ink-400);
  pointer-events: none;
}

input[type="text"],
input[type="email"],
input[type="tel"],
input[type="password"],
input[type="search"],
select {
  width: 100%;
  height: 38px;
  padding: 0 0.75rem;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  font-family: inherit;
  font-size: 0.86rem;
  color: var(--ink-900);
  background: #ffffff;
  transition: border-color 0.12s, box-shadow 0.12s;
}

input:focus,
select:focus {
  outline: none;
  border-color: var(--brand-navy);
  box-shadow: 0 0 0 2px rgba(8, 61, 119, 0.12);
}

.readonly-input {
  background: var(--bg-subtle) !important;
  color: var(--ink-700) !important;
  border-color: var(--border) !important;
  cursor: default;
}

.input-invalid {
  border-color: var(--red-text) !important;
}

.field-hint {
  font-size: 0.77rem;
  color: var(--ink-500);
  margin: 0;
}

.info-strip {
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  border-left: 3px solid var(--brand-navy);
  color: var(--ink-700);
  padding: 0.6rem 0.85rem;
  border-radius: 2px;
  font-size: 0.8rem;
}

/* Degree Selector */
.degree-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  margin-bottom: 0.65rem;
}

.degree-pill {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 500;
  padding: 0.32rem 0.75rem;
  border-radius: var(--radius);
  cursor: pointer;
}

.degree-pill.selected {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.custom-degree-row {
  display: flex;
  gap: 0.5rem;
}

.selected-degrees {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.65rem;
}

.selected-degree-tag {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  background: var(--bg-subtle);
  border: 1px solid var(--border-strong);
  color: var(--ink-900);
  padding: 0.2rem 0.55rem;
  border-radius: var(--radius);
  font-size: 0.78rem;
  font-weight: 500;
}

.selected-degree-tag button {
  border: none;
  background: transparent;
  color: var(--ink-500);
  cursor: pointer;
  font-size: 0.95rem;
  line-height: 1;
  padding: 0;
}

/* =========================================================
   TABLES & METRICS (Steps 5, 6, 7)
   ========================================================= */
.stat-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  border: 1px solid var(--border);
  border-radius: var(--radius);
  margin-bottom: 1.25rem;
  background: var(--bg-subtle);
}

.stat-cell {
  padding: 0.9rem 1.15rem;
  border-right: 1px solid var(--border);
}

.stat-cell:last-child {
  border-right: none;
}

.kpi-label {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.kpi-value {
  font-size: 1.3rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.18rem;
  font-variant-numeric: tabular-nums;
}

.kpi-sub {
  font-size: 0.74rem;
  color: var(--ink-500);
}

.topic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  margin-bottom: 0.9rem;
}

.topic-toolbar input {
  max-width: 340px;
}

.domains-stack {
  display: flex;
  flex-direction: column;
  gap: 1rem;
}

.domain-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.domain-card-header {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  padding: 0.75rem 1rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.domain-card-header h3 {
  font-size: 0.93rem;
  font-weight: 600;
}

.domain-meta-badges {
  display: flex;
  gap: 0.4rem;
}

.meta-chip {
  font-size: 0.72rem;
  font-weight: 500;
  background: #ffffff;
  border: 1px solid var(--border);
  color: var(--ink-700);
  padding: 0.14rem 0.5rem;
  border-radius: 3px;
}

.topic-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 360px;
  overflow-y: auto;
}

.topic-item {
  padding: 0.72rem 1rem;
  border-top: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  gap: 0.85rem;
}

.topic-item:first-child {
  border-top: none;
}

.topic-title {
  font-weight: 500;
  font-size: 0.85rem;
}

.topic-notes {
  font-size: 0.77rem;
  color: var(--ink-500);
  margin-top: 0.15rem;
}

.tag-code {
  font-size: 0.72rem;
  font-family: ui-monospace, monospace;
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  padding: 0.1rem 0.4rem;
  border-radius: 3px;
}

.corp-table-wrap {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.table-panel-head {
  padding: 0.7rem 1rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-700);
}

.table-responsive {
  overflow-x: auto;
}

.data-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.84rem;
}

.data-table th,
.data-table td {
  padding: 0.68rem 1rem;
  border-bottom: 1px solid var(--border);
  text-align: left;
}

.data-table th {
  font-size: 0.71rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
  background: var(--bg-subtle);
}

.remuneration-strip {
  border: 1px solid var(--border-strong);
  border-left: 4px solid var(--brand-navy);
  background: var(--bg-subtle);
  border-radius: var(--radius);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.remuneration-amount {
  font-size: 1.5rem;
  font-weight: 700;
  color: var(--ink-900);
  font-variant-numeric: tabular-nums;
}

/* KYC Document Uploads */
.doc-upload-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.8rem;
  background: var(--bg-subtle);
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}

.doc-upload-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font-size: 0.81rem;
}

.doc-upload-drop {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  background: #ffffff;
  min-height: 130px;
  display: grid;
  place-items: center;
  padding: 0.75rem;
  cursor: pointer;
  text-align: center;
}

.doc-upload-drop:hover {
  border-color: var(--brand-navy);
}

.doc-upload-empty {
  display: grid;
  gap: 0.2rem;
  font-size: 0.81rem;
  font-weight: 500;
  color: var(--brand-navy);
}

.doc-preview-img {
  max-width: 100%;
  max-height: 125px;
  object-fit: contain;
  border-radius: 3px;
}

/* =========================================================
   CAMERA & SIGNATURE
   ========================================================= */
.camera-workspace {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 1rem;
}

.camera-stage {
  position: relative;
  width: 100%;
  max-width: 500px;
  aspect-ratio: 4 / 3;
  background: #111827;
  border-radius: var(--radius);
  overflow: hidden;
  border: 1px solid var(--border-strong);
  display: grid;
  place-items: center;
}

.camera-stage video,
.camera-stage img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.camera-stage video.mirrored {
  transform: scaleX(-1);
}

.camera-placeholder {
  color: #d1d5db;
  text-align: center;
  padding: 1.25rem;
  display: grid;
  place-items: center;
  gap: 0.5rem;
}

.face-guide {
  position: absolute;
  width: 195px;
  height: 250px;
  border: 2px dashed rgba(255, 255, 255, 0.7);
  border-radius: 50%;
  pointer-events: none;
  box-shadow: 0 0 0 9999px rgba(17, 24, 39, 0.28);
}

.camera-controls {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.upload-dropzone {
  border: 1px dashed var(--border-strong);
  border-radius: var(--radius);
  padding: 2.25rem 1.5rem;
  text-align: center;
  background: var(--bg-subtle);
  cursor: pointer;
}

.upload-dropzone:hover,
.upload-dropzone.dragover {
  border-color: var(--brand-navy);
}

.dropzone-content {
  display: grid;
  place-items: center;
  gap: 0.4rem;
}

.sig-editor {
  display: flex;
  flex-direction: column;
  gap: 0.9rem;
}

.sig-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
  flex-wrap: wrap;
  background: var(--bg-subtle);
  padding: 0.65rem 0.9rem;
  border-radius: var(--radius);
  border: 1px solid var(--border);
}

.sig-tool-group {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.toggle-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 0.81rem;
  font-weight: 500;
  cursor: pointer;
}

.sig-sliders {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.75rem 0.9rem;
}

.slider-control {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.8rem;
}

.slider-control input[type="range"] {
  accent-color: var(--brand-navy);
  width: 100%;
}

.sig-canvases {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.9rem;
}

.canvas-panel {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  overflow: hidden;
}

.canvas-panel-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.55rem 0.85rem;
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--border);
  font-size: 0.79rem;
  font-weight: 600;
}

.canvas-stage {
  padding: 0.7rem;
  display: grid;
  place-items: center;
  min-height: 220px;
}

.canvas-stage canvas {
  max-width: 100%;
  max-height: 260px;
  display: block;
  touch-action: none;
}

.checkerboard-bg {
  background-color: #ffffff;
  background-image:
    linear-gradient(45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(-45deg, #e5e7eb 25%, transparent 25%),
    linear-gradient(45deg, transparent 75%, #e5e7eb 75%),
    linear-gradient(-45deg, transparent 75%, #e5e7eb 75%);
  background-size: 16px 16px;
  background-position: 0 0, 0 8px, 8px -8px, -8px 0;
}

/* =========================================================
   FINAL SUMMARY & AGREEMENT
   ========================================================= */
.summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 1rem;
}

.summary-box {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.95rem 1.1rem;
}

.summary-box h4 {
  font-size: 0.73rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-700);
  margin-bottom: 0.45rem;
}

.summary-list {
  display: grid;
  gap: 0.25rem;
  font-size: 0.83rem;
}

.summary-media-row {
  display: flex;
  gap: 0.75rem;
  align-items: center;
  flex-wrap: wrap;
}

.summary-thumb-photo {
  width: 64px;
  height: 64px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}

.summary-thumb-sig {
  max-width: 135px;
  max-height: 58px;
  object-fit: contain;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 3px;
  background: #ffffff;
}

.submission-banner {
  background: var(--green-bg);
  border: 1px solid var(--green-border);
  color: var(--green-text);
  padding: 0.9rem 1.15rem;
  border-radius: var(--radius);
  margin-bottom: 1.1rem;
}

.agreement-sheet-wrap {
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: 2px;
  max-width: 816px;
  margin: 0 auto;
  padding: 2.75rem 3.25rem;
}

.agreement-doc {
  color: #0f172a;
  font-family: "Times New Roman", "Liberation Serif", Georgia, serif;
  font-size: 11pt;
  line-height: 1.62;
}

.agreement-doc-title {
  font-size: 13.5pt;
  line-height: 1.35;
  letter-spacing: 0.05em;
  text-transform: uppercase;
  font-weight: 700;
  color: #0b1220;
  margin: 0;
}

.agreement-doc .mono {
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;
  font-size: 0.9em;
}

.agreement-doc .small {
  font-size: 9.5pt;
  line-height: 1.5;
}

.agreement-letterhead {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  border-bottom: 2px solid var(--ink-900);
  padding-bottom: 0.95rem;
  margin-bottom: 1.35rem;
  gap: 1rem;
}

.agreement-ref {
  text-align: right;
  font-size: 9.5pt;
  color: var(--ink-500);
}

.agreement-section {
  margin-bottom: 1.5rem;
}

.agreement-section h3 {
  font-size: 0.88rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-900);
  border-bottom: 1px solid var(--border);
  padding-bottom: 0.3rem;
  margin-bottom: 0.7rem;
}

.agreement-clause-block {
  margin-bottom: 1rem;
}

.agreement-clause-block h4 {
  font-size: 11pt;
  font-weight: 700;
  color: var(--ink-900);
  margin: 1.15rem 0 0.42rem;
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.agreement-clause-block p {
  font-size: 11pt;
  line-height: 1.62;
  margin: 0 0 0.55rem;
  text-align: justify;
}

.agreement-subclauses {
  font-size: 11pt;
  line-height: 1.6;
  text-align: justify;
  margin: 0.25rem 0 0.65rem;
  padding-left: 1.35rem;
  display: grid;
  gap: 0.4rem;
}

.agreement-schedule-break {
  margin-top: 2rem;
  padding-top: 1.25rem;
  border-top: 2px solid var(--ink-900);
  page-break-before: always;
}

.agreement-schedule-title {
  font-size: 12.5pt;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--brand-navy);
  margin: 0 0 0.2rem;
}

.agreement-schedule-sub {
  font-size: 9.5pt;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--ink-700);
  margin: 0 0 0.85rem;
}

.agreement-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 10pt;
  line-height: 1.48;
}

.agreement-table th,
.agreement-table td {
  border: 1px solid var(--border);
  padding: 0.48rem 0.68rem;
  text-align: left;
  vertical-align: top;
}

.agreement-table th {
  background: var(--bg-subtle);
  width: 28%;
  font-weight: 600;
}

.agreement-clauses {
  padding-left: 1.2rem;
  margin: 0;
  display: grid;
  gap: 0.4rem;
}

.agreement-signoff-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1.25rem;
  margin-top: 1.25rem;
  padding-top: 1rem;
  border-top: 1px dashed var(--border-strong);
  align-items: end;
}

.signoff-card {
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 0.9rem;
  background: var(--bg-subtle);
}

.signoff-photo {
  width: 96px;
  height: 112px;
  object-fit: cover;
  border-radius: var(--radius);
  border: 1px solid var(--border-strong);
}

.signoff-signature {
  max-width: 210px;
  max-height: 80px;
  object-fit: contain;
  display: block;
  margin: 0.35rem 0;
}

.company-auth-media {
  display: flex;
  align-items: center;
  gap: 0.85rem;
  margin: 0.65rem 0;
  flex-wrap: wrap;
}

.director-stamp-box {
  position: relative;
  width: 210px;
  height: 86px;
  display: inline-block;
  flex-shrink: 0;
}

.director-stamp-img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.director-sig-overlay {
  position: absolute;
  left: 16px;
  top: 12px;
  width: 130px;
  height: 58px;
  object-fit: contain;
  pointer-events: none;
}

.company-round-seal {
  width: 82px;
  height: 82px;
  object-fit: contain;
  display: block;
  flex-shrink: 0;
}

/* =========================================================
   STATUS SCREEN & POST-VERIFICATION PROFILE PORTAL
   ========================================================= */
.status-screen {
  min-height: calc(100vh - var(--topbar-h));
  display: grid;
  place-items: center;
  padding: 2rem;
  background: var(--bg-subtle);
}

.status-card {
  width: 100%;
  max-width: 640px;
  background: #ffffff;
  border: 1px solid var(--border-strong);
  border-radius: var(--radius);
  padding: 2rem;
}

.status-brand-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 1.25rem;
}

.status-card h1 {
  font-size: 1.32rem;
  margin-bottom: 0.5rem;
}

.lead-text {
  color: var(--ink-700);
  font-size: 0.9rem;
  margin-bottom: 1rem;
}

.checklist-summary {
  display: grid;
  gap: 0.5rem;
  margin-bottom: 1.5rem;
}

.gate-status-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 0.65rem 0.9rem;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--bg-subtle);
  font-size: 0.84rem;
}

.card-footer-row {
  display: flex;
  justify-content: space-between;
  gap: 0.75rem;
}

/* =========================================================
   MODE B: FULL-BLEED ENTERPRISE PORTAL SHELL
   ========================================================= */
.portal-shell {
  display: flex;
  min-height: calc(100vh - var(--topbar-h));
  background: #ffffff;
}

.portal-sidebar {
  width: var(--sidebar-w);
  flex-shrink: 0;
  background: var(--bg-sidebar);
  border-right: 1px solid var(--border);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: var(--topbar-h);
  height: calc(100vh - var(--topbar-h));
}

.portal-context-head {
  padding: 1.05rem 1.15rem 0.95rem;
  border-bottom: 1px solid var(--border);
}

.portal-context-kicker {
  font-size: 0.67rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-400);
}

.portal-context-status {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.84rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.28rem;
}

.portal-context-ref {
  font-size: 0.71rem;
  color: var(--ink-500);
  margin-top: 0.25rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.status-dot-green {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  flex-shrink: 0;
}

.status-dot-slate {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #9ca3af;
  flex-shrink: 0;
}

.portal-id-sub {
  margin: 0.6rem 0 0;
  font-size: 0.74rem;
  color: var(--ink-500);
  line-height: 1.4;
  word-break: break-word;
}

.portal-id-ref {
  margin-top: 0.4rem;
  font-size: 0.7rem;
  color: var(--ink-400);
}

.portal-id-payout {
  margin-top: 0.55rem;
  padding-top: 0.55rem;
  border-top: 1px dashed var(--border);
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--green-text);
}

.portal-nav {
  flex: 1;
  overflow-y: auto;
  padding: 0.85rem 0.75rem;
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
}

.portal-tab-label {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  white-space: nowrap;
}

.portal-tab {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 0.5rem;
  width: 100%;
  padding: 0.56rem 0.72rem;
  border: none;
  border-left: 2px solid transparent;
  background: transparent;
  border-radius: 0 4px 4px 0;
  font-family: inherit;
  font-size: 0.825rem;
  font-weight: 500;
  color: var(--ink-700);
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

.portal-tab svg {
  color: var(--ink-400);
  flex-shrink: 0;
}

.portal-tab:hover {
  background: var(--bg-hover);
  color: var(--ink-900);
}

.portal-tab:hover svg {
  color: var(--ink-700);
}

.portal-tab.active {
  background: #eaf1f8;
  border-left-color: var(--brand-navy);
  color: var(--brand-navy);
  font-weight: 600;
}

.portal-tab.active svg {
  color: var(--brand-navy);
}

.portal-nav-meta {
  font-size: 0.69rem;
  font-weight: 600;
  padding: 0.1rem 0.42rem;
  border-radius: 999px;
  background: #eef2f7;
  color: var(--ink-700);
}

.portal-tab.active .portal-nav-meta {
  background: #ffffff;
  color: var(--brand-navy);
}

.portal-workspace {
  flex: 1;
  min-width: 0;
  background: #f6f8fb;
  display: flex;
  flex-direction: column;
}

.portal-workspace-head {
  background: #ffffff;
  padding: 1.25rem 2.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 1.25rem;
  flex-wrap: wrap;
}

.portal-breadcrumb {
  display: flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.74rem;
  font-weight: 500;
  color: var(--ink-500);
  margin-bottom: 0.3rem;
}

.portal-bc-sep {
  color: var(--ink-400);
}

.portal-workspace-head h2 {
  font-size: 1.28rem;
  font-weight: 600;
  color: var(--ink-900);
  letter-spacing: -0.015em;
}

.profile-hero-actions {
  display: flex;
  align-items: center;
  gap: 0.6rem;
  flex-wrap: wrap;
}

.btn-sm-icon {
  height: 35px;
  padding: 0 0.9rem;
  font-size: 0.81rem;
}

.portal-workspace-body {
  padding: 1.5rem 2.25rem 3rem;
  width: 100%;
}

/* Enterprise Panels & Lifecycle Milestone Stepper */
.enterprise-panel {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.enterprise-panel-head {
  padding: 0.95rem 1.25rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
}

.enterprise-panel-title {
  font-size: 0.88rem;
  font-weight: 600;
  color: var(--ink-900);
}

.enterprise-panel-sub {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-top: 0.1rem;
}

.enterprise-panel-body {
  padding: 1.15rem 1.25rem;
}

.lifecycle-rail {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 0;
  position: relative;
}

.lifecycle-node {
  position: relative;
  padding: 0.25rem 0.65rem 0.25rem 0;
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
}

.lifecycle-node-top {
  display: flex;
  align-items: center;
  gap: 0.5rem;
}

.lifecycle-marker {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.72rem;
  font-weight: 700;
  flex-shrink: 0;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-500);
  z-index: 1;
}

.lifecycle-node.done .lifecycle-marker {
  background: #047857;
  border-color: #047857;
  color: #ffffff;
}

.lifecycle-node.current .lifecycle-marker {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
  box-shadow: 0 0 0 4px #e0ecfa;
}

.lifecycle-connector {
  flex: 1;
  height: 2px;
  background: var(--border);
}

.lifecycle-node.done .lifecycle-connector {
  background: #047857;
}

.lifecycle-node:last-child .lifecycle-connector {
  display: none;
}

.lifecycle-label {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--ink-900);
}

.lifecycle-meta {
  font-size: 0.71rem;
  color: var(--ink-500);
}

.kpi-grid-4 {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 1rem;
  margin-bottom: 1.25rem;
}

.kpi-tile {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.kpi-tile-val {
  font-size: 1.42rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.3rem;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

.kpi-tile-foot {
  font-size: 0.75rem;
  color: var(--ink-500);
  margin-top: 0.2rem;
}

.payout-progress-track {
  height: 5px;
  background: #e5e7eb;
  border-radius: 999px;
  overflow: hidden;
  margin-top: 0.55rem;
}

.payout-progress-fill {
  height: 100%;
  background: #047857;
  border-radius: 999px;
  transition: width 0.3s ease;
}

.overview-split {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(300px, 1fr);
  gap: 1.25rem;
  align-items: stretch;
}

.nowrap-cell {
  white-space: nowrap;
}

.panel-link-btn {
  border: none;
  background: transparent;
  padding: 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
}

.panel-link-btn:hover {
  text-decoration: underline;
}

.contract-meta-row {
  display: flex;
  justify-content: space-between;
  align-items: baseline;
  gap: 0.75rem;
  padding: 0.6rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.81rem;
}

.contract-meta-row:last-child {
  border-bottom: none;
}

/* DocuSign-style Agreement Reader + Sticky Outline Inspector */
.agreement-reader-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 290px;
  gap: 1.5rem;
  align-items: start;
}

.agreement-paper {
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 6px;
  max-width: 816px;
  margin: 0 auto;
  padding: 2.75rem 3.25rem;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.05);
}

.agreement-inspector {
  position: sticky;
  top: calc(var(--topbar-h) + 1.25rem);
  display: grid;
  gap: 1rem;
}

.outline-nav {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}

.outline-link {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  background: transparent;
  padding: 0.42rem 0.6rem;
  border-radius: 4px;
  font-family: inherit;
  font-size: 0.79rem;
  color: var(--ink-700);
  cursor: pointer;
}

.outline-link:hover {
  background: var(--bg-hover);
  color: var(--brand-navy);
}

.domain-expand-btn {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-700);
  font-family: inherit;
  font-size: 0.74rem;
  font-weight: 500;
  padding: 0.25rem 0.6rem;
  border-radius: 4px;
  cursor: pointer;
}

.domain-expand-btn:hover {
  background: var(--bg-hover);
  color: var(--ink-900);
}

/* Borderless Editorial Metric Strip & Definition Lists */
.editorial-stat-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  border-top: 1px solid var(--border);
  border-bottom: 1px solid var(--border);
  margin-bottom: 2rem;
}

.editorial-stat-cell {
  padding: 1.1rem 1.5rem 1.1rem 0;
  border-right: 1px solid var(--border);
}

.editorial-stat-cell + .editorial-stat-cell {
  padding-left: 1.5rem;
}

.editorial-stat-cell:last-child {
  border-right: none;
}

.editorial-kpi-val {
  font-size: 1.45rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.25rem;
  font-variant-numeric: tabular-nums;
}

.editorial-kpi-sub {
  font-size: 0.76rem;
  color: var(--ink-500);
  margin-top: 0.15rem;
}

.editorial-grid-2 {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 2.5rem;
}

.editorial-block-title {
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--ink-500);
  padding-bottom: 0.6rem;
  border-bottom: 1px solid var(--border-strong);
  margin-bottom: 0.25rem;
}

.editorial-dl {
  margin: 0;
}

.editorial-dl-row {
  display: grid;
  grid-template-columns: 155px 1fr;
  gap: 1rem;
  padding: 0.72rem 0;
  border-bottom: 1px solid #f3f4f6;
  font-size: 0.855rem;
  align-items: baseline;
}

.editorial-dl-dt {
  color: var(--ink-500);
  font-size: 0.8rem;
}

.editorial-dl-dd {
  color: var(--ink-900);
  font-weight: 500;
  word-break: break-word;
}

.editorial-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 0.855rem;
}

.editorial-table th {
  font-size: 0.7rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: var(--ink-500);
  padding: 0.65rem 0.9rem 0.65rem 0;
  border-bottom: 1px solid var(--border-strong);
  text-align: left;
  background: transparent;
}

.editorial-table td {
  padding: 0.85rem 0.9rem 0.85rem 0;
  border-bottom: 1px solid #f3f4f6;
  vertical-align: top;
  color: var(--ink-900);
}

.editorial-table tr:last-child td {
  border-bottom: 1px solid var(--border);
}

.status-inline {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  font-size: 0.81rem;
  font-weight: 600;
  white-space: nowrap;
}

.status-inline-paid {
  color: var(--green-text);
}

.status-inline-pending {
  color: var(--ink-500);
  font-weight: 500;
}

.status-inline-received {
  color: var(--brand-navy);
}

.status-inline-issue {
  color: var(--red-text);
}

.status-dot-navy {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--brand-navy);
  flex-shrink: 0;
}

.status-dot-red {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #dc2626;
  flex-shrink: 0;
}

.topic-issue-banner {
  background: var(--red-bg);
  border: 1px solid var(--red-border);
  border-left: 3px solid var(--red-text);
  border-radius: 6px;
  padding: 0.85rem 1.1rem;
  color: var(--red-text);
  font-size: 0.83rem;
  margin-bottom: 1.25rem;
}

.topic-remark-callout {
  margin-top: 0.35rem;
  padding: 0.32rem 0.6rem;
  border-radius: 0 4px 4px 0;
  font-size: 0.77rem;
  line-height: 1.45;
}

.topic-remark-issue {
  background: var(--red-bg);
  border-left: 2px solid var(--red-text);
  color: var(--red-text);
}

.topic-remark-info {
  background: #f3f4f6;
  border-left: 2px solid var(--border-strong);
  color: var(--ink-700);
}

.topic-status-stack {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}

.topic-status-meta {
  font-size: 0.72rem;
  color: var(--ink-500);
  line-height: 1.35;
}

.topic-last-status {
  font-size: 0.72rem;
  color: var(--ink-500);
  padding-top: 0.18rem;
  border-top: 1px dashed #e5e7eb;
  margin-top: 0.12rem;
}

.view-history-btn {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  height: 28px;
  padding: 0 0.65rem;
  border: 1px solid var(--border-strong);
  border-radius: 4px;
  background: #ffffff;
  color: var(--brand-navy);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
}

.view-history-btn:hover {
  background: #eff4f9;
  border-color: var(--brand-navy);
}

.portal-topic-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 1rem;
  flex-wrap: wrap;
  margin: 1.25rem 0 0.9rem;
}

.portal-topic-controls {
  display: flex;
  gap: 0.55rem;
  align-items: center;
  flex-wrap: nowrap;
}

/* Status Timeline Modal */
.portal-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(15, 23, 42, 0.52);
  z-index: 90;
  display: grid;
  place-items: center;
  padding: 1.25rem;
}

.portal-modal-card {
  width: 100%;
  max-width: 680px;
  max-height: 88vh;
  background: #ffffff;
  border: 1px solid var(--border);
  border-radius: 8px;
  box-shadow: 0 20px 45px rgba(15, 23, 42, 0.18);
  display: flex;
  flex-direction: column;
  overflow: hidden;
}

.portal-modal-head {
  padding: 1rem 1.35rem;
  border-bottom: 1px solid var(--border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 1rem;
}

.portal-modal-close {
  border: 1px solid var(--border);
  background: #ffffff;
  color: var(--ink-500);
  width: 28px;
  height: 28px;
  border-radius: 4px;
  font-size: 1.15rem;
  line-height: 1;
  cursor: pointer;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.portal-modal-close:hover {
  background: var(--bg-hover);
  color: var(--ink-900);
}

.portal-modal-body {
  padding: 1.25rem 1.35rem;
  overflow-y: auto;
  flex: 1;
}

.portal-modal-footer {
  padding: 0.8rem 1.35rem;
  border-top: 1px solid var(--border);
  background: #f9fafb;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.75rem;
}

.modal-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.75rem;
  padding: 0.85rem 1rem;
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  margin-bottom: 1.25rem;
}

.modal-summary-label {
  font-size: 0.69rem;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--ink-500);
}

.modal-summary-val {
  font-size: 0.83rem;
  font-weight: 600;
  color: var(--ink-900);
  margin-top: 0.15rem;
}

.status-timeline {
  position: relative;
  display: grid;
  gap: 0.9rem;
  margin-top: 0.75rem;
}

.status-timeline-item {
  display: grid;
  grid-template-columns: 24px 1fr;
  gap: 0.75rem;
  position: relative;
}

.status-tl-rail {
  display: flex;
  flex-direction: column;
  align-items: center;
}

.status-tl-node {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  font-size: 0.7rem;
  font-weight: 700;
  border: 1.5px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-500);
  flex-shrink: 0;
}

.status-tl-node.tl-verified {
  background: var(--green-bg);
  border-color: var(--green-text);
  color: var(--green-text);
}

.status-tl-node.tl-received {
  background: #eaf1f8;
  border-color: var(--brand-navy);
  color: var(--brand-navy);
}

.status-tl-node.tl-re_record {
  background: var(--red-bg);
  border-color: var(--red-text);
  color: var(--red-text);
}

.status-tl-line {
  flex: 1;
  width: 1.5px;
  background: var(--border);
  margin-top: 4px;
}

.status-timeline-item:last-child .status-tl-line {
  display: none;
}

.status-tl-card {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem 0.95rem;
  background: #ffffff;
}

.status-tl-card.latest {
  border-color: var(--border-strong);
  background: #fbfcfe;
}

.status-tl-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.status-tl-details {
  margin-top: 0.4rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem 1rem;
  font-size: 0.76rem;
  color: var(--ink-500);
}

.lifecycle-stage-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 0.5rem;
  margin-top: 0.65rem;
}

.lifecycle-stage-btn {
  text-align: left;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--border);
  border-radius: 5px;
  background: #f9fafb;
  color: var(--ink-500);
  font-family: inherit;
  cursor: pointer;
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  transition: border-color 0.14s ease, box-shadow 0.14s ease;
}

.lifecycle-stage-btn:hover {
  border-color: var(--brand-navy);
}

.lifecycle-stage-btn.st-done {
  border-color: var(--green-border);
  background: var(--green-bg);
  color: var(--green-text);
}

.lifecycle-stage-btn.st-issue {
  border-color: var(--red-border);
  background: var(--red-bg);
  color: var(--red-text);
}

.lifecycle-stage-btn.st-selected {
  box-shadow: 0 0 0 2px var(--brand-navy);
  border-color: var(--brand-navy);
}

.lifecycle-stage-title {
  font-size: 0.74rem;
  font-weight: 600;
}

.lifecycle-stage-when {
  font-size: 0.68rem;
  opacity: 0.9;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.stage-detail-box {
  margin-top: 0.75rem;
  padding: 0.8rem 0.95rem;
  border: 1px solid var(--border-strong);
  border-radius: 6px;
  background: #f8fafc;
  font-size: 0.8rem;
}

.inline-copy-btn {
  margin-left: 0.45rem;
  border: none;
  background: transparent;
  padding: 0.1rem 0.35rem;
  font-family: inherit;
  font-size: 0.72rem;
  font-weight: 500;
  color: var(--brand-navy);
  cursor: pointer;
  border-radius: 3px;
}

.inline-copy-btn:hover {
  background: #eff4f9;
}

.kyc-gallery-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(175px, 1fr));
  gap: 1.25rem;
  margin-top: 1rem;
}

.kyc-asset-item {
  border-top: 1px solid var(--border);
  padding-top: 0.75rem;
}

.kyc-asset-label {
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-500);
  margin-bottom: 0.5rem;
}

.kyc-asset-frame {
  height: 112px;
  display: flex;
  align-items: center;
  justify-content: flex-start;
  border: 1px solid var(--border);
  border-radius: 3px;
  padding: 0.5rem;
  background: #ffffff;
}

.kyc-asset-frame img {
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
}

/* =========================================================
   BUTTONS
   ========================================================= */
.action-cluster {
  display: flex;
  gap: 0.65rem;
  flex-wrap: wrap;
}

.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 0.45rem;
  height: 38px;
  padding: 0 1.15rem;
  border-radius: var(--radius);
  border: 1px solid transparent;
  font-family: inherit;
  font-size: 0.85rem;
  font-weight: 500;
  cursor: pointer;
}

.btn:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}

.btn-sm {
  height: 31px;
  padding: 0 0.75rem;
  font-size: 0.78rem;
}

.btn-primary {
  background: var(--brand-navy);
  color: #ffffff;
}

.btn-primary:hover:not(:disabled) {
  background: var(--brand-navy-dark);
}

.btn-secondary {
  background: #ffffff;
  color: var(--ink-700);
  border-color: var(--border-strong);
}

.btn-secondary:hover:not(:disabled) {
  background: var(--bg-hover);
  color: var(--ink-900);
}

.spinner {
  width: 15px;
  height: 15px;
  border: 2px solid rgba(255, 255, 255, 0.35);
  border-top-color: #ffffff;
  border-radius: 50%;
  animation: spin 0.7s linear infinite;
}

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

/* =========================================================
   RESPONSIVE BREAKPOINTS
   ========================================================= */
/* Clean Full-Screen Workspace Restore Splash (Prevents Login Flash on Refresh) */
.session-boot-overlay {
  position: fixed;
  inset: 0;
  z-index: 200;
  background: #ffffff;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 1.5rem;
}

html.session-restoring #sessionBootOverlay {
  display: flex;
}

html.session-restoring #portalTopbar,
html.session-restoring #pendingOfferScreen,
html.session-restoring #facultyProfilePortal,
html.session-restoring #wizardLayout {
  opacity: 0;
  pointer-events: none;
}

.session-boot-card {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 0.95rem;
  text-align: center;
  max-width: 300px;
  width: 100%;
}

.session-boot-bar {
  width: 180px;
  height: 3px;
  background: #e2e8f0;
  border-radius: 999px;
  overflow: hidden;
}

.session-boot-bar-fill {
  width: 45%;
  height: 100%;
  background: var(--brand-navy);
  border-radius: 999px;
  animation: bootSlide 1.05s ease-in-out infinite;
}

@keyframes bootSlide {
  0% { transform: translateX(-110%); }
  100% { transform: translateX(260%); }
}

.session-boot-text {
  font-size: 0.82rem;
  font-weight: 500;
  color: var(--ink-500);
}

/* OTP Login & Saved Draft Controls */
.login-inline-alert {
  display: flex;
  align-items: flex-start;
  gap: 0.65rem;
  padding: 0.82rem 0.9rem;
  border-radius: 7px;
  margin-bottom: 1.15rem;
  border: 1px solid var(--red-border);
  background: var(--red-bg);
  color: var(--red-text);
  font-size: 0.81rem;
  line-height: 1.48;
}

.login-inline-alert.alert-info,
.login-inline-alert.alert-warning {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #78350f;
}

.login-inline-alert.alert-success {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.login-inline-alert-icon {
  flex-shrink: 0;
  margin-top: 1px;
}

.login-inline-alert-content {
  flex: 1;
  min-width: 0;
}

.login-inline-alert-title {
  font-weight: 700;
  font-size: 0.82rem;
  margin-bottom: 0.15rem;
}

.login-inline-alert-msg {
  font-size: 0.79rem;
  opacity: 0.94;
}

.login-inline-alert-close {
  border: none;
  background: transparent;
  color: inherit;
  font-size: 1.05rem;
  line-height: 1;
  padding: 0 0.15rem;
  cursor: pointer;
  opacity: 0.7;
}

.login-inline-alert-close:hover {
  opacity: 1;
}

.session-restore-box {
  display: flex;
  align-items: center;
  gap: 0.65rem;
  padding: 0.85rem 1rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  background: #f8fafc;
  color: var(--ink-700);
  font-size: 0.84rem;
  font-weight: 500;
  margin-bottom: 1rem;
}

.otp-sent-banner {
  background: #eff6ff;
  border: 1px solid #bfdbfe;
  border-radius: 6px;
  padding: 0.7rem 0.85rem;
  font-size: 0.83rem;
  color: #1e3a8a;
}

.otp-code-input {
  text-align: center;
  font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace !important;
  font-size: 1.4rem !important;
  font-weight: 700;
  letter-spacing: 0.35em;
  height: 48px !important;
}

.otp-actions-row {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 0.5rem;
  margin-top: 0.25rem;
}

.otp-text-btn {
  background: transparent;
  border: none;
  padding: 0.2rem 0;
  font-family: inherit;
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--brand-navy);
  cursor: pointer;
}

.otp-text-btn:disabled {
  color: var(--ink-400);
  cursor: not-allowed;
}

.saved-sig-card {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  border: 1px solid var(--green-border);
  background: var(--green-bg);
  border-radius: 8px;
  padding: 1rem 1.15rem;
  margin-bottom: 1rem;
}

.saved-sig-preview {
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.75rem;
  display: grid;
  place-items: center;
  min-height: 90px;
}

.saved-sig-preview img {
  max-width: 260px;
  max-height: 90px;
  object-fit: contain;
}

/* Domain Deadlines & Extension Request Callouts */
.deadline-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.3rem;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.14rem 0.5rem;
  border-radius: 999px;
  border: 1px solid var(--border);
  background: var(--bg-subtle);
  color: var(--ink-700);
  white-space: nowrap;
}

.deadline-pill.dl-track {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.deadline-pill.dl-soon {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.deadline-pill.dl-overdue {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.deadline-pill.dl-pending {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #92400e;
}

.deadline-pill.dl-rejected {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.deadline-action-cluster {
  display: flex;
  align-items: center;
  gap: 0.45rem;
  flex-wrap: wrap;
}

.deadline-action-btn {
  border: 1px solid var(--border-strong);
  background: #ffffff;
  color: var(--ink-800);
  font-family: inherit;
  font-size: 0.75rem;
  font-weight: 600;
  padding: 0.34rem 0.68rem;
  border-radius: 5px;
  cursor: pointer;
  white-space: nowrap;
  transition: all 0.12s ease;
}

.deadline-action-btn:hover {
  border-color: var(--brand-navy);
  color: var(--brand-navy);
  background: #f8fafc;
}

.deadline-action-btn.primary {
  background: var(--brand-navy);
  border-color: var(--brand-navy);
  color: #ffffff;
}

.deadline-action-btn.primary:hover {
  background: #062f5c;
  color: #ffffff;
}

.deadline-ext-banner {
  margin: 0.75rem 1.25rem 0.25rem;
  padding: 0.65rem 0.85rem;
  border-radius: 6px;
  border: 1px solid var(--border);
  font-size: 0.79rem;
  line-height: 1.5;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 0.75rem;
  flex-wrap: wrap;
}

.deadline-ext-banner.ext-pending {
  background: #fffbeb;
  border-color: #fcd34d;
  color: #78350f;
}

.deadline-ext-banner.ext-approved {
  background: var(--green-bg);
  border-color: var(--green-border);
  color: var(--green-text);
}

.deadline-ext-banner.ext-rejected {
  background: var(--red-bg);
  border-color: var(--red-border);
  color: var(--red-text);
}

.deadline-ext-form {
  background: #f8fafc;
  border: 1px solid var(--border);
  border-radius: 6px;
  padding: 0.9rem 1rem;
  margin-bottom: 1.15rem;
}

.deadline-ext-form-grid {
  display: grid;
  grid-template-columns: 210px minmax(0, 1fr);
  gap: 0.75rem;
  margin-top: 0.65rem;
}

.deadline-ext-field label {
  display: block;
  font-size: 0.74rem;
  font-weight: 600;
  color: var(--ink-700);
  margin-bottom: 0.28rem;
}

.deadline-ext-field input,
.deadline-ext-field textarea {
  width: 100%;
  border: 1px solid var(--border-strong);
  border-radius: 5px;
  padding: 0.45rem 0.6rem;
  font-family: inherit;
  font-size: 0.81rem;
  color: var(--ink-900);
  background: #ffffff;
}

@media (max-width: 960px) {
  .step-login-shell {
    grid-template-columns: 1fr;
  }

  .login-brand-panel {
    display: none;
  }

  .login-mobile-logo {
    display: block;
  }

  .wizard-shell,
  .portal-shell {
    flex-direction: column;
  }

  .wizard-sidebar,
  .portal-sidebar {
    width: 100%;
    height: auto;
    position: static;
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .portal-nav {
    flex-direction: row;
    flex-wrap: wrap;
    gap: 0.25rem;
    padding: 0.5rem 1.25rem;
  }

  .portal-nav .rail-group-label {
    display: none;
  }

  .portal-tab {
    width: auto;
    border-left: none;
    border-bottom: 2px solid transparent;
    border-radius: 0;
    padding: 0.45rem 0.65rem;
  }

  .portal-tab.active {
    border-left-color: transparent;
    border-bottom-color: var(--brand-navy);
  }

  .rail-steps,
  .sidebar-help {
    display: none;
  }

  .pane-content,
  .sticky-action-bar,
  .alert-host,
  .portal-workspace-head,
  .portal-workspace-body {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .editorial-stat-row,
  .editorial-grid-2,
  .kpi-grid-4,
  .overview-split,
  .agreement-reader-layout {
    grid-template-columns: 1fr;
    gap: 1.15rem;
  }

  .lifecycle-rail {
    grid-template-columns: 1fr;
    gap: 0.75rem;
  }

  .lifecycle-connector {
    display: none;
  }

  .agreement-inspector {
    position: static;
  }

  .agreement-paper {
    padding: 1.35rem;
  }

  .portal-topic-controls {
    width: 100%;
    flex-wrap: wrap;
  }

  .modal-summary-grid,
  .lifecycle-stage-grid {
    grid-template-columns: 1fr;
  }

  .editorial-stat-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
    padding: 0.9rem 0;
  }

  .editorial-stat-cell + .editorial-stat-cell {
    padding-left: 0;
  }

  .editorial-stat-cell:last-child {
    border-bottom: none;
  }

  .corp-section {
    grid-template-columns: 1fr;
    gap: 0.85rem;
  }
}

@media (max-width: 680px) {
  .offer-document,
  .agreement-sheet-wrap,
  .agreement-wrap {
    padding: 1.25rem;
  }

  .offer-summary-strip,
  .offer-parties-grid,
  .form-grid-2,
  .sig-sliders,
  .sig-canvases,
  .summary-grid,
  .agreement-signoff-grid {
    grid-template-columns: 1fr;
  }

  .offer-summary-cell {
    border-right: none;
    border-bottom: 1px solid var(--border);
  }

  .offer-summary-cell:last-child {
    border-bottom: none;
  }

  .span-2 {
    grid-column: span 1;
  }

  .brand-divider,
  .brand-portal-label,
  .session-id {
    display: none;
  }
}
