/* Shared CellTech topbar cluster: Task pill + GO circle.
   Copy into every app. Classes are prefixed `ct-` to avoid collisions. */

.ct-actions {
  --ct-bg: #f2f2f2;
  --ct-card: #ffffff;
  --ct-ink: #0a0a0a;
  --ct-ink-dim: #6e6e73;
  --ct-ink-faint: #a3a3a8;
  --ct-line: rgba(0, 0, 0, 0.07);
  --ct-black: #111111;
  --ct-shadow-sm: 0 1px 2px rgba(0, 0, 0, 0.04), 0 2px 8px rgba(0, 0, 0, 0.03);
  --ct-shadow-md: 0 2px 6px rgba(0, 0, 0, 0.05), 0 10px 28px rgba(0, 0, 0, 0.07);
  --ct-shadow-lg: 0 6px 16px rgba(0, 0, 0, 0.07), 0 24px 60px rgba(0, 0, 0, 0.1);
  --ct-font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", system-ui, sans-serif;
  --ct-ease: cubic-bezier(0.16, 1, 0.3, 1);
  --ct-spring: cubic-bezier(0.34, 1.3, 0.44, 1);
  display: flex;
  align-items: center;
  gap: 8px;
  flex-shrink: 0;
  font-family: var(--ct-font);
}

.ct-task-btn {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 16px;
  border-radius: 999px;
  border: none;
  background: var(--ct-black);
  color: #fff;
  font-family: var(--ct-font);
  font-size: 0.82rem;
  font-weight: 700;
  letter-spacing: -0.02em;
  text-decoration: none;
  cursor: pointer;
  box-shadow: var(--ct-shadow-sm);
  transition: transform 0.25s var(--ct-spring), box-shadow 0.2s ease, background 0.2s ease;
}

.ct-task-btn:hover {
  background: #000;
  transform: translateY(-1px);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ct-task-btn.is-active {
  box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12);
}

.ct-task-dot {
  position: absolute;
  top: 6px;
  right: 7px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #e11d48;
  box-shadow: 0 0 0 2px var(--ct-black);
  pointer-events: none;
}

.ct-gateway-wrap { position: relative; }

.ct-gateway-btn {
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 50%;
  background: var(--ct-black);
  color: #fff;
  font-family: var(--ct-font);
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1;
  cursor: pointer;
  box-shadow: var(--ct-shadow-sm);
  transition: transform 0.25s var(--ct-spring), box-shadow 0.2s ease, background 0.2s ease;
}

.ct-gateway-btn:hover {
  background: #000;
  transform: translateY(-1px) scale(1.04);
  box-shadow: 0 6px 16px rgba(0, 0, 0, 0.18);
}

.ct-gateway-btn:active { transform: scale(0.97); }
.ct-gateway-btn[aria-expanded="true"] { box-shadow: 0 0 0 3px rgba(0, 0, 0, 0.12); }

.ct-gateway-menu {
  position: absolute;
  top: calc(100% + 10px);
  right: 0;
  width: min(340px, calc(100vw - 28px));
  padding: 12px;
  border-radius: 22px;
  background: var(--ct-card);
  color: var(--ct-ink);
  box-shadow: var(--ct-shadow-lg);
  z-index: 80;
  animation: ct-gateway-in 0.28s var(--ct-spring) both;
}

@keyframes ct-gateway-in {
  from { opacity: 0; transform: translateY(-8px) scale(0.98); }
  to { opacity: 1; transform: none; }
}

.ct-gateway-head {
  padding: 8px 10px 12px;
  border-bottom: 1px solid var(--ct-line);
  margin-bottom: 8px;
}

.ct-gateway-title {
  display: block;
  font-size: 0.92rem;
  font-weight: 700;
  letter-spacing: -0.02em;
}

.ct-gateway-sub {
  display: block;
  margin-top: 3px;
  font-size: 0.72rem;
  color: var(--ct-ink-faint);
  line-height: 1.4;
}

.ct-gateway-list {
  list-style: none;
  display: flex;
  flex-direction: column;
  gap: 4px;
  margin: 0;
  padding: 0;
}

.ct-gateway-item {
  width: 100%;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 10px;
  border: none;
  border-radius: 16px;
  background: transparent;
  color: var(--ct-ink);
  font-family: var(--ct-font);
  text-align: left;
  cursor: pointer;
  transition: background 0.18s ease;
}

.ct-gateway-item:hover { background: #f4f4f4; }

.ct-gateway-mark {
  display: grid;
  place-items: center;
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  background: var(--ct-black);
  color: #fff;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.ct-gateway-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.ct-gateway-name {
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: -0.015em;
}

.ct-gateway-hint {
  font-size: 0.7rem;
  color: var(--ct-ink-faint);
}

.ct-gateway-note {
  margin: 10px 6px 2px;
  padding-top: 10px;
  border-top: 1px solid var(--ct-line);
  font-size: 0.7rem;
  color: var(--ct-ink-faint);
  line-height: 1.5;
}
