/* Compact workspace navigation and settings index. Loaded after workspace-redesign.css. */

body.workspace-redesign .workspace-shell .settings-hub {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 26px 34px;
  max-width: 940px;
}

body.workspace-redesign .workspace-shell .settings-hub-group {
  min-width: 0;
  padding-top: 13px;
  border-top: 1px solid #d9e5f5;
}

body.workspace-redesign .workspace-shell .settings-hub-group h2 {
  margin: 0;
  color: #1d416f;
  font-size: 15px;
  font-weight: 760;
  letter-spacing: -0.015em;
  line-height: 1.25;
}

body.workspace-redesign .workspace-shell .settings-hub-group > p {
  max-width: 54ch;
  margin: 5px 0 10px;
  color: var(--ws-text-secondary, #3d5270);
  font-size: 13px;
  line-height: 1.45;
}

body.workspace-redesign .workspace-shell .settings-hub-links {
  display: grid;
  gap: 2px;
  margin: 0;
  padding: 0;
  list-style: none;
}

body.workspace-redesign .workspace-shell .settings-hub-link {
  display: grid;
  grid-template-columns: 26px minmax(0, 1fr);
  align-items: center;
  min-height: 48px;
  gap: 10px;
  padding: 9px 6px;
  color: #24558f;
  border-bottom: 1px solid #e5edf7;
  font-size: 14px;
  text-decoration: none;
}

body.workspace-redesign .workspace-shell .settings-hub-link:hover {
  color: #134c9e;
  background: #f3f8ff;
}

body.workspace-redesign .workspace-shell .settings-hub-link > svg {
  width: 18px;
  height: 18px;
  color: #3972bf;
}

body.workspace-redesign .workspace-shell .settings-hub-link > span {
  display: grid;
  min-width: 0;
  gap: 1px;
}

body.workspace-redesign .workspace-shell .settings-hub-link strong {
  color: currentColor;
  font-size: 14px;
  font-weight: 720;
  line-height: 1.2;
}

body.workspace-redesign .workspace-shell .settings-hub-link small {
  color: #526f95;
  font-size: 11px;
  line-height: 1.25;
  overflow-wrap: anywhere;
  white-space: normal;
}

body.workspace-redesign .workspace-shell .settings-hub-link > svg:last-child {
  width: 16px;
  height: 16px;
  color: #7691b5;
}

body.workspace-redesign .workspace-shell .settings-hub-link:focus-visible,
body.workspace-redesign .workspace-shell .workspace-navigation > summary:focus-visible,
body.workspace-redesign .workspace-shell .workspace-navigation .nav-link:focus-visible {
  outline: 2px solid #1769d7;
  outline-offset: 2px;
}

body.workspace-redesign .workspace-shell .settings-hub-intro {
  max-width: 68ch;
  margin: 0 0 20px;
  color: #526f95;
  font-size: 14px;
  line-height: 1.5;
}

body.workspace-redesign .workspace-shell .settings-back {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  gap: 7px;
  margin: 0 0 16px;
  padding: 8px 10px;
  color: #24558f;
  border: 1px solid #c9dcef;
  border-radius: 7px;
  font-size: 14px;
  font-weight: 620;
  text-decoration: none;
}

body.workspace-redesign .workspace-shell .settings-back:hover {
  color: #134c9e;
  background: #f1f7ff;
}

body.workspace-redesign .workspace-shell .settings-back:focus-visible {
  outline: 2px solid #1769d7;
  outline-offset: 2px;
}

@media (min-width: 1024px) {
  body.workspace-redesign .workspace-shell {
    grid-template-columns: 216px minmax(0, 1fr);
  }

  body.workspace-redesign .workspace-shell .sidebar {
    width: 216px;
    background: #fafdff;
    border-right-color: #d8e5f4;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation {
    display: block;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation[open] > summary {
    display: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation:not([open]) > summary {
    display: flex;
    align-items: center;
    min-height: 44px;
    padding: 8px 10px;
    color: #24558f;
    background: #fff;
    border: 1px solid #c9dcef;
    border-radius: 7px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    display: grid;
    grid-template-columns: 1fr;
    gap: 3px;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link {
    font-size: 14px;
    font-weight: 550;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link[aria-current="page"] {
    font-weight: 650;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-heading,
  body.workspace-redesign .workspace-shell .workspace-navigation .nav-section,
  body.workspace-redesign .workspace-shell .sidebar-bottom,
  body.workspace-redesign .workspace-shell .sidebar-footer {
    display: none;
  }
}

@supports (backdrop-filter: blur(12px)) {
  @media (min-width: 1024px) {
    body.workspace-redesign .workspace-shell .sidebar {
      background: rgba(250, 253, 255, 0.78);
      backdrop-filter: blur(12px) saturate(1.08);
      -webkit-backdrop-filter: blur(12px) saturate(1.08);
    }
  }
}

@media (max-width: 1023px) {
  body.workspace-redesign .workspace-shell {
    display: block;
  }

  body.workspace-redesign .workspace-shell .sidebar {
    position: relative;
    display: flex;
    flex-direction: row;
    align-items: center;
    justify-content: space-between;
    width: auto;
    height: auto;
    min-height: 58px;
    padding: 9px 12px;
    overflow: visible;
    background: #edf6ff;
    border-right: 0;
    border-bottom: 1px solid #d4e5f9;
    z-index: 40;
  }

  body.workspace-redesign .workspace-shell .brand {
    min-width: 0;
    flex: 1 1 auto;
    margin: 0;
    padding: 0 4px;
    border: 0;
  }

  body.workspace-redesign .workspace-shell .brand > span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.workspace-redesign .workspace-shell .brand small {
    display: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation {
    position: relative;
    display: block;
    flex: 0 0 auto;
    min-width: 0;
    margin: 0;
    background: transparent;
    border: 0;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation > summary,
  body.workspace-redesign .workspace-shell .workspace-navigation:not([open]) > summary {
    display: flex;
    align-items: center;
    justify-content: center;
    min-width: 82px;
    min-height: 44px;
    gap: 6px;
    padding: 7px 9px;
    color: #1c528f;
    background: rgba(255, 255, 255, 0.68);
    border: 1px solid #bdd4ef;
    border-radius: 8px;
    cursor: pointer;
    font-size: 14px;
    font-weight: 600;
    line-height: 1.2;
    list-style: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation > summary::-webkit-details-marker {
    display: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation > summary svg {
    width: 18px;
    height: 18px;
    flex: 0 0 auto;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation-caption {
    display: inline-flex;
    align-items: center;
    min-height: 24px;
    gap: 6px;
    font-size: 14px;
    font-weight: 600;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation-current {
    display: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    position: absolute;
    z-index: 30;
    top: calc(100% + 8px);
    right: 0;
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    width: min(352px, calc(100vw - 24px));
    max-height: calc(100dvh - 100px);
    gap: 3px;
    padding: 8px;
    overflow-y: auto;
    background: rgba(250, 253, 255, 0.9);
    border: 1px solid rgba(174, 202, 235, 0.9);
    border-radius: 12px;
    box-shadow: 0 10px 25px rgba(25, 67, 124, 0.16);
    -webkit-overflow-scrolling: touch;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation[open] nav {
    display: grid;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation:not([open]) nav {
    display: none;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link {
    display: flex;
    align-items: center;
    justify-content: flex-start;
    min-height: 45px;
    gap: 10px;
    padding: 9px 10px;
    color: #294f7e;
    border: 1px solid transparent;
    border-radius: 7px;
    font-size: 15px;
    font-weight: 550;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link:hover {
    color: #164f9e;
    background: #e6f1ff;
    border-color: #c8dcf3;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link[aria-current="page"] {
    color: #124c9d;
    background: #e4f0ff;
    border-color: #b9d2f2;
    box-shadow: none;
    font-weight: 650;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link svg {
    width: 18px;
    height: 18px;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link span {
    font-size: inherit;
    font-weight: inherit;
  }

  body.workspace-redesign .workspace-shell .workspace-navigation .nav-link b {
    min-width: 18px;
    margin-left: auto;
    padding: 2px 5px;
    color: #1d5cab;
    background: #dbeaff;
    border-radius: 999px;
    font-size: 11px;
    font-weight: 760;
    line-height: 1.1;
    text-align: center;
  }

  body.workspace-redesign .workspace-shell .sidebar-bottom,
  body.workspace-redesign .workspace-shell .sidebar-footer,
  body.workspace-redesign .workspace-shell .workspace-navigation .nav-heading,
  body.workspace-redesign .workspace-shell .workspace-navigation .nav-section,
  body.workspace-redesign .workspace-shell .workspace-navigation .nav-help {
    display: none;
  }

  body.workspace-redesign .workspace-shell .main {
    padding-right: 12px;
    padding-left: 12px;
  }

  /* The shell switches at 1024px; align the inherited topbar below desktop too. */
  body.workspace-redesign .workspace-shell .topbar {
    height: auto;
    margin-right: -12px;
    margin-left: -12px;
    padding-right: 12px;
    padding-left: 12px;
    flex-wrap: wrap;
  }
}

@supports (backdrop-filter: blur(12px)) {
  @media (max-width: 1023px) {
    body.workspace-redesign .workspace-shell .workspace-navigation nav {
      background: rgba(250, 253, 255, 0.72);
      backdrop-filter: blur(12px) saturate(1.1);
      -webkit-backdrop-filter: blur(12px) saturate(1.1);
    }
  }
}

@media (max-width: 640px) {
  body.workspace-redesign .workspace-shell .settings-hub {
    grid-template-columns: 1fr;
    gap: 21px;
  }

  body.workspace-redesign .workspace-shell .settings-hub-link {
    min-height: 46px;
  }
}

@media (prefers-reduced-transparency: reduce) {
  body.workspace-redesign .workspace-shell .sidebar,
  body.workspace-redesign .workspace-shell .workspace-navigation > summary,
  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    background: #fafdff;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
  }
}

@media (prefers-reduced-motion: reduce) {
  body.workspace-redesign .workspace-shell .workspace-navigation nav {
    scroll-behavior: auto;
  }
}
