/*
 * Tokens semânticos da GO.
 *
 * Regra: JSX consome significado (`surface-hover`, `border-strong`, `primary-soft`), nunca a cor
 * crua do Tailwind. Todos os pares texto/superfície abaixo foram verificados em WCAG AA (>= 4.5:1)
 * contra branco, canvas, hover e muted antes de entrar aqui.
 *
 * Os nomes existem em pares claro/escuro desde já: nenhum token foi definido de um jeito que
 * impeça um dark mode futuro — basta redefinir os valores num bloco `:root[data-theme='dark']`.
 */
:root {
  /* ── Marca ──────────────────────────────────────────────────────────────────
   * Azul profundo, não elétrico e não navy. 7,29:1 sobre branco, contra 5,17:1 do
   * antigo #2563eb (blue-600 do Tailwind, que dava aparência de framework). */
  --primary: #1d5a8a;
  --primary-hover: #17486e;
  --primary-active: #123a59;
  --primary-soft: #eaf1f7;
  --primary-soft-hover: #dde8f2;
  --primary-foreground: #ffffff;
  --institutional: #16222e;

  /* ── Superfícies ────────────────────────────────────────────────────────────
   * A hierarquia é percebida por composição, não por contraste. Os degraus são
   * deliberadamente pequenos e neutros com leve viés frio. */
  --canvas: #f2f5f9;
  --surface: #ffffff;
  --surface-elevated: #ffffff;
  --surface-hover: #edf2f7;
  --surface-selected: var(--primary-soft);
  --surface-muted: #e9eef4;

  /* ── Navegação ──────────────────────────────────────────────────────────────
   * Azul-petróleo profundo ancora a navegação e cria hierarquia B2B. O matiz é
   * deliberadamente sóbrio; cores dos módulos ficam reservadas a estados e foco. */
  --navigation-surface: #173449;
  --navigation-surface-soft: #1d4056;
  --navigation-surface-hover: #294e64;
  --navigation-border: #315268;
  --topbar-surface: rgb(248 251 253 / 0.9);

  /* ── Bordas ─────────────────────────────────────────────────────────────────*/
  --border-subtle: #e8ebf0;
  --border-default: #dde1e8;
  --border-strong: #c6ccd6;

  /* ── Texto ──────────────────────────────────────────────────────────────────*/
  --text-primary: #161d26;
  --text-secondary: #4a5563;
  --text-muted: #616c7a;
  --text-on-primary: #ffffff;

  /* ── Estados semânticos ─────────────────────────────────────────────────────*/
  --success: #15803d;
  --success-soft: #ecfdf3;
  --warning: #92400e;
  --warning-soft: #fff7ed;
  --danger: #b42318;
  --danger-hover: #912012;
  --danger-soft: #fef3f2;
  --info: #1d5a8a;
  --info-soft: #eaf1f7;

  /* ── Raio ───────────────────────────────────────────────────────────────────
   * Escala semântica, não numérica. `pill` só onde a forma comunica algo:
   * status, badge, chip. Botão comum nunca vira pill. */
  --radius-control: 0.5rem;
  --radius-panel: 0.875rem;
  --radius-dialog: 1rem;
  --radius-pill: 9999px;

  /* ── Elevação ───────────────────────────────────────────────────────────────
   * Sombra comunica flutuação real. Elemento estrutural usa borda + superfície e
   * não recebe sombra: card, input e select ficam sem. */
  --elevation-raised: 0 1px 2px rgb(22 29 38 / 0.04), 0 1px 3px -1px rgb(22 29 38 / 0.08);
  --elevation-overlay: 0 8px 24px -8px rgb(22 29 38 / 0.12), 0 18px 48px -18px rgb(22 29 38 / 0.18);
  --elevation-dialog: 0 16px 40px -16px rgb(22 29 38 / 0.2), 0 32px 80px -24px rgb(22 29 38 / 0.3);

  /* ── Movimento ──────────────────────────────────────────────────────────────
   * A interface deve parecer rápida, não animada. */
  --duration-fast: 120ms;
  --duration-base: 160ms;
  --ease-out: cubic-bezier(0.2, 0.8, 0.2, 1);

  --focus-ring: #2e7cb8;

  /* ── Atmosfera dos módulos ──────────────────────────────────────────────────
   * A cor identifica o contexto sem substituir os estados semânticos. */
  --module-accent: var(--primary);
  --module-accent-strong: var(--primary-hover);
  --module-accent-soft: var(--primary-soft);
  --module-glow: rgb(29 90 138 / 0.06);

  --go-workspace-topbar-height: 3.5rem;
  --go-control-height: 2.5rem;
  --go-control-gap: 0.375rem;
  --go-control-weight: 500;
  --go-control-padding: 0.875rem;
}

