@font-face {
  font-family: "Inter";
  src: url("/static/assets/fonts/Inter-Regular.woff2") format("woff2");
  font-weight: 400;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/assets/fonts/Inter-Medium.woff2") format("woff2");
  font-weight: 500;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/assets/fonts/Inter-SemiBold.woff2") format("woff2");
  font-weight: 600;
  font-style: normal;
  font-display: swap;
}

@font-face {
  font-family: "Inter";
  src: url("/static/assets/fonts/Inter-Bold.woff2") format("woff2");
  font-weight: 700;
  font-style: normal;
  font-display: swap;
}

:root {
  --cobalt: #172ea1;
  --alice-blue: #edf0fc;
  --azure: #e9fbf9;
  --ink: #0d1333;
  --secondary: #53576c;
  --border: #cbcedc;
  --disabled-text: #a1a1aa;
  --disabled-bg: #e4e4e7;
  --danger: #b42318;
  --radius: 8px;
}

* { box-sizing: border-box; }

html, body {
  margin: 0;
  min-height: 100%;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, Arial, sans-serif;
  background: #fff;
  color: var(--ink);
}

button, input { font: inherit; }

.app-header {
  height: 69px;
  display: flex;
  align-items: center;
  padding: 0 80px;
  border-bottom: 1px solid var(--border);
  background: #fff;
}

.brand-wrap {
  width: 138px;
  height: 44px;
  display: flex;
  align-items: center;
  overflow: hidden;
}

.brand-wrap img {
  display: block;
  width: 138px;
  height: auto;
  object-fit: contain;
}

.app-main {
  min-height: calc(100dvh - 69px);
  display: grid;
  grid-template-columns: 511px minmax(0, 1fr);
}

.app-main[data-step="p1"] { grid-template-columns: 500px minmax(0, 1fr); }
.app-main[data-step="p2"] { grid-template-columns: 500px minmax(0, 1fr); }
.app-main[data-step="p3"] { grid-template-columns: 500px minmax(0, 1fr); }

.journey-panel {
  min-height: calc(100dvh - 69px);
  background: var(--azure);
}

.journey-content { min-height: calc(100dvh - 69px); }

.journey-illustration {
  display: block;
  object-fit: contain;
  object-position: left center;
}

.journey-step {
  margin: 0 0 14px;
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--secondary);
}

.journey-title {
  margin: 0 0 13px;
  font-size: 24px;
  line-height: 160%;
  font-weight: 600;
  color: var(--cobalt);
}

.journey-copy {
  width: 320px;
  margin: 0;
  font-size: 18px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--ink);
}

.journey-progress {
  display: flex;
  gap: 9px;
}

.progress-dot {
  display: block;
  width: 109px;
  height: 4px;
  border-radius: 12px;
  background: var(--border);
}

.progress-dot.is-complete { background: var(--cobalt); }

.progress-dot.is-active {
  overflow: hidden;
  position: relative;
}

.progress-dot.is-active::before {
  content: "";
  position: absolute;
  inset: 0 50% 0 0;
  background: var(--cobalt);
}

.app-main[data-step="p1"] .journey-content { padding: 87px 82px 0; }
.app-main[data-step="p1"] .journey-illustration { width: 282px; height: 283px; margin: 0 0 20px -16px; }
.app-main[data-step="p1"] .journey-text-block { margin-top: -12px; }
.app-main[data-step="p1"] .journey-progress { margin-top: 58px; }

.app-main[data-step="p2"] .journey-content { padding: 92px 84px 0; }
.app-main[data-step="p2"] .journey-illustration { width: 160px; height: 270px; margin: 0 0 20px -8px; }
.app-main[data-step="p2"] .journey-progress { margin-top: 38px; }

.app-main[data-step="p3"] .journey-content,
.app-main[data-step="handoff"] .journey-content { padding: 100px 82px 0; }

.app-main[data-step="p3"] .journey-illustration,
.app-main[data-step="handoff"] .journey-illustration { width: 281px; height: 244px; margin: 0 0 24px -8px; }

.app-main[data-step="p3"] .journey-progress,
.app-main[data-step="handoff"] .journey-progress { margin-top: 40px; }

.form-panel {
  background: #fff;
  display: flex;
  justify-content: center;
  align-items: flex-start;
}

.app-main[data-step="p1"] .form-panel { padding: 65px 64px 80px; }
.app-main[data-step="p2"] .form-panel { padding: 68px 64px 80px; }
.app-main[data-step="p3"] .form-panel,
.app-main[data-step="handoff"] .form-panel { padding: 103px 64px 70px; }

.form-shell { width: min(716px, 100%); }

.assistive-message {
  min-height: 20px;
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
}

.screen { display: none; }
.screen.is-active { display: block; }

.meta-step {
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.01em;
  text-transform: uppercase;
  color: var(--secondary);
}

.screen-heading {
  margin: 0 0 42px;
  font-size: 20px;
  line-height: 160%;
  font-weight: 600;
  text-transform: uppercase;
  color: var(--ink);
}

#screenP2 .screen-heading,
#screenP3 .screen-heading { margin-bottom: 24px; }

.sub-copy {
  margin: 0 0 8px;
  font-weight: 500;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.005em;
  color: var(--secondary);
}

.field-label {
  display: block;
  margin: 0 0 8px;
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.005em;
  color: var(--secondary);
}

.text-input {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  color: var(--ink);
  font-size: 18px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.text-input:focus,
.otp-input:focus,
.btn:focus-visible,
.text-btn:focus-visible,
.mobile-back:focus-visible {
  outline: 2px solid #6379e9;
  outline-offset: 2px;
}

.info-line {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  color: var(--secondary);
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
  letter-spacing: 0.005em;
}

.info-icon {
  width: 16px;
  height: 16px;
  border: 1.5px solid #53576c;
  border-radius: 999px;
  display: inline-grid;
  place-items: center;
  flex: 0 0 16px;
  margin-top: 3px;
  font-size: 11px;
  color: #53576c;
}

.field-help {
  margin: 0;
  color: var(--secondary);
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
}

.field-error {
  min-height: 20px;
  margin: 6px 0 0;
  color: var(--danger);
  font-size: 13px;
  line-height: 150%;
}

.otp-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 12px;
  width: 100%;
}

.otp-input {
  width: 100%;
  height: 52px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: #fff;
  text-align: center;
  color: var(--ink);
  font-weight: 500;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.005em;
}

.otp-support { margin-top: 12px; min-height: 44px; }

.text-btn {
  margin: 0;
  padding: 0;
  border: 0;
  background: transparent;
  color: var(--cobalt);
  font-size: 14px;
  line-height: 160%;
  font-weight: 500;
  cursor: pointer;
}

.text-btn[disabled] { color: var(--disabled-text); cursor: not-allowed; }

.poc-helper {
  margin: 0 0 8px;
  color: var(--secondary);
  font-size: 12px;
  line-height: 150%;
  display: none;
}

.poc-helper.is-visible { display: block; }

.app-main[data-step="p2"] #otpHelper {
  margin: 0 0 6px;
  font-size: 11px;
  line-height: 140%;
}

.app-main[data-step="p2"] .otp-support {
  margin-top: 8px;
  min-height: 20px;
  display: flex;
  align-items: center;
  gap: 8px;
}

.app-main[data-step="p2"] #otpTimer {
  margin: 0;
  font-size: 12px;
  line-height: 140%;
}

.app-main[data-step="p2"] #resendOtpButton {
  margin: 0;
  font-size: 12px;
  line-height: 140%;
}

.app-main[data-step="p2"] #otpForm .action-row { margin-top: 8px; }

.action-row {
  display: grid;
  grid-template-columns: 205px 1fr;
  gap: 160px;
  margin-top: 40px;
  align-items: center;
}

.action-row-single {
  display: flex;
  justify-content: flex-end;
  margin-top: 42px;
}

.app-main[data-step="p1"] .action-row-single { margin-top: 14px; }

.btn {
  height: 52px;
  border-radius: var(--radius);
  font-size: 18px;
  line-height: 160%;
  font-weight: 600;
  letter-spacing: 0.01em;
  cursor: pointer;
}

.btn-back-fixed { width: 205px; }
.btn-primary-wide { width: 350px; }

.btn-primary {
  border: 0;
  background: var(--cobalt);
  color: #fff;
}

.btn-primary:hover { background: #6379e9; box-shadow: 0 5px 10px rgba(99, 121, 233, 0.2); }

.btn-secondary {
  border: 1px solid var(--cobalt);
  background: #fff;
  color: var(--cobalt);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.btn-secondary:hover { background: var(--alice-blue); }

.btn[disabled] {
  border-color: var(--disabled-bg);
  background: var(--disabled-bg);
  color: var(--disabled-text);
  box-shadow: none;
  cursor: not-allowed;
}

.phone-wrap {
  display: grid;
  grid-template-columns: 142px 1fr;
  gap: 8px;
}

.phone-prefix {
  height: 52px;
  padding: 0 12px;
  border: 1px solid var(--border);
  border-radius: var(--radius);
  background: var(--disabled-bg);
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--disabled-text);
  font-weight: 500;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.005em;
}

.flag-india {
  width: 28px;
  height: 28px;
  flex: 0 0 28px;
  border-radius: 999px;
  border: 1px solid #d1d5db;
  background: linear-gradient(to bottom, #ff9933 0 33.33%, #ffffff 33.33% 66.66%, #138808 66.66% 100%);
}

.checkbox-row {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  margin-top: 12px;
  color: var(--secondary);
  font-weight: 500;
  font-size: 18px;
  line-height: 160%;
  letter-spacing: 0.005em;
}

.terms-copy {
  margin: 40px 0 0;
  text-align: center;
  font-weight: 500;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.005em;
  color: var(--secondary);
}

.terms-copy a {
  color: var(--cobalt);
  text-decoration: none;
  font-weight: 600;
}

@media (min-width: 768px) {
  .app-main[data-step="p3"] .form-shell { width: min(700px, 100%); }
  .app-main[data-step="p3"] #globalMessage { display: none; }

  .app-main[data-step="p3"] #screenP3 .screen-heading { margin-bottom: 33px; }
  .app-main[data-step="p3"] #screenP3 label[for="fullNameInput"] { margin-bottom: 2px; }

  .app-main[data-step="p3"] #screenP3 label[for="phoneInput"] {
    margin-top: 46px;
    margin-bottom: 0;
  }

  .app-main[data-step="p3"] #screenP3 .checkbox-row { margin-top: 24px; }

  .app-main[data-step="p3"] #screenP3 label[for="emailInput"] {
    margin-top: 35px;
    margin-bottom: 1px;
  }

  .app-main[data-step="p3"] #screenP3 #emailInput + .field-help { margin-top: 11px; }
  .app-main[data-step="p3"] #screenP3 #profileError { min-height: 0; margin: 0; }
  .app-main[data-step="p3"] #screenP3 .action-row { margin-top: 32px; }
  .app-main[data-step="p3"] #screenP3 .terms-copy { margin-top: 48px; }
}

.mobile-back { display: none; }

.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
  border: 0;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .app-header { padding-left: 40px; padding-right: 40px; }
  .app-main { grid-template-columns: 42% 58%; }
  .journey-panel { padding-left: 42px; padding-right: 32px; }
  .journey-copy { width: 100%; }
  .form-panel { padding-left: 48px !important; padding-right: 48px !important; }
  .action-row { grid-template-columns: 190px 1fr; gap: 72px; }
}

