.suite-launcher-root {
  --suite-accent: #9a83ff;
  --suite-panel: var(--panel, #15101c);
  --suite-panel-strong: var(--panel-strong, #1d1627);
  --suite-text: var(--text, #f7f2fb);
  --suite-muted: var(--muted, #b4a9bd);
  --suite-line: var(--line, #342940);
  position: relative;
  z-index: 120;
}

.suite-launcher-button {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  padding: 0;
  border: 1px solid var(--suite-line);
  border-radius: 10px;
  color: var(--suite-muted);
  background: color-mix(in srgb, var(--suite-panel) 92%, transparent);
  cursor: pointer;
}

.suite-launcher-button:hover,
.suite-launcher-button[aria-expanded='true'] {
  color: var(--suite-accent);
  border-color: color-mix(in srgb, var(--suite-accent) 55%, var(--suite-line));
  background: color-mix(in srgb, var(--suite-accent) 10%, var(--suite-panel));
}

.suite-launcher-button > span {
  display: grid;
  grid-template-columns: repeat(3, 3px);
  gap: 3px;
}

.suite-launcher-button i {
  width: 3px;
  height: 3px;
  border-radius: 50%;
  background: currentColor;
}

.suite-launcher-scrim {
  position: fixed;
  inset: 0;
  z-index: 0;
  border: 0;
  background: rgba(4, 3, 8, .42);
  backdrop-filter: blur(2px);
}

.suite-launcher-panel {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  z-index: 1;
  width: min(408px, calc(100vw - 24px));
  max-height: min(680px, calc(100dvh - 88px));
  padding: 16px;
  overflow: auto;
  border: 1px solid var(--suite-line);
  border-radius: 16px;
  color: var(--suite-text);
  background: var(--suite-panel);
  box-shadow: 0 24px 80px rgba(0, 0, 0, .38);
}

.suite-launcher-panel[hidden],
.suite-launcher-scrim[hidden] {
  display: none !important;
}

.suite-launcher-panel > header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 14px;
}

.suite-launcher-panel > header > div {
  display: grid;
  gap: 3px;
}

.suite-launcher-panel > header strong {
  color: var(--suite-text);
  font-size: .96rem;
}

.suite-launcher-panel > header small {
  color: var(--suite-muted);
  font-size: .74rem;
}

.suite-launcher-panel > header button {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid var(--suite-line);
  border-radius: 9px;
  color: var(--suite-muted);
  background: transparent;
  cursor: pointer;
}

.suite-launcher-panel > header button svg {
  width: 15px;
  height: 15px;
  transform: rotate(45deg);
}

.suite-launcher-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.suite-launcher-item {
  display: grid;
  justify-items: center;
  align-content: start;
  gap: 7px;
  min-width: 0;
  min-height: 112px;
  padding: 11px 7px;
  border: 1px solid transparent;
  border-radius: 12px;
  color: var(--suite-text);
  text-align: center;
  text-decoration: none;
}

.suite-launcher-item:hover,
.suite-launcher-item:focus-visible,
.suite-launcher-item.is-current {
  border-color: color-mix(in srgb, var(--suite-accent) 32%, var(--suite-line));
  background: color-mix(in srgb, var(--suite-accent) 9%, var(--suite-panel-strong));
}

.suite-launcher-item.is-current {
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--suite-accent) 24%, transparent);
}

.suite-product-logo {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: 1px solid color-mix(in srgb, var(--suite-accent) 38%, var(--suite-line));
  border-radius: 11px;
  color: var(--suite-accent);
  background: color-mix(in srgb, var(--suite-accent) 12%, var(--suite-panel));
}

.suite-product-logo svg {
  width: 22px;
  height: 22px;
}

.suite-product-storage { border-radius: 9px 9px 12px 12px; }
.suite-product-office { border-radius: 8px 13px 8px 13px; }
.suite-product-systems { border-radius: 10px; }
.suite-product-ide { background: color-mix(in srgb, #7c5cff 15%, var(--suite-panel)); }
.suite-product-cli { background: color-mix(in srgb, #b478ff 14%, var(--suite-panel)); }
.suite-product-docs { background: color-mix(in srgb, #8ea0ff 13%, var(--suite-panel)); }
.suite-product-packages { background: color-mix(in srgb, #c088ff 13%, var(--suite-panel)); }
.suite-product-identity { border-radius: 50%; }

.suite-launcher-item > span:last-child {
  display: grid;
  gap: 2px;
  min-width: 0;
}

.suite-launcher-item strong,
.suite-launcher-item small {
  overflow: hidden;
  text-overflow: ellipsis;
}

.suite-launcher-item strong {
  font-size: .75rem;
  line-height: 1.2;
}

.suite-launcher-item small {
  color: var(--suite-muted);
  font-size: .64rem;
  line-height: 1.25;
}

.suite-launcher-account {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  margin-top: 12px;
  padding: 10px;
  border: 1px solid var(--suite-line);
  border-radius: 11px;
  color: var(--suite-text);
  background: var(--suite-panel-strong);
  text-decoration: none;
}

.suite-launcher-account > span:first-child {
  display: grid;
  place-items: center;
  flex: 0 0 34px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  color: #17131f;
  background: var(--suite-accent);
  font-weight: 800;
}

.suite-launcher-account > span:first-child svg {
  width: 18px;
  height: 18px;
}

.suite-launcher-account > span:last-child {
  display: grid;
  min-width: 0;
}

.suite-launcher-account strong,
.suite-launcher-account small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.suite-launcher-account strong { font-size: .8rem; }
.suite-launcher-account small { color: var(--suite-muted); font-size: .68rem; }

@media (max-width: 560px) {
  .suite-launcher-root { position: static; }
  .suite-launcher-panel {
    position: fixed;
    top: auto;
    right: 8px;
    bottom: 8px;
    left: 8px;
    width: auto;
    max-height: min(82dvh, 720px);
    border-radius: 18px;
  }
  .suite-launcher-grid { gap: 5px; }
  .suite-launcher-item { min-height: 104px; }
}

@media (prefers-reduced-motion: no-preference) {
  .suite-launcher-panel:not([hidden]) { animation: suite-launcher-in 160ms ease-out; }
  @keyframes suite-launcher-in {
    from { opacity: 0; transform: translateY(-6px) scale(.985); }
  }
}