.module-sidebar {
  --text-primary: #f4f7f9;
  --text-secondary: #d6e0e7;
  --text-muted: #aebfcb;
  --border-subtle: rgb(255 255 255 / 0.1);
  --border-default: rgb(255 255 255 / 0.17);
  border-color: transparent;
  background-color: var(--navigation-surface);
  background-image:
    radial-gradient(
      ellipse 160% 20rem at 12% -5rem,
      color-mix(in srgb, var(--module-accent) 14%, transparent) 0%,
      color-mix(in srgb, var(--module-glow) 58%, transparent) 48%,
      transparent 76%
    ),
    linear-gradient(
      180deg,
      var(--navigation-surface-soft) 0%,
      var(--navigation-surface) 34%,
      color-mix(in srgb, var(--navigation-surface) 91%, #0d2230) 100%
    );
  background-repeat: no-repeat;
  box-shadow:
    inset -1px 0 0 rgb(255 255 255 / 0.045),
    7px 0 26px rgb(4 18 27 / 0.14);
}

.module-sidebar > :first-child {
  border-color: transparent;
  background: linear-gradient(180deg, rgb(255 255 255 / 0.07), rgb(7 24 35 / 0.14));
  box-shadow:
    inset 0 -1px 0 rgb(255 255 255 / 0.055),
    inset 0 1px 0 rgb(255 255 255 / 0.045),
    0 10px 24px rgb(4 18 27 / 0.14);
}

.sidebar-product-bar {
  background: color-mix(in srgb, var(--navigation-surface-soft) 86%, var(--module-accent));
  box-shadow:
    inset 0 -1px 0 rgb(255 255 255 / 0.07),
    0 5px 16px rgb(4 18 27 / 0.16);
}

.sidebar-collapse-control {
  border-left: 1px solid rgb(255 255 255 / 0.1);
  color: var(--text-secondary);
  background: transparent;
}

.sidebar-product-name {
  color: var(--text-primary);
  cursor: default;
  user-select: none;
}

.sidebar-collapse-control:hover {
  background: rgb(255 255 255 / 0.08);
}

.platform-topbar {
  border-color: transparent;
  background: var(--topbar-surface);
  box-shadow:
    inset 0 -1px 0 rgb(255 255 255 / 0.62),
    0 3px 12px rgb(22 40 54 / 0.07);
  backdrop-filter: blur(16px) saturate(120%);
}

.module-navigation-group-trigger {
  color: color-mix(in srgb, var(--text-secondary) 82%, var(--primary));
}

.module-navigation-group-trigger:hover {
  background: linear-gradient(90deg, rgb(255 255 255 / 0.055), rgb(255 255 255 / 0.025));
}

.module-navigation-item {
  position: relative;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0 0.5rem;
  border-radius: 0.375rem;
  color: var(--text-secondary);
  font-size: 0.8125rem;
  font-weight: 400;
  line-height: 1rem;
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.module-navigation-item--collapsed {
  justify-content: center;
  padding-inline: 0.375rem;
}

.module-sidebar .module-navigation-item:focus-visible {
  outline: 2px solid #bcdcf4;
  outline-offset: -2px;
}

.module-navigation-item:hover {
  color: var(--text-primary);
  background: linear-gradient(105deg, rgb(255 255 255 / 0.065), rgb(255 255 255 / 0.025));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.032),
    0 2px 7px rgb(3 17 26 / 0.055);
}

.module-navigation-item[aria-current='page'] {
  color: var(--text-primary);
  background: linear-gradient(
    105deg,
    rgb(255 255 255 / 0.105) 0%,
    color-mix(in srgb, var(--module-accent) 8%, rgb(255 255 255 / 0.065)) 58%,
    rgb(255 255 255 / 0.045) 100%
  );
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.065),
    inset 0 0 0 1px rgb(255 255 255 / 0.045),
    0 3px 9px rgb(4 18 27 / 0.075);
}