@media (max-width: 767px) {
  .app-header, .journey-panel { display: none; }
  .app-main { display: block; min-height: 100dvh; }

  .form-panel {
    min-height: 100dvh;
    padding: 60px 16px 112px !important;
    display: block;
  }

  .app-main[data-step="p2"] .form-panel,
  .app-main[data-step="p3"] .form-panel {
    padding-top: 4px !important;
  }

  .form-shell { width: 100%; }

  .mobile-back {
    display: inline-grid;
    place-items: center;
    width: 40px;
    height: 40px;
    margin: 0 0 50px 0;
    padding: 0;
    border: 0;
    background: transparent;
    color: var(--cobalt);
    border-radius: var(--radius);
    font-size: 24px;
  }

  .app-main[data-step="p2"] .mobile-back,
  .app-main[data-step="p3"] .mobile-back {
    margin-bottom: 12px;
  }

  .meta-step { margin-bottom: 8px; font-size: 12px; line-height: 160%; }
  .screen-heading { margin-bottom: 24px; font-size: 20px; line-height: 160%; }
  .sub-copy { max-width: 330px; margin-bottom: 8px; font-size: 16px; }
  .text-input { height: 48px; font-size: 16px; }
  .info-line { margin-top: 4px; font-size: 12px; padding-right: 2px; }

  .otp-grid { gap: 8px; }
  .otp-input { height: 48px; font-size: 20px; letter-spacing: 0; }

  .phone-wrap { grid-template-columns: 110px 1fr; gap: 8px; }
  .phone-prefix { height: 48px; gap: 8px; font-size: 16px; }
  .checkbox-row { margin-top: 12px; font-size: 16px; }
  .field-help { font-size: 12px; }

  .action-row { display: block; margin-top: 24px; }
  .action-row-single { margin-top: 28px; }

  #otpBackButton, #profileBackButton { display: none; }

  .btn-primary-wide,
  #sendOtpButton,
  #verifyOtpButton,
  #profileSubmitButton,
  #logoutButton {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  #screenP2 .action-row,
  #screenP3 .action-row {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 32px;
    z-index: 10;
    margin-top: 0;
  }

  #screenP1 .action-row-single {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 32px;
    z-index: 10;
    margin-top: 0;
  }

  #screenP3 .terms-copy {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 94px;
    margin: 0;
    font-size: 12px;
    z-index: 10;
  }

  @media (max-height: 760px) {
    #screenP2 .action-row,
    #screenP3 .action-row,
    #screenP1 .action-row-single,
    #screenP3 .terms-copy {
      position: static;
      left: auto;
      right: auto;
      bottom: auto;
      margin-top: 20px;
    }

    .form-panel { padding-bottom: 32px !important; }
  }
}

/* ===========================
   Module 08 (P01 integration)
   Source: P01_Enter Aadhaar css v1.css
   =========================== */
#appMain[data-step="p1"] {
  min-height: calc(100dvh - 69px);
  background: #fff;
}

#appMain[data-step="p1"] .p01-journey-panel {
  min-height: calc(100dvh - 69px);
  padding: 87px 82px 0;
  background: #e9fbf9;
}

#appMain[data-step="p1"] .p01-journey-content {
  min-height: auto;
  padding: 0;
}

#appMain[data-step="p1"] .p01-journey-illustration {
  display: block;
  width: 282px;
  height: 283px;
  margin: 0 0 20px -16px;
  object-fit: contain;
}

#appMain[data-step="p1"] .p01-journey-step {
  margin: 0 0 18px;
  color: #53576c;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#appMain[data-step="p1"] .p01-journey-title {
  margin: 0 0 13px;
  color: #172ea1;
  font-size: 24px;
  font-weight: 600;
  line-height: 160%;
}

#appMain[data-step="p1"] .p01-journey-copy {
  width: 320px;
  margin: 0;
  color: #0d1333;
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
}

#appMain[data-step="p1"] .p01-journey-progress {
  display: flex;
  gap: 9px;
  margin-top: 58px;
}

#appMain[data-step="p1"] .p01-journey-progress .progress-dot {
  display: block;
  width: 109px;
  height: 4px;
  border-radius: 12px;
  background: #cbcedc;
}

#appMain[data-step="p1"] .p01-journey-progress .progress-dot.is-active {
  width: 55px;
  background: #172ea1;
}

#appMain[data-step="p1"] .p01-form-panel {
  display: flex;
  align-items: flex-start;
  justify-content: center;
  padding: 105px 64px 80px;
  background: #fff;
}

#appMain[data-step="p1"] .p01-form-wrap {
  width: min(716px, 100%);
}

#appMain[data-step="p1"] #globalMessage {
  min-height: 0;
  margin: 0;
}

#screenP1 .p01-form-step {
  margin: 0 0 8px;
  color: #53576c;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

#screenP1 .p01-form-title {
  margin: 0 0 42px;
  color: #0d1333;
  font-size: 20px;
  font-weight: 600;
  line-height: 160%;
  text-transform: uppercase;
}

#screenP1 .p01-aadhaar-form,
#screenP1 .p01-field-group {
  width: 100%;
}

#screenP1 .p01-field-label {
  display: block;
  margin: 0 0 8px;
  color: #53576c;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
}

#screenP1 .p01-field-control {
  width: 100%;
  height: 52px;
  padding: 0 12px;
  border: 1px solid #cbcedc;
  border-radius: 8px;
  outline: none;
  background: #fff;
  color: #0d1333;
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
}

#screenP1 .p01-field-control:focus {
  border: 1.5px solid #172ea1;
}

#screenP1 .p01-field-control:disabled {
  border-color: transparent;
  background: #e4e4e7;
  color: #a1a1aa;
}

#screenP1 .p01-supporting-text {
  display: flex;
  align-items: flex-start;
  gap: 6px;
  margin-top: 4px;
  color: #53576c;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
}

#screenP1 .p01-supporting-text svg {
  width: 16px;
  height: 16px;
  flex: 0 0 16px;
  margin-top: 3px;
}

#screenP1 .p01-field-error {
  margin-top: 6px;
}

#screenP1 .p01-actions {
  display: flex;
  justify-content: flex-end;
  margin-top: 42px;
}

#screenP1 .p01-primary-button {
  width: 350px;
  height: 52px;
  padding: 11px 24px;
  border: 0;
  border-radius: 8px;
  background: #172ea1;
  color: #fff;
  font-size: 18px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.01em;
  cursor: pointer;
  transition: background 140ms ease, box-shadow 140ms ease;
}

#screenP1 .p01-primary-button:hover {
  background: #6379e9;
  box-shadow: 0 5px 10px rgba(99, 121, 233, 0.2);
}

#screenP1 .p01-primary-button:focus-visible {
  outline: 2px solid #6379e9;
  outline-offset: 2px;
}

#screenP1 .p01-primary-button:active {
  background: #6379e9;
}

#screenP1 .p01-primary-button:disabled {
  background: #ececed;
  color: #a1a1aa;
  box-shadow: none;
  cursor: not-allowed;
}

@media (max-width: 1100px) and (min-width: 768px) {
  #appMain[data-step="p1"] {
    grid-template-columns: 42% 58%;
  }

  #appMain[data-step="p1"] .p01-journey-panel {
    padding-left: 42px;
    padding-right: 32px;
  }

  #appMain[data-step="p1"] .p01-form-panel {
    padding-left: 56px;
    padding-right: 40px;
  }

  #appMain[data-step="p1"] .p01-journey-copy {
    width: 100%;
  }

  #appMain[data-step="p1"] .p01-journey-progress .progress-dot {
    width: 82px;
  }

  #appMain[data-step="p1"] .p01-journey-progress .progress-dot.is-active {
    width: 55px;
  }
}

@media (max-width: 767px) {
  #appMain[data-step="p1"] {
    min-height: 100dvh;
    display: block;
  }

  #appMain[data-step="p1"] .p01-journey-panel {
    display: none;
  }

  #appMain[data-step="p1"] .p01-form-panel {
    min-height: 100dvh;
    padding: 60px 16px 112px !important;
    display: flex;
    flex-direction: column;
  }

  #appMain[data-step="p1"] .p01-form-wrap {
    width: 100%;
  }

  #screenP1 .p01-form-step {
    margin-bottom: 8px;
    color: #53576c;
    font-size: 12px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.01em;
  }

  #screenP1 .p01-form-title {
    max-width: 345px;
    margin-bottom: 24px;
    font-size: 20px;
    font-weight: 600;
    line-height: 160%;
  }

  #screenP1 .p01-field-label {
    margin-bottom: 8px;
    font-size: 14px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.005em;
  }

  #screenP1 .p01-field-control {
    height: 48px;
    padding: 0 12px;
    font-size: 16px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.005em;
  }

  #screenP1 .p01-supporting-text {
    gap: 6px;
    margin-top: 4px;
    padding-right: 2px;
    color: #53576c;
    font-size: 12px;
    font-weight: 500;
    line-height: 160%;
    letter-spacing: 0.005em;
  }

  #screenP1 .p01-supporting-text svg {
    margin-top: 1px;
  }

  #screenP1 .p01-actions {
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 32px;
    z-index: 10;
    margin: 0;
  }

  #screenP1 .p01-primary-button {
    width: 100%;
    height: 48px;
    padding: 11px 20px;
    font-size: 16px;
    font-weight: 600;
    line-height: 160%;
    letter-spacing: 0.01em;
  }

  @media (hover: none) {
    #screenP1 .p01-primary-button:hover {
      background: #172ea1;
      box-shadow: none;
    }

    #screenP1 .p01-primary-button:active {
      background: #6379e9;
      box-shadow: 0 5px 10px rgba(99, 121, 233, 0.2);
    }
  }
}

/* ===========================
   Module 03 (P04-P07)
   =========================== */
.m3-app {
  min-height: 100dvh;
  background: #f8f9ff;
  color: #0d1333;
}

.m3-app.is-loading .m3-main {
  visibility: hidden;
}

.m3-header {
  height: 68px;
  border-bottom: 0.5px solid #cbcedc;
  background: #fff;
}

.m3-header-inner {
  max-width: 1440px;
  height: 100%;
  margin: 0 auto;
  padding: 0 80px;
  display: flex;
  justify-content: space-between;
  align-items: center;
}

.m3-logo-wrap img {
  width: 121px;
  height: auto;
  display: block;
}

.m3-header-right {
  display: flex;
  align-items: center;
  gap: 8px;
}

.m3-icon-btn,
.m3-avatar-btn {
  width: 40px;
  height: 40px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: #172ea1;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.m3-icon-btn svg {
  width: 24px;
  height: 24px;
}

.m3-avatar-btn {
  border-radius: 999px;
  background: #172ea1;
  color: #f8f9ff;
  font-weight: 600;
}

.m3-main {
  width: min(1280px, calc(100% - 160px));
  margin: 0 auto;
  padding: 40px 0 80px;
}

.m3-global-message {
  min-height: 20px;
  margin: 0 0 8px;
  color: #53576c;
  font-size: 14px;
}

.m3-screen {
  display: none;
}

.m3-screen.is-active {
  display: block;
}

.m3-btn {
  border-radius: 8px;
  font-weight: 600;
  border: 0;
  cursor: pointer;
}

.m3-btn-primary {
  background: #172ea1;
  color: #fff;
}

