.app-shell-container {
  margin-inline: auto;
  max-width: var(--content-width-app);
  padding-inline: var(--page-gutter-desktop);
  width: 100%;
}

.app-shell-header {
  background: var(--color-surface-raised);
  border-bottom: 1px solid var(--color-border-subtle);
  box-shadow: var(--shadow-sm);
  position: relative;
  z-index: var(--layer-header);
}

.app-shell-topbar {
  background: #1068b2;
  border-bottom: 1px solid rgba(255, 255, 255, 0.18);
  color: #fff;
  position: relative;
}

.app-shell-topbar .app-shell-container {
  align-items: center;
  display: flex;
  justify-content: space-between;
  max-width: none;
  min-height: 58px;
  padding-inline: clamp(16px, 2vw, 40px);
}

.app-shell-identity {
  background: linear-gradient(110deg, #1068b2 0%, #2d91a4 52%, #50b748 100%);
  color: #fff;
}

.app-shell-identity .app-shell-container {
  max-width: none;
  padding-inline: clamp(24px, 3vw, 48px);
}

.app-shell-identity-inner {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 152px;
  padding-block: var(--space-5);
}

.app-shell-identity-insight {
  display: block;
  max-width: 270px;
}

.app-shell-identity-insight img {
  display: block;
  height: auto;
  width: 100%;
}

.app-shell-identity-bank {
  align-items: center;
  display: flex;
  gap: var(--space-5);
  text-align: right;
}

.app-shell-identity-bank > div {
  display: grid;
  gap: var(--space-1);
}

.app-shell-identity-bank p,
.app-shell-identity-bank span,
.app-shell-identity-bank small {
  color: #fff;
  margin: 0;
}

.app-shell-identity-bank p {
  font-size: 1.25rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
  text-transform: uppercase;
}

.app-shell-identity-bank span {
  font-size: 1.45rem;
  font-weight: var(--font-weight-bold);
  line-height: var(--line-height-tight);
}

.app-shell-identity-bank small {
  border: 1px solid rgba(255, 255, 255, 0.5);
  border-radius: var(--radius-pill);
  color: #fff !important;
  font-size: 0.68rem;
  font-weight: var(--font-weight-bold);
  justify-self: end;
  letter-spacing: 0.06em;
  padding: 3px var(--space-3);
  text-transform: uppercase;
}

.app-shell-identity-bank img {
  background: #fff;
  border-radius: var(--radius-sm);
  box-shadow: var(--shadow-md);
  height: 94px;
  object-fit: contain;
  padding: var(--space-2);
  width: 94px;
}

.app-shell-brand {
  align-items: center;
  color: #fff !important;
  display: inline-flex;
  letter-spacing: 0;
  min-height: 36px;
  text-decoration: none;
}

.app-shell-brand:hover,
.app-shell-brand:focus-visible {
  color: #fff !important;
  outline: none;
}

.app-shell-brand:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.3);
}

.app-shell-brand-lockup {
  align-items: baseline;
  display: inline-flex;
  gap: 5px;
}

.app-shell-brand-primary {
  font-size: 0.95rem;
  font-weight: var(--font-weight-bold);
}

.app-shell-brand-secondary {
  font-size: 0.9rem;
  font-weight: var(--font-weight-regular);
  opacity: 0.88;
}

.app-shell-toolbar {
  align-items: center;
  display: flex;
  gap: var(--space-3);
}

.app-shell-account-trigger,
.app-shell-nav-toggle {
  align-items: center;
  background: rgba(7, 61, 109, 0.17);
  border: 1px solid rgba(255, 255, 255, 0.24);
  border-radius: var(--radius-md);
  color: #fff;
  display: inline-flex;
  gap: var(--space-2);
  min-height: 38px;
  padding: 4px var(--space-3) 4px 5px;
}

.app-shell-account-trigger:hover,
.app-shell-nav-toggle:hover {
  background: rgba(7, 61, 109, 0.31);
}

.app-shell-account-trigger:focus-visible,
.app-shell-nav-toggle:focus-visible {
  box-shadow: 0 0 0 3px rgba(255, 255, 255, 0.28);
  outline: none;
}