.module-navigation-item[aria-current='page']:hover {
  background: linear-gradient(
    105deg,
    rgb(255 255 255 / 0.125),
    color-mix(in srgb, var(--module-accent) 9%, rgb(255 255 255 / 0.075))
  );
}

[data-efeito~='menu-lateral-x'] {
  position: relative;
  isolation: isolate;
}

[data-menu-x-highlight] {
  position: absolute;
  inset-block-start: 0;
  inset-inline: 0.5rem;
  z-index: -1;
  height: var(--menu-x-height, 0);
  transform: translateY(var(--menu-x-y, 0));
  border-radius: var(--radius-control);
  background: var(--menu-x-destaque, rgb(255 255 255 / 0.085));
  pointer-events: none;
  opacity: 0;
}

[data-menu-x-highlight][data-visible] {
  opacity: 1;
}

[data-menu-x-highlight][data-moving] {
  transition:
    transform var(--duration-base) var(--ease-out),
    height var(--duration-base) var(--ease-out);
}

[data-efeito~='menu-lateral-x']:has(> [data-menu-x-highlight][data-visible])
  .module-navigation-item:not([aria-current]):hover {
  background: transparent;
  box-shadow: none;
}

[data-efeito~='menu-lateral-x'] .module-navigation-item {
  min-height: 2rem;
}

[data-efeito~='menu-lateral-x'] .module-navigation-item[aria-current='page'] {
  font-weight: 600;
}

[data-efeito~='menu-lateral-x']
  .module-navigation-item[aria-current='page']
  .module-navigation-icon
  svg {
  stroke-width: 2.25;
}

@media (pointer: coarse) {
  [data-efeito~='menu-lateral-x'] .module-navigation-item {
    min-height: 2.75rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  [data-menu-x-highlight][data-moving],
  [data-efeito~='menu-lateral-x'] :is(.module-navigation-item, .module-navigation-icon) {
    transition: none;
  }
}

.module-navigation-icon {
  display: grid;
  flex: 0 0 1.5rem;
  width: 1.5rem;
  height: 1.5rem;
  place-items: center;
  border-radius: 0.4rem;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    color var(--duration-fast) var(--ease-out);
  background: rgb(255 255 255 / 0.055);
  color: var(--text-muted);
}

.module-navigation-item:hover .module-navigation-icon,
.module-navigation-icon--active {
  background: linear-gradient(145deg, rgb(255 255 255 / 0.105), rgb(255 255 255 / 0.055));
  color: var(--text-primary);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.055),
    0 2px 5px rgb(3 17 26 / 0.07);
}

.module-navigation-item:active .module-navigation-icon {
  background: rgb(255 255 255 / 0.16);
  color: var(--text-primary);
}

.sidebar-brand-link {
  opacity: 0.82;
}

.sidebar-brand-link:hover {
  background: rgb(255 255 255 / 0.06);
  opacity: 1;
}

.sidebar-brand-mark img {
  filter: brightness(0) invert(1) drop-shadow(0 2px 5px rgb(3 16 24 / 0.32));
}