.m3-btn-primary:hover {
  background: #6379e9;
}

.m3-btn-outline {
  border: 1px solid #172ea1;
  color: #172ea1;
  background: #fff;
}

.m3-link-btn {
  border: 0;
  background: transparent;
  color: #172ea1;
  cursor: pointer;
  font-weight: 600;
  font-size: 18px;
  padding: 0;
}

.m3-link-btn svg {
  width: 24px;
  height: 24px;
}

.m3-page-shell {
  display: flex;
  flex-direction: column;
  gap: 40px;
}

.m3-hero {
  background: #0d1333;
  border-radius: 16px;
  color: #f8f9ff;
  padding: 32px;
}

.m3-greeting {
  font-size: 28px;
  font-weight: 600;
  margin: 0 0 14px;
}

.m3-hero-row {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: center;
}

.m3-hero-title {
  font-size: 24px;
  line-height: 160%;
  margin: 0 0 4px;
}

.m3-hero-copy {
  margin: 0;
  color: #d3d8f5;
  font-size: 18px;
  line-height: 160%;
}

.m3-hero-search {
  width: 400px;
  height: 52px;
  flex: 0 0 400px;
  background: linear-gradient(180deg, #6b82f4 0%, #071c87 122.92%);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font-size: 18px;
}

.m3-hero-search svg {
  width: 24px;
  height: 24px;
}

.m3-summary-rail {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.m3-summary-card {
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  background: #fff;
  padding: 20px 16px;
  min-height: 180px;
}

.m3-summary-count {
  font-size: 36px;
  margin: 0 0 4px;
  font-weight: 600;
}

.m3-summary-title {
  margin: 0 0 2px;
  font-size: 28px;
}

.m3-summary-title-danger {
  color: #c73838;
}

.m3-summary-text {
  margin: 0 0 22px;
  color: #434965;
  font-size: 16px;
}

.m3-proto-claims {
  display: flex;
  flex-direction: column;
  gap: 20px;
}

.m3-section-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m3-section-head h2 {
  margin: 0;
  font-size: 28px;
  line-height: 160%;
}

.m3-proto-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 20px;
}

.m3-proto-card {
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 10px rgb(0 0 0 / 7%);
  padding: 16px;
}

.m3-proto-top {
  display: flex;
  justify-content: space-between;
  gap: 10px;
}

.m3-proto-type {
  margin: 0;
  color: #53576c;
  font-size: 14px;
}

.m3-proto-amount {
  margin: 0;
  font-size: 36px;
  font-weight: 600;
}

.m3-proto-id {
  margin: 0;
  color: #53576c;
  font-size: 12px;
}

.m3-proto-meta {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 8px;
  border-bottom: 0.5px solid #cbcedc;
  margin: 10px 0;
  padding: 0 0 10px;
}

.m3-proto-meta span {
  display: block;
  color: #53576c;
  font-size: 11px;
}

.m3-proto-meta strong {
  font-size: 15px;
  font-weight: 500;
}

.m3-proto-status span {
  display: block;
  color: #53576c;
  font-size: 11px;
}

.m3-proto-status strong {
  font-size: 16px;
}

.m3-new-claim {
  width: 290px;
  height: 52px;
}

.m3-footer p {
  font-size: 40px;
  color: #cbcedc;
  margin: 0 0 20px;
  font-weight: 600;
}

.m3-footer img {
  width: 170px;
}

.m3-search-shell,
.m3-results-shell,
.m3-details-shell {
  background: #fff;
  padding-bottom: 132px;
}

.m3-screen-title {
  margin: 0 0 36px;
  font-size: 28px;
  line-height: 160%;
}

.m3-mobile-head,
.m3-results-mobile-head,
.m3-details-top {
  display: none;
}

.m3-search-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px 28px;
}

.m3-field label {
  display: block;
  font-size: 16px;
  color: #53576c;
  margin: 0 0 8px;
}

.m3-field .text-input {
  font-size: 18px;
  height: 52px;
}

.m3-form-error {
  grid-column: 1 / -1;
  margin: 0;
}

.m3-search-actions {
  grid-column: 2;
  justify-self: end;
}

.m3-search-actions .m3-btn {
  width: 350px;
  height: 52px;
  font-size: 18px;
}

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

.m3-result-card {
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  background: #fff;
  box-shadow: 0 5px 10px rgb(0 0 0 / 7%);
  padding: 20px;
}

.m3-result-top {
  display: flex;
  justify-content: space-between;
  align-items: start;
}

.m3-result-type {
  margin: 0;
  color: #53576c;
  font-size: 14px;
}

.m3-result-amount {
  margin: 4px 0 20px;
  font-size: 24px;
  font-weight: 600;
  line-height: 160%;
}

.m3-result-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  border-bottom: 0.5px solid #cbcedc;
  padding-bottom: 16px;
}

.m3-result-grid span {
  display: block;
  font-size: 12px;
  color: #53576c;
}

.m3-result-grid strong {
  font-size: 16px;
}

.m3-view-details-btn {
  margin: 16px auto 0;
  display: block;
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.m3-bookmark-btn {
  width: 24px;
  height: 24px;
  border: 0;
  background: transparent;
  color: #172ea1;
  padding: 0;
}

.m3-bookmark-btn svg {
  width: 24px;
  height: 24px;
}

.m3-no-results {
  margin: 24px 0;
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  padding: 24px;
  text-align: center;
}

.m3-no-results p {
  margin: 0 0 16px;
  font-size: 18px;
  color: #434965;
}

.m3-results-footer {
  margin-top: 30px;
  border-top: 0.5px solid #cbcedc;
  padding-top: 24px;
  text-align: center;
}

.m3-results-footer p {
  color: #434965;
  font-size: 18px;
}

.m3-results-footer .m3-btn {
  width: 410px;
  height: 52px;
  font-size: 18px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
}

.m3-results-footer .m3-btn svg {
  width: 24px;
  height: 24px;
}

.m3-details-shell {
  background: #fff;
}

.m3-details-banner {
  background: #e9fbf9;
  border-radius: 16px;
  padding: 20px;
  margin: 0 0 20px;
}

.m3-details-banner p {
  margin: 0;
}

.m3-details-banner p:first-child {
  color: #53576c;
  font-size: 14px;
}

.m3-details-banner p:last-child {
  font-size: 28px;
  line-height: 160%;
  font-weight: 600;
}

.m3-details-sections {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 20px;
}

.m3-details-card {
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  padding: 20px;
}

.m3-details-card h2 {
  margin: 0 0 10px;
  font-size: 24px;
}

.m3-details-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  padding: 11px 0;
  border-bottom: 0.5px solid #cbcedc;
}

.m3-details-row:last-child {
  border-bottom: 0;
}

.m3-details-row span {
  color: #53576c;
  font-size: 14px;
}

