/* Workspace theme. Report printing continues to use the base stylesheet. */
@media screen {
  :is(.shell, .shell ~ .drawer, .shell ~ .status-message) {
    --radius: 20px;
    --shadow: 0 1px 2px rgb(22 48 94 / 4%), 0 10px 24px rgb(22 48 94 / 4%);
  }

  .shell {
    grid-template-columns: 234px minmax(0, 1fr);
    color: var(--ink);
    background: var(--ground);
  }

  .shell .sidebar {
    padding: 27px 18px 20px;
    border-right: 1px solid #8397c237;
    background: radial-gradient(ellipse at 0 0, #152340 0%, transparent 65%), var(--navy-deep);
  }

  .shell .brand { gap: 12px; margin-bottom: 43px; }
  .shell .brand-mark {
    border-radius: 13px;
    color: #e8efff;
    background: linear-gradient(150deg, #5378f1, #274cc1);
    box-shadow: 0 5px 14px #0003;
  }
  .shell .brand-name { color: #fff; font-size: 15px; line-height: 1.16; }
  .shell .brand-detail { color: #a8b9dc; line-height: 1.45; }
  .shell .nav-label { color: #a7b7d6; letter-spacing: .13em; }
  .shell .nav-list { gap: 5px; }
  .shell .nav-button { border: 1px solid transparent; border-radius: 10px; color: #c5d1e9; line-height: 1.35; }
  .shell .nav-button:hover { color: #fff; background: #ffffff0d; }
  .shell .nav-button[aria-current="page"] {
    border-color: #8397c237;
    color: #fff;
    background: #ffffff14;
    box-shadow: inset 3px 0 #7899ff;
  }
  .shell .nav-button[aria-current="page"] .icon { color: #a5baff; }
  .shell .workshop-note { border-color: #8397c237; background: #8397c20e; color: #c0cdea; }
  .shell .workshop-note strong { color: #ecf1ff; }
  .shell .workshop-note .icon { color: #9eb7ff; }
  .shell .side-reset { color: #bac9e6; }

  .shell .topbar {
    min-height: 68px;
    padding-inline: clamp(20px, 3vw, 42px);
    border-color: var(--line);
    background: var(--surface);
  }
  .shell .breadcrumbs { font-weight: 550; }
  .shell .crumb-arrow { color: #9aa6ba; }
  .shell .crumb-page { color: var(--ink); }
  .shell .top-tools { min-width: 0; }
  .shell .language-switcher { border-color: var(--line); background: var(--surface); }
  .shell .language-switcher button[aria-pressed="true"] { background: var(--blue-soft); color: var(--blue-dark); }
  .shell .main { padding: 26px clamp(20px, 3vw, 42px) 34px; max-width: 1510px; }
  .shell .footer { color: var(--muted); border-color: var(--line); }

  :is(.shell, .shell ~ .drawer) .button { border-radius: 10px; font-weight: 700; }
  :is(.shell, .shell ~ .drawer) .button-primary { box-shadow: 0 3px 7px #3063dc29; }
  :is(.shell, .shell ~ .drawer) .button-primary:disabled { box-shadow: none; }
  :is(.shell, .shell ~ .drawer) .button-secondary { border-color: #cdd8e8; color: #223957; }
  :is(.shell, .shell ~ .drawer) .button-secondary:hover:not(:disabled) { border-color: #9fb3d5; background: #f6f9ff; }
  :is(.shell, .shell ~ .drawer) .button-quiet { background: #f1f5ff; }
  :is(.shell, .shell ~ .drawer) .button-quiet:hover:not(:disabled) { background: #e7eeff; }
  :is(.shell, .shell ~ .drawer) a { color: var(--blue); }
  :is(.shell, .shell ~ .drawer) a.button-primary { color: #fff; }
  :is(.shell, .shell ~ .drawer) :is(button, a, summary, input, select, [tabindex]):focus-visible {
    outline: 3px solid #557eff;
    outline-offset: 3px;
  }
  .shell .sidebar :is(button, a):focus-visible { outline-color: #a5baff; }

  .shell .hero { box-shadow: 0 6px 16px #18325b1c; }
  .shell .hero::after { border-color: #a7c8ff30; box-shadow: 0 0 0 22px #a7c8ff13, 0 0 0 48px #a7c8ff10, 0 0 0 74px #a7c8ff0a; }

  .shell .loan-journey {
    --journey-line: #d9e4f1;
    --journey-radius: 19px;
    gap: 18px;
  }

  .shell .loan-journey .journey-hero {
    min-height: 201px;
    padding: clamp(24px, 4vw, 43px);
    border-radius: 23px;
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: start;
    justify-items: stretch;
    gap: 20px;
    color: #f8faff;
    box-shadow: 0 6px 16px #17264315;
  }
  .shell .loan-journey .journey-hero::after {
    top: -125px;
    right: -96px;
    width: clamp(300px, 44vw, 580px);
    height: 540px;
    transform: rotate(-23deg);
    background:
      radial-gradient(ellipse at 61% 59%, #9ec9fa26 0%, transparent 67%),
      radial-gradient(circle at 45% 64%, #87e5dccc 0 3px, transparent 5px),
      radial-gradient(circle at 63% 33%, #92c8ffa6 0 2px, transparent 4px),
      repeating-radial-gradient(ellipse at 64% 48%, #9ec9fa26 0 1px, transparent 2px 25px);
    mask-image: linear-gradient(112deg, transparent 5%, #000 52%);
  }
  .shell .loan-journey .journey-kicker { display: inline-block; margin-bottom: 11px; color: #8fe0d1; }
  .shell .loan-journey .journey-hero h1 {
    max-width: 27ch;
    margin: 0 0 10px;
    font-size: clamp(2.1rem, 3.5vw, 3.45rem);
    font-weight: 740;
    line-height: 1.09;
    letter-spacing: -.046em;
  }
  .shell .loan-journey .journey-hero p { color: #d5e4f9; }
  .shell .loan-journey .journey-chip {
    justify-self: end;
    white-space: nowrap;
    padding: 6px 11px;
    border-color: #a4cde15e;
    color: #d5f6ee;
    background: #d9fff012;
  }
  .shell .loan-journey .journey-chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #8fe0d1; }

  .shell .loan-journey ol.journey-progress {
    grid-template-columns: repeat(5, minmax(0, 1fr));
    gap: 4px;
    padding: 7px;
    border-radius: 13px;
    box-shadow: 0 3px 12px rgb(22 48 94 / 4%);
  }
  .shell .loan-journey .journey-progress li {
    min-height: 43px;
    padding: 8px 10px;
    font-size: .88rem;
    line-height: 1.3;
    overflow-wrap: normal;
  }
  .shell .loan-journey .journey-progress li::before { width: 9px; height: 9px; border-color: #b2c1d5; }
  .shell .loan-journey .journey-progress li.is-done { color: #08685e; background: var(--teal-soft); }
  .shell .loan-journey .journey-progress li.is-done::before { border-color: var(--teal); background: var(--teal); }
  .shell .loan-journey .journey-progress li.is-current { color: var(--blue-dark); background: var(--blue-soft); box-shadow: inset 0 0 0 1px #bfd0f6; }
  .shell .loan-journey .journey-progress li.is-current::before {
    border: 2px solid var(--blue);
    background: var(--surface);
    box-shadow: 0 0 0 3px #bfd0f6;
  }

  .shell .loan-journey .journey-layout { grid-template-columns: minmax(0, 2.25fr) minmax(240px, .96fr); gap: 17px; }
  .shell .loan-journey .journey-card { padding: clamp(18px, 2.25vw, 26px); }
  .shell .loan-journey .journey-card h2 { font-weight: 740; line-height: 1.22; }
  .shell .loan-journey .journey-card h3 { font-weight: 720; }
  .shell .loan-journey .journey-card p { line-height: 1.62; }
  .shell .loan-journey .journey-sidebar .journey-card { padding: 20px; }
  .shell .loan-journey .journey-sidebar .journey-card h2 { font-size: 1.13rem; line-height: 1.35; letter-spacing: -.012em; }
  .shell .loan-journey .journey-sidebar .journey-card h2::before {
    content: "";
    display: block;
    width: 19px;
    height: 3px;
    margin-bottom: 9px;
    border-radius: 99px;
    background: #7899ff;
  }
  .shell .loan-journey .journey-sidebar .journey-card > small { line-height: 1.7; }
  .shell .loan-journey .journey-card .journey-card { background: #f7faff; }

  .shell .loan-journey .journey-choice {
    position: relative;
    min-height: 87px;
    padding: 15px 18px;
    border-color: #cfdcee;
    border-radius: 13px;
    background: #f8faff;
  }
  .shell .loan-journey .journey-choice:hover:not(:disabled) { border-color: #89a5df; background: #eef4ff; }
  .shell .loan-journey .journey-choice:is([aria-pressed="true"], .is-selected, [aria-selected="true"]) {
    border-color: #799be2;
    background: var(--blue-soft);
    box-shadow: inset 0 0 0 1px #799be2;
  }
  .shell .loan-journey .journey-choice strong { font-weight: 730; line-height: 1.42; }
  .shell .loan-journey .journey-choice[data-action="loan-start"] { min-height: 116px; padding-inline-end: 40px; }
  .shell .loan-journey .journey-choice[data-action="loan-start"]::after {
    content: "";
    position: absolute;
    inset-block-start: 19px;
    inset-inline-end: 17px;
    width: 6px;
    height: 6px;
    border-top: 2px solid var(--blue);
    border-right: 2px solid var(--blue);
    transform: rotate(45deg);
    pointer-events: none;
  }

  .shell .loan-journey .journey-metric { border-color: #dce6f2; border-radius: 13px; background: #f5f8fd; }
  .shell .loan-journey .journey-metric:last-child { border-color: #bfd0f6; background: var(--blue-soft); }
  .shell .loan-journey .journey-metric:last-child strong { color: var(--blue-dark); }

  .shell .loan-journey :is(.journey-optional input, .journey-fields input, .journey-fields select) { border-color: #b8c9df; }
  .shell .loan-journey .journey-notice.is-success { border-color: #bfdfd6; border-left-color: var(--teal); background: var(--teal-soft); }

  @media (max-width: 1120px) {
    .shell { grid-template-columns: 184px minmax(0, 1fr); }
    .shell .sidebar { padding-inline: 13px; }
    .shell .loan-journey .journey-layout { grid-template-columns: minmax(0, 1fr); }
    .shell .loan-journey .journey-sidebar { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
  }
  @media (max-width: 870px) {
    .shell { grid-template-columns: 154px minmax(0, 1fr); }
    .shell .brand { gap: 8px; margin-bottom: 29px; }
    .shell .brand-name { font-size: 13px; }
    .shell .topbar { padding-inline: 16px; }
    .shell .main { padding-inline: 16px; }
    .shell .loan-journey .journey-progress li { font-size: .8rem; padding-inline: 7px; gap: 6px; }
  }
  @media (max-width: 670px) {
    .shell { display: block; }
    .shell .sidebar { padding: 13px 13px 8px; border: 0; }
    .shell .brand { margin-bottom: 11px; }
    .shell .nav-list { grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 3px; }
    .shell .nav-button { min-width: 0; min-height: 47px; font-size: .75rem; overflow-wrap: anywhere; }
    .shell .nav-button[aria-current="page"] { box-shadow: inset 0 -2px #7899ff; }
    .shell .topbar { min-height: 54px; padding: 8px 13px; }
    .shell .top-tools { justify-content: end; flex-wrap: wrap; gap: 5px; }
    .shell .breadcrumbs > span:first-child, .shell .crumb-arrow { display: none; }
    .shell .main { padding: 13px 13px 22px; }
    .shell .loan-journey { gap: 13px; }
    .shell .loan-journey .journey-hero {
      grid-template-columns: minmax(0, 1fr);
      padding: 20px 17px;
      gap: 10px;
      min-height: 178px;
      border-radius: 17px;
    }
    .shell .loan-journey .journey-hero h1 { font-size: clamp(1.97rem, 6.4vw, 2.55rem); }
    .shell .loan-journey .journey-chip { justify-self: start; }
    .shell .loan-journey .journey-hero::after { right: -180px; opacity: .45; }
    .shell .loan-journey ol.journey-progress { grid-template-columns: repeat(3, minmax(0, 1fr)); }
    .shell .loan-journey .journey-progress li { min-height: 34px; padding-block: 6px; }
    .shell .loan-journey :is(.journey-layout, .journey-content, .journey-sidebar) { gap: 13px; }
    .shell .loan-journey .journey-sidebar { grid-template-columns: minmax(0, 1fr); }
    .shell .loan-journey .journey-choice[data-action="loan-start"] { min-height: 83px; }
  }
  @media (max-width: 540px) {
    .shell .loan-journey .journey-metrics { grid-template-columns: minmax(0, 1fr); gap: 7px; }
    .shell .loan-journey .journey-metric { display: grid; grid-template-columns: minmax(0, 1fr) auto; align-items: center; gap: 3px 10px; padding: 11px 12px; }
    .shell .loan-journey .journey-metric small { grid-column: 1 / -1; }
  }
  @media (max-width: 390px) {
    .shell .nav-button { font-size: .67rem; }
    .shell .topbar .breadcrumbs { flex: 1 1 0; }
    .shell .top-tools > [data-action="role"] { max-width: 88px; overflow-wrap: normal; }
  }
  html:lang(hi) .shell .loan-journey :is(.journey-hero h1, .journey-card h2, .journey-kicker) { letter-spacing: normal; line-height: 1.35; }
  html:lang(hi) .shell .loan-journey .journey-progress li { line-height: 1.45; }

  @media (prefers-reduced-motion: no-preference) {
    .shell :is(.nav-button, .journey-choice, .button) { transition: color 160ms ease, background-color 160ms ease, border-color 160ms ease, box-shadow 160ms ease; }
    .shell .loan-journey .journey-progress li.is-current::before { animation: workspace-step-emphasis 390ms ease-out both; }
  }
}

@keyframes workspace-step-emphasis {
  from { box-shadow: 0 0 0 0 #7899ff; }
  to { box-shadow: 0 0 0 3px #bfd0f6; }
}
