/* StartWeb app launcher and shared navigation. Existing app themes are independent. */
.sw-app-launcher {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 7px 12px;
  margin: 0 0 10px;
}
.sw-app-launcher h2 { flex: 0 0 auto; margin: 0; font-size: 14px; }
.sw-app-launcher nav {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  flex: 1;
  min-width: 0;
  gap: 6px;
}
.sw-app-launcher a.sw-app-entry,
.sw-app-menu .sw-app-entry {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  min-height: 44px;
  padding: 4px 8px;
  border: 1px solid transparent;
  border-radius: 9px;
  text-align: start;
  text-decoration: none;
  color: inherit;
}
.sw-app-launcher a.sw-app-entry {
  border-color: color-mix(in srgb, var(--sw-app-accent) 45%, transparent);
  background: color-mix(in srgb, var(--sw-app-accent) 12%, transparent);
}
.sw-app-entry--mind { --sw-app-accent: #8d6ce8; }
.sw-app-entry--sites { --sw-app-accent: #1ab8c7; }
.sw-app-entry--ideas { --sw-app-accent: #e7a649; }
.sw-app-entry--editor { --sw-app-accent: #497cec; }
.sw-app-launcher a.sw-app-entry:hover,
.sw-app-menu a.sw-app-entry:hover,
.sw-app-menu [aria-current="page"] { background: #4a9bd925; }
.sw-app-entry:focus-visible,
.sw-app-switcher summary:focus-visible { outline: 2px solid #28b6dd; outline-offset: 2px; }
.sw-app-mark {
  position: relative;
  display: block;
  flex: 0 0 36px;
  width: 36px;
  height: 36px;
  overflow: hidden;
}
.sw-app-mark img { display: block; width: 100%; height: 100%; object-fit: contain; }
.sw-app-mark--mind img {
  position: absolute;
  max-width: none;
  width: 435%;
  height: auto;
  top: -33%;
  left: -27%;
}
.sw-app-copy { display: grid; gap: 2px; min-width: 0; line-height: 1.15; }
.sw-app-copy strong { font-size: 14px; }
.sw-app-copy small { font-size: 11px; opacity: .83; }
.sw-app-switcher { position: relative; flex: 0 0 auto; }
.sw-app-switcher > summary {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  min-height: 36px;
  padding: 5px 9px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 13px;
  cursor: pointer;
  white-space: nowrap;
}
.sw-app-switcher summary::-webkit-details-marker { display: none; }
.sw-app-switcher[open] .sw-app-chevron { transform: rotate(180deg); }
.sw-app-switcher > .sw-app-menu {
  position: absolute;
  inset-inline-end: 0;
  inset-block-start: calc(100% + 6px);
  z-index: 30;
  display: grid;
  width: 244px;
  max-width: calc(100vw - 20px);
  padding: 5px;
  background: #11243b;
  color: #f4f8ff;
  border: 1px solid #6886a5;
  border-radius: 11px;
  box-shadow: 0 10px 30px #0006;
}
.sw-app-switcher:not([open]) > .sw-app-menu { display: none; }
.sw-app-menu .sw-app-mark { flex-basis: 28px; width: 28px; height: 28px; }
.sw-app-current { margin-inline-start: auto; font-size: 11px; color: #9deaf1; }
.sites-car .sw-app-switcher, .embed-mode .sw-app-switcher, .car-mode .sw-app-switcher { display: none; }
@media (max-width: 700px) {
  .sw-app-launcher { flex-direction: column; align-items: stretch; gap: 5px; padding: 6px; }
  .sw-app-launcher h2 { padding-inline: 3px; font-size: 12px; }
  .sw-app-launcher a.sw-app-entry { flex-direction: column; justify-content: center; gap: 3px; text-align: center; padding-inline: 2px; }
  .sw-app-launcher .sw-app-copy strong { font-size: 12px; }
  .sw-app-launcher .sw-app-copy small { font-size: 10px; }
  .sw-app-launcher .sw-app-mark { flex-basis: 27px; width: 27px; height: 27px; }
  .sw-app-switcher > .sw-app-menu { position: fixed; inset-inline: 10px; inset-block-start: auto; width: auto; margin-top: 6px; }
  .top-actions:has(.sw-app-switcher) { flex-wrap: wrap; justify-content: flex-end; min-width: 0; }
}
.sw-workspace-name {
  max-width: 100%;
  margin: 2px 0 4px;
  color: #d7f6ff;
  font-size: 12px;
  font-weight: 650;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

body.zen-mode .sw-app-launcher {
  visibility: hidden;
  pointer-events: none;
}