.m3-details-row strong {
  text-align: right;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.m3-unavailable {
  color: #53576c;
  font-style: italic;
}

.m3-details-cta {
  position: sticky;
  bottom: 0;
  background: #fff;
  border-top: 0.5px solid #cbcedc;
  margin-top: 26px;
  padding: 14px 0 10px;
  display: grid;
  gap: 20px;
}

.m3-details-cta p {
  margin: 0;
  background: #f4f5ce;
  border-radius: 8px;
  padding: 8px 12px;
  color: #434965;
  font-size: 14px;
  display: flex;
  align-items: center;
  gap: 6px;
}

.m3-details-cta .m3-btn {
  height: 52px;
  font-size: 18px;
}

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

.m3-details-cta-actions .m3-btn {
  width: 100%;
  height: 52px;
  font-size: 18px;
}

.m3-boundary-shell {
  max-width: 760px;
  margin: 0 auto;
  padding: 0 16px;
  background: transparent;
  text-align: center;
}

.m3-boundary-shell .screen-heading {
  margin-bottom: 14px;
}

.m3-boundary-actions {
  margin-top: 30px;
  display: flex;
  justify-content: center;
  gap: 12px;
}

.m3-boundary-actions .m3-btn {
  height: 48px;
  padding: 0 20px;
}

@media (max-width: 767px) {
  .m3-header {
    display: none;
  }

  .m3-app[data-screen="tracking"] > .m3-header {
    display: block;
  }

  .m3-main {
    width: 100%;
    padding: 0 0 30px;
  }

  .m3-global-message {
    margin: 0;
    padding: 0 16px;
  }

  .m3-hero {
    border-radius: 0 0 16px 16px;
    padding: 64px 16px 24px;
  }

  .m3-greeting {
    font-size: 20px;
    margin-bottom: 8px;
  }

  .m3-hero-row {
    display: block;
  }

  .m3-hero-title {
    font-size: 30px;
  }

  .m3-hero-copy {
    font-size: 16px;
    margin-bottom: 16px;
  }

  .m3-hero-search {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .m3-page-shell {
    gap: 24px;
  }

  .m3-summary-rail {
    display: flex;
    overflow-x: auto;
    gap: 12px;
    padding: 0 16px 4px;
  }

  .m3-summary-card {
    flex: 0 0 200px;
    min-height: 190px;
    border-radius: 14px;
    padding: 14px;
  }

  .m3-summary-count {
    font-size: 32px;
  }

  .m3-summary-title {
    font-size: 24px;
  }

  .m3-summary-text,
  .m3-link-btn {
    font-size: 14px;
  }

  .m3-proto-claims {
    padding: 0 16px;
  }

  .m3-section-head h2 {
    font-size: 32px;
  }

  .m3-proto-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .m3-proto-card {
    border-radius: 14px;
  }

  .m3-proto-amount {
    font-size: 32px;
  }

  .m3-new-claim {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .m3-footer {
    padding: 0 16px;
  }

  .m3-footer p {
    font-size: 28px;
  }

  .m3-mobile-head,
  .m3-results-mobile-head,
  .m3-details-top {
    display: flex;
    align-items: center;
    justify-content: space-between;
    padding: 20px 16px 8px;
  }

  .m3-mobile-title {
    color: #53576c;
    font-size: 16px;
    font-weight: 600;
    display: inline-flex;
    gap: 10px;
    align-items: center;
    line-height: 160%;
    letter-spacing: 0.01em;
    text-transform: uppercase;
  }

  .m3-mobile-title svg {
    width: 24px;
    height: 24px;
  }

  .m3-screen-title {
    display: none;
  }

  .m3-search-grid {
    grid-template-columns: 1fr;
    padding: 0 16px 120px;
    gap: 18px;
  }

  .m3-field .text-input {
    height: 48px;
    font-size: 16px;
  }

  .m3-form-error {
    min-height: 0;
  }

  .m3-search-actions {
    grid-column: auto;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 24px;
    z-index: 20;
    background: #fff;
  }

  .m3-search-actions .m3-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .m3-results-mobile-head h1 {
    margin: 0;
    color: #53576c;
    font-size: 16px;
    font-weight: 600;
  }

  .m3-results-shell {
    padding: 0 16px;
  }

  .m3-results-grid {
    grid-template-columns: 1fr;
    gap: 16px;
  }

  .m3-result-card {
    border-radius: 16px;
    padding: 16px;
  }

  .m3-result-amount {
    font-size: 20px;
    margin-bottom: 14px;
  }

  .m3-result-grid strong {
    font-size: 14px;
  }

  .m3-view-details-btn {
    font-size: 16px;
  }

  .m3-results-footer {
    margin-top: 24px;
    padding: 24px 0;
  }

  .m3-results-footer p {
    font-size: 16px;
  }

  .m3-results-footer .m3-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .m3-details-shell {
    padding: 0 16px 190px;
  }

  .m3-details-banner {
    border-radius: 8px;
    padding: 12px;
  }

  .m3-details-banner p:last-child {
    font-size: 20px;
  }

  .m3-details-sections {
    grid-template-columns: 1fr;
    gap: 0;
  }

  .m3-details-card {
    border: 0;
    border-top: 0.5px solid #cbcedc;
    border-radius: 0;
    padding: 20px 0;
  }

  .m3-details-card h2 {
    color: #53576c;
    font-size: 16px;
    margin-bottom: 18px;
  }

  .m3-details-row {
    grid-template-columns: 1fr;
    gap: 2px;
    border: 0;
    padding: 0 0 16px;
  }

  .m3-details-row strong {
    text-align: left;
  }

  .m3-details-cta {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    z-index: 25;
    padding: 14px 16px 16px;
    display: block;
  }

  .m3-details-cta p {
    margin-bottom: 10px;
    font-size: 14px;
  }

  .m3-details-cta-actions {
    grid-template-columns: 1fr;
  }

  .m3-details-cta-actions .m3-btn {
    width: 100%;
    height: 48px;
    font-size: 16px;
  }

  .m3-boundary-shell {
    margin: 0;
    padding: 64px 16px 20px;
    text-align: left;
  }

  .m3-boundary-actions {
    display: block;
  }

  .m3-boundary-actions .m3-btn {
    width: 100%;
    margin-bottom: 10px;
  }
}

/* ===========================
   Module 04 (P08)
   =========================== */
.m4-shell {
  min-height: 100dvh;
  background: #fff;
}

.m4-header {
  height: 68px;
  background: #fff;
  border-bottom: 0.5px solid #cbcedc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 80px;
}

.m4-logo-wrap img {
  width: 121px;
  display: block;
}

.m4-save-exit {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.m4-progress-line,
.m4-mobile-progress-line {
  height: 2px;
  background: #cbcedc;
  position: relative;
}

.m4-progress-line {
  margin-left: 440px;
}

.m4-mobile-progress-line {
  height: 4px;
}

.m4-progress-line span,
.m4-mobile-progress-line span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33.33%;
  background: #172ea1;
}

.m4-mobile-top,
.m4-mobile-progress-line {
  display: none;
}

.m4-body {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  min-height: calc(100dvh - 72px);
  background: #fff;
}

.m4-sidebar {
  background: #f8f9ff;
  padding: 80px 52px 0 82px;
}

.m4-sidebar-greeting {
  margin: 0 0 8px;
  font-size: 20px;
  line-height: 150%;
  font-weight: 600;
  color: #0d1333;
}

.m4-sidebar-copy {
  margin: 0 0 32px;
  color: #434965;
  font-size: 16px;
  line-height: 160%;
}

.m4-stepper {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
}

.m4-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #7b819a;
  font-size: 16px;
  margin-bottom: 18px;
}

.m4-stepper li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 48px;
  width: 1px;
  height: 14px;
  background: #d7dae6;
}

.m4-stepper li:last-child::after {
  display: none;
}

.m4-step-index {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8ebf5;
  color: #8f97ae;
  font-size: 20px;
  font-weight: 600;
  flex: 0 0 44px;
  margin-left: -6px;
}

.m4-step-text {
  color: #8b91a8;
  font-size: 16px;
  line-height: 160%;
  font-weight: 500;
}

.m4-stepper li.is-active {
  color: #0d1333;
}

.m4-stepper li.is-active .m4-step-index {
  background: #172ea1;
  color: #fff;
}

.m4-stepper li.is-active .m4-step-text {
  color: #0d1333;
  font-weight: 600;
}

.m4-main {
  width: min(700px, 100%);
  padding: 60px 0 132px;
  margin: 0 auto;
}

.m4-step-label {
  margin: 0 0 6px;
  color: #53576c;
  font-size: 12px;
  line-height: 160%;
  letter-spacing: 0.01em;
  text-transform: uppercase;
}

.m4-title {
  margin: 0 0 34px;
  color: #0d1333;
  font-size: 20px;
  line-height: 160%;
  text-transform: uppercase;
}

.m4-status-message {
  min-height: 0;
  margin: 0;
  color: #434965;
  font-size: 13px;
}

.m4-error-message {
  min-height: 0;
  margin: 0;
}

.m4-status-message:empty,
.m4-error-message:empty {
  display: none;
}

.m4-deposit-card {
  background: #e9fbf9;
  border-radius: 8px;
  min-height: 94px;
  padding: 14px 18px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 2px 0 36px;
  gap: 12px;
}

.m4-deposit-type {
  margin: 0;
  color: #53576c;
  font-size: 14px;
  text-transform: uppercase;
  overflow-wrap: anywhere;
}

.m4-deposit-amount {
  margin: 4px 0 0;
  color: #0d1333;
  font-size: 30px;
  font-weight: 600;
  overflow-wrap: anywhere;
}

.m4-view-details {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
  padding: 0;
}

.m4-field {
  margin-bottom: 38px;
}

.m4-field label {
  display: block;
  margin-bottom: 10px;
  color: #53576c;
  font-size: 14px;
  line-height: 160%;
}

#m4ClaimantTypeSelect {
  height: 53px;
  font-size: 16px;
  border-radius: 8px;
  border-color: #cbcedc;
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='10' viewBox='0 0 16 10' fill='none'%3E%3Cpath d='M2 2L8 8L14 2' stroke='%23172EA1' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 14px center;
  background-size: 16px 10px;
  padding-right: 40px;
}

.m4-notice {
  margin: 0;
  background: #f4f5ce;
  border-radius: 8px;
  min-height: 43px;
  padding: 8px 12px;
  color: #434965;
  font-size: 14px;
  line-height: 150%;
  display: flex;
  align-items: center;
  gap: 8px;
}

.m4-notice .info-icon {
  border-color: #172ea1;
  color: #172ea1;
}

.m4-actions {
  position: fixed;
  left: 440px;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 0.5px solid #cbcedc;
  padding: 20px 80px 40px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.m4-btn {
  height: 52px;
  border-radius: 8px;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.m4-btn-outline {
  width: 200px;
  border: 1px solid #172ea1;
  color: #172ea1;
  background: #fff;
}

.m4-btn-primary {
  width: 360px;
  border: 0;
  color: #fff;
  background: #172ea1;
}

.m4-details-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 19, 51, 0.28);
  backdrop-filter: blur(2px);
  display: none;
  justify-content: flex-end;
  z-index: 50;
}

.m4-details-overlay:not([hidden]) {
  display: flex;
}

.m4-details-overlay[hidden] {
  display: none !important;
}

.m4-details-drawer {
  width: min(68vw, 980px);
  height: 100dvh;
  background: #fff;
  border-radius: 16px 0 0 16px;
  overflow-y: auto;
}

.m4-details-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid #cbcedc;
  padding: 14px 22px;
}

.m4-details-header h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  color: #0d1333;
  font-size: 24px;
}

.m4-details-back {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 24px;
  cursor: pointer;
}

.m4-details-banner {
  margin: 18px 22px;
  background: #e9fbf9;
  border-radius: 12px;
  padding: 14px 16px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
}

.m4-details-banner-type {
  margin: 0;
  color: #53576c;
  font-size: 14px;
  text-transform: uppercase;
}

.m4-details-banner-amount {
  margin: 0;
  font-size: 30px;
  font-weight: 600;
  color: #0d1333;
}

.m4-details-card {
  margin: 0 22px 20px;
  border: 0.5px solid #cbcedc;
  border-radius: 12px;
  padding: 14px 16px;
}

.m4-details-section-toggle {
  width: 100%;
  margin: 0 0 14px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 18px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  text-transform: uppercase;
  font-weight: 700;
  cursor: pointer;
}

.m4-detail-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
  border-bottom: 0.5px solid #cbcedc;
  padding: 9px 0;
}

.m4-detail-row:last-child {
  border-bottom: 0;
}

.m4-detail-row span {
  color: #53576c;
  font-size: 13px;
}

.m4-detail-row strong {
  color: #0d1333;
  text-align: right;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.m4-mobile-details {
  min-height: 100dvh;
  background: #fff;
  padding: 50px 16px 60px;
}

.m4-mobile-details-header {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 26px;
}

.m4-mobile-details-header h1 {
  margin: 0;
  color: #53576c;
  font-size: 17px;
  font-weight: 700;
  letter-spacing: 0.005em;
}

.m4-mobile-details-header button {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
  padding: 0;
}

.m4-mobile-details .m4-details-banner {
  margin: 0 0 24px;
  min-height: 76px;
  border-radius: 8px;
  padding: 12px 14px;
  display: flex;
  flex-direction: column;
  justify-content: center;
  align-items: flex-start;
  gap: 3px;
}

.m4-mobile-details .m4-details-banner-type {
  font-size: 14px;
}

.m4-mobile-details .m4-details-banner-amount {
  font-size: 29px;
  line-height: 130%;
}

.m4-mobile-divider {
  height: 1px;
  background: #cbcedc;
  margin: 0 0 24px;
}

.m4-mobile-section-toggle {
  width: 100%;
  margin: 0 0 18px;
  padding: 0;
  border: 0;
  background: transparent;
  color: #53576c;
  font-size: 16px;
  font-weight: 700;
  letter-spacing: 0.01em;
  display: flex;
  align-items: center;
  justify-content: space-between;
  text-transform: uppercase;
  cursor: pointer;
}

.m4-mobile-section-toggle span:last-child {
  color: #172ea1;
  font-size: 18px;
  line-height: 1;
}

.m4-mobile-detail-rows .m4-detail-row {
  grid-template-columns: 1fr;
  border-bottom: 0;
  padding: 0;
  margin-bottom: 22px;
}

.m4-mobile-detail-rows .m4-detail-row:last-child {
  margin-bottom: 0;
}

.m4-mobile-detail-rows .m4-detail-row span {
  display: block;
  margin-bottom: 6px;
  color: #53576c;
  font-size: 13px;
  line-height: 150%;
  text-transform: uppercase;
  letter-spacing: 0.01em;
}

.m4-mobile-detail-rows .m4-detail-row strong {
  text-align: left;
  font-size: 17px;
  line-height: 150%;
  font-weight: 600;
  overflow-wrap: anywhere;
}

#m4Module05BoundaryScreen .m3-boundary-shell {
  margin-top: 0;
}

#m4Module05BoundaryScreen {
  min-height: 100dvh;
  background: #f8f9ff;
  box-sizing: border-box;
  padding: 140px 0 40px;
}

@media (max-width: 767px) {
  #m4Module05BoundaryScreen {
    padding: 88px 0 32px;
  }
}

.m3-app[data-screen="claimant"] .m3-global-message,
.m3-app[data-screen="claimDetailsMobile"] .m3-global-message,
.m3-app[data-screen="uploadBoundary"] .m3-global-message,
.m3-app[data-screen="uploadDocuments"] .m3-global-message,
.m3-app[data-screen="documentDetail"] .m3-global-message,
.m3-app[data-screen="documentVerification"] .m3-global-message,
.m3-app[data-screen="claimFiled"] .m3-global-message {
  display: none;
}

