.atlas-widgets {
  display: flex;
  flex-direction: column;
  gap: 16px;
  min-width: 0;
}
.atlas-widgets-toolbar {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}
.atlas-widgets button {
  font: inherit;
  cursor: pointer;
  color: var(--text);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 5px 9px;
}
.atlas-widgets button:disabled {
  cursor: default;
  opacity: 0.5;
}
.atlas-widget {
  min-width: 0;
}
.atlas-widget-header {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 8px;
  color: var(--muted);
  font-size: 12px;
}
.atlas-widget-header > span {
  flex: 1;
}
.atlas-widget-menu {
  position: relative;
}
.atlas-widget-menu summary {
  cursor: pointer;
  padding: 3px 8px;
  list-style: none;
  font-size: 18px;
}
.atlas-widget-menu[open] {
  z-index: 2;
}
.atlas-widget-menu[open] button {
  display: block;
  width: 120px;
  text-align: left;
}
.atlas-widgets-editing .atlas-widget {
  border: 1px dashed var(--line);
  border-radius: 8px;
  padding: 8px;
}
.atlas-widget-hidden {
  opacity: 0.65;
}
.atlas-widgets [data-widget-handle] {
  cursor: grab;
  touch-action: none;
}
@media (max-width: 760px) {
  .atlas-widgets-toolbar {
    justify-content: flex-start;
  }
}
