:root {
  --vsr-ink: #1b2733;
  --vsr-muted: #5b6774;
  --vsr-accent: #0f6cbd;
  --vsr-accent-dark: #0b4d87;
  --vsr-brand: #6a3b24;
  --vsr-gold: #c98a2e;
  --vsr-panel: rgba(255, 255, 255, 0.96);
  --vsr-border: #d9e3ef;
  --vsr-soft: #eef4fa;
  --vsr-shadow: 0 24px 60px rgba(13, 27, 42, 0.16);
}

body.vsr-portal {
  margin: 0;
  padding: 0;
  color: var(--vsr-ink);
  font-family: Arial, sans-serif;
  background: #e9ebee;
  min-height: 100vh;
}

.vsr-shell {
  position: relative;
  width: 100%;
  max-width: none;
  min-height: calc(100vh - 40px);
  margin: 0;
  padding: 0 0 40px;
  box-sizing: border-box;
}

.vsr-gate {
  min-height: calc(100vh - 132px);
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
}

.vsr-gate__panel {
  width: 522px;
  max-width: calc(100vw - 80px);
  min-height: 277px;
  background: #ffffff;
  border: 1px solid #e3e3e3;
  display: flex;
  align-items: center;
  justify-content: center;
  box-shadow: none;
}

.vsr-gate__recaptcha {
  transform: scale(1);
  transform-origin: center;
}

.vsr-gate__recaptcha--placeholder {
  width: 278px;
}

.vsr-recaptcha-placeholder {
  width: 278px;
  height: 78px;
  border: 1px solid #d9d9d9;
  background: #ffffff;
  display: grid;
  grid-template-columns: 34px 1fr 78px;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  box-sizing: border-box;
  color: #444444;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.08);
}

.vsr-recaptcha-placeholder__box {
  width: 24px;
  height: 24px;
  border: 2px solid #5c5c5c;
  background: #ffffff;
}

.vsr-recaptcha-placeholder__label {
  font-size: 14px;
  color: #333333;
  text-align: left;
}

.vsr-recaptcha-placeholder__meta {
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  font-size: 9px;
  color: #7a7a7a;
  line-height: 1.25;
}

.vsr-recaptcha-placeholder__meta strong {
  font-size: 11px;
  font-weight: 700;
  color: #5f6368;
}

.vsr-wrap {
  position: relative;
  width: 100%;
  max-width: 1180px;
  margin: 26px auto 0;
  padding: 18px 18px 28px;
  border: 1px solid #d9dde2;
  border-radius: 0;
  background: #fff;
  box-shadow: none;
  box-sizing: border-box;
}

.vsr-wrap--hidden {
  display: none;
}

.vsr-page-shell {
  width: 100%;
  max-width: 1360px;
  margin: 0 auto;
  padding: 28px 24px 84px;
  box-sizing: border-box;
}

.vsr-page {
  width: 100%;
  max-width: 1024px;
  margin: 0 auto;
  padding: 18px 26px 120px;
  box-sizing: border-box;
}

.vsr-status-menu {
  display: flex;
  flex-wrap: wrap;
  gap: 0;
  margin: 0 0 22px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
}

.vsr-status-menu__item {
  display: inline-flex;
  align-items: center;
  min-height: 42px;
  padding: 0 16px;
  border-right: 1px solid #e5e5e5;
  color: #46627d;
  text-decoration: none;
  font-size: 12px;
  font-weight: 700;
  transition: background-color 140ms ease, color 140ms ease;
}

.vsr-status-menu__item:last-child {
  border-right: 0;
}

.vsr-status-menu__item:hover,
.vsr-status-menu__item:focus {
  background: #f5f9fd;
  color: #0f6cbd;
  text-decoration: none;
}

.vsr-page-title {
  margin: 0;
  color: #3e3e3e;
  font-size: 18px;
  line-height: 1.25;
  font-weight: 400;
}

.vsr-page-copy {
  max-width: 760px;
  margin: 10px 0 0;
  color: #6b6b6b;
  font-size: 13px;
  line-height: 1.6;
}

.vsr-page-heading {
  margin-bottom: 22px;
}

.vsr-panel {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  max-width: 960px;
  margin: 0 auto;
  padding: 12px;
}

.vsr-auth-grid,
.vsr-status-grid {
  display: grid;
  grid-template-columns: minmax(320px, 1.1fr) minmax(320px, 0.9fr);
  gap: 20px;
}

.vsr-status-hero {
  display: grid;
  grid-template-columns: minmax(420px, 1.2fr) minmax(280px, 0.8fr);
  gap: 20px;
  margin-bottom: 20px;
}