.m3-app[data-screen="claimant"] > .m3-header,
.m3-app[data-screen="claimDetailsMobile"] > .m3-header,
.m3-app[data-screen="uploadBoundary"] > .m3-header,
.m3-app[data-screen="uploadDocuments"] > .m3-header,
.m3-app[data-screen="documentDetail"] > .m3-header,
.m3-app[data-screen="documentVerification"] > .m3-header,
.m3-app[data-screen="claimFiled"] > .m3-header {
  display: none;
}

.m3-app[data-screen="claimant"] .m3-main,
.m3-app[data-screen="claimDetailsMobile"] .m3-main,
.m3-app[data-screen="uploadBoundary"] .m3-main,
.m3-app[data-screen="uploadDocuments"] .m3-main,
.m3-app[data-screen="documentDetail"] .m3-main,
.m3-app[data-screen="documentVerification"] .m3-main,
.m3-app[data-screen="claimFiled"] .m3-main {
  width: 100%;
  margin: 0;
  padding: 0;
}

@media (max-width: 1100px) and (min-width: 768px) {
  .m4-progress-line {
    margin-left: 340px;
  }

  .m4-body {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .m4-sidebar {
    padding: 44px 28px 0;
  }

  .m4-main {
    width: min(640px, calc(100% - 48px));
    padding: 42px 0 126px;
    margin: 0 auto;
  }

  .m4-deposit-card {
    margin-top: 0;
    margin-bottom: 30px;
  }

  .m4-field {
    margin-bottom: 29px;
  }

  .m4-actions {
    left: 340px;
    padding: 16px 36px;
  }

  .m4-btn-outline {
    width: min(180px, 34%);
  }

  .m4-btn-primary {
    width: min(280px, 56%);
  }
}

@media (max-width: 767px) {
  .m4-header,
  .m4-progress-line,
  .m4-sidebar,
  .m4-details-overlay {
    display: none;
  }

  .m4-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 62px 16px 22px;
  }

  .m4-mobile-progress-line {
    display: block;
  }

  .m4-mobile-icon,
  .m4-mobile-save {
    border: 0;
    background: transparent;
    color: #172ea1;
    font-size: 16px;
    font-weight: 600;
    cursor: pointer;
  }

  .m4-mobile-icon {
    font-size: 24px;
    line-height: 1;
    padding: 0;
  }

  .m4-body {
    display: block;
    min-height: auto;
  }

  .m4-main {
    max-width: none;
    padding: 8px 16px 148px;
    margin: 0;
  }

  .m4-step-label {
    font-size: 12px;
  }

  .m4-title {
    font-size: 18px;
    line-height: 140%;
    font-weight: 700;
    margin-bottom: 24px;
  }

  .m4-deposit-card {
    border-radius: 8px;
    min-height: 65px;
    padding: 9px 12px;
    margin-top: 0;
    margin-bottom: 32px;
  }

  .m4-field {
    margin-bottom: 25px;
  }

  .m4-deposit-type {
    font-size: 13px;
  }

  .m4-deposit-amount {
    font-size: 20px;
  }

  .m4-view-details {
    font-size: 16px;
  }

  .m4-field .text-input {
    height: 53px;
    font-size: 16px;
  }

  .m4-notice {
    font-size: 14px;
    min-height: 53px;
    line-height: 145%;
  }

  .m4-actions {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 31px;
    background: transparent;
    border-top: 0;
    padding: 0;
  }

  .m4-btn-outline {
    display: none;
  }

  .m4-btn-primary {
    position: static;
    left: auto;
    right: auto;
    bottom: auto;
    width: auto;
    min-width: 100%;
    height: 50px;
    font-size: 16px;
    z-index: 30;
  }
}

/* ===========================
   Module 07 (P25-P27)
   =========================== */
.m7-otp-copy {
  margin: 0 0 12px;
  color: #53576c;
  font-size: 16px;
  line-height: 160%;
}

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

.m7-otp-input {
  height: 52px;
  border: 1px solid #cbcedc;
  border-radius: 8px;
  font-size: 32px;
  text-align: center;
  color: #1b2447;
}

.m7-otp-support {
  margin-top: 8px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.m7-link-btn {
  font-size: 14px;
}

.m7-otp-timer {
  margin: 0;
  color: #53576c;
  font-size: 12px;
}

.m7-success-shell {
  min-height: 100dvh;
  display: flex;
  align-items: center;
  justify-content: center;
  background: #fff;
  padding: 32px 16px;
}

.m7-success-content {
  width: min(704px, 100%);
  text-align: center;
}

.m7-success-content h1 {
  margin: 0 0 14px;
  font-size: 44px;
  line-height: 120%;
  color: #1b2447;
}

.m7-success-content p {
  margin: 0 auto 16px;
  width: min(544px, 100%);
  color: #465076;
  font-size: 18px;
  line-height: 150%;
}

.m7-success-btn,
.m7-dashboard-btn,
.m7-documents-btn,
.m7-support-btn {
  width: 100%;
  height: 52px;
  border-radius: 8px;
  border: 1px solid #2746c2;
  background: #fff;
  color: #2746c2;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.m7-success-btn {
  margin-top: 8px;
}

.m7-dashboard-btn,
.m7-support-btn {
  margin-top: 12px;
}

.m7-success-close {
  display: none;
}

@media (min-width: 768px) {
  .m7-success-content h1 {
    white-space: nowrap;
  }
}

.m7-tracking-shell {
  max-width: 1360px;
  margin: 0 auto;
  padding: 46px 56px 66px;
}

.m7-tracking-summary-card {
  background: #e9fbf9;
  border-radius: 12px;
  min-height: 112px;
  padding: 18px 22px;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
}

.m7-tracking-summary-label {
  margin: 0;
  color: #586078;
  font-size: 16px;
}

.m7-tracking-summary-amount {
  margin: 4px 0 0;
  font-size: 42px;
  font-weight: 600;
  color: #1b2447;
  line-height: 1.1;
}

.m7-tracking-summary-id {
  margin: 2px 0 0;
  color: #1b2447;
  font-size: 24px;
  font-weight: 600;
}

.m7-tracking-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 420px;
  gap: 28px;
}

.m7-tracking-main-col {
  display: grid;
  gap: 16px;
  align-content: start;
}

.m7-tracking-side-col {
  display: grid;
  gap: 14px;
  align-content: start;
}

.m7-tracking-card {
  border: 0.5px solid #cbcedc;
  border-radius: 16px;
  background: #fff;
  padding: 14px 16px 0;
}

.m7-tracking-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m7-tracking-card-header h2,
.m7-tracking-status-card h2 {
  margin: 0 0 12px;
  font-size: 16px;
  color: #1b2447;
}

.m7-tracking-chevron {
  color: #2746c2;
  font-size: 18px;
  line-height: 1;
  margin-top: -4px;
}

.m7-tracking-rows {
  display: grid;
}

.m7-tracking-row {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 11px 0;
  border-bottom: 0.5px solid #e3e6f1;
}

.m7-tracking-row:last-child {
  border-bottom: 0;
}

.m7-tracking-row span {
  color: #59607a;
  font-size: 13px;
}

.m7-tracking-row strong {
  text-align: right;
  color: #1b2447;
  font-size: 16px;
  overflow-wrap: anywhere;
}

.m7-tracking-row .m7-unclaimed-badge {
  justify-self: end;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 4px 12px;
  border-radius: 8px;
  border: 1px solid #f8caca;
  background: #fff1f1;
  color: #dc4a4a;
  font-size: 16px;
  font-weight: 600;
  line-height: 1;
}

.m7-tracking-timeline {
  display: grid;
  gap: 10px;
}

.m7-timeline-item {
  display: grid;
  grid-template-columns: 14px 1fr;
  gap: 10px;
}

.m7-timeline-marker {
  width: 12px;
  height: 12px;
  border-radius: 999px;
  margin-top: 4px;
  background: #eceff8;
  border: 1px solid #d9deec;
}

.m7-timeline-item + .m7-timeline-item {
  position: relative;
}

.m7-timeline-item + .m7-timeline-item::before {
  content: "";
  position: absolute;
  left: 6px;
  top: -13px;
  width: 1px;
  height: 12px;
  background: #dde2f0;
}

.m7-timeline-item.is-complete .m7-timeline-marker,
.m7-timeline-item.is-current .m7-timeline-marker {
  background: #15966d;
  border-color: #15966d;
}

.m7-timeline-item.is-current .m7-timeline-marker {
  background: #b48a1f;
  border-color: #b48a1f;
}

.m7-timeline-item.is-exception .m7-timeline-marker {
  background: #b42318;
  border-color: #b42318;
}

.m7-timeline-item p {
  margin: 0;
  color: #1b2447;
  font-size: 16px;
  line-height: 1.35;
}

.m7-timeline-item.is-future p {
  color: #a1a6ba;
}

.m7-timeline-item small {
  color: #59607a;
  font-size: 11px;
  line-height: 1.3;
}

.m7-action-required {
  margin-top: 0;
  border: 1px solid #f5caca;
  border-radius: 8px;
  background: #fff2f2;
  padding: 10px;
}

.m7-action-required p {
  margin: 0 0 10px;
  color: #8f2f2f;
  font-size: 14px;
}

.m7-doc-overlay {
  position: fixed;
  inset: 0;
  z-index: 70;
  background: rgb(13 19 51 / 36%);
  display: flex;
  justify-content: flex-end;
}

.m7-doc-overlay[hidden] {
  display: none !important;
}

.m7-doc-drawer {
  width: min(560px, 100%);
  height: 100dvh;
  background: #fff;
  display: grid;
  grid-template-rows: auto 1fr auto;
  box-shadow: -8px 0 28px rgb(9 19 57 / 25%);
}

.m7-doc-drawer-header {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  padding: 16px;
  border-bottom: 0.5px solid #cbcedc;
}

.m7-doc-drawer-header h2 {
  margin: 0;
  font-size: 18px;
  color: #1b2447;
}

.m7-doc-drawer-back,
.m7-doc-drawer-close {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 22px;
  cursor: pointer;
  line-height: 1;
}

.m7-doc-drawer-body {
  overflow-y: auto;
  padding: 14px 16px;
  display: grid;
  gap: 10px;
}

.m7-doc-drawer-footer {
  border-top: 0.5px solid #cbcedc;
  padding: 12px 16px 16px;
}

.m7-doc-drawer-footer .m7-documents-btn {
  margin-top: 0;
}

.m7-doc-item {
  text-align: left;
  border: 1px solid #cfd6ea;
  border-radius: 8px;
  background: #fff;
  padding: 10px 12px;
  cursor: pointer;
}

.m7-doc-item-static {
  cursor: default;
}

.m7-doc-item span {
  display: block;
  color: #1b2447;
  font-weight: 600;
}

.m7-doc-item small,
.m7-doc-empty {
  color: #59607a;
  font-size: 12px;
}

.m7-doc-empty {
  margin: 0;
}

.m7-doc-view-shell {
  display: grid;
  gap: 12px;
}

.m7-doc-view-frame-wrap {
  border: 1px solid #d8deef;
  border-radius: 8px;
  min-height: 320px;
  background: #f8faff;
  overflow: hidden;
}

.m7-doc-view-frame,
.m7-doc-view-image {
  width: 100%;
  height: 100%;
  min-height: 320px;
  border: 0;
}

.m7-doc-view-image {
  object-fit: contain;
  background: #fff;
}