.sidebar-brand-footer {
  border-color: transparent;
  background: linear-gradient(180deg, rgb(7 24 35 / 0.08), rgb(255 255 255 / 0.035));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.045),
    0 -10px 24px rgb(4 18 27 / 0.12);
}

.organization-switcher-trigger {
  border-color: color-mix(in srgb, var(--border-default) 72%, white);
  background: linear-gradient(180deg, rgb(255 255 255 / 0.96), rgb(244 247 250 / 0.9));
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.95),
    0 2px 6px rgb(22 40 54 / 0.08);
}

.organization-switcher-trigger:hover,
.organization-switcher-trigger[data-state='open'] {
  border-color: color-mix(in srgb, var(--primary) 20%, var(--border-default));
  background: var(--surface);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.96),
    0 4px 12px rgb(22 40 54 / 0.11);
}

.organization-switcher-trigger[data-state='open'] > svg:last-child {
  transform: rotate(180deg);
}

.organization-switcher-mark {
  background: color-mix(in srgb, var(--primary-soft) 72%, white);
  color: var(--primary-strong);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--primary) 10%, transparent);
}

.module-switcher-trigger {
  background: transparent;
  backdrop-filter: none;
  box-shadow: none;
}

.module-switcher-trigger:hover,
.module-switcher-trigger[data-state='open'] {
  background: rgb(255 255 255 / 0.075);
  box-shadow: none;
}

.module-switcher-waffle {
  color: var(--text-primary);
  background: rgb(255 255 255 / 0.035);
}

.module-switcher-trigger:hover .module-switcher-waffle,
.module-switcher-trigger[data-state='open'] .module-switcher-waffle {
  background: rgb(255 255 255 / 0.1);
}

.module-app-card {
  border: 1px solid transparent;
}

.module-app-card:hover,
.module-app-card:focus-visible,
.module-app-card[data-highlighted] {
  border-color: color-mix(in srgb, var(--module-accent) 12%, var(--border-subtle));
  background: color-mix(in srgb, var(--module-accent-soft) 34%, white);
}

.module-app-card--active {
  border-color: color-mix(in srgb, var(--module-accent) 18%, var(--border-subtle));
  background: color-mix(in srgb, var(--module-accent-soft) 42%, white);
  box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--module-accent) 5%, transparent);
}

.module-app-icon {
  background: color-mix(in srgb, var(--module-accent-soft) 66%, white);
  color: color-mix(in srgb, var(--module-accent) 68%, var(--text-secondary));
}

.module-app-card:hover .module-app-icon,
.module-app-icon--active {
  background: color-mix(in srgb, var(--module-accent-soft) 74%, white);
  color: color-mix(in srgb, var(--module-accent) 72%, var(--text-secondary));
}

.module-app-check {
  background: color-mix(in srgb, var(--module-accent-soft) 58%, white);
  color: color-mix(in srgb, var(--module-accent) 72%, var(--text-secondary));
}

.organization-switcher-content {
  border-color: color-mix(in srgb, var(--border-default) 76%, white);
  box-shadow:
    inset 0 1px 0 rgb(255 255 255 / 0.92),
    0 16px 34px rgb(22 40 54 / 0.16);
}

.workspace-account-trigger {
  display: flex;
  height: 2.25rem;
  align-items: center;
  gap: 0.5rem;
  padding-inline: 0.375rem;
  border: 0;
  border-radius: var(--radius-control);
  background: transparent;
  color: var(--text-secondary);
  font-size: 0.75rem;
  cursor: pointer;
  transition: background-color var(--duration-fast) var(--ease-out);
}

.workspace-account-trigger:hover,
.workspace-account-trigger[data-state='open'] {
  background: var(--surface-muted);
}

.workspace-account-avatar {
  display: grid;
  width: 2rem;
  height: 2rem;
  flex-shrink: 0;
  place-items: center;
  overflow: hidden;
  border-radius: 50%;
  background: var(--surface-muted);
  color: var(--institutional);
  font-weight: var(--go-control-weight);
}