.vsr-sidecard,
.vsr-auth-card,
.vsr-status-card {
  background: #ffffff;
  border: 1px solid #d9d9d9;
  padding: 22px 24px;
}

.vsr-sidecard__eyebrow {
  display: inline-block;
  margin-bottom: 10px;
  color: #5d6a76;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.vsr-sidecard h2,
.vsr-auth-card h2,
.vsr-status-card h2 {
  margin: 0 0 10px;
  color: #3d3d3d;
  font-size: 24px;
  font-weight: 400;
  line-height: 1.2;
}

.vsr-sidecard p,
.vsr-auth-card__copy,
.vsr-status-copy {
  margin: 0 0 16px;
  color: #666666;
  font-size: 12px;
  line-height: 1.6;
}

.vsr-sidecard__list {
  display: grid;
  gap: 12px;
}

.vsr-sidecard__list div {
  display: grid;
  gap: 3px;
  padding-top: 12px;
  border-top: 1px solid #ececec;
}

.vsr-sidecard__list strong {
  color: #4a4a4a;
  font-size: 12px;
  font-weight: 700;
}

.vsr-sidecard__list span {
  color: #6c6c6c;
  font-size: 12px;
  line-height: 1.5;
}

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

.vsr-auth-card__actions,
.vsr-status-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-top: 8px;
}

.vsr-status-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(180px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.vsr-status-meta--stacked {
  grid-template-columns: 1fr;
  margin-bottom: 0;
}

.vsr-status-meta div {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #f6f6f6;
  border: 1px solid #ebebeb;
}

.vsr-status-meta span {
  color: #6a6a6a;
  font-size: 11px;
  text-transform: uppercase;
}

.vsr-status-meta strong {
  color: #404040;
  font-size: 14px;
  font-weight: 700;
}

.vsr-status-card--primary {
  background: linear-gradient(180deg, #ffffff 0%, #f7fbff 100%);
}

.vsr-status-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
  margin-bottom: 20px;
}

.vsr-status-details-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 20px;
  margin-bottom: 20px;
}

.vsr-status-metric {
  display: grid;
  gap: 8px;
  padding: 16px 18px;
  background: #ffffff;
  border: 1px solid #d9d9d9;
}

.vsr-status-metric span {
  color: #6a6a6a;
  font-size: 11px;
  text-transform: uppercase;
}

.vsr-status-metric strong {
  color: #3d3d3d;
  font-size: 15px;
  font-weight: 700;
}

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

.vsr-detail-grid div,
.vsr-detail-block {
  display: grid;
  gap: 6px;
  padding: 12px 14px;
  background: #f6f6f6;
  border: 1px solid #ebebeb;
}

.vsr-detail-grid span,
.vsr-detail-block span {
  color: #6a6a6a;
  font-size: 11px;
  text-transform: uppercase;
}

.vsr-detail-grid strong {
  color: #404040;
  font-size: 13px;
  font-weight: 700;
  line-height: 1.5;
}

.vsr-detail-block {
  margin-top: 12px;
}

.vsr-detail-block p {
  margin: 0;
  color: #4a4a4a;
  font-size: 12px;
  line-height: 1.6;
}

.vsr-link-button--primary {
  background: #0f6cbd;
  border-color: #0f6cbd;
  color: #ffffff;
}

.vsr-footer-shell {
  position: fixed;
  left: 0;
  bottom: 0;
  min-height: 44px;
  padding: 10px 18px 12px;
  background: transparent;
  display: block;
  box-sizing: border-box;
  font-size: 10px;
  color: #758392;
  z-index: 15;
}

.vsr-footer-shell__left {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 4px;
}

.vsr-footer-shell__line {
  display: flex;
  align-items: center;
  gap: 8px;
}