.m7-doc-view-note {
  margin: 0;
  padding: 10px 12px;
  border: 1px solid #e6e9f4;
  border-radius: 8px;
  color: #59607a;
  font-size: 13px;
  background: #fafbff;
}

.m7-tracking-mobile-head {
  display: none;
}

@media (max-width: 767px) {
  .m7-otp-copy {
    font-size: 16px;
    line-height: 1.35;
    margin-bottom: 14px;
  }

  .m7-otp-grid {
    gap: 8px;
  }

  .m7-otp-input {
    height: 60px;
    font-size: 24px;
  }

  .m7-success-shell {
    padding-top: 90px;
  }

  .m7-success-close {
    position: fixed;
    top: 26px;
    right: 16px;
    display: inline-flex;
    border: 0;
    background: transparent;
    color: #2746c2;
    font-size: 26px;
  }

  .m7-success-content h1 {
    font-size: 42px;
  }

  .m7-success-content p {
    font-size: 16px;
  }

  .m7-success-btn,
  .m7-dashboard-btn,
  .m7-documents-btn,
  .m7-support-btn {
    height: 50px;
    font-size: 18px;
  }

  .m7-tracking-mobile-head {
    display: none;
  }

  .m7-tracking-nav-btn {
    border: 0;
    background: transparent;
    color: #2746c2;
    font-size: 14px;
    font-weight: 600;
  }

  .m7-tracking-shell {
    padding: 14px 10px 40px;
  }

  .m7-tracking-summary-id {
    font-size: 24px;
  }

  .m7-tracking-summary-amount {
    font-size: 36px;
  }

  .m7-tracking-layout {
    grid-template-columns: 1fr;
  }

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

  .m7-tracking-row strong {
    text-align: left;
  }

  .m7-doc-overlay {
    justify-content: center;
    align-items: flex-end;
  }

  .m7-doc-drawer {
    width: 100%;
    height: min(86dvh, 760px);
    border-radius: 16px 16px 0 0;
  }

  .m7-doc-drawer-body {
    padding-bottom: 22px;
  }
}

/* ===========================
   Module 05 (P09-P24)
   =========================== */
.m5-shell {
  min-height: 100dvh;
  background: #fff;
}

.m5-header {
  height: 68px;
  background: #fff;
  border-bottom: 0.5px solid #cbcedc;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 50px 0 80px;
}

.m5-progress-line,
.m5-mobile-progress-line {
  height: 2px;
  background: #cbcedc;
  position: relative;
}

.m5-progress-line {
  margin-left: 440px;
}

.m5-mobile-progress-line {
  display: none;
  height: 4px;
}

.m5-progress-line span,
.m5-mobile-progress-line span {
  position: absolute;
  left: 0;
  top: 0;
  bottom: 0;
  width: 33.33%;
  background: #172ea1;
}

.m5-progress-sign span {
  width: 66.66%;
}

.m5-mobile-top {
  display: none;
}

.m5-body {
  display: grid;
  grid-template-columns: 440px minmax(0, 1fr);
  min-height: calc(100dvh - 72px);
}

.m5-sidebar {
  background: #f8f9ff;
  padding: 80px 52px 40px 82px;
  display: flex;
  flex-direction: column;
}

.m5-stepper {
  list-style: none;
  margin: 0;
  padding: 0 0 0 6px;
}

.m5-stepper li {
  position: relative;
  display: flex;
  align-items: center;
  gap: 16px;
  color: #7b819a;
  font-size: 16px;
  margin-bottom: 18px;
}

.m5-stepper li::after {
  content: "";
  position: absolute;
  left: 16px;
  top: 48px;
  width: 1px;
  height: 14px;
  background: #d7dae6;
}

.m5-stepper li:last-child::after {
  display: none;
}

.m5-step-index {
  width: 44px;
  height: 44px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: #e8ebf5;
  color: #8f97ae;
  font-size: 20px;
  font-weight: 600;
  flex: 0 0 44px;
  margin-left: -6px;
}

.m5-step-index.is-complete {
  background: #15966d;
  color: #fff;
}

.m5-step-text {
  color: #8b91a8;
  font-size: 16px;
  line-height: 160%;
  font-weight: 500;
}

.m5-stepper li.is-active .m5-step-index {
  background: #172ea1;
  color: #fff;
}

.m5-stepper li.is-active .m5-step-text,
.m5-stepper li.is-complete .m5-step-text {
  color: #0d1333;
  font-weight: 600;
}

.m5-sidebar-support {
  margin-top: auto;
  border-top: 1px solid #dfe2ef;
  padding-top: 28px;
}

.m5-sidebar-support p,
.m5-mobile-support p {
  margin: 0 0 10px;
  color: #434965;
  font-size: 16px;
  line-height: 150%;
  font-weight: 400;
}

.m5-mobile-support {
  display: none;
}

.m5-support-btn {
  width: 100%;
  height: 52px;
  border: 1px solid #172ea1;
  border-radius: 8px;
  background: #fff;
  color: #172ea1;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.m5-main {
  width: min(700px, 100%);
  padding: 60px 0 166px;
  margin: 0 auto;
}

.m5-estimate {
  color: #53576c;
  font-size: 16px;
  font-weight: 500;
  text-transform: none;
}

.m5-progress-text {
  margin: -16px 0 18px;
  color: #53576c;
  font-size: 18px;
  font-weight: 500;
  text-transform: uppercase;
}

.m5-checklist {
  display: grid;
  gap: 10px;
}

.m5-row {
  border: 1px solid #dce1f1;
  border-radius: 8px;
  background: #fff;
  min-height: 84px;
  padding: 14px 14px;
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
  cursor: pointer;
}

.m5-row.is-disabled {
  background: #efeff2;
  color: #a1a1aa;
  cursor: not-allowed;
}

.m5-row.is-supplied {
  border-color: #48c2a3;
}

.m5-row.is-error {
  border-color: #ef9a9a;
  background: #fff2f2;
}

.m5-row-main {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  text-align: left;
}

.m5-row-main h3 {
  margin: 0;
  color: #0d1333;
  font-size: 16px;
  line-height: 140%;
  font-weight: 500;
}

.m5-row.is-disabled .m5-row-main h3 {
  color: #a1a1aa;
}

.m5-row-main p {
  margin: 4px 0 0;
  color: #59607a;
  font-size: 16px;
}

.m5-row.is-disabled .m5-row-main p {
  color: #b5b8c4;
}

.m5-row-status {
  margin-top: 8px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 14px;
  color: #15966d;
}

.m5-row-status-icon {
  width: 16px;
  height: 16px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
}

.m5-row-status-icon svg {
  width: 16px;
  height: 16px;
  display: block;
}

.m5-row-status.error {
  color: #cf3434;
}

.m5-chevron {
  color: #172ea1;
  font-size: 24px;
}

.m5-row.is-disabled .m5-chevron {
  color: #bcbec8;
}

.m5-actions {
  position: fixed;
  left: 440px;
  right: 0;
  bottom: 0;
  background: #fff;
  border-top: 0.5px solid #cbcedc;
  padding: 14px 80px 26px;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}

.m5-submit-wrap {
  width: 360px;
}

.m5-submit-hint {
  margin: 0 0 8px;
  min-height: 22px;
  border-radius: 8px;
  background: #f4f5ce;
  color: #434965;
  font-size: 14px;
  padding: 8px 10px;
}

#m5SubmitButton[disabled],
#m5BoundarySignButton[disabled] {
  background: #ececed;
  color: #a1a1aa;
  cursor: not-allowed;
}

.m5-detail-overlay {
  position: fixed;
  inset: 0;
  background: rgba(13, 19, 51, 0.4);
  backdrop-filter: blur(2.2px);
  -webkit-backdrop-filter: blur(2.2px);
  display: none;
  justify-content: flex-end;
  z-index: 70;
}

.m5-detail-overlay:not([hidden]) {
  display: flex;
}

.m5-detail-panel {
  width: min(966px, calc(100vw - 478px));
  height: 100dvh;
  background: #fff;
  border-radius: 16px 0 0 16px;
  display: flex;
  flex-direction: column;
  box-shadow: -8px 0 22px rgba(13, 19, 51, 0.08);
}

.m5-detail-header {
  display: flex;
  align-items: center;
  gap: 12px;
  border-bottom: 0.5px solid #cbcedc;
  padding: 14px 22px;
}

.m5-detail-header h2 {
  margin: 0;
  flex: 1;
  text-align: center;
  color: #0d1333;
  font-size: 34px;
}

.m5-edit-btn {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-size: 16px;
  font-weight: 600;
  cursor: pointer;
}

.m5-detail-body {
  overflow: auto;
  padding: 24px 56px 20px;
  color: #1f2b4d;
}

.m5-detail-footer {
  margin-top: auto;
  border-top: 0.5px solid #cbcedc;
  padding: 12px 22px 20px;
}