.workspace-account-avatar img {
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.workspace-account-name {
  display: none;
  max-width: 10rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-account-chevron {
  display: none;
  color: var(--text-muted);
  transition: transform var(--duration-fast) var(--ease-out);
}

.workspace-account-trigger[data-state='open'] .workspace-account-chevron {
  transform: rotate(180deg);
}

.workspace-account-menu {
  z-index: 80;
  width: min(14rem, calc(100vw - 1.5rem));
  max-height: var(--radix-dropdown-menu-content-available-height, 100dvh);
  overflow: auto;
  padding-block: 0.25rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-primary);
  box-shadow: var(--elevation-overlay);
  font-family: var(--font-geist-sans, Geist, system-ui, sans-serif);
  line-height: 1.5;
}

.workspace-account-identity {
  padding: 0.625rem 0.75rem;
  border-bottom: 1px solid var(--border-default);
}

.workspace-account-identity p {
  margin: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: 0.875rem;
  font-weight: var(--go-control-weight);
  line-height: 1.5;
}

.workspace-account-identity .workspace-account-email,
.workspace-account-context {
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
}

.workspace-account-context {
  margin-top: 0.25rem;
  overflow-wrap: anywhere;
}

.workspace-account-menu [role='menuitem'] {
  display: flex;
  min-height: 2.25rem;
  width: 100%;
  align-items: center;
  gap: 0.625rem;
  padding: 0.5rem 0.75rem;
  border: 0;
  background: transparent;
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  text-align: left;
  text-decoration: none;
  cursor: pointer;
}

.workspace-account-menu [role='menuitem'][data-highlighted] {
  outline: none;
  background: var(--surface-muted);
  color: var(--text-primary);
}

.workspace-account-menu svg {
  flex-shrink: 0;
}

@media (min-width: 640px) {
  .workspace-account-chevron {
    display: inline-flex;
  }
}

@media (min-width: 1024px) {
  .workspace-account-name {
    display: inline;
  }
}

[data-module-tone='sst'] {
  --module-accent: #177a50;
  --module-accent-strong: #105c3c;
  --module-accent-soft: #e4f4eb;
  --module-glow: rgb(39 174 109 / 0.075);
}
[data-module-tone='learning'] {
  --module-accent: #7256b8;
  --module-accent-strong: #563c98;
  --module-accent-soft: #f0ebfa;
  --module-glow: rgb(126 94 196 / 0.07);
}
[data-module-tone='work'] {
  --module-accent: #34759b;
  --module-accent-strong: #245a79;
  --module-accent-soft: #e8f2f7;
  --module-glow: rgb(61 132 169 / 0.07);
}
[data-module-tone='docs'] {
  --module-accent: #1d7889;
  --module-accent-strong: #145b69;
  --module-accent-soft: #e3f3f5;
  --module-glow: rgb(39 145 162 / 0.07);
}
[data-module-tone='sign'] {
  --module-accent: #8a557f;
  --module-accent-strong: #693d61;
  --module-accent-soft: #f6eaf3;
  --module-glow: rgb(157 91 143 / 0.065);
}
[data-module-tone='crm'] {
  --module-accent: #27776f;
  --module-accent-strong: #1b5a54;
  --module-accent-soft: #e6f3f1;
  --module-glow: rgb(51 143 133 / 0.065);
}
[data-module-tone='procurement'] {
  --module-accent: #5868ae;
  --module-accent-strong: #414f8a;
  --module-accent-soft: #ebedf8;
  --module-glow: rgb(94 111 184 / 0.065);
}

.workspace-launcher-trigger,
.workspace-launcher-trigger .module-switcher-waffle {
  display: grid;
  width: 2.75rem;
  height: 100%;
  flex-shrink: 0;
  place-items: center;
  padding: 0;
  border: 0;
  border-radius: 0;
}

.workspace-launcher-trigger {
  min-height: var(--go-workspace-topbar-height);
  cursor: pointer;
}

.workspace-launcher-trigger,
.workspace-launcher-trigger .module-switcher-waffle {
  transition: background-color var(--duration-fast) var(--ease-out);
}

.workspace-launcher-trigger:focus-visible {
  outline: 2px solid var(--focus-ring);
  outline-offset: -3px;
}

.module-sidebar .workspace-launcher-trigger:focus-visible {
  outline-color: #bcdcf4;
}

.workspace-launcher-menu {
  z-index: 80;
  width: min(28rem, calc(100vw - 1.5rem));
  max-height: var(--radix-dropdown-menu-content-available-height, 100dvh);
  overflow: auto;
  padding: 0.75rem;
  border: 1px solid var(--border-subtle);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface-elevated) 97%, transparent);
  color: var(--text-primary);
  box-shadow: var(--elevation-overlay);
  font-family: var(--font-geist-sans, Geist, system-ui, sans-serif);
  line-height: 1.5;
  backdrop-filter: blur(24px);
}