.vsr-footer-shell__sap {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 34px;
  height: 16px;
  background: linear-gradient(135deg, #39b1e6 0%, #1691d5 100%);
  clip-path: polygon(0 0, 100% 0, 79% 100%, 0 100%);
  color: #ffffff;
  font-size: 9px;
  font-weight: 700;
}

.vsr-form-intro {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 12px;
}

.vsr-form-title {
  margin: 0;
  color: #2e3f4f;
  font-size: 16px;
  font-weight: 700;
}

.vsr-form-intro--document {
  align-items: flex-start;
}

.vsr-page h1,
.vsr-page h2,
.vsr-page h3,
.vsr-wrap h1,
.vsr-wrap h2,
.vsr-wrap h3 {
  color: #10263e;
}

.vsr-sub {
  margin: 0 0 14px;
  color: var(--vsr-muted);
  line-height: 1.65;
}

.vsr-note {
  margin: 0 0 14px;
  padding: 10px 12px;
  border-radius: 0;
  border: 1px solid #e0e3e6;
  background: #f8f8f8;
  color: #425466;
  line-height: 1.6;
  font-size: 11px;
}

.vsr-note--document {
  background: #fafafa;
  border: 1px solid #ececec;
  color: #445566;
  padding: 10px 12px;
}

.vsr-note--document p {
  margin: 0 0 8px;
}

.vsr-note--document p:last-child {
  margin-bottom: 0;
}

.vsr-progress {
  display: none;
}

.vsr-pill {
  appearance: none;
  width: auto;
  margin: 0;
  padding: 10px 14px;
  border: 1px solid var(--vsr-border);
  border-radius: 999px;
  background: #fff;
  color: #35506d;
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: all 0.18s ease;
}

.vsr-pill span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  margin-right: 8px;
  border-radius: 999px;
  background: #eef4fa;
  color: #173455;
  font-size: 12px;
}

.vsr-pill.active {
  border-color: transparent;
  background: linear-gradient(135deg, var(--vsr-accent), var(--vsr-accent-dark));
  color: #fff;
  box-shadow: 0 12px 28px rgba(15, 108, 189, 0.22);
}

.vsr-pill.active span {
  background: rgba(255, 255, 255, 0.18);
  color: #fff;
}

.vsr-step {
  display: block;
  margin-bottom: 12px;
  padding: 0 0 10px;
  border: 1px solid #ededed;
  border-radius: 0;
  background: #fff;
}

.vsr-step h2 {
  margin-top: 0;
  margin-bottom: 12px;
  padding: 9px 12px;
  background: #f0f0f0;
  border-bottom: 1px solid #e5e5e5;
  font-size: 12px;
  font-weight: 700;
  color: #455564;
}

.vsr-step h3 {
  margin: 16px 12px 8px;
  font-size: 12px;
  color: #4b5e70;
}

.vsr-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 22px;
  padding: 0 12px;
  align-items: start;
}

.vsr-grid label,
.vsr-step > label {
  display: flex;
  flex-direction: column;
  margin: 0 12px 10px;
  color: #516273;
  font-size: 12px;
  font-weight: 400;
  line-height: 1.45;
  min-width: 0;
}

.vsr-step > .vsr-sub,
.vsr-step > .vsr-note,
.vsr-step > .vsr-categories,
.vsr-step > .vsr-table,
.vsr-step > #document-upload-message,
.vsr-step > #upload-document-btn,
.vsr-step > .vsr-recaptcha {
  margin-left: 14px;
  margin-right: 14px;
}

.vsr-page input[type="text"],
.vsr-page input[type="email"],
.vsr-page input[type="password"],
.vsr-page input[type="date"],
.vsr-page input[type="number"],
.vsr-page input[type="file"],
.vsr-page select,
.vsr-page textarea,
.vsr-wrap input[type="text"],
.vsr-wrap input[type="email"],
.vsr-wrap input[type="password"],
.vsr-wrap input[type="date"],
.vsr-wrap input[type="number"],
.vsr-wrap input[type="file"],
.vsr-wrap select,
.vsr-wrap textarea {
  width: 100%;
  margin-top: 6px;
  padding: 7px 8px;
  border: 1px solid #d6dbe1;
  border-radius: 0;
  background: #fff;
  color: var(--vsr-ink);
  box-sizing: border-box;
  transition: border-color 0.18s ease, box-shadow 0.18s ease;
  font-size: 12px;
  min-height: 32px;
}

.vsr-page input[type="text"]:focus,
.vsr-page input[type="email"]:focus,
.vsr-page input[type="password"]:focus,
.vsr-page input[type="date"]:focus,
.vsr-page input[type="number"]:focus,
.vsr-page input[type="file"]:focus,
.vsr-page select:focus,
.vsr-page textarea:focus,
.vsr-wrap input[type="text"]:focus,
.vsr-wrap input[type="email"]:focus,
.vsr-wrap input[type="password"]:focus,
.vsr-wrap input[type="date"]:focus,
.vsr-wrap input[type="number"]:focus,
.vsr-wrap input[type="file"]:focus,
.vsr-wrap select:focus,
.vsr-wrap textarea:focus {
  outline: none;
  border-color: #7baed9;
  box-shadow: 0 0 0 4px rgba(15, 108, 189, 0.12);
}

.vsr-page textarea,
.vsr-wrap textarea {
  min-height: 88px;
  resize: vertical;
}

