@media screen {
  .shell.guided-workspace {
    --guide-main-padding: clamp(13px, 3vw, 28px);
    --guide-content-width: 850px;
    grid-template-columns: minmax(0, 1fr);
  }

  .shell.guided-workspace .sidebar { display: none; }

  .shell.guided-workspace .main {
    max-width: calc(var(--guide-content-width) + 2 * var(--guide-main-padding));
    padding: 16px var(--guide-main-padding) 28px;
  }

  .shell.guided-workspace .topbar {
    min-height: 62px;
    padding: 8px max(var(--guide-main-padding), calc((100% - var(--guide-content-width)) / 2));
    gap: 8px 14px;
  }

  .shell.guided-workspace .top-tools {
    flex: 0 1 auto;
    flex-wrap: wrap;
    justify-content: end;
    gap: 6px;
    max-inline-size: 100%;
  }

  .shell.guided-workspace :is(.breadcrumbs > span:first-child, .crumb-arrow) { display: none; }
  .shell.guided-workspace .breadcrumbs > .crumb-page { display: inline; }

  .shell .top-tools:has(.guide-mode-toggle, .manual-toggle) {
    flex: 0 1 auto;
    flex-wrap: wrap;
    gap: 6px;
    max-inline-size: 100%;
  }

  .shell .top-tools > :is(.guide-mode-toggle, .manual-toggle) {
    min-block-size: 44px;
    max-inline-size: 100%;
    padding-inline: 11px;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .front-actions .front-guide-start {
    max-inline-size: 100%;
    line-height: 1.35;
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .shell.guided-workspace .top-tools :is(.sign-out, .language-switcher button) { min-block-size: 44px; }

  .guide-journey .guide-content {
    display: grid;
    align-content: start;
    gap: 12px;
    min-width: 0;
  }

  .guide-journey .guide-action-card :is(button, .button) { min-block-size: 44px; }
  .guide-journey .guide-document-list { padding-inline-start: 1.25rem; line-height: 1.6; }
  .guide-journey .guide-offer {
    display: grid;
    gap: 4px;
    width: fit-content;
    padding: 10px 14px;
    border-radius: 10px;
    color: var(--blue-dark);
    background: var(--blue-soft);
  }
  .guide-journey .guide-offer strong { font-size: 1.4rem; }

  .guide-journey .guide-report-links {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 8px 13px;
    min-width: 0;
    font-size: .94rem;
    line-height: 1.55;
  }

  .loan-journey .borrower-guide {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    gap: 14px;
    min-width: 0;
    padding: clamp(16px, 2.7vw, 30px);
    border: 1px solid #304f83;
    border-radius: var(--journey-radius, 19px);
    color: #fff;
    background: radial-gradient(ellipse at 100% 0, #2c548c, transparent 62%),
      linear-gradient(122deg, #142541, #193660);
    box-shadow: 0 6px 16px #17264315;
  }

  .borrower-guide .guide-task {
    display: grid;
    justify-items: start;
    gap: 7px;
    min-width: 0;
  }

  .borrower-guide .guide-task :is(h1, h2) {
    margin: 0;
    color: #fff;
    font-size: clamp(1.55rem, 3vw, 2.28rem);
    font-weight: 740;
    line-height: 1.14;
    letter-spacing: -.025em;
    overflow-wrap: anywhere;
    text-wrap: balance;
  }

  .borrower-guide .guide-task p {
    max-inline-size: 64ch;
    margin: 0;
    color: #dbe7fc;
    font-size: 1.04rem;
    line-height: 1.52;
  }

  .borrower-guide .guide-progress {
    max-inline-size: 100%;
    margin: 0;
    color: #dbe7fc;
    font-size: .87rem;
    font-weight: 750;
    line-height: 1.45;
  }

  .borrower-guide .guide-progress:not(progress) {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 5px 10px;
  }

  .borrower-guide .guide-progress span {
    padding: 3px 9px;
    border: 1px solid #9bbcff54;
    border-radius: 999px;
    background: #9bbcff1c;
  }

  .borrower-guide :is(.guide-progress progress, progress.guide-progress) {
    inline-size: 82px;
    block-size: 7px;
    accent-color: #a8c3ff;
  }

  .borrower-guide .guide-tools {
    display: flex;
    flex-wrap: wrap;
    align-items: center;
    gap: 7px;
    min-width: 0;
  }

  .borrower-guide :is(.guide-voice, .guide-leave) {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    gap: 7px;
    min-inline-size: 44px;
    min-block-size: 44px;
    max-inline-size: 100%;
    padding: 7px 12px;
    border: 1px solid transparent;
    border-radius: 9px;
    font: inherit;
    font-size: .95rem;
    font-weight: 730;
    line-height: 1.3;
    text-align: center;
    white-space: normal;
    box-shadow: none;
  }

  .borrower-guide .guide-voice {
    color: #173467;
    background: #fff;
    border-color: #c8dafe;
  }

  .borrower-guide .guide-voice:hover:not(:disabled),
  .borrower-guide .guide-voice[aria-pressed="true"] {
    color: #112b60;
    background: #dce7ff;
  }

  .borrower-guide .guide-voice .icon {
    inline-size: 17px;
    block-size: 17px;
    color: var(--blue);
  }

  .borrower-guide .guide-voice-status {
    flex-basis: 100%;
    margin: 0;
    color: #dbe7fc;
    font-size: .9rem;
    line-height: 1.5;
  }

  .borrower-guide .guide-voice-status:empty { position: absolute; }

  .borrower-guide .guide-leave {
    color: #e3edff;
    background: transparent;
    border-color: #a1baff67;
  }

  .borrower-guide .guide-leave:hover:not(:disabled) {
    color: #fff;
    background: #9bbcff24;
  }

  .borrower-guide .guide-helper {
    margin: 0;
    padding: 9px 12px;
    border-inline-start: 3px solid #a0baff;
    border-radius: 5px;
    color: #eef4ff;
    background: #9bbcff1c;
    font-size: .93rem;
    line-height: 1.55;
  }

  .loan-journey .guide-details {
    min-width: 0;
    padding: 0 12px;
    border: 1px solid var(--journey-line);
    border-radius: 10px;
    color: var(--ink);
    background: var(--surface);
  }

  .loan-journey .guide-details > summary {
    display: list-item;
    min-block-size: 44px;
    padding-block: 11px;
    font-size: .95rem;
    font-weight: 730;
    line-height: 1.5;
    cursor: pointer;
  }

  .loan-journey .guide-details > summary::marker { color: var(--blue); }
  .loan-journey .guide-details[open] > summary { margin-bottom: 8px; border-bottom: 1px solid var(--journey-line); }
  .loan-journey .guide-details[open] { padding-bottom: 12px; }
  .loan-journey .guide-details .guide-detail-body { min-width: 0; font-size: .95rem; line-height: 1.6; }

  .borrower-guide .guide-details {
    padding-inline: 0;
    border: 0;
    border-top: 1px solid #a1baff5b;
    border-radius: 0;
    color: #ecf3ff;
    background: transparent;
  }

  .borrower-guide .guide-details > summary::marker { color: #a8c3ff; }
  .borrower-guide .guide-details[open] > summary { border-color: #a1baff5b; }
  .borrower-guide .guide-details[open] { padding-bottom: 0; }

  .loan-journey .borrower-guide :is(button, a, summary):focus-visible {
    outline: 3px solid #a8c3ff;
    outline-offset: 3px;
  }

  .borrower-guide [hidden] { display: none; }

  .drawer .borrower-manual {
    display: grid;
    gap: 13px;
    min-width: 0;
    color: var(--text);
    font-size: 1rem;
    line-height: 1.62;
    overflow-wrap: anywhere;
  }

  .drawer .borrower-manual h3 {
    margin: 0;
    color: var(--ink);
    font-size: 1.14rem;
    font-weight: 740;
    line-height: 1.35;
  }

  .drawer .borrower-manual p {
    color: var(--text);
    font-size: 1rem;
    line-height: inherit;
  }

  .drawer .borrower-manual h3 + :is(p, ol) { margin-block-start: 5px; }

  .drawer .borrower-manual ol {
    display: grid;
    gap: 9px;
    padding-inline-start: 1.55rem;
  }

  .drawer .borrower-manual li { padding-inline-start: .2rem; }
  .drawer .borrower-manual li::marker { color: var(--blue-dark); font-weight: 750; }
  .drawer .borrower-manual li p { margin-block-start: 3px; }
  .drawer .borrower-manual strong { color: var(--ink); }

  .drawer:has(.borrower-manual) .drawer-close {
    min-inline-size: 44px;
    min-block-size: 44px;
  }

  html:lang(hi) :is(.borrower-guide h1, .borrower-guide h2, .guide-progress, .guide-voice, .guide-leave, .guide-action-card h2) {
    letter-spacing: normal;
    line-height: 1.36;
  }

  html:lang(hi) :is(.top-tools .guide-mode-toggle, .top-tools .manual-toggle, .front-actions .front-guide-start,
      .front-quick-links .front-manual, .drawer:has(.borrower-manual) .drawer-top h2, .drawer .borrower-manual h3) {
    letter-spacing: normal;
    line-height: 1.43;
  }

  html:lang(hi) .drawer .borrower-manual { line-height: 1.72; }

  @media (max-width: 540px) {
    .shell.guided-workspace .topbar { justify-content: flex-end; }
    .shell.guided-workspace .breadcrumbs { display: none; }
    .shell.guided-workspace .top-tools { flex: 1 1 auto; }

    .shell .topbar:has(.guide-mode-toggle, .manual-toggle) { flex-wrap: wrap; }

    .shell .topbar:has(.guide-mode-toggle, .manual-toggle) .top-tools {
      flex: 1 1 100%;
      justify-content: start;
    }

    .shell .top-tools > :is(.guide-mode-toggle, .manual-toggle) { padding-inline: 9px; }
    .guide-journey .guide-action-card .journey-actions > .button { inline-size: 100%; }
  }

  @media (min-width: 840px) {
    .loan-journey .borrower-guide {
      grid-template-columns: minmax(0, 1fr) minmax(0, auto);
      align-items: start;
      gap: 12px clamp(15px, 3vw, 36px);
    }

    .borrower-guide > .guide-tools { justify-content: end; align-self: center; }
    .borrower-guide > :is(.guide-helper, .guide-details, .guide-voice-status) { grid-column: 1 / -1; }
  }
}

@media print {
  .loan-journey .borrower-guide { display: none !important; }

  body:has(.bank-pack-print) .guide-journey :is(.guide-content, .guide-action-card, .guide-detail-body) > :not(.bank-pack-print, :has(.bank-pack-print)) {
    display: none !important;
  }

  body:has(.bank-pack-print) .guide-journey :is(.guide-content, .guide-action-card, .guide-detail-body):has(.bank-pack-print) {
    display: block !important;
    padding: 0;
    border: 0;
    box-shadow: none;
  }
}