.workspace-launcher-heading {
  padding: 0.25rem 0.25rem 0.75rem;
  font-size: 1rem;
  font-weight: 600;
  line-height: 1.5;
}

.workspace-launcher-heading p {
  margin: 0.125rem 0 0;
  color: var(--text-muted);
  font-size: 0.75rem;
  font-weight: 400;
  line-height: 1.5;
}

.workspace-launcher-search {
  display: flex;
  height: 2.5rem;
  align-items: center;
  gap: 0.5rem;
  margin-block: 0 0.5rem;
  padding-inline: 0.75rem;
  border: 1px solid var(--border-default);
  border-radius: var(--radius-control);
  background: var(--surface);
  color: var(--text-muted);
  box-shadow: var(--elevation-raised);
}

.workspace-launcher-search:focus-within {
  outline: 2px solid color-mix(in srgb, var(--focus-ring) 24%, transparent);
  outline-offset: 1px;
}

.workspace-launcher-search svg {
  flex-shrink: 0;
}

.workspace-launcher-search input {
  height: 100%;
  min-width: 0;
  width: 100%;
  padding: 0;
  border: 0;
  outline: none;
  background: transparent;
  color: var(--text-primary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: 400;
}

.workspace-launcher-search input::placeholder {
  color: var(--text-muted);
  opacity: 1;
}

.workspace-launcher-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.375rem;
}

.workspace-launcher-grid .module-app-card {
  display: flex;
  min-height: 4rem;
  align-items: center;
  gap: 0.75rem;
  padding: 0.625rem 0.75rem;
  border-radius: var(--radius-control);
  color: var(--text-primary);
  text-decoration: none;
  transition:
    background-color var(--duration-fast) var(--ease-out),
    border-color var(--duration-fast) var(--ease-out),
    box-shadow var(--duration-fast) var(--ease-out);
}

.workspace-launcher-grid .module-app-card:active {
  background: var(--surface-selected);
}

@media (prefers-reduced-motion: reduce) {
  .workspace-launcher-trigger,
  .workspace-launcher-trigger .module-switcher-waffle,
  .workspace-launcher-grid .module-app-card {
    transition: none;
  }
}

.workspace-launcher-grid .module-app-card[data-highlighted],
.workspace-launcher-footer[data-highlighted] {
  outline: none;
}

.workspace-launcher-grid :is(.module-app-icon, .module-app-check) {
  display: grid;
  flex-shrink: 0;
  place-items: center;
}

.workspace-launcher-grid .module-app-icon {
  width: 2.5rem;
  height: 2.5rem;
  border-radius: var(--radius-control);
}

.workspace-launcher-grid .module-app-check {
  width: 1.5rem;
  height: 1.5rem;
  border-radius: 50%;
}

.workspace-launcher-app-label {
  flex: 1;
  min-width: 0;
}