.app-shell-avatar {
  align-items: center;
  background: var(--color-primary-soft);
  border-radius: 50%;
  color: var(--color-primary-strong);
  display: inline-flex;
  font-weight: var(--font-weight-bold);
  height: 28px;
  justify-content: center;
  overflow: hidden;
  width: 28px;
}

.app-shell-avatar img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.app-shell-account-name {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  max-width: 220px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.app-shell-account-menu {
  background: #203667;
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 16px;
  box-shadow: 0 16px 34px rgba(11, 38, 77, 0.28);
  min-width: 320px;
  overflow: hidden;
  padding: var(--space-3);
}

.app-shell-account-summary {
  background: transparent;
  border: 0;
  display: grid;
  gap: var(--space-3);
  margin-bottom: var(--space-3);
  padding: 0;
}

.app-shell-account-identity {
  align-items: center;
  display: grid;
  gap: var(--space-3);
  grid-template-columns: auto minmax(0, 1fr);
}

.app-shell-account-profile-mark {
  align-items: center;
  background: #0b6bb8;
  border-radius: var(--radius-md);
  display: inline-flex;
  height: 44px;
  justify-content: center;
  overflow: hidden;
  width: 44px;
}

.app-shell-account-profile-mark img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.app-shell-account-summary strong {
  color: #fff;
  display: block;
  font-size: var(--font-size-md);
}

.app-shell-account-summary span {
  color: #b7c6e2;
  font-size: var(--font-size-xs);
}

.app-shell-account-meta {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.app-shell-account-meta span {
  align-items: center;
  background: rgba(255, 255, 255, 0.1);
  border-radius: var(--radius-pill);
  color: #e4ecfb;
  display: inline-flex;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-semibold);
  gap: 6px;
  min-height: 32px;
  padding: 4px var(--space-3);
}

.app-shell-menu-item {
  align-items: center;
  background: #172b55;
  border: 0;
  border-radius: var(--radius-sm);
  color: #fff !important;
  display: flex;
  font-weight: var(--font-weight-semibold);
  gap: var(--space-3);
  min-height: 66px;
  padding: var(--space-3);
  text-align: left;
  text-decoration: none;
  width: 100%;
}

.app-shell-menu-item:hover,
.app-shell-menu-item:focus-visible {
  background: #294777;
  color: #fff !important;
  outline: none;
}

.app-shell-menu-item i {
  text-align: center;
  width: 18px;
}

.app-shell-account-action + .app-shell-account-action {
  margin-top: var(--space-2);
}

.app-shell-account-action > span {
  display: grid;
  gap: 2px;
}

.app-shell-account-action strong {
  color: inherit;
  font-size: var(--font-size-sm);
}

.app-shell-account-action small {
  color: #b7c6e2 !important;
  font-size: var(--font-size-xs);
  font-weight: var(--font-weight-regular);
}

.app-shell-signout {
  background: transparent;
  color: #fff !important;
  justify-content: center;
  margin-top: var(--space-2);
  min-height: 42px;
  padding-block: var(--space-2);
}

.app-shell-signout:hover,
.app-shell-signout:focus-visible {
  background: rgba(255, 255, 255, 0.1);
}

.app-shell-navigation {
  background: linear-gradient(110deg, #1068b2 0%, #2d91a4 52%, #50b748 100%);
  border-bottom: 1px solid rgba(9, 72, 112, 0.22);
  box-shadow: 0 3px 10px rgba(16, 67, 104, 0.14);
}

.app-shell-navigation .app-shell-container {
  max-width: none;
  padding-inline: clamp(16px, 2vw, 32px);
}

.app-shell-nav-collapse {
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 0;
  padding: 8px 0 12px;
}

.app-shell-nav-list {
  align-items: center;
  display: flex;
  gap: 4px;
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-shell-nav-list > li > a,
.app-shell-nav-dropdown {
  align-items: center;
  background: rgba(7, 63, 103, 0.1);
  border: 1px solid transparent;
  border-radius: var(--radius-sm);
  color: #fff !important;
  display: inline-flex;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  gap: var(--space-2);
  min-height: 40px;
  padding: var(--space-2) var(--space-3);
  text-decoration: none;
}

.app-shell-nav-list > li > a:hover,
.app-shell-nav-list > li > a:focus-visible,
.app-shell-nav-dropdown:hover,
.app-shell-nav-dropdown:focus-visible,
.app-shell-nav-list > li.show > .app-shell-nav-dropdown {
  background: rgba(255, 255, 255, 0.17);
  border-color: rgba(255, 255, 255, 0.18);
  color: #fff !important;
  outline: none;
}

.app-shell-nav-menu {
  border: 1px solid #d5e2ec;
  border-radius: var(--radius-md);
  box-shadow: 0 12px 28px rgba(23, 43, 77, 0.18);
  margin-top: 6px;
  padding: var(--space-2);
}

.app-shell-nav-menu .dropdown-item {
  border-radius: var(--radius-sm);
  color: #23415f;
  font-size: var(--font-size-sm);
  min-height: 40px;
  padding: var(--space-3);
}

.app-shell-nav-menu .dropdown-item:hover,
.app-shell-nav-menu .dropdown-item:focus-visible {
  background: #edf6fc;
  color: var(--color-primary-strong);
}

.app-shell-search {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(212, 229, 240, 0.95);
  border-radius: var(--radius-md);
  box-shadow: 0 2px 7px rgba(6, 62, 102, 0.15);
  display: flex;
  margin: 0 0 4px var(--space-4);
  min-width: min(360px, 35vw);
  overflow: hidden;
}

.app-shell-search > span {
  color: var(--color-primary);
  padding-left: var(--space-3);
}

.app-shell-search input {
  border: 0;
  color: var(--color-ink);
  flex: 1;
  height: 40px;
  min-width: 0;
  outline: 0;
  padding: var(--space-2) var(--space-3);
}

.app-shell-search input:focus,
.app-shell-search input:focus-visible {
  border: 0;
  box-shadow: none !important;
  outline: none !important;
}

.app-shell-search:focus-within {
  border-color: var(--color-focus);
  box-shadow:
    0 0 0 3px rgba(255, 255, 255, 0.34),
    0 3px 10px rgba(6, 62, 102, 0.2);
}

.app-shell-search button {
  align-self: stretch;
  background: #3f9a3d;
  border: 0;
  color: #fff;
  font-weight: var(--font-weight-semibold);
  padding-inline: var(--space-4);
}

.app-shell-search button:hover {
  background: #338332;
}

.app-shell-nav-toggle {
  display: none;
}

.app-shell-side-close {
  display: none;
}

/* Bootstrap hides .collapse until it receives .show. The workspace menu is
 * persistent on desktop and becomes an explicit disclosure only on tablet
 * and phone layouts. */
@media (min-width: 801px) {
  .app-shell-nav-collapse.collapse:not(.show) {
    display: flex;
  }
}

.app-shell-footer {
  background: #fff;
  border-top: 0;
  color: var(--color-ink);
  margin-top: var(--space-12);
  padding: 0;
}

.app-shell-footer-grid {
  display: grid;
  gap: var(--space-8);
  grid-template-columns: minmax(220px, 1.3fr) repeat(3, minmax(160px, 1fr));
  padding-block: var(--space-10) var(--space-8);
}

.app-shell-footer-grid h2 {
  color: var(--color-primary-strong);
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
  font-size: var(--font-size-sm);
  letter-spacing: 0.04em;
  margin: 0 0 var(--space-3);
  text-transform: uppercase;
}

.app-shell-footer-grid li,
.app-shell-footer-grid a,
.app-shell-contact-list span {
  color: var(--color-ink) !important;
  font-size: var(--font-size-sm);
}

.app-shell-contact-list {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-shell-contact-list li {
  align-items: flex-start;
  display: flex;
  gap: var(--space-2);
}

.app-shell-contact-list i {
  color: var(--color-primary) !important;
  margin-top: 3px;
  width: 16px;
}

.app-shell-store-badges {
  display: flex;
  flex-wrap: wrap;
  gap: var(--space-2);
}

.app-shell-store-badges img,
.app-shell-insight-download img {
  display: block;
  height: auto;
  max-width: 170px;
  width: 100%;
}

.app-shell-insight-app-title {
  margin-top: var(--space-5) !important;
}

.app-shell-ticker {
  background: #105792;
  color: #fff;
}

.app-shell-ticker .app-shell-container {
  align-items: center;
  display: flex;
  gap: var(--space-4);
  min-height: 42px;
}

.app-shell-ticker-label {
  align-items: center;
  background: var(--color-accent);
  display: inline-flex;
  height: 42px;
  justify-content: center;
  margin-left: calc(-1 * var(--page-gutter-desktop));
  width: 72px;
}

.app-shell-ticker a,
.app-shell-shortcuts a {
  color: #fff !important;
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-semibold);
  text-decoration: none;
}

.app-shell-shortcuts {
  background: #1068b2;
}

.app-shell-shortcuts .app-shell-container {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.app-shell-shortcuts a {
  align-items: center;
  display: flex;
  gap: var(--space-2);
  justify-content: center;
  min-height: 58px;
  text-align: center;
}

.app-shell-shortcuts a:hover,
.app-shell-shortcuts a:focus-visible {
  background: rgba(255, 255, 255, 0.12);
  outline: none;
}

.app-shell-footer h2 {
  font-size: var(--font-size-sm);
  font-weight: var(--font-weight-bold);
  margin: 0 0 var(--space-3);
}

.app-shell-footer p {
  color: var(--color-text-muted);
  line-height: var(--line-height-body);
  margin: 0 0 var(--space-3);
  max-width: 480px;
}

.app-shell-footer ul {
  display: grid;
  gap: var(--space-2);
  list-style: none;
  margin: 0;
  padding: 0;
}

.app-shell-footer a {
  align-items: center;
  color: var(--color-primary-strong) !important;
  display: inline-flex;
  min-height: var(--control-height-md);
  text-decoration: none;
}

.app-shell-footer a:hover,
.app-shell-footer a:focus-visible {
  text-decoration: underline;
}

.app-shell-footer-meta {
  align-items: center;
  border-top: 1px solid var(--color-border-subtle);
  display: flex;
  gap: var(--space-4);
  justify-content: space-between;
  margin-top: var(--space-6);
  padding-block: var(--space-4) var(--space-6);
}

.app-shell-footer-meta p {
  font-size: var(--font-size-xs);
  margin: 0;
}

.app-shell-footer-meta div {
  display: flex;
  gap: var(--space-4);
}

@media (max-width: 800px) {
  .app-shell-container {
    padding-inline: var(--page-gutter-tablet);
  }

  .app-shell-nav-toggle {
    display: inline-flex;
  }

  .app-shell-identity-inner {
    min-height: 130px;
  }

  .app-shell-identity-insight {
    max-width: 210px;
  }

  .app-shell-identity-bank p {
    font-size: var(--font-size-lg);
  }

  .app-shell-identity-bank span {
    font-size: var(--font-size-xl);
  }

  .app-shell-navigation .app-shell-container {
    padding-inline: 0;
  }

  .app-shell-nav-collapse {
    align-items: stretch;
    display: none;
    padding: var(--space-3) var(--page-gutter-tablet) var(--space-4);
  }

  .app-shell-shortcuts .app-shell-container {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .app-shell-footer-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell-nav-collapse.show {
    display: grid;
    gap: var(--space-3);
  }

  .app-shell-nav-list {
    align-items: stretch;
    display: grid;
  }

  .app-shell-nav-list > li > a,
  .app-shell-nav-dropdown {
    justify-content: space-between;
    width: 100%;
  }

  .app-shell-search {
    margin: 0;
    min-width: 0;
    width: 100%;
  }
}

@media (max-width: 800px) {
  .app-shell-container {
    padding-inline: var(--page-gutter-mobile);
  }

  .app-shell-topbar {
    height: 60px;
  }

  .app-shell-topbar .app-shell-container {
    box-sizing: border-box;
    height: 60px;
    min-height: 60px;
    padding-left: 58px;
    position: relative;
  }

  .app-shell-account-name,
  .app-shell-account-trigger > .fa-chevron-down {
    display: none;
  }

  .app-shell-account-trigger {
    background: transparent;
    border-color: transparent;
    min-height: 36px;
    padding: 0;
  }

  .app-shell-avatar {
    height: 34px;
    width: 34px;
  }

  .app-shell-nav-toggle {
    display: inline-flex;
    left: var(--page-gutter-mobile);
    min-height: 36px;
    padding: 0;
    position: absolute;
    top: 50%;
    transform: translateY(-50%);
    width: 36px;
  }

  .app-shell-identity-inner {
    align-items: center;
    box-sizing: border-box;
    flex-direction: column;
    gap: 0;
    height: 218px;
    justify-content: center;
    min-height: 218px;
    overflow: hidden;
    padding-block: var(--space-5);
  }

  .app-shell-identity {
    height: 218px;
    overflow: hidden;
  }

  .app-shell-identity-insight {
    display: none;
  }

  .app-shell-identity-bank {
    flex: 0 0 auto;
    flex-direction: column-reverse;
    gap: var(--space-3);
    text-align: center;
    width: min(100%, 320px);
  }

  .app-shell-identity-bank > div {
    justify-items: center;
    width: 100%;
  }

  .app-shell-identity-bank p {
    font-size: 0.9rem;
    line-height: 1.15;
    max-width: 250px;
  }

  .app-shell-identity-bank span {
    font-size: 1rem;
    line-height: 1.15;
  }

  .app-shell-identity-bank small {
    justify-self: center;
    padding-inline: var(--space-2);
  }

  .app-shell-identity-bank img {
    flex: 0 0 88px;
    height: 88px;
    width: 88px;
  }

  .app-shell-nav-collapse {
    padding-inline: var(--page-gutter-mobile);
  }

  .app-shell-navigation {
    background: transparent;
    border: 0;
    box-shadow: none;
  }

  .app-shell-navigation .app-shell-container {
    padding: 0;
  }

  .app-shell-nav-collapse.collapse {
    align-content: start;
    background: #fff;
    box-shadow: 12px 0 34px rgba(11, 38, 77, 0.2);
    display: grid !important;
    gap: var(--space-4);
    height: 100vh;
    left: 0;
    overflow-y: auto;
    padding: var(--space-3) var(--space-4) var(--space-6);
    position: fixed;
    top: 0;
    transform: translateX(-102%);
    transition: transform var(--duration-normal) var(--ease-standard), visibility var(--duration-normal) var(--ease-standard);
    visibility: hidden;
    width: min(312px, 86vw);
    z-index: calc(var(--layer-header) + 20);
  }

  .app-shell-nav-collapse.collapse.show {
    transform: translateX(0);
    visibility: visible;
  }

  .app-shell-side-close {
    align-items: center;
    background: #eef5fb;
    border: 1px solid #d3e2ef;
    border-radius: var(--radius-sm);
    color: var(--color-primary-strong);
    display: inline-flex;
    height: 36px;
    justify-content: center;
    justify-self: end;
    width: 36px;
  }

  .app-shell-nav-list {
    display: grid;
    gap: var(--space-2);
  }

  .app-shell-nav-list > li > a,
  .app-shell-nav-dropdown {
    background: #f4f8fc;
    border: 1px solid #dce8f1;
    color: #214360 !important;
    min-height: 46px;
    padding-inline: var(--space-3);
  }

  .app-shell-nav-list > li > a:hover,
  .app-shell-nav-list > li > a:focus-visible,
  .app-shell-nav-dropdown:hover,
  .app-shell-nav-dropdown:focus-visible,
  .app-shell-nav-list > li.show > .app-shell-nav-dropdown {
    background: #e9f4fc;
    border-color: #9fc8e9;
    color: var(--color-primary-strong) !important;
  }

  .app-shell-search {
    margin: 0;
    min-width: 0;
    width: 100%;
  }

  .app-shell-footer-grid {
    gap: var(--space-6);
    grid-template-columns: 1fr;
  }

  .app-shell-footer-meta {
    align-items: flex-start;
    flex-direction: column;
  }

  .app-shell-ticker-label {
    margin-left: calc(-1 * var(--page-gutter-mobile));
  }

  .app-shell-shortcuts .app-shell-container {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .app-shell-store-badges {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