.vsr-page input[type="checkbox"],
.vsr-wrap input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 0 10px 0 0;
  vertical-align: middle;
  accent-color: var(--vsr-accent);
}

.vsr-page button,
.vsr-wrap button {
  appearance: none;
  border: 0;
  border-radius: 0;
  padding: 7px 14px;
  background: #0f6cbd;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  cursor: pointer;
  transition: transform 0.18s ease, box-shadow 0.18s ease, opacity 0.18s ease;
}

.vsr-auth-card button,
.vsr-status-actions .vsr-link-button,
.vsr-auth-card .vsr-link-button {
  min-height: 36px;
}

.vsr-page button:hover,
.vsr-page button:focus,
.vsr-wrap button:hover,
.vsr-wrap button:focus {
  box-shadow: 0 8px 18px rgba(15, 108, 189, 0.18);
}

#upload-document-btn {
  margin-bottom: 14px;
}

.vsr-categories {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 10px;
}

.vsr-cat-group {
  padding: 10px;
  border: 1px solid #e1e5e8;
  border-radius: 0;
  background: #fafafa;
}

.vsr-cat-group label {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin: 8px 0;
  color: #314861;
  font-size: 11px;
  font-weight: 600;
}

.vsr-cat-group input[type="checkbox"] {
  width: 18px;
  height: 18px;
  margin: 1px 0 0;
  flex-shrink: 0;
}

.vsr-badge {
  display: inline-block;
  padding: 5px 10px;
  border-radius: 999px;
  color: #fff;
  font-size: 12px;
  font-weight: 700;
  text-transform: capitalize;
}

.vsr-footer-actions {
  display: flex;
  gap: 12px;
  justify-content: flex-end;
  align-items: center;
  margin-top: 12px;
}

.vsr-footer-actions button {
  flex: 0 0 auto;
}

.vsr-footer-actions--single {
  justify-content: flex-end;
  margin-top: 24px;
}

.vsr-footer-actions--single button {
  flex: 0 0 auto;
  min-width: 96px;
}

#prev-step {
  background: linear-gradient(180deg, #edf3f9 0%, #dde8f2 100%);
  color: #183755;
}

#save-step {
  background: #6a3b24;
}

#save-continue {
  background: #0f6cbd;
}

.vsr-link-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 128px;
  padding: 7px 14px;
  border: 1px solid #d7e0ea;
  background: #ffffff;
  color: #49627d;
  text-decoration: none;
  font-size: 11px;
  font-weight: 700;
}

.vsr-table {
  width: 100%;
  border-collapse: collapse;
  overflow: hidden;
  border-radius: 18px;
  border-style: hidden;
  box-shadow: 0 0 0 1px #dfe7f0;
}

.vsr-table th,
.vsr-table td {
  padding: 12px 14px;
  border: 1px solid #dfe7f0;
  text-align: left;
  vertical-align: top;
}

.vsr-table thead th {
  background: #f3f7fb;
  color: #25405f;
  font-size: 13px;
  font-weight: 800;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.vsr-table tbody tr:nth-child(even) {
  background: #fafcfe;
}

.vsr-table a {
  color: var(--vsr-accent);
  font-weight: 700;
  text-decoration: none;
}

.vsr-table a:hover,
.vsr-table a:focus {
  text-decoration: underline;
}

@media (max-width: 900px) {
  .vsr-shell {
    padding: 18px 14px 32px;
  }

  .vsr-wrap {
    padding: 12px;
  }

  .vsr-form-intro {
    flex-direction: column;
    align-items: flex-start;
  }

  .vsr-auth-grid,
  .vsr-status-hero,
  .vsr-status-strip,
  .vsr-status-details-grid,
  .vsr-status-grid,
  .vsr-status-meta,
  .vsr-detail-grid {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 640px) {
  .vsr-gate__panel {
    min-height: 220px;
    padding: 16px;
  }

  .vsr-gate__recaptcha {
    transform: scale(0.88);
  }

  .vsr-grid,
  .vsr-categories {
    grid-template-columns: 1fr;
  }

  .vsr-footer-shell {
    position: static;
  }

  .vsr-status-menu {
    flex-direction: column;
  }

  .vsr-status-menu__item {
    border-right: 0;
    border-bottom: 1px solid #e5e5e5;
  }

  .vsr-status-menu__item:last-child {
    border-bottom: 0;
  }

  .vsr-footer-actions {
    flex-direction: column;
    align-items: stretch;
  }

  .vsr-footer-actions button,
  .vsr-link-button {
    width: 100%;
    min-width: 0;
  }

  .vsr-table {
    display: block;
    overflow-x: auto;
  }
}