.workspace-launcher-app-label :is(strong, small) {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.workspace-launcher-app-label strong {
  font-size: 0.875rem;
  font-weight: var(--go-control-weight);
  line-height: 1.4;
}

.workspace-launcher-app-label small {
  margin-top: 0.125rem;
  color: var(--text-muted);
  font-size: 0.75rem;
  line-height: 1.4;
}

.workspace-launcher-empty {
  padding: 1rem 0.75rem;
  border-radius: 0.75rem;
  background: var(--surface-muted);
  color: var(--text-secondary);
  font-size: 0.875rem;
}

.workspace-launcher-separator {
  height: 1px;
  margin-block: 0.5rem;
  background: var(--border-subtle);
}

.workspace-launcher-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.5rem 0.625rem;
  border-radius: 0.75rem;
  color: var(--text-secondary);
  font-size: 0.875rem;
  text-decoration: none;
}

.workspace-launcher-footer:hover,
.workspace-launcher-footer[data-highlighted] {
  background: var(--surface-hover);
  color: var(--text-primary);
}

@media (max-width: 420px) {
  .workspace-launcher-grid .module-app-card {
    gap: 0.5rem;
    padding-inline: 0.5rem;
  }
  .workspace-launcher-grid .module-app-icon {
    width: 2rem;
    height: 2rem;
  }
  .workspace-launcher-grid .module-app-check {
    width: 1rem;
    height: 1rem;
  }
}

.workspace-search-trigger {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 0.5rem;
  width: 2.25rem;
  min-height: 2.25rem;
  flex-shrink: 0;
  padding: 0;
  border: 1px solid var(--border-default);
  border-radius: 0.75rem;
  background: color-mix(in srgb, var(--surface-muted) 70%, transparent);
  color: var(--text-secondary);
  font: inherit;
  font-size: 0.875rem;
  font-weight: var(--go-control-weight);
  cursor: pointer;
}

.workspace-search-trigger:hover,
.workspace-search-trigger[data-state='open'] {
  background: var(--surface-muted);
}

.workspace-search-trigger :is(span, kbd) {
  display: none;
}

@media (min-width: 768px) {
  .workspace-search-trigger {
    width: 16rem;
    justify-content: flex-start;
    padding-inline: 0.75rem;
  }
  .workspace-search-trigger :is(span, kbd) {
    display: inline;
  }
  .workspace-search-trigger kbd {
    margin-left: auto;
    padding: 0.125rem 0.375rem;
    border: 1px solid var(--border-subtle);
    border-radius: 0.375rem;
    background: var(--surface);
    color: var(--text-muted);
    font-size: 0.65rem;
    box-shadow: var(--elevation-raised);
  }
}

.workspace-loading {
  display: grid;
  gap: 0.75rem;
  width: 100%;
  min-width: 0;
  color: var(--text-secondary);
}
.workspace-loading-label {
  font-size: 0.8125rem;
  line-height: 1.5;
}
.workspace-loading-title,
.workspace-loading-description,
.workspace-loading-row span {
  border-radius: var(--radius-control);
  background: var(--surface-muted);
}
.workspace-loading-title {
  width: min(17rem, 70%);
  height: 1.375rem;
}
.workspace-loading-description {
  width: min(27rem, 91%);
  height: 0.625rem;
  margin-bottom: 0.5rem;
}
.workspace-loading-panel {
  display: grid;
  gap: 1rem;
  padding: clamp(0.875rem, 2vw, 1.25rem);
  border: 1px solid var(--border-default);
  border-radius: var(--radius-panel);
  background: var(--surface);
}
.workspace-loading-row {
  display: flex;
  align-items: center;
  gap: 0.75rem;
}
.workspace-loading-row span:first-child {
  width: 2rem;
  height: 2rem;
  flex: 0 0 2rem;
}
.workspace-loading-row span:last-child {
  width: min(60%, 19rem);
  height: 0.625rem;
}
.workspace-loading-row:nth-child(2) span:last-child {
  width: min(42%, 13rem);
}
.workspace-loading-row:nth-child(3) span:last-child {
  width: min(53%, 16rem);
}