.m5-detail-footer .m4-btn-primary {
  width: 360px;
  float: right;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-header {
  height: 80px;
  padding: 0 28px;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-radius: 16px 0 0 0;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-header::after {
  content: "";
  width: 40px;
  height: 40px;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m4-details-back {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  font-size: 24px;
  line-height: 1;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-header h2 {
  font-size: 24px;
  line-height: 160%;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-body {
  padding: 0;
  color: #0d1333;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form {
  width: min(700px, calc(100% - 120px));
  margin: 0 auto;
  padding: 78px 0 56px;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-field {
  margin-bottom: 28px;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-field:last-child {
  margin-bottom: 0;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-field label {
  display: block;
  margin: 0 0 8px;
  color: #53576c;
  font-weight: 500;
  font-size: 14px;
  line-height: 160%;
  letter-spacing: 0.005em;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-select-wrap {
  position: relative;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-select-input {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 46px;
  font-weight: 500;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-select-chevron {
  position: absolute;
  right: 12px;
  top: 50%;
  transform: translateY(-50%);
  width: 16px;
  height: 16px;
  color: #172ea1;
  pointer-events: none;
  font-size: 16px;
  line-height: 1;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form .m5-input {
  border: 1px solid #cbcedc;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form .m5-input::placeholder {
  color: #a1a1aa;
  opacity: 1;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-section {
  margin: 0 0 14px;
  color: #434965;
  font-weight: 600;
  font-size: 16px;
  line-height: 160%;
  letter-spacing: 0.01em;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-address-grid {
  display: grid;
  grid-template-columns: 1fr 0.7fr;
  gap: 16px 20px;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-address-grid .m5-app-form-field {
  margin-bottom: 0;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-full-span {
  grid-column: 1 / -1;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-footer {
  padding: 20px 80px 40px;
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-footer .m4-btn-primary {
  width: 400px;
  float: none;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] {
  width: min(900px, calc(100vw - 420px));
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-header {
  min-height: 78px;
  padding: 0 26px 0 20px;
  border-bottom: 0.5px solid #dde1ef;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-header h2 {
  margin: 0;
  flex: 0 1 auto;
  text-align: left;
  font-size: 24px;
  line-height: 140%;
  font-weight: 600;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-body {
  padding: 0;
  overflow: auto;
}

.m5-p11-review {
  width: min(760px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0 30px;
  color: #2f3a5c;
}

.m5-p11-letter {
  padding-bottom: 18px;
  border-bottom: 0.5px solid #dde1ef;
}

.m5-p11-date,
.m5-p11-address-line,
.m5-p11-salutation,
.m5-p11-body-copy {
  margin: 0;
}

.m5-p11-date {
  color: #5a6078;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 18px;
}

.m5-p11-date span {
  font-weight: 700;
}

.m5-p11-address-line,
.m5-p11-salutation,
.m5-p11-body-copy {
  font-size: 17px;
  line-height: 160%;
}

.m5-p11-salutation {
  margin-top: 12px;
}

.m5-p11-body-copy {
  margin-top: 14px;
}

.m5-p11-section {
  padding: 18px 0 14px;
  border-bottom: 0.5px solid #dde1ef;
}

.m5-p11-section h3 {
  margin: 0 0 12px;
  color: #5a6078;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.m5-p11-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px 32px;
}

.m5-p11-item span {
  display: block;
  color: #5a6078;
  font-size: 13px;
  line-height: 140%;
}

.m5-p11-item strong {
  display: block;
  margin-top: 2px;
  color: #0d1333;
  font-size: 16px;
  line-height: 150%;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.m5-p11-item-full {
  grid-column: 1 / -1;
}

.m5-p11-declaration {
  border-bottom: 0;
  padding-bottom: 0;
}

.m5-p11-declaration ul {
  margin: 0;
  padding-left: 18px;
  display: grid;
  gap: 10px;
}

.m5-p11-declaration li {
  color: #2f3a5c;
  font-size: 16px;
  line-height: 160%;
}

.m5-p11-edit-icon {
  width: 12px;
  height: 12px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 0;
}

.m5-p11-edit-icon svg {
  width: 12px;
  height: 12px;
  display: block;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-edit-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 16px;
  font-weight: 600;
  line-height: 140%;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-footer {
  border-top: 0.5px solid #dde1ef;
  padding: 14px 22px 18px;
  min-height: 86px;
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  column-gap: 18px;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] #m5DetailError {
  display: none;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-action-hint {
  grid-column: 1;
  justify-self: start;
}

.m5-p11-footer-confirm {
  display: inline-flex;
  align-items: flex-start;
  gap: 10px;
  max-width: 340px;
  color: #1f2b4d;
  font-size: 17px;
  line-height: 150%;
}

.m5-p11-footer-confirm input {
  margin-top: 4px;
  width: 14px;
  height: 14px;
}

.m5-p11-footer-confirm.is-invalid input {
  outline: 1px solid #d03b37;
  outline-offset: 1px;
}

.m5-p11-confirm-error {
  margin: 4px 0 0 24px;
  min-height: 18px;
  color: #d03b37;
  font-size: 13px;
  line-height: 140%;
}

.m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-footer .m4-btn-primary {
  grid-column: 2;
  justify-self: end;
  width: 460px;
  height: 52px;
  float: none;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] {
  width: min(900px, calc(100vw - 420px));
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-header {
  min-height: 78px;
  padding: 0 22px;
  border-bottom: 0.5px solid #dde1ef;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-header::after {
  content: "";
  width: 40px;
  height: 40px;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m4-details-back {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  font-size: 24px;
  line-height: 1;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-header h2 {
  margin: 0;
  text-align: center;
  font-size: 24px;
  line-height: 140%;
  font-weight: 600;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-body {
  padding: 0;
  overflow: auto;
}

.m5-p13-request {
  width: min(760px, calc(100% - 96px));
  margin: 0 auto;
  padding: 34px 0 30px;
  color: #2f3a5c;
}

.m5-p13-letter {
  padding-bottom: 18px;
  border-bottom: 0.5px solid #dde1ef;
}

.m5-p13-date,
.m5-p13-line,
.m5-p13-subject,
.m5-p13-copy,
.m5-p13-closing,
.m5-p13-signature {
  margin: 0;
}

.m5-p13-date {
  color: #5a6078;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: 0.01em;
  margin-bottom: 16px;
}

.m5-p13-date span {
  font-weight: 700;
}

.m5-p13-line,
.m5-p13-subject,
.m5-p13-copy,
.m5-p13-closing,
.m5-p13-signature {
  font-size: 17px;
  line-height: 160%;
}

.m5-p13-subject {
  margin-top: 14px;
}

.m5-p13-copy {
  margin-top: 14px;
}

.m5-p13-account-section {
  padding: 18px 0 14px;
  border-bottom: 0.5px solid #dde1ef;
}

.m5-p13-account-section h3 {
  margin: 0 0 12px;
  color: #5a6078;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.01em;
}

.m5-p13-account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 32px;
}

.m5-p13-item span {
  display: block;
  color: #5a6078;
  font-size: 13px;
  line-height: 140%;
}

.m5-p13-item strong {
  display: block;
  margin-top: 2px;
  color: #0d1333;
  font-size: 16px;
  line-height: 150%;
  font-weight: 500;
  overflow-wrap: anywhere;
}

.m5-p13-request-body {
  padding: 18px 0 46px;
}

.m5-p13-closing {
  margin-top: 16px;
}

.m5-p13-signature {
  margin-top: 4px;
  font-weight: 600;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-footer {
  border-top: 0.5px solid #dde1ef;
  padding: 14px 22px 18px;
  min-height: 86px;
  display: flex;
  align-items: center;
  justify-content: flex-end;
}

.m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-footer .m4-btn-primary {
  width: 460px;
  height: 52px;
  float: none;
}

@media (min-width: 768px) {
  .m5-detail-panel[data-doc-code="proof_of_identity"],
  .m5-detail-panel[data-doc-code="proof_of_address"],
  .m5-detail-panel[data-doc-code="latest_photograph"],
  .m5-detail-panel[data-doc-code="declaration"] {
  width: min(960px, calc(100vw - 478px));
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-header,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-header,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-header,
  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-header {
  min-height: 80px;
  padding: 0 28px;
  border-bottom: 0.5px solid #cbcedc;
  display: grid;
  grid-template-columns: 40px 1fr 40px;
  align-items: center;
  border-radius: 16px 0 0 0;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-header::after,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-header::after,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-header::after,
  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-header::after {
  content: "";
  width: 40px;
  height: 40px;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m4-details-back,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m4-details-back,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m4-details-back,
  .m5-detail-panel[data-doc-code="declaration"] .m4-details-back {
  width: 40px;
  height: 40px;
  padding: 8px;
  border-radius: 8px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  justify-self: start;
  font-size: 24px;
  line-height: 1;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-header h2,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-header h2,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-header h2,
  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-header h2 {
  margin: 0;
  text-align: center;
  color: #0d1333;
  font-size: 24px;
  line-height: 160%;
  font-weight: 600;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-body,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-body {
  overflow: auto;
  padding: 84px 60px 56px;
  }

  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-body {
  overflow: auto;
  padding: 66px 60px 56px;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-body {
  overflow: auto;
  padding: 58px 56px 32px;
  }

  .m5-declaration-review {
  width: min(720px, 100%);
  margin: 0 auto;
  color: #434965;
  font-size: 18px;
  line-height: 160%;
  }

  .m5-declaration-intro {
  margin: 0 0 26px;
  color: #434965;
  font-size: 18px;
  line-height: 160%;
  font-weight: 500;
  }

  .m5-declaration-list {
  margin: 0;
  padding: 0 0 0 20px;
  color: #434965;
  font-size: 18px;
  line-height: 160%;
  }

  .m5-declaration-list li {
  margin: 0 0 18px;
  padding-left: 2px;
  }

  .m5-declaration-list li:last-child {
  margin-bottom: 0;
  }

  .m5-p15-upload {
  width: min(700px, 100%);
  margin: 0 auto;
  }

  .m5-p19-upload {
  width: min(700px, 100%);
  margin: 0 auto;
  }

  .m5-p19-upload-zone {
  margin: 0;
  }

  .m5-p15-upload .m5-field {
  margin-bottom: 0;
  }

  .m5-p15-upload .m5-field label {
  margin-bottom: 8px;
  color: #53576c;
  font-size: 14px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
  }

  .m5-p15-upload .m5-input {
  appearance: none;
  -webkit-appearance: none;
  border: 1px solid #cbcedc;
  border-radius: 8px;
  height: 52px;
  padding: 0 46px 0 12px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16' fill='none'%3E%3Cpath d='M4 6L8 10L12 6' stroke='%23172EA1' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 16px 16px;
  color: #0d1333;
  font-size: 18px;
  font-weight: 500;
  line-height: 160%;
  }

  .m5-p15-divider {
  height: 0;
  border-top: 0.5px solid #cbcedc;
  margin: 38px 0 30px;
  }

  .m5-p15-upload-zone {
  margin: 0 0 18px;
  min-height: 126px;
  border: 1.5px dashed #6379e9;
  border-radius: 8px;
  background: #edf0fc;
  padding: 18px 20px;
  }

  .m5-p15-upload-plus {
  width: 24px;
  height: 24px;
  display: inline-block;
  margin-bottom: 10px;
  }

  .m5-p15-upload-plus svg {
  width: 100%;
  height: 100%;
  display: block;
  }

  .m5-p15-upload-zone h4 {
  margin: 0 0 4px;
  color: #0d1333;
  font-size: 18px;
  font-weight: 600;
  line-height: 160%;
  }

  .m5-p15-upload-zone p {
  margin: 0;
  color: #53576c;
  font-size: 16px;
  font-weight: 500;
  line-height: 160%;
  letter-spacing: 0.005em;
  }

  .m5-p15-or-divider {
  margin: 18px 0;
  color: #434965;
  font-size: 16px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.01em;
  }

  .m5-p15-digilocker-btn {
  height: 52px;
  border: 1px solid #172ea1;
  border-radius: 8px;
  background: #fff;
  color: #172ea1;
  font-size: 18px;
  font-weight: 600;
  line-height: 160%;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  }

  .m5-p15-digilocker-logo {
  width: 114px;
  height: 28px;
  display: inline-flex;
  }

  .m5-p15-digilocker-logo img {
  width: 100%;
  height: 100%;
  display: block;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-footer,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-footer,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-footer {
  border-top: 0.5px solid #cbcedc;
  padding: 20px 80px 40px;
  min-height: 112px;
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer {
  border-top: 0.5px solid #cbcedc;
  padding: 20px 80px 24px 56px;
  min-height: 112px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-rows: auto auto;
  align-items: center;
  column-gap: 20px;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-footer .m4-btn-primary,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-footer .m4-btn-primary,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-footer .m4-btn-primary {
  width: 400px;
  height: 52px;
  float: none;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer .m4-btn-primary {
  width: 400px;
  height: 52px;
  float: none;
  grid-column: 2;
  grid-row: 1 / span 2;
  align-self: center;
  justify-self: end;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer .m5-detail-action-hint {
  grid-column: 1;
  grid-row: 1;
  min-height: 0;
  margin: 0;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer #m5DetailError {
  grid-column: 1;
  grid-row: 2;
  margin: 4px 0 0 24px;
  }

  .m5-declaration-checkbox {
  margin: 0;
  align-items: flex-start;
  color: #0d1333;
  font-size: 16px;
  line-height: 160%;
  }

  .m5-declaration-checkbox input {
  margin-top: 4px;
  }
}

.m5-detail-action-hint {
  min-height: 0;
  color: #53576c;
  font-size: 14px;
}

.m5-field {
  margin-bottom: 18px;
}

.m5-field label {
  display: block;
  color: #53576c;
  margin-bottom: 8px;
  font-size: 14px;
}

.m5-input {
  width: 100%;
  height: 52px;
  border: 1px solid #cad0e5;
  border-radius: 8px;
  font-size: 18px;
  color: #0d1333;
  padding: 0 12px;
}

.m5-form-section {
  margin-top: 24px;
  color: #53576c;
  font-weight: 700;
  font-size: 16px;
  text-transform: uppercase;
}

.m5-review-block {
  color: #2f3a5c;
  font-size: 16px;
  line-height: 170%;
}

.m5-review-block h4 {
  margin: 26px 0 8px;
  color: #55607c;
  font-size: 20px;
}

.m5-review-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px 22px;
  border-top: 0.5px solid #d5d9e8;
  border-bottom: 0.5px solid #d5d9e8;
  padding: 12px 0;
}

.m5-kv span {
  display: block;
  color: #626b84;
  font-size: 12px;
  text-transform: uppercase;
}

.m5-kv strong {
  font-size: 16px;
}

.m5-checkbox {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  margin-top: 14px;
  font-size: 16px;
  color: #1f2b4d;
}

.m5-upload-zone {
  margin: 18px 0 12px;
  border: 1px dashed #5f7be8;
  border-radius: 10px;
  background: #edf1ff;
  min-height: 116px;
  display: grid;
  place-items: center;
  text-align: center;
  padding: 16px;
}

.m5-upload-zone h4 {
  margin: 8px 0 4px;
  font-size: 20px;
}

.m5-upload-zone p {
  margin: 0;
  color: #59607a;
}

.m5-upload-divider {
  margin: 8px 0;
  text-align: center;
  color: #59607a;
}

.m5-digilocker-btn {
  width: 100%;
  height: 50px;
  border: 1px solid #4161d8;
  border-radius: 8px;
  background: #fff;
  color: #2746c2;
  font-size: 18px;
  font-weight: 600;
  cursor: pointer;
}

.m5-file-row {
  margin-top: 10px;
  border: 1px solid #d8dced;
  border-radius: 8px;
  padding: 10px 12px;
  display: flex;
  justify-content: space-between;
  gap: 8px;
  align-items: center;
}

.m5-link-btn {
  border: 0;
  background: transparent;
  color: #172ea1;
  font-weight: 600;
  cursor: pointer;
}

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

.m5-review-list .m5-row {
  min-height: 78px;
}

.m5-review-list .m5-row-main p {
  margin-top: 2px;
}

@media (min-width: 768px) {
  #m5UploadScreen .m5-shell {
    --m5-actions-height: 116px;
    --m5-actions-height-ready: 136px;
    height: 100dvh;
    overflow: hidden;
  }

  #m5UploadScreen .m5-shell.is-ready-for-review {
    --m5-actions-height: var(--m5-actions-height-ready);
  }

  #m5UploadScreen .m5-header {
    position: fixed;
    left: 0;
    right: 0;
    top: 0;
    z-index: 40;
  }

  #m5UploadScreen .m5-progress-line {
    position: fixed;
    left: 440px;
    right: 0;
    top: 68px;
    z-index: 39;
    margin-left: 0;
  }

  #m5UploadScreen .m5-body {
    display: block;
    min-height: 100dvh;
  }

  #m5UploadScreen .m5-sidebar {
    position: fixed;
    left: 0;
    top: 70px;
    bottom: 0;
    width: 440px;
    padding-bottom: 132px;
    overflow: hidden;
  }

  #m5UploadScreen .m5-sidebar-support {
    position: absolute;
    left: 82px;
    right: 52px;
    bottom: 26px;
    margin-top: 0;
    border-top: 0;
    padding-top: 0;
  }

  #m5VerificationBoundaryScreen .m5-sidebar-support {
    margin-top: auto;
    border-top: 0;
    padding-top: 0;
  }

  #m5UploadScreen .m5-main {
    position: fixed;
    left: 440px;
    right: 0;
    top: 70px;
    bottom: var(--m5-actions-height);
    width: auto;
    margin: 0;
    overflow-y: auto;
    padding: 60px 80px 48px;
  }

  #m5UploadScreen .m5-main > * {
    width: min(700px, 100%);
    margin-left: auto;
    margin-right: auto;
  }

  #m5UploadScreen .m5-actions {
    position: fixed;
    left: 440px;
    right: 0;
    bottom: 0;
    z-index: 35;
    min-height: var(--m5-actions-height);
    height: auto;
    border-top: 0;
    background: #fff;
    box-shadow: 0 -8px 18px rgba(13, 19, 51, 0.04);
    padding: 12px 80px 26px;
    display: grid;
    grid-template-columns: 205px 1fr;
    align-items: end;
    gap: 16px;
  }

  #m5UploadScreen .m5-submit-wrap {
    justify-self: end;
    width: 360px;
  }
}

@media (max-width: 1100px) and (min-width: 768px) {
  .m5-progress-line {
    margin-left: 340px;
  }

  .m5-body {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .m5-sidebar {
    padding: 44px 28px 24px;
  }

  .m5-main {
    width: min(640px, calc(100% - 48px));
    padding: 42px 0 146px;
  }

  .m5-actions {
    left: 340px;
    padding: 16px 36px;
  }

  .m5-detail-panel {
    width: 72vw;
  }

  .m5-detail-panel[data-doc-code="written_request_to_bank"] {
    width: 72vw;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-body,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-body,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-body {
    padding-left: 48px;
    padding-right: 48px;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-body {
    padding-left: 44px;
    padding-right: 44px;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-footer,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-footer,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-footer {
    padding: 12px 36px 24px;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer {
    padding: 12px 36px 24px 44px;
  }

  .m5-detail-panel[data-doc-code="proof_of_identity"] .m5-detail-footer .m4-btn-primary,
  .m5-detail-panel[data-doc-code="proof_of_address"] .m5-detail-footer .m4-btn-primary,
  .m5-detail-panel[data-doc-code="latest_photograph"] .m5-detail-footer .m4-btn-primary {
    width: 320px;
  }

  .m5-detail-panel[data-doc-code="declaration"] .m5-detail-footer .m4-btn-primary {
    width: 320px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form {
    width: calc(100% - 96px);
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-footer {
    padding-left: 48px;
    padding-right: 48px;
  }

  #m5UploadScreen .m5-progress-line {
    left: 340px;
  }

  #m5UploadScreen .m5-sidebar {
    width: 340px;
    top: 70px;
    padding-bottom: 124px;
  }

  #m5UploadScreen .m5-sidebar-support {
    left: 28px;
    right: 28px;
    bottom: 24px;
  }

  #m5VerificationBoundaryScreen .m5-sidebar-support {
    padding-top: 0;
  }

  #m5UploadScreen .m5-main {
    left: 340px;
    bottom: var(--m5-actions-height);
    padding: 42px 36px 40px;
  }

  #m5UploadScreen .m5-main > * {
    width: min(640px, 100%);
  }

  #m5UploadScreen .m5-shell {
    --m5-actions-height: 112px;
    --m5-actions-height-ready: 132px;
  }

  #m5UploadScreen .m5-actions {
    left: 340px;
    min-height: var(--m5-actions-height);
    height: auto;
    padding: 12px 36px 24px;
    grid-template-columns: 190px 1fr;
  }

  #m5UploadScreen .m5-submit-wrap {
    width: 320px;
  }
}

@media (min-width: 768px) {
  #m3App[data-screen="documentDetail"] #m5UploadScreen {
    display: block;
    pointer-events: none;
  }
}

@media (max-width: 767px) {
  .m5-header,
  .m5-progress-line,
  .m5-sidebar {
    display: none;
  }

  .m5-mobile-top {
    display: flex;
    justify-content: space-between;
    align-items: center;
    padding: 62px 16px 22px;
  }

  .m5-mobile-progress-line {
    display: block;
  }

  .m5-body {
    display: block;
    min-height: auto;
  }

  .m5-main {
    width: 100%;
    padding: 12px 16px 178px;
    margin: 0;
  }

  .m5-estimate {
    font-size: 16px;
  }

  .m5-progress-text {
    margin: -12px 0 12px;
    font-size: 16px;
  }

  .m5-row {
    min-height: 74px;
    padding: 12px 12px;
  }

  .m5-row-main h3 {
    font-size: 16px;
  }

  .m5-row-main p {
    font-size: 16px;
  }

  .m5-row-status {
    font-size: 14px;
  }

  .m5-mobile-support {
    display: block;
    margin-top: 26px;
    border-top: 1px solid #dde1ef;
    padding-top: 24px;
  }

  .m5-mobile-support p {
    font-size: 16px;
  }

  .m5-actions {
    display: block;
    position: fixed;
    left: 16px;
    right: 16px;
    bottom: 31px;
    background: #fff;
    border-top: 0;
    padding: 0;
  }

  #m5BackButton,
  #m5BoundaryBackButton {
    display: none;
  }

  .m5-submit-wrap {
    width: 100%;
  }

  .m5-submit-hint {
    margin-bottom: 10px;
  }

  #m5SubmitButton,
  #m5BoundarySignButton {
    width: 100%;
    min-width: 100%;
    height: 50px;
    font-size: 16px;
  }

  .m5-detail-overlay {
    background: #fff;
    display: block;
  }

  .m5-detail-panel {
    width: 100%;
    border-radius: 0;
    height: 100dvh;
  }

  .m5-detail-header {
    padding: 28px 16px 12px;
  }

  .m5-detail-header h2 {
    font-size: 17px;
    color: #53576c;
    text-transform: uppercase;
  }

  .m5-detail-body {
    padding: 14px 16px 120px;
  }

  .m5-detail-footer {
    position: fixed;
    left: 0;
    right: 0;
    bottom: 0;
    background: #fff;
    padding: 10px 16px 20px;
  }

  .m5-detail-footer .m4-btn-primary {
    float: none;
    width: 100%;
  }

  .m5-input {
    height: 48px;
    font-size: 16px;
  }

  .m5-review-grid {
    grid-template-columns: 1fr;
    gap: 8px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form {
    width: 100%;
    margin: 0;
    padding: 20px 16px 48px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-field {
    margin-bottom: 28px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-address-grid {
    display: block;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-address-grid .m5-app-form-field {
    margin-bottom: 28px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-app-form-section {
    margin: 44px 0 22px;
    font-weight: 500;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-footer {
    padding: 10px 16px 20px;
    min-height: 0;
    display: block;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="input"] .m5-detail-footer .m4-btn-primary {
    width: 100%;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] {
    width: 100%;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-header h2 {
    font-size: 22px;
  }

  .m5-p11-review {
    width: 100%;
    padding: 18px 16px 20px;
  }

  .m5-p11-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-footer {
    padding: 10px 16px 20px;
    min-height: 0;
    display: block;
  }

  .m5-p11-footer-confirm {
    display: flex;
    max-width: none;
    margin-bottom: 12px;
    font-size: 16px;
  }

  .m5-detail-panel[data-doc-code="application_form"][data-app-form-layout="review"] .m5-detail-footer .m4-btn-primary {
    width: 100%;
  }

  .m5-detail-panel[data-doc-code="written_request_to_bank"] {
    width: 100%;
  }

  .m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-header h2 {
    font-size: 22px;
  }

  .m5-p13-request {
    width: 100%;
    padding: 18px 16px 20px;
  }

  .m5-p13-account-grid {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  .m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-footer {
    padding: 10px 16px 20px;
    min-height: 0;
    display: block;
  }

  .m5-detail-panel[data-doc-code="written_request_to_bank"] .m5-detail-footer .m4-btn-primary {
    width: 100%;
  }
}
