:host {
  --swirl-shell-background: var(--s-surface-sunken-default);
  --swirl-shell-text-color: var(--s-text-default);

  --swirl-shell-header-height: 3.25rem;

  --swirl-shell-collapsed-nav-width: 4rem;
  --swirl-shell-extended-nav-width: 18rem;

  display: flex;
  width: 100%;
  height: 100%;
}

  :host * {
    box-sizing: border-box;
  }

.shell-layout {
  display: grid;
  overflow: hidden;
  width: 100%;
  min-height: 100%;
  background-color: var(--swirl-shell-background);
  transition: grid-template-columns 0.1s;
  grid-template-columns: 0 1fr 0;
  grid-template-rows: 1fr;
  grid-template-areas: "nav main";
}

@media (prefers-reduced-motion) {

.shell-layout {
    transition: none
}
  }

@media (min-width: 992px) {

.shell-layout {
    padding-right: var(--s-space-8);
    padding-bottom: var(--s-space-8);
    -moz-column-gap: var(--s-space-8);
         column-gap: var(--s-space-8);
    grid-template-columns: var(--swirl-shell-extended-nav-width) 1fr 0;
    grid-template-rows: var(--swirl-shell-header-height) 1fr;
    grid-template-areas:
      "header header header"
      "nav main sidebar"
}
  }

.shell-layout--branded-header .shell-layout__header {
    border-bottom: none;
    color: var(--s-text-on-action-primary);
    background-color: var(--s-action-primary-default);
  }

.shell-layout--branded-header .shell-layout__header .shell-layout__header-tool {
      color: var(--s-text-on-action-primary);
      background-color: var(--s-action-primary-default);
    }

.shell-layout--branded-header .shell-layout__header .shell-layout__header-tool:hover {
        background-color: var(--s-action-primary-hovered);
      }

.shell-layout--branded-header .shell-layout__header .shell-layout__header-tool:active {
        background-color: var(--s-action-primary-pressed);
      }

.shell-layout--branded-header .shell-layout__header .shell-layout__header-tool swirl-badge {
        --swirl-badge-border-color: var(--s-action-primary-default);
      }

@media (min-width: 992px) {

.shell-layout--navigation-collapsed .shell-layout__nav {
      scrollbar-width: none
  }

      .shell-layout--navigation-collapsed .shell-layout__nav::-webkit-scrollbar {
        width: 0;
        background: transparent;
        -webkit-appearance: none;
      }
    }

.shell-layout--navigation-collapsed .shell-layout__secondary-nav-items--grid-view ::slotted(ul > *) {
      max-width: 100%;
      max-height: 3rem;
      flex-basis: 100%;
    }

@media (min-width: 992px) {

.shell-layout--navigation-collapsed {
    grid-template-columns: var(--swirl-shell-collapsed-nav-width) 1fr 0
}
  }

.shell-layout--mobile-navigation-active .shell-layout__nav {
    transform: translate3d(0, 0, 0);
    box-shadow: var(--s-shadow-level-3);
  }

@media (min-width: 992px) {

.shell-layout--mobile-navigation-active .shell-layout__nav {
      transform: none;
      box-shadow: none
  }
    }

.shell-layout--mobile-navigation-active .shell-layout__mobile-nav-backdrop {
    display: block;
  }

@media (min-width: 992px) {

.shell-layout--mobile-navigation-active .shell-layout__mobile-nav-backdrop {
      display: none
  }
    }

.shell-layout--has-secondary-nav .shell-layout__secondary-nav {
    display: block;
  }

.shell-layout--secondary-nav-collapsed .shell-layout__secondary-nav-items {
    display: none;
  }

.shell-layout__header {
  position: relative;
  display: none;
  width: calc(100% + var(--s-space-8));
  padding-top: var(--s-space-8);
  padding-right: var(--s-space-16);
  padding-bottom: var(--s-space-8);
  padding-left: var(--s-space-16);
  justify-content: space-between;
  align-items: center;
  color: var(--swirl-shell-text-color);
  grid-area: header;
}

@media (min-width: 992px) {

.shell-layout__header {
    display: flex
}
  }

.shell-layout__skip-link {
  position: absolute;
  z-index: 9;
  top: 0;
  left: 0;
  padding: var(--s-space-4);
  border: none;
  color: var(--swirl-shell-text-color);
  background-color: var(--swirl-shell-background);
  font: inherit;
  cursor: pointer;
}

.shell-layout__skip-link:not(:focus):not(:active) {
    position: absolute;
    overflow: hidden;
    width: 1px;
    height: 1px;
    white-space: nowrap;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
  }

.shell-layout__header-left {
  display: flex;
  padding-left: var(--s-space-2);
  flex-basis: 8rem;
  flex-shrink: 0;
  align-items: center;
  gap: var(--s-space-8);
}

.shell-layout__header-right {
  display: flex;
  flex-basis: 8rem;
  flex-shrink: 0;
  justify-content: flex-end;
  align-items: center;
  gap: var(--s-space-8);
}

.shell-layout__logo {
  display: flex;
  flex-grow: 1;
  justify-content: center;
  align-items: center;
}

.shell-layout__logo::slotted(a) {
    display: flex;
  }

.shell-layout__logo::slotted(a img),
  .shell-layout__logo::slotted(img) {
    max-height: 1.75rem;
  }

.shell-layout__header-tool {
  position: relative;
  width: 2.25rem;
  height: 2.25rem;
  padding: var(--s-space-8);
  flex-shrink: 0;
  border: none;
  border-radius: var(--s-border-radius-sm);
  color: var(--swirl-shell-text-color);
  background-color: var(--s-surface-sunken-default);
  font: inherit;
  cursor: pointer;
}

.shell-layout__header-tool:hover {
    background-color: var(--s-state-hovered);
  }

.shell-layout__header-tool:active {
    background-color: var(--s-state-pressed);
  }

.shell-layout__header-tool:focus {
    outline: none;
  }

.shell-layout__header-tool:focus-visible {
    box-shadow: 0 0 0 0.125rem var(--s-focus-default);
  }

.shell-layout__header-tool swirl-badge {
    --swirl-badge-border-color: var(--s-surface-sunken-default);

    position: absolute;
    top: var(--s-space-2);
    right: var(--s-space-2);
    padding-right: var(--s-space-2);
    transform: translate3d(0.1875rem, 0, 0);
  }

.shell-layout__nav {
  position: fixed;
  z-index: 9;
  top: 0;
  bottom: 0;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  width: 100%;
  max-width: 18.75rem;
  color: var(--swirl-shell-text-color);
  background-color: var(--s-surface-overlay-default);
  transition: transform 0.1s, box-shadow 0.1s, width 0.1s;
  transform: translate3d(-100%, 0, 0);
  grid-area: nav;
}

@media (prefers-reduced-motion) {

.shell-layout__nav {
    transition: none
}
  }

@media (min-width: 992px) {

.shell-layout__nav {
    position: relative;
    max-width: none;
    padding-top: 0;
    padding-right: var(--s-space-4);
    padding-bottom: var(--s-space-8);
    padding-left: var(--s-space-12);
    background-color: var(--swirl-shell-background);
    transform: none;
    box-shadow: none;
    inset: auto
}
  }

.shell-layout__mobile-header {
  display: flex;
  min-height: 3.5rem;
  margin-bottom: var(--s-space-8);
  padding-top: var(--s-space-8);
  padding-right: var(--s-space-16);
  padding-bottom: var(--s-space-8);
  padding-left: var(--s-space-16);
  justify-content: space-between;
  align-items: center;
  border-bottom: 0.0625rem solid var(--s-border-default);
}

.shell-layout__mobile-header::slotted(img) {
    max-height: 1.75rem;
  }

.shell-layout__mobile-header .shell-layout__header-tool {
    background-color: var(--s-surface-overlay-default);
  }

.shell-layout__mobile-header .shell-layout__header-tool:hover {
      background-color: var(--s-state-hovered);
    }

.shell-layout__mobile-header .shell-layout__header-tool:active {
      background-color: var(--s-state-pressed);
    }

@media (min-width: 992px) {

.shell-layout__mobile-header {
    display: none
}
  }

.shell-layout__mobile-header-tools {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: var(--s-space-8);
}

.shell-layout__nav-body {
  padding: var(--s-space-8);
}

.shell-layout__nav-body::slotted(* ul) {
    margin: 0;
    padding: 0;
    list-style: none;
  }

.shell-layout__nav-body::slotted(* li) {
    display: flex;
  }

@media (min-width: 992px) {

.shell-layout__nav-body {
    padding: 0
}
  }

.shell-layout__mobile-nav-backdrop {
  position: fixed;
  z-index: 8;
  display: none;
  background-color: rgba(0, 0, 0, 0.25);
  animation: shell-layout-backdrop-fade-in 0.1s;
  inset: 0;
}

.shell-layout__secondary-nav {
  display: none;
}

.shell-layout__secondary-nav-items ::slotted(ul) {
    display: flex;
    flex-direction: column;
    gap: var(--s-space-2);
  }

.shell-layout:not(.shell-layout--navigation-collapsed) .shell-layout__secondary-nav-items--grid-view ::slotted(ul) {
    flex-wrap: wrap;
    flex-direction: row;
    gap: var(--s-space-16);
  }

.shell-layout:not(.shell-layout--navigation-collapsed) .shell-layout__secondary-nav-items--grid-view ::slotted(ul > *) {
    min-width: 0;
    max-height: none;
  }

.shell-layout:not(.shell-layout--navigation-collapsed) .shell-layout__secondary-nav-items--grid-view.shell-layout__secondary-nav-items--app-icon ::slotted(ul) {
      row-gap: var(--s-space-16);
      -moz-column-gap: 0;
           column-gap: 0;
    }

.shell-layout--navigation-collapsed .shell-layout__secondary-nav-items--tiled ::slotted(ul) {
    gap: var(--s-space-16);
  }

.shell-layout__secondary-nav-items--tiled ::slotted(ul > *) {
    flex-basis: calc(50% - var(--s-space-8));
  }

.shell-layout__secondary-nav-items--app-icon ::slotted(ul > *) {
    flex-basis: calc(100% / 3);
  }

.shell-layout__main {
  overflow: hidden;
  background-color: var(--s-background-default);
  grid-area: main;
}

@media (min-width: 992px) {

.shell-layout__main {
    width: calc(100% + var(--s-space-8));
    border: 0.0625rem solid var(--s-border-default);
    border-radius: var(--s-border-radius-sm)
}
  }

@keyframes shell-layout-backdrop-fade-in {
  from {
    opacity: 0;
  }
  to {
    opacity: 1;
  }
}

@keyframes shell-layout-no-overflow-after-transition {
  0% {
    overflow: initial;
  }
  99% {
    overflow: initial;
  }
  100% {
    overflow: hidden;
  }
}
